1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 * ModuleBase_PageWidget.h
5 * Created on: Mar 4, 2015
9 #ifndef MODULEBASE_PAGEWIDGET_H_
10 #define MODULEBASE_PAGEWIDGET_H_
12 #include <ModuleBase.h>
13 #include <ModuleBase_PageBase.h>
18 class ModuleBase_ModelWidget;
23 * Represent a property panel's list of ModuleBase_ModelWidgets.
25 class MODULEBASE_EXPORT ModuleBase_PageWidget : public QFrame, public ModuleBase_PageBase
29 /// Constructs a page that looks like a QFrame
30 explicit ModuleBase_PageWidget(QWidget* theParent = 0);
31 /// Destructs the page
32 virtual ~ModuleBase_PageWidget();
35 /// Adds the given widget to page's layout
36 virtual void placeModelWidget(ModuleBase_ModelWidget* theWidget);
37 /// Adds the given page to page's layout
38 virtual void placeWidget(QWidget* theWidget);
39 /// Returns page's layout (QGridLayout)
40 virtual QLayout* pageLayout();
41 /// Adds a stretch to page's layout
42 virtual void addPageStretch();
45 QVBoxLayout* myMainLayout; ///< page's layout
48 #endif /* MODULEBASE_PAGEWIDGET_H_ */