#ifndef SETTINGDLG_H #define SETTINGDLG_H #include #include #include #include #include #include #include "common.h" #include "nlohmann/json.hpp" using namespace nlohmann; namespace Ui { class SettingDlg; } class SettingWgt : public QWidget { Q_OBJECT public: explicit SettingWgt(QWidget *parent = nullptr); ~SettingWgt(); void loadConfig(); signals: void SettingFinishSig(); private slots: void onCheckBoxStateChanged(int index); void SelectPathButton_clicked(int index, bool isRework); void on_pushButton_ok_clicked(); private: void initUI(); private: Ui::SettingDlg *ui; QVector m_selectCheckBoxes; QVector m_snFormatLineEdits; QVector m_modeComboBoxes; QMap> m_workPathLineEdits; QMap m_productsCfg; QMap m_workmodesCfg; uint m_productNums; uint m_workModeNums; }; #endif // SETTINGDLG_H