Workspace 6.21.5
Public Member Functions | List of all members
SelectedEvent Class Reference

Event emitted by an object when it is selected or deselected. More...

#include <Workspace/Presentation/operationviewevents.h>

Inheritance diagram for SelectedEvent:
[legend]

Public Member Functions

 SelectedEvent (bool selected)
 
bool getSelectionState () const
 
- Public Member Functions inherited from ObservableEventType< SelectedEvent >
CSIRO_WORKSPACE_API const EventIDSingleton< CSIRO::DataExecution::AllObservableEvents > & eventID ()
 
CSIRO_WORKSPACE_API const EventIDSingleton< CSIRO::DataExecution::ProgressEvent > & eventID ()
 
const EventIDSingleton< SelectedEvent > & getEventID () const override
 
- Public Member Functions inherited from ObservableEvent
virtual ~ObservableEvent ()=default
 
virtual const EventIDgetEventID () const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from ObservableEventType< SelectedEvent >
static const EventIDSingleton< SelectedEvent > & eventID ()
 
- Protected Member Functions inherited from ObservableEventType< SelectedEvent >
 ObservableEventType ()=default
 

Detailed Description

This event is currently only raised by operations. Raising this event on an operation is the correct way to select it, since there could be multiple OperationView's attached to it and they should all reflect the selection state. They will do this if you use a SelectedEvent notification because they observe this event and respond accordingly. They also inform their parent WorkspaceView.

Constructor & Destructor Documentation

◆ SelectedEvent()

SelectedEvent ( bool  selected)
inline

Member Function Documentation

◆ getSelectionState()

bool getSelectionState ( ) const
inline