59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
|
|
class MapView2D;
|
|
class MapView3D;
|
|
class QTreeView;
|
|
class ElementParamWidget;
|
|
class LayerParamWidget;
|
|
class ActionWidget;
|
|
class ToolBoxWidget;
|
|
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
|
|
class MainWindow : public QMainWindow {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
~MainWindow();
|
|
|
|
MapView2D* getMapView2D() {return mapView2D;}
|
|
MapView3D* getMapView3D() {return mapView3D;}
|
|
|
|
ElementParamWidget* getElementParamWidget() {return elementParamWidget;}
|
|
LayerParamWidget* getLayerParamWidget() {return layerParamWidget;}
|
|
ToolBoxWidget* getToolBoxWidget() {return toolBoxWidget;}
|
|
ActionWidget* getActionWidget() {return actionWidget;}
|
|
|
|
|
|
QTreeView* getTree();
|
|
|
|
signals:
|
|
|
|
void onShow2D();
|
|
void onShow3DFloorplan();
|
|
void onShow3DGrid();
|
|
void onGridShowEdges(bool);
|
|
void onGridNodeColorImp();
|
|
void onGridNodeColorType();
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
QTreeView* layerTree;
|
|
MapView2D* mapView2D;
|
|
MapView3D* mapView3D;
|
|
ElementParamWidget* elementParamWidget;
|
|
LayerParamWidget* layerParamWidget;
|
|
ActionWidget* actionWidget;
|
|
ToolBoxWidget* toolBoxWidget;
|
|
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|