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.
typedef std::list<TpInfoToggle*> OSB_GUI::TpInfoGroup::Infos [private] |
typedef OSB_LIB::Id<OSB_LIB::TariffPeriod> OSB_GUI::TpInfoGroup::TpId [private] |
OSB_GUI::TpInfoGroup::TpInfoGroup | ( | QWidget * | parent, | |
const char * | name = "tpGroup_" | |||
) | [explicit] |
Constructor with Qt arguments.
bool OSB_GUI::TpInfoGroup::addTp | ( | const OSB_LIB::TariffPeriod & | tp | ) |
Add a tariff period.
tp | Tariff period to add. It is added only if it does not yet exist in the group. |
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.
tpId | Object id of the tariff period to find. |
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.
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.
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.
bool OSB_GUI::TpInfoGroup::clicksOn_ [private] |
TpId OSB_GUI::TpInfoGroup::curTp_ [private] |
Infos OSB_GUI::TpInfoGroup::infos_ [private] |
QGridLayout* OSB_GUI::TpInfoGroup::layout_ [private] |
QLabel* OSB_GUI::TpInfoGroup::lbNone_ [private] |
const int OSB_GUI::TpInfoGroup::numCols_ = 2 [static, private] |
QSpacerItem* OSB_GUI::TpInfoGroup::spacer_ [private] |