OSB_GUI::TpInfoGroup Class Reference

Inheritance diagram for OSB_GUI::TpInfoGroup:

Inheritance graph
[legend]
Collaboration diagram for OSB_GUI::TpInfoGroup:

Collaboration graph
[legend]
List of all members.

Detailed Description

Group box for tariff period information.

This container for TpInfoToggle allows the user to select one tariff period with the left mouse button.

Definition at line 94 of file tpscfg.h.

Signals

Public Member Functions

Private Types

Private Slots

Private Member Functions

Private Attributes

Static Private Attributes


Member Typedef Documentation

typedef std::list<TpInfoToggle*> OSB_GUI::TpInfoGroup::Infos [private]

STL container to hold the TP widgets.

Definition at line 100 of file tpscfg.h.

typedef OSB_LIB::Id<OSB_LIB::TariffPeriod> OSB_GUI::TpInfoGroup::TpId [private]

Short-hand for a tariff period object id.

Definition at line 98 of file tpscfg.h.


Constructor & Destructor Documentation

OSB_GUI::TpInfoGroup::TpInfoGroup ( QWidget parent,
const char *  name = "tpGroup_" 
) [explicit]

Constructor with Qt arguments.


Member Function Documentation

bool OSB_GUI::TpInfoGroup::addTp ( const OSB_LIB::TariffPeriod tp  ) 

Add a tariff period.

Parameters:
tp Tariff period to add. It is added only if it does not yet exist in the group.
Returns:
true if the tariff period was added to the group, else false.

void OSB_GUI::TpInfoGroup::buildLayout (  )  [private]

Build the layout.

Shows lbNone_ if no tariff periods are configured, else hides it.

bool OSB_GUI::TpInfoGroup::clicksOn (  )  const

Handle mouse clicks on toggle buttons?

bool OSB_GUI::TpInfoGroup::exists ( const OSB_LIB::Id< OSB_LIB::TariffPeriod > &  tpId  )  const

Tariff period already added to information list?

TpInfoToggle* OSB_GUI::TpInfoGroup::find ( const OSB_LIB::Id< OSB_LIB::TariffPeriod > &  tpId  )  [private]

Find a tariff period.

Parameters:
tpId Object id of the tariff period to find.
Returns:
The tariff period widget for tpId, 0 if not found.

void OSB_GUI::TpInfoGroup::infoClicked ( TpInfoToggle info  )  [private, slot]

Handle mouse clicks on tariff period widgets.

Switches the current selected info off and selected info.

void OSB_GUI::TpInfoGroup::languageChange (  ) 

Process a language change.

void OSB_GUI::TpInfoGroup::setClicks ( bool  on  ) 

Switch handling of mouse clicks on toggle buttons on or off.

void OSB_GUI::TpInfoGroup::setTp ( const OSB_LIB::Id< OSB_LIB::TariffPeriod > &  tpId,
bool  on 
)

Switch a tariff period on or off.

Parameters:
tpId Id of tariff period to switch, if it is not set the current period is switched off.
on Switch on or off?

void OSB_GUI::TpInfoGroup::sigSelected ( const TpId tpId  )  [signal]

Tariff period selected or deselected.

Parameters:
tpId The id of the selected tariff period, it is not set if the current tariff period is deselected.

OSB_LIB::Id<OSB_LIB::TariffPeriod> OSB_GUI::TpInfoGroup::tpId (  )  const

Get selected tariff period.

Returns:
The object id of the currently selected tariff period, it is not set if no TpInfoToggle is currently on.


Member Data Documentation

bool OSB_GUI::TpInfoGroup::clicksOn_ [private]

React to mouse clicks on toggle buttons?

Definition at line 192 of file tpscfg.h.

TpId OSB_GUI::TpInfoGroup::curTp_ [private]

Id of the currently selected tariff period.

It is not set if no TP is currently selected.

Definition at line 188 of file tpscfg.h.

Infos OSB_GUI::TpInfoGroup::infos_ [private]

List of TP widgets.

Definition at line 190 of file tpscfg.h.

QGridLayout* OSB_GUI::TpInfoGroup::layout_ [private]

Layout for the TP widgets.

Definition at line 198 of file tpscfg.h.

QLabel* OSB_GUI::TpInfoGroup::lbNone_ [private]

Label if no day classes are configured.

Definition at line 196 of file tpscfg.h.

const int OSB_GUI::TpInfoGroup::numCols_ = 2 [static, private]

Number of colums in the layout.

Definition at line 102 of file tpscfg.h.

QSpacerItem* OSB_GUI::TpInfoGroup::spacer_ [private]

Spacer right of of tariff periods.

Definition at line 194 of file tpscfg.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:22:11 2006 for OSB Library by  doxygen 1.4.7