This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
IndoorMap/params/ToolBoxWidget.h
root e5e19779d5 worked on android port
opengl1 -> es
2018-01-31 17:15:11 +01:00

86 lines
1.3 KiB
C++

#ifndef TOOLBOX_H
#define TOOLBOX_H
#include "fixC11.h"
#include <QWidget>
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* btnWall;
QPushButton* btnPillar;
QPushButton* btnDoor;
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 onNewPillar();
void onNewDoor();
void onNewStair();
void onNewElevator();
void onNewAccessPoint();
void onNewBeacon();
void onNewFingerprintLocation();
void onNewPOI();
void onNewGTP();
void onNewImage();
void onNewEarthReg();
void onMainToolChanged();
};
#endif // TOOLBOX_H