MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
MAKLogger::DtLgrGuiComponent Class Reference

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 QWidgetinitialize (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 QWidgetcontainer ()
 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 DtLgrZoomableWidgetzoomComponent ()=0
 Access component as zoom component, return NULL if component is not a zoom component.

Protected Member Functions

 DtLgrGuiComponent (QString name)

Protected Attributes

QWidgetmyContainer
QTimer * myTimer
QString myName
QIcon myIconSet
QKeySequence mySequence

Detailed Description

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; } }

Constructor & Destructor Documentation

virtual MAKLogger::DtLgrGuiComponent::~DtLgrGuiComponent ( )
virtual

Default Destructor.

MAKLogger::DtLgrGuiComponent::DtLgrGuiComponent ( QString  name)
protected

Member Function Documentation

virtual void MAKLogger::DtLgrGuiComponent::activate ( )
pure virtual
virtual bool MAKLogger::DtLgrGuiComponent::canCloseFile ( ) const
virtual

This method provides a way for components to control whether the application can close a file.

Return values
trueThe component allows the file to be closed.
falseThe component does not want the file closed.

Reimplemented in MAKLogger::DtLgrAnnotationComponent, MAKLogger::DtStateObserverView, and MAKLogger::DtLgrMediaStreamView.

virtual bool MAKLogger::DtLgrGuiComponent::canExit ( ) const
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.

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

Reimplemented in MAKLogger::DtLgrAnnotationComponent.

virtual QWidget* MAKLogger::DtLgrGuiComponent::container ( )
virtual

Get the container widget.

Components are placed inside widgets.

virtual void MAKLogger::DtLgrGuiComponent::deactivate ( )
pure virtual
virtual const QIcon& MAKLogger::DtLgrGuiComponent::iconSet ( ) const
virtual

Get an optional icon set. By default returns null QIconSet.

virtual QWidget* MAKLogger::DtLgrGuiComponent::initialize ( QWidget parent)
pure virtual
virtual QString MAKLogger::DtLgrGuiComponent::name ( ) const
virtual

Get the component name.

virtual void MAKLogger::DtLgrGuiComponent::release ( QWidget parent)
virtual

The component is being removed.

It should perform any clean up associated with connections to the GUI.

Reimplemented in MAKLogger::DtTrafficAnalyzerComponent.

virtual void MAKLogger::DtLgrGuiComponent::setContainer ( QWidget widget)
virtual

Sets the container.

virtual void MAKLogger::DtLgrGuiComponent::setIconSet ( const QIcon &  iconSet)
virtual
virtual void MAKLogger::DtLgrGuiComponent::setKeySequence ( const QKeySequence &  sequence)
virtual

Set the key sequence of the view component menu item.

virtual QKeySequence MAKLogger::DtLgrGuiComponent::shortcut ( ) const
virtual

Get the component's accelerator.

virtual void MAKLogger::DtLgrGuiComponent::startTimer ( QObject parent)
virtual

Called to start the update timer.

virtual void MAKLogger::DtLgrGuiComponent::stopTimer ( )
virtual

Called to stop the update timer.

virtual void MAKLogger::DtLgrGuiComponent::update ( )
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, MAKLogger::DtLgrMediaStreamView, and MAKLogger::DtLgrDataViewComponent.

virtual double MAKLogger::DtLgrGuiComponent::updateTime ( )
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, MAKLogger::DtLgrMediaStreamView, and MAKLogger::DtLgrDataViewComponent.

virtual DtLgrZoomableWidget* MAKLogger::DtLgrGuiComponent::zoomComponent ( )
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, MAKLogger::DtLgrMediaStreamView, and MAKLogger::DtLgrDataViewComponent.

Member Data Documentation

QWidget* MAKLogger::DtLgrGuiComponent::myContainer
protected
QIcon MAKLogger::DtLgrGuiComponent::myIconSet
protected
QString MAKLogger::DtLgrGuiComponent::myName
protected
QKeySequence MAKLogger::DtLgrGuiComponent::mySequence
protected
QTimer* MAKLogger::DtLgrGuiComponent::myTimer
protected

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

Document ID: Generated on Tue Aug 1 09:00:26 EDT 2017 from SVN revision 179128
Copyright © 2017 VT MÄK. All Rights Reserved (www.mak.com)