调整窗口标题

This commit is contained in:
yangjiaxuan 2023-01-06 17:46:53 +08:00
parent 72159e3ce2
commit 99182bcb8f
3 changed files with 67 additions and 42 deletions

View File

@ -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>

View File

@ -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);