class XGUI_ContextMenuMgr;
class XGUI_Displayer;
class XGUI_ErrorDialog;
+class XGUI_ErrorMgr;
class XGUI_ModuleConnector;
class XGUI_ObjectsBrowser;
class XGUI_OperationMgr;
//! 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;
* - 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.
/// Update of commands status
void updateCommandStatus();
- // Update enable state of accept all button. It is enabled if the the parent operation is
- // valid and there are modifications in sesstion(undo can be performed).
- void updateCompositeActionState();
-
/// update history list (undo/redo commands)
void updateHistory();
/// Hide object Browser
void hideObjectBrowser();
- /// Reaction on command call
- //void onFeatureTriggered();
-
/// 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
- void setNestedFeatures(ModuleBase_Operation* theOperation);
+ void setGrantedFeatures(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:
AppElements_MainWindow* myMainWindow;
ModuleBase_IModule* myModule;
+ XGUI_ErrorMgr* myErrorMgr;
XGUI_ObjectsBrowser* myObjectBrowser;
XGUI_PropertyPanel* myPropertyPanel;
XGUI_SelectionMgr* mySelector;