55 lines
1.4 KiB
C++
55 lines
1.4 KiB
C++
#ifndef STRUCTDATAPREVIEWDLG_H
|
|
#define STRUCTDATAPREVIEWDLG_H
|
|
/**
|
|
* *******结构化数据展示界面*******
|
|
**/
|
|
|
|
#include <QDialog>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class structDataPreviewDlg; }
|
|
QT_END_NAMESPACE
|
|
|
|
class QStandardItemModel;
|
|
class TitleBar;
|
|
class ExtraPropertyManager;
|
|
|
|
class StructDataPreviewDlg : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
StructDataPreviewDlg(QWidget *parent = nullptr);
|
|
~StructDataPreviewDlg();
|
|
|
|
void initial();
|
|
|
|
void showMaximized();
|
|
void showNormal();
|
|
void setExtraPropertyManager(ExtraPropertyManager* p) {_pExtraProManager = p;}
|
|
void showDlg();
|
|
public slots:
|
|
void onExitClicked();
|
|
void onSaveClicked();
|
|
void onGridClicked(); //网
|
|
void onZoneClicked(); //区
|
|
void onStationClicked(); //站
|
|
void onBayClicked(); //间隔
|
|
void onDeviceClicked(); //设备
|
|
void onPropertyClicked(); //属性
|
|
protected:
|
|
void showEvent(QShowEvent *event) override;
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
private slots:
|
|
void toggleMaximize();
|
|
private:
|
|
void clearItems();
|
|
private:
|
|
Ui::structDataPreviewDlg *ui;
|
|
QStandardItemModel* _treeModel;
|
|
TitleBar* m_titleBar;
|
|
QRect m_normalGeometry; // 记录正常状态的位置和大小
|
|
ExtraPropertyManager* _pExtraProManager; //使用外部的manager
|
|
};
|
|
|
|
#endif
|