#include <cWidgetBase.h>
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? |
Definition at line 230 of file cWidgetBase.h.
cWidget::WithShowSettings::WithShowSettings | ( | ) | [inline, protected] |
Definition at line 235 of file cWidgetBase.h.
00235 : m_showmin(true), m_showmax(true), m_showvalue(true) {};
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);
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().