Creates View and Slots, and implements standard Logger GUI Component methods. More...
Inheritance diagram for MAKLogger::DtLgrAnnotationComponent:
Collaboration diagram for MAKLogger::DtLgrAnnotationComponent:Public Member Functions | |
| DtLgrAnnotationComponent (DtLoggerApplication &application) | |
| virtual void | showComponent () |
| This method will cause the component to be shown. | |
| virtual void | hideComponent () |
| This method will cause the component to be hidden. | |
| virtual QWidget * | initialize (QWidget *parent) |
| Creates View and Slots (after the GUI has been initialized). | |
| virtual void | activate () |
| This method is called when the component is shown. | |
| virtual void | deactivate () |
| This method is called when the component is hidden. | |
| virtual bool | canExit () const |
| This method provides a way for components to control whether the application can quit. | |
| virtual bool | canCloseFile () const |
| This method provides a way for components to control whether the application can close a file. | |
| virtual double | updateTime () |
| Returns the desired times between updates in seconds. | |
| virtual void | update () |
| Called repeatedly by the host application in the GUI thread. | |
| const DtLgrAnnotationView * | view () const |
| Get view, if widget has not been called this will return null. | |
| virtual DtLgrZoomableWidget * | zoomComponent () |
| Access component as zoom component. | |
| virtual DtLoggerApplication & | application () |
| Get the logger application in use. | |
| virtual const DtLoggerApplication & | application () const |
| DtLgrAnnotationManager * | manager () |
| Provide access to high level annotation related functionality. | |
| virtual DtLgrGuiModel * | model () |
| Get the gui model, this pointer will be null, until initialize has been called. | |
| virtual const DtLgrGuiModel * | model () const |
| Get the gui model, this pointer will be null, until initialize has been called. | |
Protected Attributes | |
| DtLoggerApplication & | myApplication |
| DtLgrGuiModel * | myModel |
| DtLgrAnnotationView * | myAnnotationView |
| DtLgrAnnotationManager * | myManager |
| DtLgrAnnotationSlots * | mySlots |
| bool | myActivatedFlag |
Private Member Functions | |
| DtLgrAnnotationComponent (const DtLgrAnnotationComponent &) | |
| Not Implemented. | |
| DtLgrAnnotationComponent & | operator= (const DtLgrAnnotationComponent &) |
| Not Implemented. | |
Creates View and Slots, and implements standard Logger GUI Component methods.
| virtual bool MAKLogger::DtLgrAnnotationComponent::canCloseFile | ( | ) | const [virtual] |
This method provides a way for components to control whether the application can close a file.
The component which check to see if the annotation file is saved or not.
| true | The component allows the file to be closed. |
| false | The component does not want the file closed. |
Reimplemented from MAKLogger::DtLgrGuiComponent.
| virtual bool MAKLogger::DtLgrAnnotationComponent::canExit | ( | ) | const [virtual] |
This method provides a way for components to control whether the application can quit.
The component which check to see if the annotation file is saved or not.
| true | The component can quit. |
| false | The component does not want to quit. |
Reimplemented from MAKLogger::DtLgrGuiComponent.
Creates View and Slots (after the GUI has been initialized).
Adds View to Manager. Adds View->menu to menubar. Connects EventHandler signals to View and Slots.
Implements MAKLogger::DtLgrGuiComponent.
| virtual DtLgrGuiModel* MAKLogger::DtLgrAnnotationComponent::model | ( | ) | [virtual] |
Get the gui model, this pointer will be null, until initialize has been called.
| virtual const DtLgrGuiModel* MAKLogger::DtLgrAnnotationComponent::model | ( | ) | const [virtual] |
Get the gui model, this pointer will be null, until initialize has been called.
| virtual void MAKLogger::DtLgrAnnotationComponent::update | ( | ) | [virtual] |
Called repeatedly by the host application in the GUI thread.
The time between calls is controlled by updateTime.
Implements MAKLogger::DtLgrGuiComponent.
| virtual double MAKLogger::DtLgrAnnotationComponent::updateTime | ( | ) | [virtual] |
Returns the desired times between updates in seconds.
If updateTime returns 1.0 the component will be updated every second, if it is 0.5 the component will be updated every 30 seconds. Return -1 if update should not be called.
Implements MAKLogger::DtLgrGuiComponent.
| virtual DtLgrZoomableWidget* MAKLogger::DtLgrAnnotationComponent::zoomComponent | ( | ) | [virtual] |
Access component as zoom component.
Return NULL if component is not a zoom component. This interface will be used to automatically connect and disconnect the zoom component slots.
Implements MAKLogger::DtLgrGuiComponent.