X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_PagedContainer.h;h=b98055fc9dcb640713822ed18b6097cc5041b809;hb=061a63480f6840b6d945f7744b3b972e2d4cb25d;hp=59730cd7d4e1afa822aaf3e7dac463b2522e78dc;hpb=38012f90328622b1b395fc6ff6c3b790f290c0be;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_PagedContainer.h b/src/ModuleBase/ModuleBase_PagedContainer.h index 59730cd7d..b98055fc9 100644 --- a/src/ModuleBase/ModuleBase_PagedContainer.h +++ b/src/ModuleBase/ModuleBase_PagedContainer.h @@ -21,30 +21,54 @@ class MODULEBASE_EXPORT ModuleBase_PagedContainer : public ModuleBase_ModelWidge { Q_OBJECT public: + /// A constructor + /// \param theParent a parent widget + /// \param theData a data of the widget + /// \param theParentId an Id of the parent object ModuleBase_PagedContainer(QWidget* theParent, const Config_WidgetAPI* theData, const std::string& theParentId); virtual ~ModuleBase_PagedContainer(); + /// Add a new page + /// \param theWidget a page object + /// \param theName a name of the page + /// \param theCaseId an Id of the page + /// \param theIcon aqn Icon of the page virtual int addPage( ModuleBase_PageBase* theWidget, const QString& theName, const QString& theCaseId, const QPixmap& theIcon ); - // ModuleBase_ModelWidget + /// Redefinition of virtual function virtual QList getControls() const; + + /// Redefinition of virtual function virtual bool focusTo(); + + /// Redefinition of virtual function virtual void setHighlighted(bool isHighlighted); + + /// Redefinition of virtual function virtual void enableFocusProcessing(); protected: + /// Returns index of current page virtual int currentPageIndex() const = 0; + + /// Set current page by index virtual void setCurrentPageIndex(int ) = 0; - // ModuleBase_ModelWidget + + /// Redefinition of virtual function virtual void activateCustom(); + + /// Redefinition of virtual function virtual bool storeValueCustom() const; + + /// Redefinition of virtual function virtual bool restoreValueCustom(); protected slots: + /// A slot called on page change void onPageChanged(); private: