AddSchemeWidget.h 843 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef ADDSCHEMEWIDGET_H
  2. #define ADDSCHEMEWIDGET_H
  3. #include <QDialog>
  4. class PushButton;
  5. class LineEdit;
  6. class TextEdit;
  7. class QVBoxLayout;
  8. class QGridLayout;
  9. class QHBoxLayout;
  10. class QLabel;
  11. class AddSchemeWidget : public QDialog
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit AddSchemeWidget(QWidget *parent = nullptr);
  16. void clearInputs();
  17. private:
  18. void initWindow();
  19. void initialize();
  20. void initLayout();
  21. void connectSignalsAndSlots();
  22. signals:
  23. private:
  24. QVBoxLayout *m_vBoxLayout = nullptr;
  25. QGridLayout *m_gridLayout = nullptr;
  26. QLabel *m_nameLabel = nullptr;
  27. LineEdit *m_nameEdit = nullptr;
  28. QLabel *m_schemeLabel = nullptr;
  29. TextEdit *m_schemeEdit = nullptr;
  30. QHBoxLayout *m_hBoxLayout = nullptr;
  31. PushButton *m_confirButton = nullptr;
  32. };
  33. #endif // ADDSCHEMEWIDGET_H