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
Issue #559: Control doesn't have variable if its text is empty
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_IWorkshop.h
diff --git
a/src/ModuleBase/ModuleBase_IWorkshop.h
b/src/ModuleBase/ModuleBase_IWorkshop.h
index e755062f6b4cc51e6a2d0690b919a35531824c99..229b6e2e3c55aac56022606073eac7c327deb6d1 100644
(file)
--- a/
src/ModuleBase/ModuleBase_IWorkshop.h
+++ b/
src/ModuleBase/ModuleBase_IWorkshop.h
@@
-9,6
+9,8
@@
#include "ModuleBase.h"
#include "ModuleBase_Definitions.h"
#include "ModuleBase.h"
#include "ModuleBase_Definitions.h"
+#include <ModuleBase_FilterValidated.h>
+#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_Object.h>
#include <GeomAPI_AISObject.h>
#include <ModelAPI_Object.h>
#include <GeomAPI_AISObject.h>
@@
-18,10
+20,12
@@
class ModuleBase_IModule;
class ModuleBase_ISelection;
class ModuleBase_IViewer;
class ModuleBase_IModule;
class ModuleBase_ISelection;
class ModuleBase_IViewer;
+class ModuleBase_IPropertyPanel;
class ModuleBase_Operation;
class ModuleBase_FilterFactory;
/**
class ModuleBase_Operation;
class ModuleBase_FilterFactory;
/**
+ * \ingroup GUI
* Class which provides access to Workshop object serveces
*/
class MODULEBASE_EXPORT ModuleBase_IWorkshop : public QObject
* Class which provides access to Workshop object serveces
*/
class MODULEBASE_EXPORT ModuleBase_IWorkshop : public QObject
@@
-30,9
+34,7
@@
Q_OBJECT
public:
/// Constructor
/// \param theParent parent object
public:
/// Constructor
/// \param theParent parent object
- ModuleBase_IWorkshop(QObject* theParent)
- : QObject(theParent)
- {}
+ ModuleBase_IWorkshop(QObject* theParent);
virtual ~ModuleBase_IWorkshop()
{}
virtual ~ModuleBase_IWorkshop()
{}
@@
-53,6
+55,13
@@
Q_OBJECT
//! Returns current viewer
virtual ModuleBase_IViewer* viewer() const = 0;
//! Returns current viewer
virtual ModuleBase_IViewer* viewer() const = 0;
+ //! Returns property panel
+ virtual ModuleBase_IPropertyPanel* propertyPanel() const = 0;
+
+ /// A filter to process an attribute validators
+ /// \return a filter
+ Handle(ModuleBase_FilterValidated) validatorFilter();
+
//! Returns the factory of selection filters : the only one instance per application
ModuleBase_FilterFactory* selectionFilters() const;
//! Returns the factory of selection filters : the only one instance per application
ModuleBase_FilterFactory* selectionFilters() const;
@@
-70,7
+79,7
@@
Q_OBJECT
//! Select features clearing previous selection.
//! If the list is empty then selection will be cleared
//! Select features clearing previous selection.
//! If the list is empty then selection will be cleared
- virtual void setSelected(const Q
ObjectPtrList& theFeatur
es) = 0;
+ virtual void setSelected(const Q
List<ModuleBase_ViewerPrs>& theValu
es) = 0;
signals:
/// Signal selection chaged.
signals:
/// Signal selection chaged.
@@
-79,6
+88,9
@@
signals:
/// Signal which is emited after activation of property panel
void propertyPanelActivated();
/// Signal which is emited after activation of property panel
void propertyPanelActivated();
+protected:
+ /// A filter to process an attribute validators
+ Handle(ModuleBase_FilterValidated) myValidatorFilter;
};
#endif
};
#endif