X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetToolbox.h;h=639e90f14da10fd57faa7e709d67af45d574207e;hb=cdc2caa21375bc96aaad9bb7c3ee1140dac1d738;hp=867623105adabfda81f8439cef0b90e85841df58;hpb=2734393c7c19899fca7e7c36577b31317887a9c9;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetToolbox.h b/src/ModuleBase/ModuleBase_WidgetToolbox.h index 867623105..639e90f14 100644 --- a/src/ModuleBase/ModuleBase_WidgetToolbox.h +++ b/src/ModuleBase/ModuleBase_WidgetToolbox.h @@ -8,35 +8,32 @@ #ifndef MODULEBASE_WIDGETTOOLBOX_H_ #define MODULEBASE_WIDGETTOOLBOX_H_ -#include +#include +#include #include class ModuleBase_PageBase; -class ModuleBase_WidgetToolbox : public ModuleBase_ModelWidget +class MODULEBASE_EXPORT ModuleBase_WidgetToolbox : public ModuleBase_PagedContainer { Q_OBJECT public: ModuleBase_WidgetToolbox(QWidget* theParent, const Config_WidgetAPI* theData, const std::string& theParentId); virtual ~ModuleBase_WidgetToolbox(); - - virtual bool restoreValue(); - virtual QList getControls() const; - virtual bool focusTo(); - - int addPage(QWidget* theWidget, const QString& theName, const QString& theCaseId); + /// Overrides ModuleBase_PagedContainer + int addPage(ModuleBase_PageBase* theWidget, + const QString& theName, const QString& theCaseId); protected: - virtual bool storeValueCustom() const; - - protected slots: - void onPageChanged(); + /// Implements ModuleBase_PagedContainer + virtual int currentPageIndex() const; + /// Implements ModuleBase_PagedContainer + virtual void setCurrentPageIndex(int); private: QToolBox* myToolBox; - QStringList myCaseIds; }; #endif /* MODULEBASE_WIDGETTOOLBOX_H_ */