#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 #include #include #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; };