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/ElementParamWidget.h
2016-05-24 16:55:19 +02:00

77 lines
1.0 KiB
C++

#ifndef PARAMWIDGET_H
#define PARAMWIDGET_H
#include <QGroupBox>
#include "../mapview/model/MapModelElement.h"
class QLabel;
class QComboBox;
class QLineEdit;
class QPushButton;
class ElementParamWidget : public QGroupBox {
Q_OBJECT
public:
explicit ElementParamWidget(QWidget *parent = 0);
private:
QLabel* lblDetails;
MapModelElement* curElement = nullptr;
struct {
QComboBox* cmb;
QLabel* lbl;
} material;
struct {
QComboBox* cmb;
QLabel* lbl;
} obstacleType;
struct {
QLineEdit* txt;
QLabel* lbl;
} name;
struct {
QLineEdit* txt;
QLabel* lbl;
} mac;
struct {
QLabel* txt;
QPushButton* btn;
QLabel* lbl;
} fileName;
struct {
QComboBox* cmb;
QLabel* lbl;
} outlineMethod;
signals:
public slots:
/** set the to-be-edited element */
void setElement(MapModelElement* el);
private slots:
void onMaterialChange();
void onObstacleTypeChange();
void onNameChange();
void onMACChanged();
void onOutlineMethodChange();
void onSelectFileName();
};
#endif // PARAMWIDGET_H