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/LayerParamWidget.h
kazu 535e410ae9 added new param-editing to APs and Beacons
changed drawing for better debuging
changed layer editing
option to add and delete layers
some minor changes
2016-11-29 21:31:20 +01:00

67 lines
788 B
C++

#ifndef LAYERPARAMWIDGET_H
#define LAYERPARAMWIDGET_H
#include <QWidget>
class MapLayer;
class QLabel;
class QLineEdit;
class QComboBox;
class QGridLayout;
class LayerParamWidget : public QWidget {
Q_OBJECT
private:
QGridLayout* lay;
public:
explicit LayerParamWidget(QWidget *parent = 0);
private:
MapLayer* curElement = nullptr;
struct {
QLabel* info;
QLabel* lbl;
} selected;
struct {
QLineEdit* txt;
QLabel* lbl;
} name;
struct {
QLineEdit* txt;
QLabel* lbl;
} atHeight;
struct {
QLineEdit* txt;
QLabel* lbl;
} height;
signals:
public slots:
/** set the to-be-edited element */
void setElement(MapLayer* l);
private slots:
void onAtHeightChanged();
void onHeightChanged();
void onNameChanged();
};
#endif // LAYERPARAMWIDGET_H