1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #ifndef CREATEPROJWIDGET_H
- #define CREATEPROJWIDGET_H
- #include <QDialog>
- class ProjectInfo;
- class LineEdit;
- class CheckBox;
- class PushButton;
- class DateTimeEdit;
- class TextEdit;
- class QVBoxLayout;
- class QHBoxLayout;
- class QGridLayout;
- class QLabel;
- class CreateProjWidget : public QDialog
- {
- Q_OBJECT
- public:
- CreateProjWidget(QWidget *parent = nullptr);
- const QString projName() const;
- void clearInputs();
- ProjectInfo projectInfo() const;
- signals:
- void signalCreate();
- private:
- void initWindow();
- void initWidgets();
- void initLayout();
- void connectSignalsAndSlots();
- void updateCreateButtonState();
- private slots:
- void slotTextChanged();
- void slotCheckBoxChanged();
- void slotCreateClicked();
- void slotCancelClicked();
- private:
-
- QLabel *m_summary = nullptr;
- LineEdit *m_taskName = nullptr;
- DateTimeEdit *m_evalTime = nullptr;
- LineEdit *m_evalPurpose = nullptr;
- LineEdit *m_evalUnit = nullptr;
- LineEdit *m_evalCrew = nullptr;
- LineEdit *m_rank = nullptr;
- TextEdit *m_note = nullptr;
- QWidget *m_separator = nullptr;
-
- QLabel *m_nameLabel = nullptr;
- LineEdit *m_name = nullptr;
- QLabel *m_typeLabel = nullptr;
- CheckBox *m_type1 = nullptr;
- CheckBox *m_type2 = nullptr;
- CheckBox *m_type3 = nullptr;
-
- PushButton *m_confirm = nullptr;
- PushButton *m_cancel = nullptr;
-
- QVBoxLayout *m_layout = nullptr;
- QVBoxLayout *m_summaryLayout = nullptr;
- QGridLayout *m_projLayout = nullptr;
- QHBoxLayout *m_btnLayout = nullptr;
- };
- #endif
|