initial commit
This commit is contained in:
61
params/LayerParamWidget.h
Normal file
61
params/LayerParamWidget.h
Normal file
@@ -0,0 +1,61 @@
|
||||
#ifndef LAYERPARAMWIDGET_H
|
||||
#define LAYERPARAMWIDGET_H
|
||||
|
||||
#include <QGroupBox>
|
||||
|
||||
class MapLayer;
|
||||
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
class QComboBox;
|
||||
|
||||
class LayerParamWidget : public QGroupBox {
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user