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 fa06320219 a whole lotta work!!
- refactoring
- completely changed the tooling (adding elements)
- better re-use for more stable editing
- new elements
- ui adjustments
- LINT for stair-editing
- many more changes
2016-08-29 19:05:46 +02:00

68 lines
943 B
C++

#ifndef TOOLBOX_H
#define TOOLBOX_H
#include <QWidget>
class MapLayer;
class QPushButton;
class MapView2D;
/**
* gui element with actions to perform
*/
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* btnGround;
QPushButton* btnWall;
QPushButton* btnPillar;
QPushButton* btnDoor;
QPushButton* btnStair;
QPushButton* btnWifi;
QPushButton* btnBeacon;
QPushButton* btnPOI;
QPushButton* btnImage;
private slots:
void onSelect();
void onNewGround();
void onNewWall();
void onNewPillar();
void onNewDoor();
void onNewStair();
void onNewAccessPoint();
void onNewBeacon();
void onNewPOI();
void onNewImage();
};
#endif // TOOLBOX_H