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
Extension of Parameters interface: to set/get double values of results
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_IWidgetCreator.h
diff --git
a/src/ModuleBase/ModuleBase_IWidgetCreator.h
b/src/ModuleBase/ModuleBase_IWidgetCreator.h
index 953d494c0c7a8349663ebd18f21461979efa2ac5..b3018f044aa2f9fd30f0dfa69ebcd4bf9f537ab3 100755
(executable)
--- a/
src/ModuleBase/ModuleBase_IWidgetCreator.h
+++ b/
src/ModuleBase/ModuleBase_IWidgetCreator.h
@@
-5,6
+5,8
@@
#include "ModuleBase.h"
#include "ModuleBase.h"
+#include "ModelAPI_Feature.h"
+
#include <set>
#include <string>
#include <memory>
#include <set>
#include <string>
#include <memory>
@@
-31,40
+33,48
@@
public:
~ModuleBase_IWidgetCreator();
/// Returns a container of possible page types, which this creator can process
~ModuleBase_IWidgetCreator();
/// Returns a container of possible page types, which this creator can process
- /// \returns list of type names
- virtual const std::set<std::string>& panelTypes();
+ /// The default implementation is empty
+ /// \param theTypes a list of type names
+ virtual void panelTypes(std::set<std::string>& theTypes) {}
/// Returns a container of possible page types, which this creator can process
/// Returns a container of possible page types, which this creator can process
- /// \returns list of type names
- virtual const std::set<std::string>& pageTypes();
+ /// The default implementation is empty
+ /// \param theTypes a list of type names
+ virtual void pageTypes(std::set<std::string>& theTypes) {}
/// Returns a container of possible widget types, which this creator can process
/// Returns a container of possible widget types, which this creator can process
- /// \
returns
list of type names
- virtual
const std::set<std::string>& widgetTypes();
+ /// \
param theTypes a
list of type names
+ virtual
void widgetTypes(std::set<std::string>& theTypes) {}
/// Create panel control by its type.
/// Create panel control by its type.
+ /// The default implementation is empty
/// \param theType a panel type
/// \param theParent a parent widget
/// \param theType a panel type
/// \param theParent a parent widget
+ /// \param theFeature a feature modified in the panel
/// \return created widget or null
virtual QWidget* createPanelByType(const std::string& theType,
/// \return created widget or null
virtual QWidget* createPanelByType(const std::string& theType,
- QWidget* theParent) {};
+ QWidget* theParent,
+ const FeaturePtr& theFeature);
/// Create page by its type
/// Create page by its type
+ /// The default implementation is empty
/// \param theType a type
/// \param theParent a parent widget
/// \param theType a type
/// \param theParent a parent widget
- /// \param the
Data
a low-level API for reading xml definitions of widgets
+ /// \param the
WidgetApi
a low-level API for reading xml definitions of widgets
virtual ModuleBase_PageBase* createPageByType(const std::string& theType,
QWidget* theParent,
virtual ModuleBase_PageBase* createPageByType(const std::string& theType,
QWidget* theParent,
- Config_WidgetAPI* theWidgetApi)
{}
;
+ Config_WidgetAPI* theWidgetApi);
/// Create widget by its type
/// Create widget by its type
+ /// The default implementation is empty
/// \param theType a type
/// \param theParent a parent widget
/// \param theType a type
/// \param theParent a parent widget
- /// \param theData a low-level API for reading xml definitions of widgets
+ /// \param theWidgetApi a low-level API for reading xml definitions of widgets
+ /// \param theWorkshop a workshop class instance
virtual ModuleBase_ModelWidget* createWidgetByType(const std::string& theType,
QWidget* theParent,
Config_WidgetAPI* theWidgetApi,
virtual ModuleBase_ModelWidget* createWidgetByType(const std::string& theType,
QWidget* theParent,
Config_WidgetAPI* theWidgetApi,
- ModuleBase_IWorkshop* theWorkshop)
{}
;
+ ModuleBase_IWorkshop* theWorkshop);
};
typedef std::shared_ptr<ModuleBase_IWidgetCreator> WidgetCreatorPtr;
};
typedef std::shared_ptr<ModuleBase_IWidgetCreator> WidgetCreatorPtr;