You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/Include/mGui/mGuiAnal/iLayerTableView.h

55 lines
1.2 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
////////////////////////////////////////////////////////////////////
// 特别说明由于进度限制并且为了测试AI编码对于多层的对话框设置功能相对比
// 较单一而且有对标软件的效果所以采用了AI直接编码模式基本没有做大的改动。
// 效果功能优先暂不予iFramework框架进行集成。
// 涉及类库及文件:iLayerColorBand.h/cpp
// iLayerTableModel.h/cpp
// iLayerTableView.h/cpp
// iLayerWx.h/cpp
// 创建日期2026-01-08
// 作者AI大模型
// 整合者wangzg
// 后附:具体交互见 iLayerWx.h
////////////////////////////////////////////////////////////////////
#include <QMenu>
#include <QTableView>
#include <QContextMenuEvent>
#include "mGuiAnal_global.h"
class M_GUI_ANAL_EXPORT iLayerTableView : public QTableView
{
Q_OBJECT
public:
iLayerTableView(QWidget *parent = 0);
~iLayerTableView();
signals:
void addLayerRequested();
void insertLayerRequested(int row);
void deleteLayerRequested(int row);
void setRowCountRequested();
protected:
void contextMenuEvent(QContextMenuEvent *event);
private slots:
void onAddLayer();
void onInsertLayer();
void onDeleteLayer();
void onSetRowCount();
private:
QMenu *m_contextMenu;
int m_contextRow;
};