]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_PagedContainer.h
Salome HOME
Add tools
[modules/shaper.git] / src / ModuleBase / ModuleBase_PagedContainer.h
index d0677d3c0d4ef500dce61cdb6bb6afcbba8e224d..59730cd7d4e1afa822aaf3e7dac463b2522e78dc 100644 (file)
 
 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
@@ -21,14 +25,16 @@ class MODULEBASE_EXPORT ModuleBase_PagedContainer : public ModuleBase_ModelWidge
                            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;
@@ -36,6 +42,7 @@ class MODULEBASE_EXPORT ModuleBase_PagedContainer : public ModuleBase_ModelWidge
   // ModuleBase_ModelWidget
   virtual void activateCustom();
   virtual bool storeValueCustom() const;
+  virtual bool restoreValueCustom();
 
  protected slots:
   void onPageChanged();