2 * ModuleBase_WidgetLineEdit.h
4 * Created on: Oct 8, 2014
8 #ifndef MODULEBASE_WIDGETLINEEDIT_H_
9 #define MODULEBASE_WIDGETLINEEDIT_H_
11 #include <ModuleBase.h>
12 #include <ModuleBase_ModelWidget.h>
16 #include <QStringList>
21 class MODULEBASE_EXPORT ModuleBase_WidgetLineEdit : public ModuleBase_ModelWidget
25 ModuleBase_WidgetLineEdit(QWidget* theParent,
26 const Config_WidgetAPI* theData,
27 const std::string& theParentId);
28 virtual ~ModuleBase_WidgetLineEdit();
30 /// Saves the internal parameters to the given feature
31 /// \param theObject a model feature to be changed
32 virtual bool storeValue() const;
34 virtual bool restoreValue();
36 /// Returns the internal parent wiget control, that can be shown anywhere
37 /// \returns the widget
38 QWidget* getControl() const;
40 /// Returns list of widget controls
41 /// \return a control list
42 virtual QList<QWidget*> getControls() const;
48 QLineEdit* myLineEdit;
49 QWidget* myMainWidget;
52 #endif /* MODULEBASE_WIDGETFILESELECTOR_H_ */