123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef CREATESCHEMEWIDGET_H
- #define CREATESCHEMEWIDGET_H
- #include <QDialog>
- class PushButton;
- class LineEdit;
- class TextEdit;
- class QVBoxLayout;
- class QGridLayout;
- class QHBoxLayout;
- class QLabel;
- class LineEdit;
- class CreateSchemeWidget : public QDialog
- {
- Q_OBJECT
- public:
- explicit CreateSchemeWidget(QWidget *parent = nullptr);
- void clearInputs();
- private:
- void showEvent(QShowEvent *e) override;
- void initWindow();
- void initialize();
- void initLayout();
- void connectSignalsAndSlots();
- private slots:
- void slotSelectPic();
- void slotContentChanged();
- void slotConfirmed();
- signals:
- void sigSchemeInfoConfirmed(const QString name, const QString remark, const QString path);
- private:
- QVBoxLayout *m_vBoxLayout = nullptr;
- QGridLayout *m_gridLayout = nullptr;
- QLabel *m_nameLabel = nullptr;
- LineEdit *m_nameEdit = nullptr;
- QLabel *m_schemeLabel = nullptr;
- TextEdit *m_schemeEdit = nullptr;
- PushButton *m_picButton = nullptr;
- LineEdit *m_picLine = nullptr;
- QHBoxLayout *m_hBoxLayout = nullptr;
- PushButton *m_confirButton = nullptr;
- };
- #endif // CREATESCHEMEWIDGET_H
|