

This group box internally stores the configuration of a TPS version, stored as list
day class -> switch time, tariff period.
Definition at line 208 of file tpscfg.h.
typedef OSB_LIB::Id<OSB_LIB::DayClass> OSB_GUI::DcInfoGroup::DcId [private] |
typedef std::pair<DcInfoToggle*, DcInfo*> OSB_GUI::DcInfoGroup::Info [private] |
typedef std::list<Info> OSB_GUI::DcInfoGroup::Infos [private] |
anonymous enum [private] |
| OSB_GUI::DcInfoGroup::DcInfoGroup | ( | QWidget * | parent, | |
| const char * | name = "dcGroup_" | |||
| ) | [explicit] |
Constructor with Qt arguments.
| Info* OSB_GUI::DcInfoGroup::addDc | ( | const OSB_LIB::DayClass & | dc | ) |
Add a day class.
| dc | Dayclass to add. It is added only if it does not yet exist in the group. |
| void OSB_GUI::DcInfoGroup::addSwitchTime | ( | const OSB_LIB::DayClass & | dc, | |
| const OSB_LIB::TariffPeriod & | tp, | |||
| const OSB_LIB::Time & | stime | |||
| ) |
Add a switch time.
| dc | Day class of the switch time. | |
| tp | Tariff period of the switch time. | |
| stime | Switch time to add. |
| void OSB_GUI::DcInfoGroup::buildLayout | ( | ) | [private] |
Build the layout.
Shows or hides noInfo_, background_ and ticks_ depending on whether day classes have been added.
| bool OSB_GUI::DcInfoGroup::clicksOn | ( | ) | const |
Handle mouse clicks on toggle buttons?
| OSB_LIB::Id<OSB_LIB::DayClass> OSB_GUI::DcInfoGroup::dcId | ( | ) | const |
Get selected day class.
| void OSB_GUI::DcInfoGroup::delSwitchTime | ( | const OSB_LIB::Time & | stime, | |
| const OSB_LIB::Id< OSB_LIB::DayClass > & | dcId | |||
| ) |
Remove a switch time.
| stime | Switch time to remove. | |
| dcId | Day class from which to remove stime. |
| bool OSB_GUI::DcInfoGroup::exists | ( | const OSB_LIB::Id< OSB_LIB::DayClass > & | dcId | ) | const |
Day class already added to infos?
Find a day class.
| dcId | Object id of the day class to find. |
| void OSB_GUI::DcInfoGroup::getConfig | ( | OSB_LIB::TpsConfig * | config | ) | const |
Get the configuration.
| void OSB_GUI::DcInfoGroup::initInfo | ( | Info * | info, | |
| bool | sigLabel = true, |
|||
| bool | sigHours = true | |||
| ) | [private] |
Initialize an information buffer.
| info | Buffer to initalize, it's member may be 0. | |
| sigLabel | Connect to signals of label? | |
| sigHours | Connect to signals of hour info? |
| void OSB_GUI::DcInfoGroup::labelClicked | ( | const DcId & | dcId | ) | [private, slot] |
Handle mouse clicks of day class labels.
| dcId | Id of the day class. |
| void OSB_GUI::DcInfoGroup::languageChange | ( | ) |
Process a language change.
| void OSB_GUI::DcInfoGroup::setClicks | ( | bool | on | ) |
Switch handling of mouse clicks on toggle buttons on or off.
| void OSB_GUI::DcInfoGroup::setDc | ( | const OSB_LIB::Id< OSB_LIB::DayClass > & | dcId, | |
| bool | on | |||
| ) |
Switch a day class on or off.
| dcId | Id of day class to switch. | |
| on | Switch on or off? |
| void OSB_GUI::DcInfoGroup::sigSelected | ( | const DcId & | dcId | ) | [signal] |
Day class selected or deselected.
| dcId | The id of the selected day class, it is not set if the current day class is deselected. |
| void OSB_GUI::DcInfoGroup::sigSwitchTime | ( | const SwitchTimeEvent & | event | ) | [signal] |
Switch time was selected with the mouse.
This signal is sent from switchTimeEvent().
| event | Information about selected switch time. |
| void OSB_GUI::DcInfoGroup::switchTimeEvent | ( | const SwitchTimeEvent & | event | ) | [private, slot] |
Handle signals for switch times.
| event | Information about selected switch time. |
QFrame* OSB_GUI::DcInfoGroup::background_ [private] |
bool OSB_GUI::DcInfoGroup::clicksOn_ [private] |
DcId OSB_GUI::DcInfoGroup::curDc_ [private] |
Infos OSB_GUI::DcInfoGroup::infos_ [private] |
QGridLayout* OSB_GUI::DcInfoGroup::layout_ [private] |
Info OSB_GUI::DcInfoGroup::noInfo_ [private] |
QSpacerItem* OSB_GUI::DcInfoGroup::spacer_ [private] |
DcInfoTicks* OSB_GUI::DcInfoGroup::ticks_ [private] |
1.4.7