2 * ModuleBase_PagedContainer.h
4 * Created on: Mar 13, 2015
8 #ifndef MODULEBASE_PAGEDCONTAINER_H_
9 #define MODULEBASE_PAGEDCONTAINER_H_
11 #include <ModuleBase.h>
12 #include <ModuleBase_ModelWidget.h>
14 class ModuleBase_PageBase;
18 * This is an abstract interface to be used for not model container widget such as switch or tool box.
20 class MODULEBASE_EXPORT ModuleBase_PagedContainer : public ModuleBase_ModelWidget
25 /// \param theParent a parent widget
26 /// \param theData a data of the widget
27 ModuleBase_PagedContainer(QWidget* theParent, const Config_WidgetAPI* theData);
28 virtual ~ModuleBase_PagedContainer();
31 /// \param theWidget a page object
32 /// \param theName a name of the page
33 /// \param theCaseId an Id of the page
34 /// \param theIcon aqn Icon of the page
35 virtual int addPage( ModuleBase_PageBase* theWidget,
36 const QString& theName,
37 const QString& theCaseId,
38 const QPixmap& theIcon );
40 /// Redefinition of virtual function
41 virtual QList<QWidget*> getControls() const;
43 /// Redefinition of virtual function
44 virtual bool focusTo();
46 /// Redefinition of virtual function
47 virtual void setHighlighted(bool isHighlighted);
49 /// Redefinition of virtual function
50 virtual void enableFocusProcessing();
53 /// Returns index of current page
54 virtual int currentPageIndex() const = 0;
56 /// Set current page by index
57 virtual void setCurrentPageIndex(int ) = 0;
59 /// Redefinition of virtual function
60 virtual void activateCustom();
62 /// Redefinition of virtual function
63 virtual bool storeValueCustom();
65 /// Redefinition of virtual function
66 virtual bool restoreValueCustom();
69 /// A slot called on page change
73 bool myIsFocusOnCurrentPage;
74 QStringList myCaseIds;
75 QList<ModuleBase_PageBase*> myPages;
79 #endif /* MODULEBASE_PAGEDCONTAINER_H_ */