#ifndef NEWITEMDIALOG_H #define NEWITEMDIALOG_H #include "abstractdialog.h" #include class QStringListModel; class QDoubleSpinBox; class QLineEdit; class QSpinBox; class QLabel; class NewItemDialog : public AbstractDialog { Q_OBJECT public: NewItemDialog(QWidget* parent = nullptr); void createContent() override; signals: void addItems(const QByteArray& jsonDoc); public slots: void accept() override; // void reject() override; private: QLabel* m_numberLabel; QSpinBox* m_numberBox; QLabel* m_lastNameLabel; QLineEdit* m_lastNameEdit; QLabel* m_firstNameLabel; QLineEdit* m_firstNameEdit; QLabel* m_shareTypeLabel; QComboBox* m_shareTypeBox; QStringListModel* m_shareTypeModel = nullptr; QLabel* m_amountLabel; QDoubleSpinBox* m_amountSpinBox; QLabel* m_biddingTypeLabel; QComboBox* m_biddingTypeBox; QStringListModel* m_biddingTypeModel = nullptr; QLabel* m_bidding1Label; QSpinBox* m_bidding1SpinBox; QLabel* m_bidding2Label; QSpinBox* m_bidding2SpinBox; QLabel* m_bidding3Label; QSpinBox* m_bidding3SpinBox; QLabel* m_depotWish1Label; QLineEdit* m_depotWish1Edit; QLabel* m_depotWish2Label; QLineEdit* m_depotWish2Edit; QLabel* m_mailLabel; QLineEdit* m_mailEdit; void resetContent(); }; #endif // NEWITEMDIALOG_H