initial commit
This commit is contained in:
76
params/ElementParamWidget.h
Normal file
76
params/ElementParamWidget.h
Normal file
@@ -0,0 +1,76 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user