1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef IMPORTINDEXWIDGET_H
- #define IMPORTINDEXWIDGET_H
- #include <QDialog>
- 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<IndexSystemInfo> m_indexSysList;
- };
- #endif // IMPORTINDEXWIDGET_H
|