working on elementview
This commit is contained in:
parent
426c87fb4f
commit
00d1de4b48
|
@ -3,6 +3,12 @@
|
||||||
|
|
||||||
#include "guidededitorelement.h"
|
#include "guidededitorelement.h"
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QLineEdit>
|
||||||
|
#include "guidededitorlayer.h"
|
||||||
|
#include <QBoxLayout>
|
||||||
|
#include <memory>
|
||||||
|
#include <QComboBox>
|
||||||
|
|
||||||
|
|
||||||
class GuidedEditorElementView : public QWidget
|
class GuidedEditorElementView : public QWidget
|
||||||
|
@ -11,17 +17,31 @@ class GuidedEditorElementView : public QWidget
|
||||||
public:
|
public:
|
||||||
explicit GuidedEditorElementView(GuidedEditorElement* element, QWidget *parent = 0);
|
explicit GuidedEditorElementView(GuidedEditorElement* element, QWidget *parent = 0);
|
||||||
|
|
||||||
|
void setElement(GuidedEditorElement* element);
|
||||||
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
void inputChanged();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
void dataChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
// layout
|
||||||
|
std::unique_ptr<QBoxLayout> layout;
|
||||||
// widget container
|
// widget container
|
||||||
|
//?
|
||||||
// title label
|
// title label
|
||||||
|
std::unique_ptr<QLabel> title;
|
||||||
// example/regex label
|
// example/regex label
|
||||||
|
std::unique_ptr<QLabel> example;
|
||||||
// mouseover description?
|
// mouseover description?
|
||||||
|
std::unique_ptr<QString> description;
|
||||||
// input field based on element type
|
// input field based on element type
|
||||||
|
std::unique_ptr<QLineEdit> input;
|
||||||
|
std::unique_ptr<QComboBox> combobox;
|
||||||
// layer information
|
// layer information
|
||||||
|
std::shared_ptr<GuidedEditorLayer> layer;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GUIDEDEDITORELEMENTVIEW_H
|
#endif // GUIDEDEDITORELEMENTVIEW_H
|
||||||
|
|
Reference in New Issue