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
Correction of icon
[modules/shaper.git]
/
src
/
PartSetPlugin
/
PartSetPlugin_Plugin.h
diff --git
a/src/PartSetPlugin/PartSetPlugin_Plugin.h
b/src/PartSetPlugin/PartSetPlugin_Plugin.h
index a4c7e336da1c6cc755d351a9698d0b08c11f4396..834c7c8a306b487271467ca9bef55574edb1475f 100644
(file)
--- a/
src/PartSetPlugin/PartSetPlugin_Plugin.h
+++ b/
src/PartSetPlugin/PartSetPlugin_Plugin.h
@@
-1,24
+1,40
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: PartSetPlugin_Plugin.hxx
// Created: 31 Mar 2014
// Author: Mikhail PONIKAROV
// File: PartSetPlugin_Plugin.hxx
// Created: 31 Mar 2014
// Author: Mikhail PONIKAROV
-#ifndef PartSetPlugin_Plugin_HeaderFile
-#define PartSetPlugin_Plugin_HeaderFile
+#ifndef PartSetPlugin_Plugin_H_
+#define PartSetPlugin_Plugin_H_
+
+#include <PartSetPlugin.h>
+#include <ModelAPI_Plugin.h>
+#include <ModelAPI_Feature.h>
+#include <ModelAPI_Events.h>
+#include <Events_Listener.h>
-#include "PartSetPlugin.h"
-#include "ModelAPI_Plugin.h"
+#include <memory>
-class PARTSETPLUGIN_EXPORT PartSetPlugin_Plugin: public ModelAPI_Plugin
+/**\class PartSetPlugin_Plugin
+ * \ingroup Plugins
+ * \brief The main class for management the part set operations as plugin.
+ */
+class PARTSETPLUGIN_EXPORT PartSetPlugin_Plugin : public ModelAPI_Plugin,
+ public Events_Listener
{
{
-public:
+
public:
/// Creates the feature object of this plugin by the feature string ID
/// Creates the feature object of this plugin by the feature string ID
- virtual std::shared_ptr<ModelAPI_Feature> createFeature(
- std::string theFeatureID, const bool theAddToDoc);
+ virtual FeaturePtr createFeature(std::string theFeatureID);
-public:
/// Is needed for python wrapping by swig
PartSetPlugin_Plugin();
/// Is needed for python wrapping by swig
PartSetPlugin_Plugin();
+
+ //! Redefinition of Events_Listener method
+ virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
+ //! Performs the chenges of enabled/disabled state in the toolbar
+ //! due to the current state of the application.
+ std::shared_ptr<ModelAPI_FeatureStateMessage> getFeaturesState();
};
#endif
};
#endif