#ifndef _H_QTIMEMGRDLG_H_ #define _H_QTIMEMGRDLG_H_ #include #include "ui_QTimeMgrDlg.h" #include "InfoFile.h" #include "IWheelCtrl.h" class TimeMgrCtrl; /*班次管理窗口页面*/ class QTimeMgrDlg : public QDialog { Q_OBJECT public: QTimeMgrDlg(QWidget *parent = Q_NULLPTR); ~QTimeMgrDlg(); void onSetCtrlPtr(IWheelCtrl *p) { m_pCtrl = p; }; Q_SLOT void onButtonClicked(); Q_SLOT void onSlotCellClicked(const QModelIndex&index); protected: virtual void showEvent(QShowEvent *); virtual void changeEvent(QEvent *event); private: Ui::QTimeMgrDlg ui; QMap m_MapTime; class QStandardItemModel *tablemodel; IWheelCtrl *m_pCtrl{ nullptr }; }; #endif