70 lines
1.1 KiB
C++
70 lines
1.1 KiB
C++
/*
|
||
* © 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 PARAMWIDGET_H
|
||
#define PARAMWIDGET_H
|
||
|
||
#include "fixC11.h"
|
||
|
||
#include <QWidget>
|
||
#include "../mapview/model/MapModelElement.h"
|
||
|
||
class QLabel;
|
||
class QComboBox;
|
||
class QLineEdit;
|
||
class QPushButton;
|
||
class QGridLayout;
|
||
|
||
class ElementParamWidget : public QWidget {
|
||
|
||
Q_OBJECT
|
||
|
||
public:
|
||
|
||
explicit ElementParamWidget(QWidget *parent = 0);
|
||
|
||
/** refresh the currently selected element */
|
||
void refresh();
|
||
|
||
|
||
private:
|
||
|
||
QGridLayout* lay;
|
||
|
||
QLabel* lblDetails;
|
||
MapModelElement* curElement = nullptr;
|
||
int r = 0;
|
||
|
||
struct {
|
||
QComboBox* cmb;
|
||
QLabel* lbl;
|
||
} material;
|
||
|
||
struct {
|
||
QComboBox* cmb;
|
||
QLabel* lbl;
|
||
} obstacleType;
|
||
|
||
signals:
|
||
|
||
public slots:
|
||
|
||
/** set the to-be-edited element */
|
||
void setElement(MapModelElement* el);
|
||
|
||
private slots:
|
||
|
||
//void onMaterialChange();
|
||
//void onObstacleTypeChange();
|
||
|
||
};
|
||
|
||
#endif // PARAMWIDGET_H
|