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:

List of all members.

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.
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.

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

Static Protected Attributes

static const int theRequestUpdateRate = 10

Detailed Description

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


Member Function Documentation

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.


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)