working on elementview

This commit is contained in:
Marcel Otte 2015-09-07 20:17:09 +02:00
parent 426c87fb4f
commit 00d1de4b48
1 changed files with 20 additions and 0 deletions

View File

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