100 lines
1.7 KiB
C++
100 lines
1.7 KiB
C++
/*
|
||
* © Copyright 2014 – Urheberrechtshinweis
|
||
* Alle Rechte vorbehalten / All Rights Reserved
|
||
*
|
||
* Programmcode ist urheberrechtlich geschuetzt.
|
||
* Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner.
|
||
* Keine Verwendung ohne explizite Genehmigung.
|
||
* (vgl. § 106 ff UrhG / § 97 UrhG)
|
||
*/
|
||
|
||
#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* 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
|