#include <LightApp_ShowHideOp.h>

Public Types | |
| enum | ActionType { DISPLAY, ERASE, DISPLAY_ONLY, ERASE_ALL } |
Public Member Functions | |
| LightApp_ShowHideOp (ActionType) | |
| ~LightApp_ShowHideOp () | |
Public Member Functions inherited from LightApp_Operation | |
| LightApp_Operation () | |
| Constructor. More... | |
| virtual | ~LightApp_Operation () |
| Destructor. More... | |
| virtual void | setModule (LightApp_Module *) |
| Sets module of operation. More... | |
| LightApp_Module * | module () const |
| Gets module of operation. More... | |
| bool | isAutoResumed () const |
| Gets autoresume property. More... | |
| virtual LightApp_Dialog * | dlg () const |
| Gets dialog. More... | |
Public Member Functions inherited from SUIT_Operation | |
| SUIT_Operation (SUIT_Application *) | |
| Constructor. More... | |
| virtual | ~SUIT_Operation () |
| Destructor. More... | |
| OperationState | state () const |
| Gets state of operation. More... | |
| bool | isActive () const |
| Verifies whether operation is an active for study. More... | |
| bool | isRunning () const |
| Verifies whether operation is an runned one (state()==Running) More... | |
| SUIT_Study * | study () const |
| Returns operation study. More... | |
| virtual void | setStudy (SUIT_Study *theStudy) |
| Sets operation study. More... | |
| SUIT_Application * | application () const |
| Gets application. More... | |
| virtual void | setApplication (SUIT_Application *theApp) |
| Sets application. More... | |
| virtual bool | isValid (SUIT_Operation *theOtherOp) const |
| Verifies whether given operator is valid for this one. More... | |
| virtual bool | isGranted () const |
| Verifies whether this operator can be always started above any already runnig one. More... | |
| bool | setSlot (const QObject *theReceiver, const char *theSlot) |
| Sets slot which is called when operation is started. More... | |
| void | setFlags (const int) |
| Sets the flags of operation. More... | |
| void | clearFlags (const int) |
| Clears the flags of operation. More... | |
| bool | testFlags (const int) const |
| Test the flags of operation. More... | |
| virtual QString | operationName () const |
| Name of the operation. More... | |
| int | execStatus () const |
| Gets execution status. More... | |
Protected Member Functions | |
| virtual void | startOperation () |
Protected Member Functions inherited from LightApp_Operation | |
| virtual void | suspendOperation () |
| Performs actions needed for suspending operation. More... | |
| virtual void | resumeOperation () |
| Enable dialog of operation. More... | |
| virtual void | abortOperation () |
| Performs actions needed for aborting operation. More... | |
| virtual void | commitOperation () |
| Performs actions needed for committing operation. More... | |
| virtual void | setDialogActive (const bool) |
| Activate/Deactivate dialog of operation. More... | |
| virtual void | activateSelection () |
| Activates selection. More... | |
| virtual void | selectionDone () |
| Virtual method called when selection is changed. More... | |
| SUIT_Desktop * | desktop () const |
| Gets desktop of operation. More... | |
| SUIT_Operation * | activeOperation () const |
| Gets active operation. More... | |
| LightApp_SelectionMgr * | selectionMgr () const |
| Gets selection manager. More... | |
| void | update (const int) |
| Update object browser or/and viewer etc. More... | |
| void | setAutoResumed (const bool) |
| Sets autoresume property. More... | |
Protected Member Functions inherited from SUIT_Operation | |
| virtual bool | isReadyToStart () const |
| Verifies whether operator is ready to start. More... | |
| virtual void | stopOperation () |
| Virtual method called when operation is started. More... | |
| virtual bool | openTransaction () |
| Opens transaction for data modifications. More... | |
| virtual bool | abortTransaction () |
| Aborts transaction and all performed data modifications. More... | |
| virtual bool | hasTransaction () const |
Returns true if transaction is opened. More... | |
| virtual bool | commitTransaction (const QString &=QString()) |
| Commits transaction and all performed data modifications. More... | |
| void | setExecStatus (const int) |
| Sets execution status. More... | |
| void | setState (const OperationState) |
| Sets state of operation. More... | |
| void | start (SUIT_Operation *, const bool=false) |
| Starts operator above this one. More... | |
Private Attributes | |
| ActionType | myActionType |
Additional Inherited Members | |
Public Slots inherited from SUIT_Operation | |
| void | start () |
| Starts operation. More... | |
| void | abort () |
| Aborts operation. More... | |
| void | commit () |
| Commits operation. More... | |
| void | resume () |
| Resumes operation. More... | |
| void | suspend () |
| Suspend operation. More... | |
Signals inherited from SUIT_Operation | |
| void | started (SUIT_Operation *) |
| void | aborted (SUIT_Operation *) |
| void | committed (SUIT_Operation *) |
| void | stopped (SUIT_Operation *) |
| void | resumed (SUIT_Operation *) |
| void | suspended (SUIT_Operation *) |
| void | callSlot () |
Standard operation allowing to show/hide selected objects corresponding to any module with help of module displayer
| LightApp_ShowHideOp::LightApp_ShowHideOp | ( | ActionType | type | ) |
Constructor
| LightApp_ShowHideOp::~LightApp_ShowHideOp | ( | ) |
Destructor
|
protectedvirtual |
Makes show/hide operation
Reimplemented from LightApp_Operation.
References SUIT_Operation::abort(), CAM_Application::activeModule(), SUIT_Application::activeStudy(), app, SUIT_Operation::application(), LightApp_Study::children(), SUIT_Operation::commit(), LightApp_Study::components(), LightApp_Selection::count(), LightApp_Module::createSelection(), DISPLAY, LightApp_Displayer::Display(), DISPLAY_ONLY, ERASE, LightApp_Displayer::Erase(), ERASE_ALL, LightApp_Displayer::EraseAll(), LightApp_Displayer::FindDisplayer(), LightApp_Selection::init(), LightApp_Study::isComponent(), CAM_Application::moduleTitle(), myActionType, CAM_Module::name(), LightApp_Selection::parameter(), LightApp_Study::referencedToEntry(), LightApp_SelectionMgr::selectedObjects(), LightApp_Application::selectionMgr(), LightApp_SelectionMgr::setSelectedObjects(), SUIT_Operation::study(), and LightApp_Displayer::UpdateViewer().
|
private |