#ifndef PARAMWIDGET_H #define PARAMWIDGET_H #include #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