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
New design of icons
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_Workshop.h
diff --git
a/src/XGUI/XGUI_Workshop.h
b/src/XGUI/XGUI_Workshop.h
index 93feade454c43737fa6e241ec85b4554d2ea67f2..351149422277926dee96b37af8b04e28976fe8a5 100644
(file)
--- a/
src/XGUI/XGUI_Workshop.h
+++ b/
src/XGUI/XGUI_Workshop.h
@@
-20,23
+20,24
@@
class AppElements_MainWindow;
class AppElements_Command;
class AppElements_Workbench;
class AppElements_Command;
class AppElements_Workbench;
-class XGUI_SelectionMgr;
+class XGUI_ActionsMgr;
+class XGUI_ContextMenuMgr;
class XGUI_Displayer;
class XGUI_Displayer;
+class XGUI_ErrorDialog;
+class XGUI_ErrorMgr;
+class XGUI_ModuleConnector;
+class XGUI_ObjectsBrowser;
class XGUI_OperationMgr;
class XGUI_OperationMgr;
+class XGUI_PropertyPanel;
class XGUI_SalomeConnector;
class XGUI_SalomeConnector;
-class XGUI_ObjectsBrowser;
-class XGUI_ActionsMgr;
-class XGUI_ErrorDialog;
class XGUI_SalomeViewer;
class XGUI_SalomeViewer;
+class XGUI_SelectionMgr;
class XGUI_ViewerProxy;
class XGUI_ViewerProxy;
-class XGUI_PropertyPanel;
-class XGUI_ContextMenuMgr;
-class XGUI_ModuleConnector;
class XGUI_WorkshopListener;
class XGUI_WorkshopListener;
-class ModuleBase_Operation;
class ModuleBase_IModule;
class ModuleBase_IViewer;
class ModuleBase_IModule;
class ModuleBase_IViewer;
+class ModuleBase_Operation;
class QWidget;
class QDockWidget;
class QWidget;
class QDockWidget;
@@
-163,6
+164,11
@@
Q_OBJECT
//! Move selected features to be after the current feature
void moveObjects();
//! Move selected features to be after the current feature
void moveObjects();
+ //! Returns true if the object can be shaded. If the object is a compsolid result, the method
+ //! checks subobjects of the result
+ //! \return boolean value
+ bool canBeShaded(const ObjectPtr& theObject) const;
+
//! Returns true if there is at least one selected body/construction/group result
//! \return boolean value
bool canChangeColor() const;
//! Returns true if there is at least one selected body/construction/group result
//! \return boolean value
bool canChangeColor() const;
@@
-208,7
+214,7
@@
Q_OBJECT
* - operation aborted successfully
* - there is no active operation
*/
* - operation aborted successfully
* - there is no active operation
*/
- bool
isActiveOperationAborted
();
+ bool
abortAllOperations
();
//! Delete features. Delete the referenced features. There can be a question with a list of referenced
//! objects.
//! Delete features. Delete the referenced features. There can be a question with a list of referenced
//! objects.
@@
-219,7
+225,7
@@
Q_OBJECT
//! objects features appear. If the user chose do not continue, the deletion is not performed
//! \return the success of the delete
bool deleteFeatures(const QObjectPtrList& theList,
//! objects features appear. If the user chose do not continue, the deletion is not performed
//! \return the success of the delete
bool deleteFeatures(const QObjectPtrList& theList,
- const std::set<FeaturePtr>& theIgnoredFeatures,
+ const std::set<FeaturePtr>& theIgnoredFeatures
= std::set<FeaturePtr>()
,
QWidget* theParent = 0,
const bool theAskAboutDeleteReferences = false);
QWidget* theParent = 0,
const bool theAskAboutDeleteReferences = false);
@@
-294,26
+300,20
@@
signals:
/// Hide object Browser
void hideObjectBrowser();
/// Hide object Browser
void hideObjectBrowser();
- /// Reaction on command call
- //void onFeatureTriggered();
-
/// Close document
void closeDocument();
protected:
/// Close document
void closeDocument();
protected:
- /// Find the nested features and set them into the operation
+ /// Sets the granted operations for the parameter operation. Firtsly, it finds the nested features
+ /// and set them into the operation. Secondly, it asks the module about ids of granted operations.
/// \param theOperation an operation
/// \param theOperation an operation
-
void setNes
tedFeatures(ModuleBase_Operation* theOperation);
+
void setGran
tedFeatures(ModuleBase_Operation* theOperation);
/// Update the property panel content by the XML description of the operation and set the panel
/// into the operation
/// \param theOperation an operation
void setPropertyPanel(ModuleBase_Operation* theOperation);
/// Update the property panel content by the XML description of the operation and set the panel
/// into the operation
/// \param theOperation an operation
void setPropertyPanel(ModuleBase_Operation* theOperation);
- /// Connect to operation signals
- /// \param theOperation an operation
- void connectWithOperation(ModuleBase_Operation* theOperation);
-
private:
/// Display all results
//void displayAllResults();
private:
/// Display all results
//void displayAllResults();
@@
-395,6
+395,7
@@
private:
private:
AppElements_MainWindow* myMainWindow;
ModuleBase_IModule* myModule;
private:
AppElements_MainWindow* myMainWindow;
ModuleBase_IModule* myModule;
+ XGUI_ErrorMgr* myErrorMgr;
XGUI_ObjectsBrowser* myObjectBrowser;
XGUI_PropertyPanel* myPropertyPanel;
XGUI_SelectionMgr* mySelector;
XGUI_ObjectsBrowser* myObjectBrowser;
XGUI_PropertyPanel* myPropertyPanel;
XGUI_SelectionMgr* mySelector;