添加排水功能

This commit is contained in:
sunwen
2023-03-28 14:10:32 +08:00
parent 3a6a755ef1
commit 3101ab5d2c
11 changed files with 57 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ set(PROJECT_NAME GUI)
project(${PROJECT_NAME})
set(CMAKE_CXX_STANDARD 14)
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")
# GUI Version

View File

@@ -39,6 +39,7 @@ ScanFormWidget::ScanFormWidget(QWidget* parent)
, mBtnPreview(new QToolButton(this))
, mBtnStop(new QToolButton(this))
, mBtnScan(new QToolButton(this))
, mBtnDrainage(new QToolButton(this))
, mViewer(new QLabel(this))
, mLblPreview(new QLabel(this))
, mLblE(new QLabel(this))
@@ -124,22 +125,26 @@ void ScanFormWidget::initScanControlBar(QHBoxLayout *layout){
mBtnPreview->setObjectName("btnPreview");
mBtnStop->setObjectName("btnStop");
mBtnScan->setObjectName("btnScan");
mBtnDrainage->setObjectName("btnDrainage");
mBtnDrainage->setCheckable(true);
mBtnRefresh->setText(tr("Refresh"));
mBtnPreview->setText(tr("Preview"));
mBtnStop->setText(tr("Stop"));
mBtnScan->setText(tr("Scan"));
mBtnDrainage->setText(tr("Drainage"));
mBtnScan->setEnabled(false);
mBtnRefresh->setEnabled(false);
mBtnPreview->setEnabled(false);
mBtnStop->setEnabled(false);
layout->addWidget(mBtnRefresh);
layout->addWidget(mBtnPreview);
layout->addWidget(mBtnStop);
layout->addWidget(mBtnScan);
layout->addWidget(mBtnDrainage);
connect(mBtnRefresh, &QToolButton::clicked, [=]() {
QString patientInf(mPatInf->getCurrentPatientJsonString(true));
LOG_USER_OPERATION(StartRefresh)
@@ -163,6 +168,17 @@ void ScanFormWidget::initScanControlBar(QHBoxLayout *layout){
LOG_USER_OPERATION(Stop)
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) {
@@ -279,6 +295,7 @@ void ScanFormWidget::reloadLanguage(){
mLblPreview->setText(tr("Scan Parameters"));
mLblE->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"));
}

View File

@@ -28,6 +28,7 @@ private:
QToolButton* mBtnPreview;
QToolButton* mBtnStop;
QToolButton* mBtnScan;
QToolButton* mBtnDrainage;
QLabel* mViewer;
QLabel* mLblPreview;
QLabel* mLblE;

BIN
src/icons/drainage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@@ -52,5 +52,6 @@
<file>icons/logout.png</file>
<file>icons/arrow-down.png</file>
<file>icons/arrow-up.png</file>
<file>icons/drainage.png</file>
</qresource>
</RCC>

View File

@@ -544,6 +544,10 @@ QToolButton#btnScan {
qproperty-icon:url(":/icons/scan.png");
}
QToolButton#btnDrainage {
qproperty-icon:url(":/icons/drainage.png");
}
/*------AdminSettingForm---------------------------------------------------*/
QWidget#settingContentWidget {
border-top: 1px solid #505050;

View File

@@ -440,6 +440,14 @@
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Drainage</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Drainaging</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>PatientInformationForm</name>

View File

@@ -440,6 +440,14 @@
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Drainage</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Drainaging</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>PatientInformationForm</name>

Binary file not shown.

View File

@@ -622,6 +622,14 @@
<source>Settings</source>
<translation></translation>
</message>
<message>
<source>Drainage</source>
<translation></translation>
</message>
<message>
<source>Drainaging</source>
<translation></translation>
</message>
</context>
<context>
<name>PatientInformationForm</name>

View File

@@ -622,6 +622,14 @@
<source>Settings</source>
<translation></translation>
</message>
<message>
<source>Drainage</source>
<translation></translation>
</message>
<message>
<source>Drainaging</source>
<translation></translation>
</message>
</context>
<context>
<name>PatientInformationForm</name>