![]() |
MAK Data Logger API Documentation for HLA
|
Provides the base interface for Logger Application gui components. More...
Inheritance diagram for MAKLogger::DtLgrGuiComponent:
Collaboration diagram for MAKLogger::DtLgrGuiComponent:Public Slots | |
| virtual void | update ()=0 |
| Called repeatedly by the host application in the GUI thread. | |
Public Member Functions | |
| virtual | ~DtLgrGuiComponent () |
| Default Destructor. | |
| virtual void | startTimer (QObject *parent) |
| Called to start the update timer. | |
| virtual void | stopTimer () |
| Called to stop the update timer. | |
| virtual QWidget * | initialize (QWidget *parent)=0 |
| This method is called when the logger Gui has been initialized. | |
| virtual void | release (QWidget *parent) |
| The component is being removed. | |
| virtual void | activate ()=0 |
| This method is called when the component is shown. | |
| virtual void | deactivate ()=0 |
| 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 ()=0 |
| Returns the desired times between updates in seconds. | |
| virtual QWidget * | container () |
| Get the container widget. | |
| virtual void | setContainer (QWidget *widget) |
| Sets the container. | |
| virtual const QIcon & | iconSet () const |
| Get an optional icon set. By default returns null QIconSet. | |
| virtual void | setIconSet (const QIcon &iconSet) |
| virtual QString | name () const |
| Get the component name. | |
| virtual QKeySequence | shortcut () const |
| Get the component's accelerator. | |
| virtual void | setKeySequence (const QKeySequence &sequence) |
| Set the key sequence of the view component menu item. | |
| virtual DtLgrZoomableWidget * | zoomComponent ()=0 |
| Access component as zoom component, return NULL if component is not a zoom component. | |
Protected Member Functions | |
| DtLgrGuiComponent (QString name) | |
Protected Attributes | |
| QWidget * | myContainer |
| QTimer * | myTimer |
| QString | myName |
| QIcon | myIconSet |
| QKeySequence | mySequence |
Provides the base interface for Logger Application gui components.
class SimpleComponent : public DtLgrGuiComponent, public DtZoomComponent, public DtTimeComponent { virtual DtZoomComponent* zoomComponent() { return this; } virtual DtTimeComponent* timeComponent() { return this; } }
|
virtual |
Default Destructor.
|
protected |
|
pure virtual |
This method is called when the component is shown.
Implemented in MAKLogger::DtTrafficAnalyzerComponent, MAKLogger::DtStateObserverView, MAKLogger::DtLgrAnnotationComponent, and MAKLogger::DtLgrDataViewComponent.
|
virtual |
This method provides a way for components to control whether the application can close a file.
| true | The component allows the file to be closed. |
| false | The component does not want the file closed. |
Reimplemented in MAKLogger::DtLgrAnnotationComponent, and MAKLogger::DtStateObserverView.
|
virtual |
This method provides a way for components to control whether the application can quit.
The mainWindow calls canQuit for all components and all components must return true for the program to quit.
| true | The component can quit. |
| false | The component does not want to quit. |
Reimplemented in MAKLogger::DtLgrAnnotationComponent.
|
virtual |
Get the container widget.
Components are placed inside widgets.
|
pure virtual |
This method is called when the component is hidden.
Implemented in MAKLogger::DtTrafficAnalyzerComponent, MAKLogger::DtStateObserverView, MAKLogger::DtLgrAnnotationComponent, and MAKLogger::DtLgrDataViewComponent.
|
virtual |
Get an optional icon set. By default returns null QIconSet.
This method is called when the logger Gui has been initialized.
Returns the components main widget
Implemented in MAKLogger::DtTrafficAnalyzerComponent, MAKLogger::DtStateObserverView, MAKLogger::DtLgrAnnotationComponent, MAKLogger::DtLgrDataViewComponent, and MAKLogger::DtLgrSizeViewComponent.
|
virtual |
Get the component name.
|
virtual |
The component is being removed.
It should perform any clean up associated with connections to the GUI.
Reimplemented in MAKLogger::DtTrafficAnalyzerComponent.
|
virtual |
Sets the container.
|
virtual |
|
virtual |
Set the key sequence of the view component menu item.
|
virtual |
Get the component's accelerator.
|
virtual |
Called to start the update timer.
|
virtual |
Called to stop the update timer.
|
pure virtualslot |
Called repeatedly by the host application in the GUI thread.
The time between calls is controlled by updateTime.
Implemented in MAKLogger::DtStateObserverView, MAKLogger::DtLgrAnnotationComponent, and MAKLogger::DtLgrDataViewComponent.
|
pure 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.
Implemented in MAKLogger::DtStateObserverView, MAKLogger::DtLgrAnnotationComponent, MAKLogger::DtTrafficAnalyzerComponent, and MAKLogger::DtLgrDataViewComponent.
|
pure 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.
Implemented in MAKLogger::DtLgrAnnotationComponent, MAKLogger::DtStateObserverView, MAKLogger::DtTrafficAnalyzerComponent, and MAKLogger::DtLgrDataViewComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |