添加排水功能
This commit is contained in:
@@ -3,6 +3,7 @@ set(PROJECT_NAME GUI)
|
|||||||
project(${PROJECT_NAME})
|
project(${PROJECT_NAME})
|
||||||
set(CMAKE_CXX_STANDARD 14)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
set(DCMTK_DIR "D:/Libs/binary/DCMTK/cmake")
|
||||||
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -pthread")
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -pthread")
|
||||||
|
|
||||||
# GUI Version
|
# GUI Version
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ ScanFormWidget::ScanFormWidget(QWidget* parent)
|
|||||||
, mBtnPreview(new QToolButton(this))
|
, mBtnPreview(new QToolButton(this))
|
||||||
, mBtnStop(new QToolButton(this))
|
, mBtnStop(new QToolButton(this))
|
||||||
, mBtnScan(new QToolButton(this))
|
, mBtnScan(new QToolButton(this))
|
||||||
|
, mBtnDrainage(new QToolButton(this))
|
||||||
, mViewer(new QLabel(this))
|
, mViewer(new QLabel(this))
|
||||||
, mLblPreview(new QLabel(this))
|
, mLblPreview(new QLabel(this))
|
||||||
, mLblE(new QLabel(this))
|
, mLblE(new QLabel(this))
|
||||||
@@ -124,22 +125,26 @@ void ScanFormWidget::initScanControlBar(QHBoxLayout *layout){
|
|||||||
mBtnPreview->setObjectName("btnPreview");
|
mBtnPreview->setObjectName("btnPreview");
|
||||||
mBtnStop->setObjectName("btnStop");
|
mBtnStop->setObjectName("btnStop");
|
||||||
mBtnScan->setObjectName("btnScan");
|
mBtnScan->setObjectName("btnScan");
|
||||||
|
mBtnDrainage->setObjectName("btnDrainage");
|
||||||
|
mBtnDrainage->setCheckable(true);
|
||||||
|
|
||||||
mBtnRefresh->setText(tr("Refresh"));
|
mBtnRefresh->setText(tr("Refresh"));
|
||||||
mBtnPreview->setText(tr("Preview"));
|
mBtnPreview->setText(tr("Preview"));
|
||||||
mBtnStop->setText(tr("Stop"));
|
mBtnStop->setText(tr("Stop"));
|
||||||
mBtnScan->setText(tr("Scan"));
|
mBtnScan->setText(tr("Scan"));
|
||||||
|
mBtnDrainage->setText(tr("Drainage"));
|
||||||
|
|
||||||
mBtnScan->setEnabled(false);
|
mBtnScan->setEnabled(false);
|
||||||
mBtnRefresh->setEnabled(false);
|
mBtnRefresh->setEnabled(false);
|
||||||
mBtnPreview->setEnabled(false);
|
mBtnPreview->setEnabled(false);
|
||||||
mBtnStop->setEnabled(false);
|
mBtnStop->setEnabled(false);
|
||||||
|
|
||||||
|
|
||||||
layout->addWidget(mBtnRefresh);
|
layout->addWidget(mBtnRefresh);
|
||||||
layout->addWidget(mBtnPreview);
|
layout->addWidget(mBtnPreview);
|
||||||
layout->addWidget(mBtnStop);
|
layout->addWidget(mBtnStop);
|
||||||
layout->addWidget(mBtnScan);
|
layout->addWidget(mBtnScan);
|
||||||
|
layout->addWidget(mBtnDrainage);
|
||||||
|
|
||||||
connect(mBtnRefresh, &QToolButton::clicked, [=]() {
|
connect(mBtnRefresh, &QToolButton::clicked, [=]() {
|
||||||
QString patientInf(mPatInf->getCurrentPatientJsonString(true));
|
QString patientInf(mPatInf->getCurrentPatientJsonString(true));
|
||||||
LOG_USER_OPERATION(StartRefresh)
|
LOG_USER_OPERATION(StartRefresh)
|
||||||
@@ -163,6 +168,17 @@ void ScanFormWidget::initScanControlBar(QHBoxLayout *layout){
|
|||||||
LOG_USER_OPERATION(Stop)
|
LOG_USER_OPERATION(Stop)
|
||||||
EventCenter::Default()->triggerEvent(RequestStop, nullptr, nullptr);
|
EventCenter::Default()->triggerEvent(RequestStop, nullptr, nullptr);
|
||||||
});
|
});
|
||||||
|
connect(mBtnDrainage, &QToolButton::toggled, [=](bool aSatus) {
|
||||||
|
//Drainage
|
||||||
|
if(aSatus == true)
|
||||||
|
{
|
||||||
|
mBtnDrainage->setText(tr("Drainaging"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mBtnDrainage->setText(tr("Drainage"));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScanFormWidget::protocolChanged(int type) {
|
void ScanFormWidget::protocolChanged(int type) {
|
||||||
@@ -279,6 +295,7 @@ void ScanFormWidget::reloadLanguage(){
|
|||||||
mLblPreview->setText(tr("Scan Parameters"));
|
mLblPreview->setText(tr("Scan Parameters"));
|
||||||
mLblE->setText(tr("some settings\n\nparameters\n"));
|
mLblE->setText(tr("some settings\n\nparameters\n"));
|
||||||
mLblE2->setText(tr("some settings\n\nparameters\n"));
|
mLblE2->setText(tr("some settings\n\nparameters\n"));
|
||||||
|
mBtnDrainage->isChecked() ? mBtnDrainage->setText(tr("Drainaging")) : mBtnDrainage->setText(tr("Drainage"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ private:
|
|||||||
QToolButton* mBtnPreview;
|
QToolButton* mBtnPreview;
|
||||||
QToolButton* mBtnStop;
|
QToolButton* mBtnStop;
|
||||||
QToolButton* mBtnScan;
|
QToolButton* mBtnScan;
|
||||||
|
QToolButton* mBtnDrainage;
|
||||||
QLabel* mViewer;
|
QLabel* mViewer;
|
||||||
QLabel* mLblPreview;
|
QLabel* mLblPreview;
|
||||||
QLabel* mLblE;
|
QLabel* mLblE;
|
||||||
|
|||||||
BIN
src/icons/drainage.png
Normal file
BIN
src/icons/drainage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
@@ -52,5 +52,6 @@
|
|||||||
<file>icons/logout.png</file>
|
<file>icons/logout.png</file>
|
||||||
<file>icons/arrow-down.png</file>
|
<file>icons/arrow-down.png</file>
|
||||||
<file>icons/arrow-up.png</file>
|
<file>icons/arrow-up.png</file>
|
||||||
|
<file>icons/drainage.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
@@ -544,6 +544,10 @@ QToolButton#btnScan {
|
|||||||
qproperty-icon:url(":/icons/scan.png");
|
qproperty-icon:url(":/icons/scan.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QToolButton#btnDrainage {
|
||||||
|
qproperty-icon:url(":/icons/drainage.png");
|
||||||
|
}
|
||||||
|
|
||||||
/*------AdminSettingForm---------------------------------------------------*/
|
/*------AdminSettingForm---------------------------------------------------*/
|
||||||
QWidget#settingContentWidget {
|
QWidget#settingContentWidget {
|
||||||
border-top: 1px solid #505050;
|
border-top: 1px solid #505050;
|
||||||
|
|||||||
@@ -440,6 +440,14 @@
|
|||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Drainage</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Drainaging</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>PatientInformationForm</name>
|
<name>PatientInformationForm</name>
|
||||||
|
|||||||
@@ -440,6 +440,14 @@
|
|||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Drainage</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Drainaging</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>PatientInformationForm</name>
|
<name>PatientInformationForm</name>
|
||||||
|
|||||||
Binary file not shown.
@@ -622,6 +622,14 @@
|
|||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation>设置</translation>
|
<translation>设置</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Drainage</source>
|
||||||
|
<translation>排水</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Drainaging</source>
|
||||||
|
<translation>排水中</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>PatientInformationForm</name>
|
<name>PatientInformationForm</name>
|
||||||
|
|||||||
@@ -622,6 +622,14 @@
|
|||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation>设置</translation>
|
<translation>设置</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Drainage</source>
|
||||||
|
<translation>排水</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Drainaging</source>
|
||||||
|
<translation>排水中</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>PatientInformationForm</name>
|
<name>PatientInformationForm</name>
|
||||||
|
|||||||
Reference in New Issue
Block a user