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 Types | Protected Attributes | Static Protected Attributes
MAKLogger::DtStateObserverView Class Reference

The DtStateObserverView represents the view for the state observer which is part of a standard Model-View-Controller interface. More...

+ Inheritance diagram for MAKLogger::DtStateObserverView:
+ Collaboration diagram for MAKLogger::DtStateObserverView:

Public Slots

void fileOpenChanged (QString fileName)
void connectionStatusChanged (bool connected)
- Public Slots inherited from MAKLogger::DtLgrGuiComponent

Public Member Functions

 DtStateObserverView (DtLgrAppGui *, DtStateObserverController *)
 CTOR.
virtual ~DtStateObserverView ()
 DTOR.
void setTotalObjectCount (int count)
 Set the total object count.
void setRemovedObjectCount (int count)
 Set the total removed object count.
void setUnknownObjectCount (int count)
 Set the total unknown object count.
void setEntityCount (int count)
 Set the total entity count.
void setAggregateCount (int count)
 Set the total aggregate count.
void setEnvironmentalProcessCount (int count)
 Set the total environment process count.
virtual QWidgetinitialize (QWidget *parent)
 THis method is called 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 canCloseFile () const
 This method is called when the file is going to be closed.
void startView ()
 Start the view updating.
void stopView ()
 Stop the view from updating.
void clearView ()
 Clear the view of updates.
virtual double updateTime ()
 Returns the desired times between updates in seconds.
virtual void update ()
 Called repeatedly by the host application in the GUI thread.
virtual
MAKLogger::DtLgrZoomableWidget
zoomComponent ()
 Access component as zoom component, return NULL if component is not a zoom component.
- Public Member Functions inherited from MAKLogger::DtLgrGuiComponent
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 void release (QWidget *parent)
 The component is being removed.
virtual bool canExit () const
 This method provides a way for components to control whether the application can quit.
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.

Protected Types

enum  GraphIds {
  Graph_TotalObjectCount = 1, Graph_RemovedObjectCount, Graph_UnknownObjectCount, Graph_EntityCount,
  Graph_AggregateCount, Graph_EnvironmentalProcessCount
}

Protected Attributes

DtLgrAppGuimyGui
DtLgrGuiModelmyModel
DtStateObserverControllermyController
MAKLogger::DtProgressiveLineGraphmyGraph
DtStateObjectViewWidgetmyWidget
bool myActiveState
int myCurrentUpdateCount
DtAbsoluteTime myLastGraphTime
- Protected Attributes inherited from MAKLogger::DtLgrGuiComponent
QWidgetmyContainer
QTimer * myTimer
QString myName
QIcon myIconSet
QKeySequence mySequence

Static Protected Attributes

static const int theRequestUpdateRate = 10

Additional Inherited Members

- Protected Member Functions inherited from MAKLogger::DtLgrGuiComponent
 DtLgrGuiComponent (QString name)

Detailed Description

The DtStateObserverView represents the view for the state observer which is part of a standard Model-View-Controller interface.

Member Enumeration Documentation

Enumerator:
Graph_TotalObjectCount 
Graph_RemovedObjectCount 
Graph_UnknownObjectCount 
Graph_EntityCount 
Graph_AggregateCount 
Graph_EnvironmentalProcessCount 

Constructor & Destructor Documentation

MAKLogger::DtStateObserverView::DtStateObserverView ( DtLgrAppGui ,
DtStateObserverController  
)

CTOR.

virtual MAKLogger::DtStateObserverView::~DtStateObserverView ( )
virtual

DTOR.

Member Function Documentation

virtual void MAKLogger::DtStateObserverView::activate ( )
virtual

This method is called when the component is shown.

Implements MAKLogger::DtLgrGuiComponent.

virtual bool MAKLogger::DtStateObserverView::canCloseFile ( ) const
virtual

This method is called when the file is going to be closed.

Reimplemented from MAKLogger::DtLgrGuiComponent.

void MAKLogger::DtStateObserverView::clearView ( )

Clear the view of updates.

void MAKLogger::DtStateObserverView::connectionStatusChanged ( bool  connected)
slot
virtual void MAKLogger::DtStateObserverView::deactivate ( )
virtual

This method is called when the component is hidden.

Implements MAKLogger::DtLgrGuiComponent.

void MAKLogger::DtStateObserverView::fileOpenChanged ( QString  fileName)
slot
virtual QWidget* MAKLogger::DtStateObserverView::initialize ( QWidget parent)
virtual

THis method is called after the GUI has been initialized.

Implements MAKLogger::DtLgrGuiComponent.

void MAKLogger::DtStateObserverView::setAggregateCount ( int  count)

Set the total aggregate count.

void MAKLogger::DtStateObserverView::setEntityCount ( int  count)

Set the total entity count.

void MAKLogger::DtStateObserverView::setEnvironmentalProcessCount ( int  count)

Set the total environment process count.

void MAKLogger::DtStateObserverView::setRemovedObjectCount ( int  count)

Set the total removed object count.

void MAKLogger::DtStateObserverView::setTotalObjectCount ( int  count)

Set the total object count.

void MAKLogger::DtStateObserverView::setUnknownObjectCount ( int  count)

Set the total unknown object count.

void MAKLogger::DtStateObserverView::startView ( )

Start the view updating.

void MAKLogger::DtStateObserverView::stopView ( )

Stop the view from updating.

virtual void MAKLogger::DtStateObserverView::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::DtStateObserverView::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 MAKLogger::DtLgrZoomableWidget* MAKLogger::DtStateObserverView::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.

Member Data Documentation

bool MAKLogger::DtStateObserverView::myActiveState
protected
DtStateObserverController* MAKLogger::DtStateObserverView::myController
protected
int MAKLogger::DtStateObserverView::myCurrentUpdateCount
protected
MAKLogger::DtProgressiveLineGraph* MAKLogger::DtStateObserverView::myGraph
protected
DtLgrAppGui* MAKLogger::DtStateObserverView::myGui
protected
DtAbsoluteTime MAKLogger::DtStateObserverView::myLastGraphTime
protected
DtLgrGuiModel* MAKLogger::DtStateObserverView::myModel
protected
DtStateObjectViewWidget* MAKLogger::DtStateObserverView::myWidget
protected
const int MAKLogger::DtStateObserverView::theRequestUpdateRate = 10
staticprotected

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

Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (www.mak.com)