增加中英文翻译,更新图标
parent
05b0cb4320
commit
63b9f7d141
|
@ -54,16 +54,22 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>WWW.HJ-NET.COM</string>
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="emscfgres.qrc">:/images/hj-net.png</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QListView" name="listView">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>120</y>
|
||||
<y>90</y>
|
||||
<width>621</width>
|
||||
<height>271</height>
|
||||
<height>301</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="contextMenuPolicy">
|
||||
|
@ -82,10 +88,10 @@
|
|||
<widget class="QLabel" name="productName">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>30</x>
|
||||
<y>70</y>
|
||||
<width>601</width>
|
||||
<height>41</height>
|
||||
<x>300</x>
|
||||
<y>10</y>
|
||||
<width>331</width>
|
||||
<height>61</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
|
@ -93,7 +99,9 @@
|
|||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<resources>
|
||||
<include location="emscfgres.qrc"/>
|
||||
</resources>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
QT += core gui
|
||||
QT += core gui sql
|
||||
|
||||
#DEFINES += _USING_MYSQL_CONNECTOR_
|
||||
#DEFINES += _USING_QT_MYSQL_CONNECTOR_
|
||||
|
@ -86,6 +86,7 @@ SOURCES += \
|
|||
mainwindow.cpp \
|
||||
mysqlutils.cpp \
|
||||
mytablemodel.cpp \
|
||||
newdeviceformdialog.cpp \
|
||||
ziputils.cpp
|
||||
|
||||
HEADERS += \
|
||||
|
@ -100,6 +101,7 @@ HEADERS += \
|
|||
mainwindow.h \
|
||||
mysqlutils.h \
|
||||
mytablemodel.h \
|
||||
newdeviceformdialog.h \
|
||||
singleton.h \
|
||||
ziputils.h \
|
||||
hv_tcpclient.h \
|
||||
|
@ -110,7 +112,15 @@ FORMS += \
|
|||
aboutdialog.ui \
|
||||
formserialportsettingdialog.ui \
|
||||
maindialog.ui \
|
||||
mainwindow.ui
|
||||
mainwindow.ui \
|
||||
newdeviceformdialog.ui
|
||||
|
||||
TRANSLATIONS += \
|
||||
emsConfigurer_en_US.ts \
|
||||
emsConfigurer_zh_CN.ts
|
||||
|
||||
CONFIG += lrelease
|
||||
CONFIG += embed_translations
|
||||
|
||||
# Default rules for deployment.
|
||||
qnx: target.path = /tmp/$${TARGET}/bin
|
||||
|
|
|
@ -0,0 +1,764 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="en_US">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="aboutdialog.ui" line="20"/>
|
||||
<source>About Configurer ...</source>
|
||||
<translatorcomment>About Configurer...</translatorcomment>
|
||||
<translation type="unfinished">About Configurer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.ui" line="92"/>
|
||||
<source>TextLabel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="22"/>
|
||||
<source>About EMU Configurer Kit</source>
|
||||
<translatorcomment>About EMU Configurer Kit</translatorcomment>
|
||||
<translation type="unfinished">About EMU Configurer Kit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="34"/>
|
||||
<source>Configurer Kit for EMU Host</source>
|
||||
<translatorcomment>Configurer Kit for EMU Kit</translatorcomment>
|
||||
<translation type="unfinished">Configurer Kit for EMU Kit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="38"/>
|
||||
<source>Version %1.%2.%3</source>
|
||||
<translatorcomment>Version %1.%2.%3</translatorcomment>
|
||||
<translation type="unfinished">Version %1.%2.%3</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="52"/>
|
||||
<source>Compiled on %1</source>
|
||||
<translatorcomment>Compiled on %1</translatorcomment>
|
||||
<translation type="unfinished">Compiled on %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DevicePropertyPage</name>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="136"/>
|
||||
<source>First</source>
|
||||
<translatorcomment>First</translatorcomment>
|
||||
<translation type="unfinished">First</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="137"/>
|
||||
<source>Forward</source>
|
||||
<translatorcomment>Forward</translatorcomment>
|
||||
<translation type="unfinished">Forward</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="138"/>
|
||||
<source>Next</source>
|
||||
<translatorcomment>Next</translatorcomment>
|
||||
<translation type="unfinished">Next</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="139"/>
|
||||
<source>Last</source>
|
||||
<translatorcomment>Last</translatorcomment>
|
||||
<translation type="unfinished">Last</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="146"/>
|
||||
<source>1</source>
|
||||
<translatorcomment>1</translatorcomment>
|
||||
<translation type="unfinished">11</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="152"/>
|
||||
<source>Page</source>
|
||||
<translatorcomment>Page</translatorcomment>
|
||||
<translation type="unfinished">Page</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="153"/>
|
||||
<source>Go</source>
|
||||
<translatorcomment>Go</translatorcomment>
|
||||
<translation type="unfinished">Go</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="156"/>
|
||||
<source>Total %d Pages, Current No.%d Page</source>
|
||||
<translatorcomment>Total %d Pages, Current No.%d Page</translatorcomment>
|
||||
<translation type="unfinished">Total %d Pages, Current No.%d Page</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="168"/>
|
||||
<source>Auto Refresh</source>
|
||||
<translatorcomment>Auto Refresh</translatorcomment>
|
||||
<translation type="unfinished">Auto Refresh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="169"/>
|
||||
<source>0</source>
|
||||
<translatorcomment>0</translatorcomment>
|
||||
<translation type="unfinished">0</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="186"/>
|
||||
<source>Interval(Sec.)</source>
|
||||
<translatorcomment>Interval(Sec.)</translatorcomment>
|
||||
<translation type="unfinished">Interval(Sec.)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="472"/>
|
||||
<source>Page number should be large than 0 and less than %1 !</source>
|
||||
<translatorcomment>Page number should be large than 0 and less than %1 !</translatorcomment>
|
||||
<translation type="unfinished">Page number should be large than 0 and less than %1 !</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="473"/>
|
||||
<source>Critical Message</source>
|
||||
<translatorcomment>Critical Message</translatorcomment>
|
||||
<translation type="unfinished">Critical Message</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FormSerialPortSettingDialog</name>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="29"/>
|
||||
<source>设备串口设置</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="68"/>
|
||||
<source>设备名称</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="84"/>
|
||||
<source>设备序号</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="100"/>
|
||||
<source>串口类型</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="146"/>
|
||||
<source>从机地址</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="162"/>
|
||||
<source>串口号</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="175"/>
|
||||
<source>波特率</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="201"/>
|
||||
<source>数据位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="227"/>
|
||||
<source>校验位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="253"/>
|
||||
<source>停止位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="289"/>
|
||||
<source>模式</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="305"/>
|
||||
<source>响应超时</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="331"/>
|
||||
<source>轮询间隔</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="362"/>
|
||||
<location filename="formserialportsettingdialog.ui" line="380"/>
|
||||
<source>ms</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="393"/>
|
||||
<source>DSR</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="406"/>
|
||||
<source>CTS</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="419"/>
|
||||
<source>DTR</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="435"/>
|
||||
<source>插件绑定</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="458"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="474"/>
|
||||
<source>制造商</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="43"/>
|
||||
<source>None</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="44"/>
|
||||
<source>Odd</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="45"/>
|
||||
<source>Even</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="64"/>
|
||||
<source>8 Data bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="65"/>
|
||||
<source>7 Data bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="83"/>
|
||||
<source>1 Stop bit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="84"/>
|
||||
<source>2 Stop bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="102"/>
|
||||
<source>RTU</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="103"/>
|
||||
<source>ASCII</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="121"/>
|
||||
<source>2400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="122"/>
|
||||
<source>4800</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="123"/>
|
||||
<source>9600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="124"/>
|
||||
<source>19200</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="125"/>
|
||||
<source>38400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="126"/>
|
||||
<source>57600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="127"/>
|
||||
<source>115200</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="128"/>
|
||||
<source>128000</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="129"/>
|
||||
<source>153600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="130"/>
|
||||
<source>230400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="131"/>
|
||||
<source>460800</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="132"/>
|
||||
<source>921600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="151"/>
|
||||
<source>Serial Port</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="213"/>
|
||||
<source>Failed to open file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="214"/>
|
||||
<source>Critical</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="267"/>
|
||||
<source>Service responsed: Permission denyed<byte value="xd"/>
|
||||
Contact Developement for supporting!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="272"/>
|
||||
<source>Upload file failed, Press Yes to upload again!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainDialog</name>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="32"/>
|
||||
<source>EMU Configurer Kit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="79"/>
|
||||
<source>Power</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="80"/>
|
||||
<source>Battery</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="81"/>
|
||||
<source>Switch</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="82"/>
|
||||
<source>Air</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="83"/>
|
||||
<source>Fan</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="84"/>
|
||||
<source>Sensor</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="128"/>
|
||||
<source>Add Device</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="129"/>
|
||||
<source>Add a new device</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="131"/>
|
||||
<source>Remove Device</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="132"/>
|
||||
<source>Remove a device</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="134"/>
|
||||
<location filename="maindialog.cpp" line="135"/>
|
||||
<source>Refresh</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="137"/>
|
||||
<source>About...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="138"/>
|
||||
<source>Show information about EMU Configurer toolkit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="20"/>
|
||||
<source>EMS Configurer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="36"/>
|
||||
<source>Host IP</source>
|
||||
<translatorcomment>Host IP</translatorcomment>
|
||||
<translation type="unfinished">Host IP</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="55"/>
|
||||
<source>Configurer</source>
|
||||
<translatorcomment>Configurer</translatorcomment>
|
||||
<translation type="unfinished">Configurer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="77"/>
|
||||
<location filename="mainwindow.cpp" line="42"/>
|
||||
<source>for EMU Host</source>
|
||||
<translatorcomment>for EMU Host</translatorcomment>
|
||||
<translation type="unfinished">for EMU Host</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="93"/>
|
||||
<source>Test</source>
|
||||
<translatorcomment>Test</translatorcomment>
|
||||
<translation type="unfinished">Test</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="125"/>
|
||||
<source>Logon</source>
|
||||
<translatorcomment>Logon</translatorcomment>
|
||||
<translation type="unfinished">Logon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="145"/>
|
||||
<source>Close</source>
|
||||
<translatorcomment>Close</translatorcomment>
|
||||
<translation type="unfinished">Close</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="183"/>
|
||||
<source>Login name</source>
|
||||
<translatorcomment>Login name</translatorcomment>
|
||||
<translation type="unfinished">Login name</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="196"/>
|
||||
<source>Password</source>
|
||||
<translatorcomment>Password</translatorcomment>
|
||||
<translation type="unfinished">Password</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="229"/>
|
||||
<source>Lang</source>
|
||||
<translatorcomment>Lang</translatorcomment>
|
||||
<translation type="unfinished">Lang</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="22"/>
|
||||
<source>EMU Configurer Kit</source>
|
||||
<translatorcomment>EMU Configurer Kit</translatorcomment>
|
||||
<translation type="unfinished">EMU Configurer Kit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="38"/>
|
||||
<source>Configurer Kit</source>
|
||||
<translatorcomment>Configurer Kit</translatorcomment>
|
||||
<translation type="unfinished">Configurer Kit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="133"/>
|
||||
<location filename="mainwindow.cpp" line="143"/>
|
||||
<location filename="mainwindow.cpp" line="149"/>
|
||||
<source>Critical Message</source>
|
||||
<translatorcomment>Critical Message</translatorcomment>
|
||||
<translation type="unfinished">Critical Message</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="133"/>
|
||||
<source>Failed to retrieve device data!</source>
|
||||
<translatorcomment>Failed to retrieve device data!</translatorcomment>
|
||||
<translation type="unfinished">Failed to retrieve device data!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="141"/>
|
||||
<location filename="mainwindow.cpp" line="147"/>
|
||||
<source>Successfully</source>
|
||||
<translatorcomment>Successfully</translatorcomment>
|
||||
<translation type="unfinished">Successfully</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="141"/>
|
||||
<source>Connect to device database successfully!</source>
|
||||
<translatorcomment>Connect to device database successfully!</translatorcomment>
|
||||
<translation type="unfinished">Connect to device database successfully!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="143"/>
|
||||
<source>Failed to connect to device database!</source>
|
||||
<translatorcomment>Failed to connect to device database!</translatorcomment>
|
||||
<translation type="unfinished">Failed to connect to device database!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="147"/>
|
||||
<source>Connect to device data service successfully!</source>
|
||||
<translatorcomment>Connect to device data service successfully!</translatorcomment>
|
||||
<translation type="unfinished">Connect to device data service successfully!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="149"/>
|
||||
<source>Failed to connect to device data service!</source>
|
||||
<translatorcomment>Failed to connect to device data service!</translatorcomment>
|
||||
<translation type="unfinished">Failed to connect to device data service!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="169"/>
|
||||
<source>Language</source>
|
||||
<translatorcomment>Eng</translatorcomment>
|
||||
<translation type="unfinished">Eng</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MyTableModel</name>
|
||||
<message>
|
||||
<location filename="mytablemodel.cpp" line="32"/>
|
||||
<source>Normal</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mytablemodel.cpp" line="33"/>
|
||||
<source>INFO</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mytablemodel.cpp" line="34"/>
|
||||
<source>WARN</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mytablemodel.cpp" line="35"/>
|
||||
<source>ERROR</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>NewDeviceFormDialog</name>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="29"/>
|
||||
<source>设备串口设置</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="45"/>
|
||||
<source>OK</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="58"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="71"/>
|
||||
<source>导入</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="94"/>
|
||||
<source>预定义文件</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="117"/>
|
||||
<source>设备类型</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="130"/>
|
||||
<source>从机地址</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="156"/>
|
||||
<source>波特率</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="172"/>
|
||||
<source>串口号</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="185"/>
|
||||
<source>校验位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="201"/>
|
||||
<source>停止位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="247"/>
|
||||
<source>串口类型</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="263"/>
|
||||
<source>数据位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="309"/>
|
||||
<source>端口配置</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="78"/>
|
||||
<source>Select Configuration File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="78"/>
|
||||
<source>Database Files (*.db);;All Files (*.*)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="178"/>
|
||||
<source>None</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="179"/>
|
||||
<source>Odd</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="180"/>
|
||||
<source>Even</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="199"/>
|
||||
<source>8 Data bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="200"/>
|
||||
<source>7 Data bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="218"/>
|
||||
<source>1 Stop bit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="219"/>
|
||||
<source>2 Stop bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="237"/>
|
||||
<source>2400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="238"/>
|
||||
<source>4800</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="239"/>
|
||||
<source>9600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="240"/>
|
||||
<source>19200</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="241"/>
|
||||
<source>38400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="242"/>
|
||||
<source>57600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="243"/>
|
||||
<source>115200</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="244"/>
|
||||
<source>128000</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="245"/>
|
||||
<source>153600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="246"/>
|
||||
<source>230400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="247"/>
|
||||
<source>460800</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="248"/>
|
||||
<source>921600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="267"/>
|
||||
<source>Serial Port</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
|
@ -0,0 +1,764 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="zh_CN">
|
||||
<context>
|
||||
<name>AboutDialog</name>
|
||||
<message>
|
||||
<location filename="aboutdialog.ui" line="20"/>
|
||||
<source>About Configurer ...</source>
|
||||
<translatorcomment>关于配置器...</translatorcomment>
|
||||
<translation type="unfinished">关于配置器...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.ui" line="92"/>
|
||||
<source>TextLabel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="22"/>
|
||||
<source>About EMU Configurer Kit</source>
|
||||
<translatorcomment>关于EMU配置器工具</translatorcomment>
|
||||
<translation type="unfinished">关于EMU配置器工具</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="34"/>
|
||||
<source>Configurer Kit for EMU Host</source>
|
||||
<translatorcomment>EMU配置工具</translatorcomment>
|
||||
<translation type="unfinished">EMU配置工具</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="38"/>
|
||||
<source>Version %1.%2.%3</source>
|
||||
<translatorcomment>版本号 %1.%2.%3</translatorcomment>
|
||||
<translation type="unfinished">版本号 %1.%2.%3</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="aboutdialog.cpp" line="52"/>
|
||||
<source>Compiled on %1</source>
|
||||
<translatorcomment>编译于 %1</translatorcomment>
|
||||
<translation type="unfinished">编译于 %1</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DevicePropertyPage</name>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="136"/>
|
||||
<source>First</source>
|
||||
<translatorcomment>首行</translatorcomment>
|
||||
<translation type="unfinished">首行</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="137"/>
|
||||
<source>Forward</source>
|
||||
<translatorcomment>前翻</translatorcomment>
|
||||
<translation type="unfinished">前翻</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="138"/>
|
||||
<source>Next</source>
|
||||
<translatorcomment>后翻</translatorcomment>
|
||||
<translation type="unfinished">后翻</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="139"/>
|
||||
<source>Last</source>
|
||||
<translatorcomment>最后</translatorcomment>
|
||||
<translation type="unfinished">最后</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="146"/>
|
||||
<source>1</source>
|
||||
<translatorcomment>1</translatorcomment>
|
||||
<translation type="unfinished">1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="152"/>
|
||||
<source>Page</source>
|
||||
<translatorcomment>页</translatorcomment>
|
||||
<translation type="unfinished">页</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="153"/>
|
||||
<source>Go</source>
|
||||
<translatorcomment>前往</translatorcomment>
|
||||
<translation type="unfinished">前往</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="156"/>
|
||||
<source>Total %d Pages, Current No.%d Page</source>
|
||||
<translatorcomment>共 %d 页, 当前第 %d 页</translatorcomment>
|
||||
<translation type="unfinished">共 %d 页, 当前第 %d 页</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="168"/>
|
||||
<source>Auto Refresh</source>
|
||||
<translatorcomment>自动刷新</translatorcomment>
|
||||
<translation type="unfinished">自动刷新</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="169"/>
|
||||
<source>0</source>
|
||||
<translatorcomment>0</translatorcomment>
|
||||
<translation type="unfinished">0</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="186"/>
|
||||
<source>Interval(Sec.)</source>
|
||||
<translatorcomment>间隔(秒)</translatorcomment>
|
||||
<translation type="unfinished">间隔(秒)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="472"/>
|
||||
<source>Page number should be large than 0 and less than %1 !</source>
|
||||
<translatorcomment>页数应该大于0且小于 %1 1</translatorcomment>
|
||||
<translation type="unfinished">页数应该大于0且小于 %1 1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="devicepropertypage.cpp" line="473"/>
|
||||
<source>Critical Message</source>
|
||||
<translatorcomment>严重错误</translatorcomment>
|
||||
<translation type="unfinished">严重错误</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>FormSerialPortSettingDialog</name>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="29"/>
|
||||
<source>设备串口设置</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="68"/>
|
||||
<source>设备名称</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="84"/>
|
||||
<source>设备序号</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="100"/>
|
||||
<source>串口类型</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="146"/>
|
||||
<source>从机地址</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="162"/>
|
||||
<source>串口号</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="175"/>
|
||||
<source>波特率</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="201"/>
|
||||
<source>数据位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="227"/>
|
||||
<source>校验位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="253"/>
|
||||
<source>停止位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="289"/>
|
||||
<source>模式</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="305"/>
|
||||
<source>响应超时</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="331"/>
|
||||
<source>轮询间隔</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="362"/>
|
||||
<location filename="formserialportsettingdialog.ui" line="380"/>
|
||||
<source>ms</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="393"/>
|
||||
<source>DSR</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="406"/>
|
||||
<source>CTS</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="419"/>
|
||||
<source>DTR</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="435"/>
|
||||
<source>插件绑定</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="458"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.ui" line="474"/>
|
||||
<source>制造商</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="43"/>
|
||||
<source>None</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="44"/>
|
||||
<source>Odd</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="45"/>
|
||||
<source>Even</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="64"/>
|
||||
<source>8 Data bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="65"/>
|
||||
<source>7 Data bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="83"/>
|
||||
<source>1 Stop bit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="84"/>
|
||||
<source>2 Stop bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="102"/>
|
||||
<source>RTU</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="103"/>
|
||||
<source>ASCII</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="121"/>
|
||||
<source>2400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="122"/>
|
||||
<source>4800</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="123"/>
|
||||
<source>9600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="124"/>
|
||||
<source>19200</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="125"/>
|
||||
<source>38400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="126"/>
|
||||
<source>57600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="127"/>
|
||||
<source>115200</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="128"/>
|
||||
<source>128000</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="129"/>
|
||||
<source>153600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="130"/>
|
||||
<source>230400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="131"/>
|
||||
<source>460800</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="132"/>
|
||||
<source>921600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="151"/>
|
||||
<source>Serial Port</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="213"/>
|
||||
<source>Failed to open file: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="214"/>
|
||||
<source>Critical</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="267"/>
|
||||
<source>Service responsed: Permission denyed<byte value="xd"/>
|
||||
Contact Developement for supporting!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="formserialportsettingdialog.cpp" line="272"/>
|
||||
<source>Upload file failed, Press Yes to upload again!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainDialog</name>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="32"/>
|
||||
<source>EMU Configurer Kit</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="79"/>
|
||||
<source>Power</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="80"/>
|
||||
<source>Battery</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="81"/>
|
||||
<source>Switch</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="82"/>
|
||||
<source>Air</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="83"/>
|
||||
<source>Fan</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="84"/>
|
||||
<source>Sensor</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="128"/>
|
||||
<source>Add Device</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="129"/>
|
||||
<source>Add a new device</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="131"/>
|
||||
<source>Remove Device</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="132"/>
|
||||
<source>Remove a device</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="134"/>
|
||||
<location filename="maindialog.cpp" line="135"/>
|
||||
<source>Refresh</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="137"/>
|
||||
<source>About...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="maindialog.cpp" line="138"/>
|
||||
<source>Show information about EMU Configurer toolkit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="20"/>
|
||||
<source>EMS Configurer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="36"/>
|
||||
<source>Host IP</source>
|
||||
<translatorcomment>主机IP</translatorcomment>
|
||||
<translation type="unfinished">主机IP</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="55"/>
|
||||
<source>Configurer</source>
|
||||
<translatorcomment>配置工具</translatorcomment>
|
||||
<translation type="unfinished">配置工具</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="77"/>
|
||||
<location filename="mainwindow.cpp" line="42"/>
|
||||
<source>for EMU Host</source>
|
||||
<translatorcomment>支持EMU主机</translatorcomment>
|
||||
<translation type="unfinished">支持EMU主机</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="93"/>
|
||||
<source>Test</source>
|
||||
<translatorcomment>测试</translatorcomment>
|
||||
<translation type="unfinished">测试</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="125"/>
|
||||
<source>Logon</source>
|
||||
<translatorcomment>登录</translatorcomment>
|
||||
<translation type="unfinished">登录</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="145"/>
|
||||
<source>Close</source>
|
||||
<translatorcomment>退出</translatorcomment>
|
||||
<translation type="unfinished">退出</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="183"/>
|
||||
<source>Login name</source>
|
||||
<translatorcomment>登录账号</translatorcomment>
|
||||
<translation type="unfinished">登录账号</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="196"/>
|
||||
<source>Password</source>
|
||||
<translatorcomment>登录密码</translatorcomment>
|
||||
<translation type="unfinished">登录密码</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.ui" line="229"/>
|
||||
<source>Lang</source>
|
||||
<translatorcomment>语言</translatorcomment>
|
||||
<translation type="unfinished">语言</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="22"/>
|
||||
<source>EMU Configurer Kit</source>
|
||||
<translatorcomment>EMU Configurer Kit</translatorcomment>
|
||||
<translation type="unfinished">EMU Configurer Kit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="38"/>
|
||||
<source>Configurer Kit</source>
|
||||
<translatorcomment>配置工具</translatorcomment>
|
||||
<translation type="unfinished">配置工具</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="133"/>
|
||||
<location filename="mainwindow.cpp" line="143"/>
|
||||
<location filename="mainwindow.cpp" line="149"/>
|
||||
<source>Critical Message</source>
|
||||
<translatorcomment>严重错误</translatorcomment>
|
||||
<translation type="unfinished">严重错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="133"/>
|
||||
<source>Failed to retrieve device data!</source>
|
||||
<translatorcomment>检索设备数据失败!</translatorcomment>
|
||||
<translation type="unfinished">检索设备数据失败!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="141"/>
|
||||
<location filename="mainwindow.cpp" line="147"/>
|
||||
<source>Successfully</source>
|
||||
<translatorcomment>成功</translatorcomment>
|
||||
<translation type="unfinished">成功</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="141"/>
|
||||
<source>Connect to device database successfully!</source>
|
||||
<translatorcomment>成功连接设备数据库!</translatorcomment>
|
||||
<translation type="unfinished">成功连接设备数据库!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="143"/>
|
||||
<source>Failed to connect to device database!</source>
|
||||
<translatorcomment>不能连接设备数据库!</translatorcomment>
|
||||
<translation type="unfinished">不能连接设备数据库!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="147"/>
|
||||
<source>Connect to device data service successfully!</source>
|
||||
<translatorcomment>成功连接到设备数据服务!</translatorcomment>
|
||||
<translation type="unfinished">成功连接到设备数据服务!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="149"/>
|
||||
<source>Failed to connect to device data service!</source>
|
||||
<translatorcomment>不能连接到设备数据服务!</translatorcomment>
|
||||
<translation type="unfinished">不能连接到设备数据服务!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="169"/>
|
||||
<source>Language</source>
|
||||
<translatorcomment>中文</translatorcomment>
|
||||
<translation type="unfinished">中文</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MyTableModel</name>
|
||||
<message>
|
||||
<location filename="mytablemodel.cpp" line="32"/>
|
||||
<source>Normal</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mytablemodel.cpp" line="33"/>
|
||||
<source>INFO</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mytablemodel.cpp" line="34"/>
|
||||
<source>WARN</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mytablemodel.cpp" line="35"/>
|
||||
<source>ERROR</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>NewDeviceFormDialog</name>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="29"/>
|
||||
<source>设备串口设置</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="45"/>
|
||||
<source>OK</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="58"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="71"/>
|
||||
<source>导入</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="94"/>
|
||||
<source>预定义文件</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="117"/>
|
||||
<source>设备类型</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="130"/>
|
||||
<source>从机地址</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="156"/>
|
||||
<source>波特率</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="172"/>
|
||||
<source>串口号</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="185"/>
|
||||
<source>校验位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="201"/>
|
||||
<source>停止位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="247"/>
|
||||
<source>串口类型</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="263"/>
|
||||
<source>数据位</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.ui" line="309"/>
|
||||
<source>端口配置</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="78"/>
|
||||
<source>Select Configuration File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="78"/>
|
||||
<source>Database Files (*.db);;All Files (*.*)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="178"/>
|
||||
<source>None</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="179"/>
|
||||
<source>Odd</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="180"/>
|
||||
<source>Even</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="199"/>
|
||||
<source>8 Data bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="200"/>
|
||||
<source>7 Data bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="218"/>
|
||||
<source>1 Stop bit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="219"/>
|
||||
<source>2 Stop bits</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="237"/>
|
||||
<source>2400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="238"/>
|
||||
<source>4800</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="239"/>
|
||||
<source>9600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="240"/>
|
||||
<source>19200</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="241"/>
|
||||
<source>38400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="242"/>
|
||||
<source>57600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="243"/>
|
||||
<source>115200</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="244"/>
|
||||
<source>128000</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="245"/>
|
||||
<source>153600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="246"/>
|
||||
<source>230400</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="247"/>
|
||||
<source>460800</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="248"/>
|
||||
<source>921600</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="newdeviceformdialog.cpp" line="267"/>
|
||||
<source>Serial Port</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
|
@ -9,7 +9,6 @@
|
|||
#include <QTextStream>
|
||||
#include <QByteArray>
|
||||
#include <QDebug>
|
||||
|
||||
#include <hv/hlog.h>
|
||||
|
||||
#include "frame_define.h"
|
||||
|
|
|
@ -159,4 +159,23 @@ public:
|
|||
int m_connfd;
|
||||
};
|
||||
|
||||
//配置数据库的相关结构
|
||||
typedef struct _tagCfgTab_SmartDeviceTypeItem
|
||||
{
|
||||
int TypeID;
|
||||
std::string Description;
|
||||
int ClassType;
|
||||
int PortConfig;
|
||||
int InterfaceType;
|
||||
int StationType;
|
||||
int EquipmentCode;
|
||||
std::string EquipmentModel;
|
||||
std::string Manufacturer;
|
||||
std::string ProtocolVersion;
|
||||
std::string SpecialOption;
|
||||
std::string Notes;
|
||||
} CfgTabSmartDeviceTypeItem;
|
||||
|
||||
typedef std::vector<CfgTabSmartDeviceTypeItem> vecCfgTab_SmartDeviceType;
|
||||
|
||||
#endif // GLOBALPARAMETERS_H
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 46 KiB |
|
@ -20,6 +20,7 @@
|
|||
#include "devicepropertypage.h"
|
||||
#include "formserialportsettingdialog.h"
|
||||
#include "aboutdialog.h"
|
||||
#include "newdeviceformdialog.h"
|
||||
|
||||
MainDialog::MainDialog(QWidget *parent) :
|
||||
QMainWindow (parent),
|
||||
|
@ -123,10 +124,6 @@ void MainDialog::CreateToolbar()
|
|||
QHBoxLayout *layout = new QHBoxLayout(toolBarWidget);
|
||||
layout->setContentsMargins(0, 0, 0, 0); // 去除内边距
|
||||
|
||||
// 添加一个弹性空间以推送图标到右侧
|
||||
QSpacerItem *spacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
layout->addItem(spacer);
|
||||
|
||||
// Create actions for the toolbar
|
||||
QAction *action1 = new QAction(QIcon(":/images/icons8-add-64.png"), tr("Add Device"), this);
|
||||
action1->setToolTip(tr("Add a new device"));
|
||||
|
@ -145,6 +142,11 @@ void MainDialog::CreateToolbar()
|
|||
m_pMainToolBar->addAction(action2);
|
||||
m_pMainToolBar->addAction(action4);
|
||||
m_pMainToolBar->addSeparator();
|
||||
|
||||
QWidget *spacerWidget = new QWidget();
|
||||
spacerWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
m_pMainToolBar->addWidget(spacerWidget);
|
||||
|
||||
m_pMainToolBar->addAction(action3);
|
||||
|
||||
// 将工具栏的 widget 设置为包含图标和占位符的 widget
|
||||
|
@ -220,7 +222,8 @@ void MainDialog::loadWindowState()
|
|||
//增加设备
|
||||
void MainDialog::onToolButton1Clicked()
|
||||
{
|
||||
FormSerialPortSettingDialog* dlg = new FormSerialPortSettingDialog(this);
|
||||
//FormSerialPortSettingDialog* dlg = new FormSerialPortSettingDialog(this);
|
||||
NewDeviceFormDialog* dlg = new NewDeviceFormDialog(this);
|
||||
dlg->setWindowFlags(dlg->windowFlags()&~(Qt::WindowMinMaxButtonsHint|Qt::WindowContextHelpButtonHint));
|
||||
//dlg.setModal(true);
|
||||
dlg->show();
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
#include "ui_mainwindow.h"
|
||||
#include <QPixmap>
|
||||
#include <QMessageBox>
|
||||
#include <QMenu>
|
||||
#include <QTranslator>
|
||||
|
||||
#include <hv/hlog.h>
|
||||
#include "MainDialog.h"
|
||||
|
@ -39,6 +41,12 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
QFont font2("Arial", 12, QFont::Bold);
|
||||
ui->productName2->setText(tr("for EMU Host"));
|
||||
ui->productName2->setFont(font2);
|
||||
|
||||
QMenu *menu = new QMenu(ui->pb_Lang);
|
||||
menu->addAction("中文", this, &MainWindow::setChinese);
|
||||
menu->addAction("Eng", this, &MainWindow::setEnglish);
|
||||
ui->pb_Lang->setMenu(menu);
|
||||
retranslateUI();
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
@ -141,3 +149,42 @@ void MainWindow::on_pb_Test_clicked()
|
|||
QMessageBox::critical(this, tr("Critical Message"),tr("Failed to connect to device data service!"));
|
||||
}
|
||||
|
||||
void MainWindow::setChinese()
|
||||
{
|
||||
switchLanguage("emsConfigurer_zh_CN");
|
||||
}
|
||||
void MainWindow::setEnglish()
|
||||
{
|
||||
switchLanguage("emsConfigurer_en_US");
|
||||
}
|
||||
|
||||
void MainWindow::switchLanguage(const QString &lang)
|
||||
{
|
||||
loadLanguage(lang);
|
||||
retranslateUI(); // 立即更新界面
|
||||
}
|
||||
|
||||
void MainWindow::retranslateUI()
|
||||
{
|
||||
ui->pb_Lang->setText(tr("Language"));
|
||||
ui->retranslateUi(this);
|
||||
}
|
||||
|
||||
void MainWindow::loadLanguage(const QString &lang)
|
||||
{
|
||||
qApp->removeTranslator(&translator);
|
||||
QString l = ":/i18n/" + lang + ".qm";
|
||||
if (translator.load(l))
|
||||
{
|
||||
qApp->installTranslator(&translator);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::changeEvent(QEvent *event)
|
||||
{
|
||||
// if (event->type() == QEvent::LanguageChange)
|
||||
// {
|
||||
// ui->retranslateUi(this);
|
||||
// }
|
||||
QWidget::changeEvent(event);
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
#pragma execution_character_set("utf-8")
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QTranslator>
|
||||
|
||||
#include <hv_tcpclient.h>
|
||||
|
||||
class MainDialog;
|
||||
|
@ -29,14 +31,23 @@ protected:
|
|||
void setIp(const QString &ip);
|
||||
bool testDatabase();
|
||||
bool testServerEcho(); //测试后端服务器响应
|
||||
void changeEvent(QEvent *event) override;
|
||||
|
||||
private slots:
|
||||
void on_pb_Logon_clicked();
|
||||
|
||||
void on_pb_Test_clicked();
|
||||
void setChinese();
|
||||
void setEnglish();
|
||||
|
||||
private:
|
||||
void switchLanguage(const QString &lang);
|
||||
void retranslateUI();
|
||||
void loadLanguage(const QString &lang);
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
MainDialog* m_pMainDialog;
|
||||
QTranslator translator;
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
||||
|
|
|
@ -103,7 +103,13 @@
|
|||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>WWW.HJ-NET.COM</string>
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="emscfgres.qrc">:/images/hj-net.png</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
|
@ -118,6 +124,9 @@
|
|||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_Logon">
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Logon</string>
|
||||
</property>
|
||||
|
@ -213,6 +222,19 @@
|
|||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="pb_Lang">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>530</x>
|
||||
<y>20</y>
|
||||
<width>71</width>
|
||||
<height>29</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Lang</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
@ -230,6 +252,8 @@
|
|||
<tabstop>pb_Logon</tabstop>
|
||||
<tabstop>pb_Close</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<resources>
|
||||
<include location="emscfgres.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
Loading…
Reference in New Issue