#ifndef TOOLBOX_H #define TOOLBOX_H #include "fixC11.h" #include class MapLayer; class QPushButton; class MapView2D; /** * the toolbox on the left of the map. * gui element with actions to perform. * add new elements, etc. */ class ToolBoxWidget : public QWidget { Q_OBJECT public: explicit ToolBoxWidget(MapView2D* view, QWidget *parent = 0); signals: public slots: /** set the currently selected map layer */ void setSelectedLayer(MapLayer* ml); private: MapView2D* view; MapLayer* curLayer; int r = 0; QPushButton* btnSelect; QPushButton* btnMeasure; QPushButton* btnGround; QPushButton* btnLine; QPushButton* btnWall; QPushButton* btnPillar; QPushButton* btnDoor; QPushButton* btnObject; QPushButton* btnStair; QPushButton* btnElevator; QPushButton* btnWifi; QPushButton* btnBeacon; QPushButton* btnFingerprintLocation; QPushButton* btnPOI; QPushButton* btnGTP; QPushButton* btnEarthReg; QPushButton* btnImage; private slots: void onSelect(); void onMeasure(); void onNewGround(); void onNewWall(); void onNewLine(); void onNewPillar(); void onNewDoor(); void onNewObject(); void onNewStair(); void onNewElevator(); void onNewAccessPoint(); void onNewBeacon(); void onNewFingerprintLocation(); void onNewPOI(); void onNewGTP(); void onNewImage(); void onNewEarthReg(); void onMainToolChanged(); }; #endif // TOOLBOX_H