cWidget::WithShowSettings Class Reference

Able to parse and store ShowMinimum, ShowMaximum or ShowValue nodes. More...

#include <cWidgetBase.h>

Inheritance diagram for cWidget::WithShowSettings:

Inheritance graph
[legend]
Collaboration diagram for cWidget::WithShowSettings:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool Process (tXmlParser::node cur)
 Default constructor.

Protected Member Functions

 WithShowSettings ()

Protected Attributes

bool m_showmin
 Should the minimum be rendered?
bool m_showmax
 Should the maximum be rendered?
bool m_showvalue
 Should the value be rendered?


Detailed Description

Able to parse and store ShowMinimum, ShowMaximum or ShowValue nodes.

Definition at line 230 of file cWidgetBase.h.


Constructor & Destructor Documentation

cWidget::WithShowSettings::WithShowSettings (  )  [inline, protected]

Definition at line 235 of file cWidgetBase.h.

00235 : m_showmin(true), m_showmax(true), m_showvalue(true) {}; 


Member Function Documentation

bool cWidget::WithShowSettings::Process ( tXmlParser::node  cur  )  [virtual]

Default constructor.

Processes ShowMinimum, ShowMaximum or ShowValue nodes or passes on to Base::Process()

Reimplemented from cWidget::Base.

Reimplemented in cWidget::BarGauge.

Definition at line 531 of file cWidgetBase.cpp.

References m_showmax, m_showmin, m_showvalue, and cWidget::Base::Process().

Referenced by cWidget::BarGauge::Process().

00532                                                  {
00533     if(cur.IsOfType("ShowMinimum")) {
00534         m_showmin = cur.GetPropBool("value");
00535         return true;
00536     }
00537     if(cur.IsOfType("ShowMaximum")) {
00538         m_showmax = cur.GetPropBool("value");
00539         return true;
00540     }
00541     if(cur.IsOfType("ShowCurrent")) {
00542         m_showvalue = cur.GetPropBool("value");
00543         return true;
00544     }
00545     return Base::Process(cur);

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

bool cWidget::WithShowSettings::m_showmin [protected]

Should the minimum be rendered?

Definition at line 232 of file cWidgetBase.h.

Referenced by Process(), and cWidget::BarGauge::RenderMinMax().

bool cWidget::WithShowSettings::m_showmax [protected]

Should the maximum be rendered?

Definition at line 233 of file cWidgetBase.h.

Referenced by Process(), and cWidget::BarGauge::RenderMinMax().

bool cWidget::WithShowSettings::m_showvalue [protected]

Should the value be rendered?

Definition at line 234 of file cWidgetBase.h.

Referenced by Process(), cWidget::NeedleGauge::RenderGraph(), cWidget::VerticalBarGauge::RenderGraph(), and cWidget::BarGauge::RenderGraph().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:05:05 2008 for Armagetron Advanced by  doxygen 1.5.4