Change dialog style, add Scan Patient confirm
This commit is contained in:
@@ -15,15 +15,11 @@ QWidget(parent),
|
||||
mUI(new Ui::PatientDetailForm)
|
||||
, mBtnEdit(new QToolButton())
|
||||
, mBtnDelete(new QToolButton())
|
||||
, mBtnPlaceWidget(new QWidget(this))
|
||||
, mLblMessage(new QLabel(this))
|
||||
|
||||
{
|
||||
mUI->setupUi(this);
|
||||
mUI->hideBtn->setSizePolicy(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Preferred);
|
||||
mUI->hideBtn->setObjectName("btnHidePanel");
|
||||
mUI->hideBtn->setText(tr(" Hide Panel"));
|
||||
mUI->hideBtn->setVisible(false);
|
||||
connect(mUI->hideBtn, &QToolButton::clicked, [=](){
|
||||
emit hideBtnClicked();
|
||||
});
|
||||
mUI->lblPatInfPanel->setObjectName("PatInfTitle");
|
||||
mUI->lblIcon->setObjectName("PatIcon");
|
||||
mUI->lbl_DOB->setObjectName("displayDetail");
|
||||
@@ -33,13 +29,13 @@ mUI(new Ui::PatientDetailForm)
|
||||
mUI->lblAccno->setObjectName("displayDetail");
|
||||
mUI->lblAddDate->setObjectName("displayDetail");
|
||||
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, this,&PatientDetailForm::reloadLanguage);
|
||||
QWidget * widget = new QWidget(this);
|
||||
widget->setFixedHeight(120);
|
||||
mBtnPlaceWidget->setFixedHeight(120);
|
||||
mUI->verticalLayout_2->setSpacing(50);
|
||||
|
||||
mUI->verticalLayout_3->insertWidget(5, widget);
|
||||
|
||||
QHBoxLayout * layout = new QHBoxLayout(widget);
|
||||
mUI->verticalLayout_3->insertWidget(5, mBtnPlaceWidget);
|
||||
mUI->verticalLayout_3->insertWidget(5, mLblMessage);
|
||||
mLblMessage->setVisible(false);
|
||||
QHBoxLayout * layout = new QHBoxLayout(mBtnPlaceWidget);
|
||||
mBtnEdit->setObjectName("btnPatEdit");
|
||||
mBtnDelete->setObjectName("btnPatDelete");
|
||||
mBtnEdit->setText(tr("Edit"));
|
||||
@@ -88,6 +84,16 @@ void PatientDetailForm::clearPatientInformation() {
|
||||
mUI->lblAccno->clear();
|
||||
}
|
||||
|
||||
void PatientDetailForm::confirmModeOn(int protocol)
|
||||
{
|
||||
mBtnPlaceWidget->setVisible(false);
|
||||
mLblMessage->setVisible(true);
|
||||
|
||||
mUI->lblPatInfPanel->setText(tr("Scan with this Patient?"));
|
||||
mUI->lblAddDate->setText(tr("Protocol: ")+(protocol==0?tr("Left"):tr("Right")));
|
||||
|
||||
}
|
||||
|
||||
void PatientDetailForm::storePatientInformation() {
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ class PatientDetailForm;
|
||||
#include <QWidget>
|
||||
#include "PatientInformation.h"
|
||||
class QToolButton;
|
||||
class QLabel;
|
||||
|
||||
class PatientDetailForm : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -17,7 +19,7 @@ public:
|
||||
return &mStore;
|
||||
}
|
||||
void clearPatientInformation();
|
||||
|
||||
void confirmModeOn(int protocol);
|
||||
signals:
|
||||
void hideBtnClicked();
|
||||
void editClicked();
|
||||
@@ -30,8 +32,10 @@ private:
|
||||
QString mCurrentPatientUID;
|
||||
QString mAddDate;
|
||||
PatientInformation mStore;
|
||||
QWidget * mBtnPlaceWidget;
|
||||
QToolButton *mBtnEdit;
|
||||
QToolButton *mBtnDelete;
|
||||
QLabel* mLblMessage;
|
||||
};
|
||||
|
||||
#endif // EDITPATIENTFORM_H
|
||||
|
||||
@@ -14,9 +14,18 @@
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QFrame" name="frame">
|
||||
<property name="frameShape">
|
||||
@@ -29,13 +38,18 @@
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QToolButton" name="hideBtn">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="lblPatInfPanel">
|
||||
<property name="text">
|
||||
@@ -144,7 +158,7 @@
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
<number>10</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="lblPatID">
|
||||
|
||||
Reference in New Issue
Block a user