class ModuleBase_PageBase;
+/**
+* \ingroup GUI
+* This is an abstract interface to be used for not model container widget such as switch or tool box.
+*/
class MODULEBASE_EXPORT ModuleBase_PagedContainer : public ModuleBase_ModelWidget
{
Q_OBJECT
const std::string& theParentId);
virtual ~ModuleBase_PagedContainer();
- virtual int addPage(ModuleBase_PageBase* theWidget,
- const QString& theName, const QString& theCaseId);
+ virtual int addPage( ModuleBase_PageBase* theWidget,
+ const QString& theName,
+ const QString& theCaseId,
+ const QPixmap& theIcon );
+
// ModuleBase_ModelWidget
virtual QList<QWidget*> getControls() const;
virtual bool focusTo();
virtual void setHighlighted(bool isHighlighted);
virtual void enableFocusProcessing();
- virtual bool restoreValue();
protected:
virtual int currentPageIndex() const = 0;
// ModuleBase_ModelWidget
virtual void activateCustom();
virtual bool storeValueCustom() const;
+ virtual bool restoreValueCustom();
protected slots:
void onPageChanged();