12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef CREATEPROJVIEW_H
- #define CREATEPROJVIEW_H
- #include <QWidget>
- class QGridLayout;
- class QLabel;
- class LineEdit;
- class CheckBox;
- class PushButton;
- ///
- /// \brief The CreateProjView class
- /// 创建工程页面
- class CreateProjView : public QWidget
- {
- Q_OBJECT
- public:
- CreateProjView(QWidget *parent = nullptr);
- const QString projName() const;
- bool importanceSelected() const;
- bool schemeSelected() const;
- void clearInputs();
- signals:
- void signalCreate();
- private:
- void initWindow();
- void initialize();
- void initLayout();
- void connectSignalsAndSlots();
- void updateCreateButtonState();
- private slots:
- void slotTextChanged(const QString &text);
- void slotCheckBoxChanged(int state);
- void slotCreateClicked();
- void slotCancelClicked();
- private:
- QGridLayout *m_gridLayout = nullptr;
- QLabel *m_nameLabel = nullptr;
- QLabel *m_typeLabel = nullptr;
- LineEdit *m_nameLineEdit = nullptr;
- CheckBox *m_importanceCheckBox = nullptr;
- CheckBox *m_schemeCheckBox = nullptr;
- PushButton *m_createButton = nullptr;
- PushButton *m_cancelButton = nullptr;
- };
- #endif // CREATEPROJVIEW_H
|