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

81 lines
1.2 KiB
C++
Raw Permalink 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 LAYERPARAMWIDGET_H
#define LAYERPARAMWIDGET_H
#include "fixC11.h"
#include <QWidget>
class MapLayer;
class QLabel;
class QLineEdit;
class QComboBox;
class QGridLayout;
class IHasParams;
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;
void buildFields(QGridLayout* lay, IHasParams* elem);
signals:
public slots:
/** set the to-be-edited element */
void setElement(MapLayer* l);
private slots:
void onAtHeightChanged();
void onHeightChanged();
void onNameChanged();
};
#endif // LAYERPARAMWIDGET_H