DiagramDesigner/include/diagramView.h

37 lines
813 B
C
Raw Normal View History

2025-05-09 19:36:32 +08:00
#ifndef DIAGRAMVIEW_H
#define DIAGRAMVIEW_H
#include <QDialog>
#include <QStandardItemModel>
#include "global.h"
QT_BEGIN_NAMESPACE
namespace Ui { class diagramView; }
QT_END_NAMESPACE
class DiagramView : public QDialog
{
Q_OBJECT
public:
DiagramView(QWidget *parent = nullptr);
~DiagramView();
void initial();
void loadTopologyFromDB(); //加载拓扑关系
signals:
void diagramCreate(DiagramInfo);
void diagramChange(DiagramInfo);
void diagramDelete(DiagramInfo);
void diagramSelected(DiagramInfo);
public slots:
void onIndexRbtnClicked(const QPoint &pos); //索引列表右键菜单
void onItemChanged(QStandardItem *item);
void onItemClicked(const QModelIndex &index);
private:
Ui::diagramView *ui;
QStandardItemModel* _pModel;
};
#endif