Public Member Functions | Protected Attributes | Private Member Functions
MAKLogger::DtLgrAnnotationComponent Class Reference

Creates View and Slots, and implements standard Logger GUI Component methods. More...

+ Inheritance diagram for MAKLogger::DtLgrAnnotationComponent:
+ Collaboration diagram for MAKLogger::DtLgrAnnotationComponent:

List of all members.

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 QWidgetinitialize (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 DtLgrAnnotationViewview () const
 Get view, if widget has not been called this will return null.
virtual DtLgrZoomableWidgetzoomComponent ()
 Access component as zoom component.
virtual DtLoggerApplicationapplication ()
 Get the logger application in use.
virtual const DtLoggerApplicationapplication () const
DtLgrAnnotationManagermanager ()
 Provide access to high level annotation related functionality.
virtual DtLgrGuiModelmodel ()
 Get the gui model, this pointer will be null, until initialize has been called.
virtual const DtLgrGuiModelmodel () const
 Get the gui model, this pointer will be null, until initialize has been called.

Protected Attributes

DtLoggerApplicationmyApplication
DtLgrGuiModelmyModel
DtLgrAnnotationViewmyAnnotationView
DtLgrAnnotationManagermyManager
DtLgrAnnotationSlotsmySlots
bool myActivatedFlag

Private Member Functions

 DtLgrAnnotationComponent (const DtLgrAnnotationComponent &)
 Not Implemented.
DtLgrAnnotationComponentoperator= (const DtLgrAnnotationComponent &)
 Not Implemented.

Detailed Description

Creates View and Slots, and implements standard Logger GUI Component methods.


Member Function Documentation

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.

Return values:
trueThe component allows the file to be closed.
falseThe 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.

Return values:
trueThe component can quit.
falseThe component does not want to quit.

Reimplemented from MAKLogger::DtLgrGuiComponent.

virtual QWidget* MAKLogger::DtLgrAnnotationComponent::initialize ( QWidget parent) [virtual]

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.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)