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
kazu 52ab71fac5 some refactoring
hopefully improved rendering speed
added support to add .obj obstacles
2018-02-17 17:39:18 +01:00

88 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* 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 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