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/nmNum/nmSubWxs/nmWxGeometryLayerDlg.h

61 lines
1.4 KiB
C++

#ifndef NMWXGEOMETRYLAYERDLG_H
#define NMWXGEOMETRYLAYERDLG_H
#include "iDlgBase.h"
#include <QColor>
#include "nmSubWxs_global.h"
#include "nmDataLayer.h"
class QLineEdit;
class QVBoxLayout;
class QComboBox;
class QTreeWidget;
class QTableWidget;
class QTreeWidgetItem;
class QCheckBox;
class nmDataReservoir;
class NM_SUB_WXS_EXPORT nmWxGeometryLayerDlg : public iDlgBase {
Q_OBJECT
public:
nmWxGeometryLayerDlg();
// »ñÈ¡±à¼­ºóµÄÊý¾Ý
QVector<nmDataLayer*> getLayerData() const;
private:
void initUI();
QTreeWidgetItem* createLayer(int index, const QString& layerName);
void updateLayers();
void updateLayerData(int index);
QColor getLayerColor(int index);
void initLayers();
void configureLayerItems(int layerIndex, QTreeWidgetItem* layerItem);
void handleInsertTop(int state, QTreeWidgetItem* layer);
void handleInsertBottom(int state, QTreeWidgetItem* layer);
QComboBox* createComboBox(const QString& defaultText);
private slots:
void onItemChanged(QTreeWidgetItem* item, int column);
void onLayersComboBoxChanged(int index);
void onGeometryComboBoxChanged(int index);
void onLayerCheckBoxStateChanged(int state);
void onResetButtonClicked();
private:
QVector<nmDataLayer*> m_layerData;
QVBoxLayout* mainLayout;
QComboBox* layersComboBox;
QComboBox* geometryComboBox;
QComboBox* unitComboBox;
QTreeWidget* treeWidget;
QTableWidget* tableWidget;
nmDataReservoir* m_pReservoir;
};
#endif // NMWXGEOMETRYLAYERDLG_H