initial commit

This commit is contained in:
kazu
2016-05-24 16:55:19 +02:00
commit 13a89df8d6
77 changed files with 7454 additions and 0 deletions

View 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