added support for meta-data editing improved element selection changed zooming fixed some issues with layer events fixed issue with 3D outline fixed loading issue for old maps some interface changes
74 lines
1.1 KiB
C++
74 lines
1.1 KiB
C++
#ifndef TOOLBOX_H
|
|
#define TOOLBOX_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* btnPOI;
|
|
|
|
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 onNewPOI();
|
|
|
|
void onNewImage();
|
|
|
|
|
|
};
|
|
|
|
#endif // TOOLBOX_H
|