Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Open transaction before setCurrentFeatuire if it is not opened
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetToolbox.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetToolbox.h
b/src/ModuleBase/ModuleBase_WidgetToolbox.h
index c57c75e02d625061ab943ebb23e93d3ce179939f..639e90f14da10fd57faa7e709d67af45d574207e 100644
(file)
--- a/
src/ModuleBase/ModuleBase_WidgetToolbox.h
+++ b/
src/ModuleBase/ModuleBase_WidgetToolbox.h
@@
-8,32
+8,32
@@
#ifndef MODULEBASE_WIDGETTOOLBOX_H_
#define MODULEBASE_WIDGETTOOLBOX_H_
#ifndef MODULEBASE_WIDGETTOOLBOX_H_
#define MODULEBASE_WIDGETTOOLBOX_H_
-#include <ModuleBase_ModelWidget.h>
+#include <ModuleBase.h>
+#include <ModuleBase_PagedContainer.h>
#include <QToolBox>
#include <QToolBox>
-class ModuleBase_WidgetToolbox : public ModuleBase_ModelWidget
+class ModuleBase_PageBase;
+
+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();
{
Q_OBJECT
public:
ModuleBase_WidgetToolbox(QWidget* theParent, const Config_WidgetAPI* theData,
const std::string& theParentId);
virtual ~ModuleBase_WidgetToolbox();
-
- virtual bool restoreValue();
- virtual QList<QWidget*> getControls() const;
-
- 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:
protected:
- virtual bool storeValueCustom() const;
-
- protected slots:
- v
oid onPageChanged(
);
+ /// Implements ModuleBase_PagedContainer
+ virtual int currentPageIndex() const;
+ /// Implements ModuleBase_PagedContainer
+ v
irtual void setCurrentPageIndex(int
);
private:
QToolBox* myToolBox;
private:
QToolBox* myToolBox;
- QStringList myCaseIds;
};
#endif /* MODULEBASE_WIDGETTOOLBOX_H_ */
};
#endif /* MODULEBASE_WIDGETTOOLBOX_H_ */