1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 * ModuleBase_WidgetLineEdit.h
6 * Created on: Oct 8, 2014
10 #ifndef MODULEBASE_WIDGETLINEEDIT_H_
11 #define MODULEBASE_WIDGETLINEEDIT_H_
13 #include <ModuleBase.h>
14 #include <ModuleBase_ModelWidget.h>
18 #include <QStringList>
25 * Implementation of model widget for line edit widget.
26 * It can be defined with "stringvalue" keyword.
28 class MODULEBASE_EXPORT ModuleBase_WidgetLineEdit : public ModuleBase_ModelWidget
33 /// \param theParent the parent object
34 /// \param theData the widget configuration.
35 /// \param thePlaceHolder a string of placeholder
36 ModuleBase_WidgetLineEdit( QWidget* theParent,
37 const Config_WidgetAPI* theData,
38 const std::string& thePlaceHolder );
39 virtual ~ModuleBase_WidgetLineEdit();
41 /// Redefinition of virtual method
42 virtual QList<QWidget*> getControls() const;
44 /// Returns true if the event is processed.
45 virtual bool processEnter();
48 /// Saves the internal parameters to the given feature
49 /// \return True in success
50 virtual bool storeValueCustom();
52 /// Redefinition of virtual method
53 virtual bool restoreValueCustom();
56 /// A line edit control
57 QLineEdit* myLineEdit;
60 #endif /* MODULEBASE_WIDGETFILESELECTOR_H_ */