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