feat: Hide AETitle in recon settings.
This commit is contained in:
@@ -70,6 +70,18 @@ QString DicomSettingsArea::getServerAETitle()
|
||||
return mUI->mServerAETitleEdit->text();
|
||||
}
|
||||
|
||||
|
||||
void DicomSettingsArea::hideMyAETitle()
|
||||
{
|
||||
mUI->mMyAETitle->hide();
|
||||
mUI->mMyAETitleEdit->hide();
|
||||
}
|
||||
void DicomSettingsArea::hideServerAETitle()
|
||||
{
|
||||
mUI->mServerAETitle->hide();
|
||||
mUI->mServerAETitleEdit->hide();
|
||||
}
|
||||
|
||||
void DicomSettingsArea::setEnable(bool aIsEnable)
|
||||
{
|
||||
mUI->mMyAETitleEdit->setEnabled(aIsEnable);
|
||||
|
||||
@@ -33,6 +33,9 @@ public:
|
||||
void setEnable(bool aIsEnable);
|
||||
void setMppsMode();
|
||||
|
||||
void hideMyAETitle();
|
||||
void hideServerAETitle();
|
||||
|
||||
private:
|
||||
Ui::DicomSettingsArea* mUI;
|
||||
ImageSwitch* mMppsOpen;
|
||||
|
||||
@@ -47,31 +47,18 @@ void ReconSettingsDialog::initConfig()
|
||||
{
|
||||
host serverInfo;
|
||||
serverInfo = JsonObject::Instance()->getServer(JsonObject::RECON);
|
||||
mSettingsArea->setServerAETitle(serverInfo.ae);
|
||||
mSettingsArea->hideMyAETitle();
|
||||
mSettingsArea->hideServerAETitle();
|
||||
mSettingsArea->setServerIpAddress(serverInfo.ip);
|
||||
mSettingsArea->setMyAETitle(serverInfo.localAE);
|
||||
mSettingsArea->setServerPort(serverInfo.port);
|
||||
}
|
||||
|
||||
bool ReconSettingsDialog::updateReferenceData()
|
||||
{
|
||||
QString myAETitle = mSettingsArea->getMyAETitle();
|
||||
QString serverIp = mSettingsArea->getServerIpAddress();
|
||||
QString serverPort = mSettingsArea->getServerPort();
|
||||
QString serverAETitle = mSettingsArea->getServerAETitle();
|
||||
mErrorText->show();
|
||||
|
||||
if(myAETitle.isEmpty())
|
||||
{
|
||||
mErrorText->setErrorText(tr("AE can't be empty"));
|
||||
return false;
|
||||
}
|
||||
|
||||
if(serverAETitle.isEmpty())
|
||||
{
|
||||
mErrorText->setErrorText(tr("Server AE can't be empty"));
|
||||
return false;
|
||||
}
|
||||
|
||||
if(serverIp.isEmpty())
|
||||
{
|
||||
@@ -99,8 +86,6 @@ bool ReconSettingsDialog::updateReferenceData()
|
||||
|
||||
host serverInfo;
|
||||
serverInfo.ip = serverIp;
|
||||
serverInfo.ae = serverAETitle;
|
||||
serverInfo.localAE = myAETitle;
|
||||
serverInfo.port = serverPort;
|
||||
JsonObject::Instance()->setServer(JsonObject::RECON, serverInfo);
|
||||
ReconManager::getInstance()->setReconIpAndPort(serverIp, serverPort);
|
||||
|
||||
@@ -1469,14 +1469,6 @@ The emergency button has been pushed. Please reset it before other operations.</
|
||||
</context>
|
||||
<context>
|
||||
<name>ReconSettingsDialog</name>
|
||||
<message>
|
||||
<source>AE can't be empty</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Server AE can't be empty</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Server Ip can't be empty</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
||||
@@ -2306,32 +2306,30 @@ The emergency button has been pushed. Please reset it before other operations.</
|
||||
<translation type="unfinished">Recon通讯设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogs/ReconSettingsDialog.cpp" line="66"/>
|
||||
<source>AE can't be empty</source>
|
||||
<translation type="unfinished">AE不能为空</translation>
|
||||
<translation type="obsolete">AE不能为空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogs/ReconSettingsDialog.cpp" line="72"/>
|
||||
<source>Server AE can't be empty</source>
|
||||
<translation type="unfinished">服务器AE不能为空</translation>
|
||||
<translation type="obsolete">服务器AE不能为空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogs/ReconSettingsDialog.cpp" line="78"/>
|
||||
<location filename="../dialogs/ReconSettingsDialog.cpp" line="65"/>
|
||||
<source>Server Ip can't be empty</source>
|
||||
<translation type="unfinished">服务器地址不能为空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogs/ReconSettingsDialog.cpp" line="84"/>
|
||||
<location filename="../dialogs/ReconSettingsDialog.cpp" line="71"/>
|
||||
<source>Server Port can't be empty</source>
|
||||
<translation type="unfinished">服务器端口不能为空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogs/ReconSettingsDialog.cpp" line="90"/>
|
||||
<location filename="../dialogs/ReconSettingsDialog.cpp" line="77"/>
|
||||
<source>Ip Address is not valid</source>
|
||||
<translation type="unfinished">服务器地址不符合格式规范</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogs/ReconSettingsDialog.cpp" line="96"/>
|
||||
<location filename="../dialogs/ReconSettingsDialog.cpp" line="83"/>
|
||||
<source>Port is not valid</source>
|
||||
<translation type="unfinished">服务器端口格式必须为小于65535的数字</translation>
|
||||
</message>
|
||||
|
||||
Reference in New Issue
Block a user