
Public Member Functions | |
| ToolManagerT (MapDocumentT &MapDoc, wxWindow *ParentToolOptions) | |
| The constructor. More... | |
| ~ToolManagerT () | |
| The destructor. More... | |
| const ArrayT< ToolT * > & | GetTools () const |
| Returns the array of all tools registered with and known to the tool manager. More... | |
| ToolT * | GetTool (const cf::TypeSys::TypeInfoT &Type) |
| Returns the tool instance matching the given type. More... | |
| ToolT * | GetActiveTool () const |
| Returns the currently active tool. More... | |
| const cf::TypeSys::TypeInfoT * | GetActiveToolType () const |
| Returns the type of the currently active tool. More... | |
| void | SetActiveTool (const cf::TypeSys::TypeInfoT *Type) |
| Sets the tool of the given type as the currently active tool. More... | |
Public Member Functions inherited from ToolsSubjectT | |
| void | RegisterObserver (ToolsObserverT *Obs) |
| Registers the observer Obs for notification on changes in this class. More... | |
| void | UnregisterObserver (ToolsObserverT *Obs) |
| Unregisters the observer Obs from further notification on changes in this class. More... | |
| void | UpdateAllObservers (ToolT *Tool, ToolsUpdatePriorityT Priority) |
| Notifies all observers that something in the given tool changed so that they update themselves. More... | |
| virtual | ~ToolsSubjectT () |
| The virtual destructor. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ToolsSubjectT | |
| ToolsSubjectT () | |
| The constructor. It is protected so that only derived classes can create instances of this class. More... | |
| ToolManagerT::ToolManagerT | ( | MapDocumentT & | MapDoc, |
| wxWindow * | ParentToolOptions | ||
| ) |
The constructor.
| ToolManagerT::~ToolManagerT | ( | ) |
The destructor.
|
inline |
Returns the currently active tool.
| const cf::TypeSys::TypeInfoT * ToolManagerT::GetActiveToolType | ( | ) | const |
Returns the type of the currently active tool.
This method is just a convenience method that saves the caller the explicit check for NULL when calling GetActiveTool().
| ToolT * ToolManagerT::GetTool | ( | const cf::TypeSys::TypeInfoT & | Type | ) |
Returns the tool instance matching the given type.
NULL is returned when Type is not a type of a valid tool.
Returns the array of all tools registered with and known to the tool manager.
| void ToolManagerT::SetActiveTool | ( | const cf::TypeSys::TypeInfoT * | Type | ) |
Sets the tool of the given type as the currently active tool.