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
2018-10-25 12:19:36 +02:00

100 lines
1.7 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* © 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