#ifndef IMPORTINDEXWIDGET_H #define IMPORTINDEXWIDGET_H #include class QLabel; class QListWidget; class PushButton; class QVBoxLayout; class QHBoxLayout; struct IndexSystemInfo { int projId = -1; int indexType = -1; QString projName = ""; }; class ImportIndexWidget : public QDialog { Q_OBJECT public: ImportIndexWidget(QWidget *parent = nullptr); signals: void sigImport(int projId, int indexType); private: void initWindow(); void initWidgets(); void initLayout(); void connectSignalsAndSlots(); void showEvent(QShowEvent *) override; void loadIndex(); void showIndex(); private slots: void slotConfirm(); void slotCancel(); void slotCurrentChanged(); private: QLabel *m_title = nullptr; QLabel *m_tips = nullptr; QListWidget *m_listWidget = nullptr; PushButton *m_confirm = nullptr; PushButton *m_cancel = nullptr; QVBoxLayout *m_layout = nullptr; QHBoxLayout *m_buttonLayout = nullptr; QList m_indexSysList; }; #endif // IMPORTINDEXWIDGET_H