1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 * ModuleBase_WidgetTable.h
6 * Created on: Oct 8, 2014
10 #ifndef ModuleBase_WidgetTable_H_
11 #define ModuleBase_WidgetTable_H_
13 #include <ModuleBase.h>
14 #include <ModuleBase_ModelWidget.h>
16 class ModuleBase_TableModel;
21 * Implementation of model widget for line edit widget.
22 * It can be defined with "stringvalue" keyword.
24 class MODULEBASE_EXPORT ModuleBase_WidgetTable : public ModuleBase_ModelWidget
29 /// \param theParent the parent object
30 /// \param theData the widget configuration.
31 /// \param theParentId is Id of a parent of the current attribute
32 /// \param thePlaceHolder a string of placeholder
33 ModuleBase_WidgetTable( QWidget* theParent,
34 const Config_WidgetAPI* theData,
35 const std::string& theParentId );
36 virtual ~ModuleBase_WidgetTable();
38 /// Redefinition of virtual method
39 virtual QList<QWidget*> getControls() const;
45 /// Saves the internal parameters to the given feature
46 /// \return True in success
47 virtual bool storeValueCustom() const { return true;};
49 /// Restore value from attribute data to the widget's control
50 virtual bool restoreValueCustom() { return true; }
53 /// A line edit control
54 ModuleBase_TableModel* myTableModel;
55 QTableView* myTableView;
58 #endif /* MODULEBASE_WIDGETFILESELECTOR_H_ */