调整窗口标题
This commit is contained in:
parent
72159e3ce2
commit
99182bcb8f
Binary file not shown.
|
@ -390,7 +390,7 @@
|
|||
<message>
|
||||
<location filename="dialog_login.ui" line="370"/>
|
||||
<source>ImageTest</source>
|
||||
<translation>图像检测工位</translation>
|
||||
<translation>图像测试工位</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="dialog_login.ui" line="383"/>
|
||||
|
@ -635,13 +635,13 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="form_burnmode.cpp" line="155"/>
|
||||
<location filename="form_burnmode.cpp" line="340"/>
|
||||
<location filename="form_burnmode.cpp" line="341"/>
|
||||
<source>tips</source>
|
||||
<translation>提示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="form_burnmode.cpp" line="155"/>
|
||||
<location filename="form_burnmode.cpp" line="340"/>
|
||||
<location filename="form_burnmode.cpp" line="341"/>
|
||||
<source>Please check a devices at least</source>
|
||||
<translation>请至少勾选一台设备</translation>
|
||||
</message>
|
||||
|
@ -787,7 +787,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="form_maininterface.cpp" line="162"/>
|
||||
<location filename="form_maininterface.cpp" line="611"/>
|
||||
<location filename="form_maininterface.cpp" line="613"/>
|
||||
<source>tips</source>
|
||||
<translation>提示</translation>
|
||||
</message>
|
||||
|
@ -807,7 +807,7 @@
|
|||
<message>
|
||||
<location filename="form_maininterface.cpp" line="66"/>
|
||||
<source> speed mode:</source>
|
||||
<translation> 速度模式:</translation>
|
||||
<translation> 目标配置: 速度模式:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="form_maininterface.cpp" line="71"/>
|
||||
|
@ -870,7 +870,7 @@
|
|||
<translation> PID:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="form_maininterface.cpp" line="611"/>
|
||||
<location filename="form_maininterface.cpp" line="613"/>
|
||||
<source>no image</source>
|
||||
<translation>无图</translation>
|
||||
</message>
|
||||
|
@ -941,7 +941,7 @@
|
|||
<translation>刷新设备列表</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="490"/>
|
||||
<location filename="mainwindow.cpp" line="495"/>
|
||||
<source>Account login elsewhere</source>
|
||||
<translation>账户在其他地方登录</translation>
|
||||
</message>
|
||||
|
@ -950,56 +950,76 @@
|
|||
<translation type="vanished">网络连接断开</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="493"/>
|
||||
<location filename="mainwindow.cpp" line="498"/>
|
||||
<source>You have been forced offline by the administrator account</source>
|
||||
<translation>你已被管理员账户强制下线</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="496"/>
|
||||
<location filename="mainwindow.cpp" line="501"/>
|
||||
<source>Data base error</source>
|
||||
<translation>数据库错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="304"/>
|
||||
<location filename="mainwindow.cpp" line="414"/>
|
||||
<location filename="mainwindow.cpp" line="436"/>
|
||||
<location filename="mainwindow.cpp" line="450"/>
|
||||
<location filename="mainwindow.cpp" line="506"/>
|
||||
<location filename="mainwindow.cpp" line="525"/>
|
||||
<location filename="mainwindow.cpp" line="552"/>
|
||||
<location filename="mainwindow.cpp" line="556"/>
|
||||
<location filename="mainwindow.cpp" line="565"/>
|
||||
<location filename="mainwindow.cpp" line="577"/>
|
||||
<location filename="mainwindow.cpp" line="637"/>
|
||||
<location filename="mainwindow.cpp" line="309"/>
|
||||
<location filename="mainwindow.cpp" line="419"/>
|
||||
<location filename="mainwindow.cpp" line="441"/>
|
||||
<location filename="mainwindow.cpp" line="455"/>
|
||||
<location filename="mainwindow.cpp" line="511"/>
|
||||
<location filename="mainwindow.cpp" line="530"/>
|
||||
<location filename="mainwindow.cpp" line="557"/>
|
||||
<location filename="mainwindow.cpp" line="561"/>
|
||||
<location filename="mainwindow.cpp" line="570"/>
|
||||
<location filename="mainwindow.cpp" line="582"/>
|
||||
<location filename="mainwindow.cpp" line="642"/>
|
||||
<source>tips</source>
|
||||
<translation>提示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="304"/>
|
||||
<location filename="mainwindow.cpp" line="565"/>
|
||||
<location filename="mainwindow.cpp" line="577"/>
|
||||
<location filename="mainwindow.cpp" line="43"/>
|
||||
<source>production tool-burn station</source>
|
||||
<translation>华高生产工具-烧录工位</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="89"/>
|
||||
<source>production tool-init test station</source>
|
||||
<translation>华高生产工具-初检工位</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="91"/>
|
||||
<source>production tool-image test station</source>
|
||||
<translation>华高生产工具-图像测试工位</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="93"/>
|
||||
<source>production tool-pressure test station</source>
|
||||
<translation>华高生产工具-压力测试工位</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="309"/>
|
||||
<location filename="mainwindow.cpp" line="570"/>
|
||||
<location filename="mainwindow.cpp" line="582"/>
|
||||
<source>Is testing, do not close!</source>
|
||||
<translation>测试中,请勿关闭!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="415"/>
|
||||
<location filename="mainwindow.cpp" line="420"/>
|
||||
<source>Are you sure to connect the new device</source>
|
||||
<translation>检测到设备连接,是否启动测试?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="417"/>
|
||||
<location filename="mainwindow.cpp" line="422"/>
|
||||
<source>yes</source>
|
||||
<translation>确定</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="418"/>
|
||||
<location filename="mainwindow.cpp" line="423"/>
|
||||
<source>no</source>
|
||||
<translation>取消</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="436"/>
|
||||
<location filename="mainwindow.cpp" line="525"/>
|
||||
<location filename="mainwindow.cpp" line="637"/>
|
||||
<location filename="mainwindow.cpp" line="441"/>
|
||||
<location filename="mainwindow.cpp" line="530"/>
|
||||
<location filename="mainwindow.cpp" line="642"/>
|
||||
<source>cannot create more table</source>
|
||||
<translation>不能创建更多项目</translation>
|
||||
</message>
|
||||
|
@ -1008,52 +1028,52 @@
|
|||
<translation type="vanished">设备已断开连接</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="450"/>
|
||||
<location filename="mainwindow.cpp" line="455"/>
|
||||
<source>Open device failed</source>
|
||||
<translation>打开设备失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="547"/>
|
||||
<location filename="mainwindow.cpp" line="552"/>
|
||||
<source>save</source>
|
||||
<translation>保存</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="547"/>
|
||||
<location filename="mainwindow.cpp" line="552"/>
|
||||
<source>xls(*.xls)</source>
|
||||
<translation>xls表格(*.xls)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="552"/>
|
||||
<location filename="mainwindow.cpp" line="557"/>
|
||||
<source>export succeed</source>
|
||||
<translation>导出成功</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="556"/>
|
||||
<location filename="mainwindow.cpp" line="561"/>
|
||||
<source>export failed</source>
|
||||
<translation>导出失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="589"/>
|
||||
<location filename="mainwindow.cpp" line="594"/>
|
||||
<source>Illegal user</source>
|
||||
<translation>非法的用户</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="593"/>
|
||||
<location filename="mainwindow.cpp" line="598"/>
|
||||
<source>Wrong password</source>
|
||||
<translation>密码错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="597"/>
|
||||
<location filename="mainwindow.cpp" line="602"/>
|
||||
<source>Database error</source>
|
||||
<translation>数据库错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="601"/>
|
||||
<location filename="mainwindow.cpp" line="606"/>
|
||||
<source>connect error</source>
|
||||
<translation>连接错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="605"/>
|
||||
<location filename="mainwindow.cpp" line="610"/>
|
||||
<source>Failed</source>
|
||||
<translation>错误</translation>
|
||||
</message>
|
||||
|
|
|
@ -40,6 +40,8 @@ MainWindow::MainWindow(HGPdtToolDbUserMgr pdtToolDbuserMgr, Dialog_logIn::LogInT
|
|||
|
||||
if (m_loginType == Dialog_logIn::LogInType_Burn)
|
||||
{
|
||||
setWindowTitle(tr("production tool-burn station"));
|
||||
|
||||
ui->act_newDevice->setVisible(false);
|
||||
ui->act_refreshDevice->setVisible(false);
|
||||
|
||||
|
@ -83,9 +85,12 @@ MainWindow::MainWindow(HGPdtToolDbUserMgr pdtToolDbuserMgr, Dialog_logIn::LogInT
|
|||
ui->act_upload->setVisible(false);
|
||||
}
|
||||
|
||||
HGChar userName[128] = {0};
|
||||
HGPdtToolDb_GetUserName(m_pdtToolDbuserMgr, userName, 128);
|
||||
setWindowTitle(userName);
|
||||
if (m_loginType == Dialog_logIn::LogInType_InitTest)
|
||||
setWindowTitle(tr("production tool-init test station"));
|
||||
else if (m_loginType == Dialog_logIn::LogInType_ImageTest)
|
||||
setWindowTitle(tr("production tool-image test station"));
|
||||
if (m_loginType == Dialog_logIn::LogInType_PressureTest)
|
||||
setWindowTitle(tr("production tool-pressure test station"));
|
||||
|
||||
SANE_Int v = 0;
|
||||
sane_init_ex(&v, sane_ex_callback, this);
|
||||
|
|
Loading…
Reference in New Issue