CreateProjView.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef CREATEPROJVIEW_H
  2. #define CREATEPROJVIEW_H
  3. #include <QWidget>
  4. class QGridLayout;
  5. class QLabel;
  6. class LineEdit;
  7. class CheckBox;
  8. class PushButton;
  9. class CreateProjView : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. CreateProjView(QWidget *parent = nullptr);
  14. const QString projName() const;
  15. bool importanceSelected() const;
  16. bool schemeSelected() const;
  17. void clearInputs();
  18. signals:
  19. void signalCreate();
  20. private:
  21. void initWindow();
  22. void initialize();
  23. void initLayout();
  24. void connectSignalsAndSlots();
  25. void updateCreateButtonState();
  26. private slots:
  27. void slotTextChanged(const QString &text);
  28. void slotCheckBoxChanged(int state);
  29. void slotCreateClicked();
  30. void slotCancelClicked();
  31. private:
  32. QGridLayout *m_gridLayout = nullptr;
  33. QLabel *m_nameLabel = nullptr;
  34. QLabel *m_typeLabel = nullptr;
  35. LineEdit *m_nameLineEdit = nullptr;
  36. CheckBox *m_importanceCheckBox = nullptr;
  37. CheckBox *m_schemeCheckBox = nullptr;
  38. PushButton *m_createButton = nullptr;
  39. PushButton *m_cancelButton = nullptr;
  40. };
  41. #endif // CREATEPROJVIEW_H