36 lines
809 B
C
36 lines
809 B
C
|
|
#ifndef MONITORPAGESDLG_H
|
||
|
|
#define MONITORPAGESDLG_H
|
||
|
|
|
||
|
|
#include <QDialog>
|
||
|
|
#include "global.h"
|
||
|
|
|
||
|
|
QT_BEGIN_NAMESPACE
|
||
|
|
namespace Ui { class monitorPagesDlg; }
|
||
|
|
QT_END_NAMESPACE
|
||
|
|
|
||
|
|
class MonitorPagesDlg : public QDialog
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
MonitorPagesDlg(QWidget *parent = nullptr);
|
||
|
|
~MonitorPagesDlg();
|
||
|
|
|
||
|
|
void initial();
|
||
|
|
signals:
|
||
|
|
void monitorSelected(DiagramInfo);
|
||
|
|
void prepareSaveMonitor(QList<QPair<QString,QUuid>>);
|
||
|
|
public slots:
|
||
|
|
void onMonitorCreated(QString,QPair<QString,QUuid>,int);
|
||
|
|
void onItemClicked(const QModelIndex &index);
|
||
|
|
|
||
|
|
void onIndexRbtnClicked(const QPoint &pos); //索引列表右键菜单
|
||
|
|
private:
|
||
|
|
QStandardItem* findTopLevelItem(const QString& name); //查找顶层项
|
||
|
|
private:
|
||
|
|
Ui::monitorPagesDlg *ui;
|
||
|
|
QStandardItemModel* _pModel;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|