OSB_GUI::DcInfoToggle Class Reference

Inheritance diagram for OSB_GUI::DcInfoToggle:

Inheritance graph
Collaboration diagram for OSB_GUI::DcInfoToggle:

Collaboration graph
List of all members.

Detailed Description

Toggable QLabel for day class name and id.

Definition at line 438 of file tpscfg.h.

Public Types


Public Member Functions

Private Member Functions

Private Attributes

Member Typedef Documentation

typedef OSB_LIB::Id<OSB_LIB::DayClass> OSB_GUI::DcInfoToggle::DcId

Short-hand for day class id, needed for Qt signals and slots.

Definition at line 442 of file tpscfg.h.

Constructor & Destructor Documentation

OSB_GUI::DcInfoToggle::DcInfoToggle ( const OSB_LIB::DayClass dc,
QWidget parent,
const char *  name = "dcLabel_" 

Constructor with day class and QT arguments.

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

Constructor with QT arguments.

Member Function Documentation

OSB_LIB::Id<OSB_LIB::DayClass> OSB_GUI::DcInfoToggle::dcId (  )  const

Get object id of the day class.

bool OSB_GUI::DcInfoToggle::isOn (  )  const

Currently selected?

void OSB_GUI::DcInfoToggle::leftClicked ( const DcId dcId  )  [signal]

Signal sent on left mouse clicks.

dcId Id of the day class.

QSize OSB_GUI::DcInfoToggle::minimumSizeHint (  )  const [private]

Get the minimum size.

QLabel::minimumSizeHint() if the widget is currently selected, else the width and height are increased by 2*lineWidth().

void OSB_GUI::DcInfoToggle::mousePressEvent ( QMouseEvent *  e  )  [private]

Handle mouse press events.

Emits leftClicked(DcId&).

void OSB_GUI::DcInfoToggle::setOn ( bool  on  ) 

Set selection status.

QSize OSB_GUI::DcInfoToggle::sizeHint (  )  const [private]

Get the preferred size: minimumSizeHint().

Member Data Documentation

DcId OSB_GUI::DcInfoToggle::dcId_ [private]

Object id of the day class.

Definition at line 488 of file tpscfg.h.

bool OSB_GUI::DcInfoToggle::on_ [private]

Flag if label is currently selected.

Definition at line 490 of file tpscfg.h.

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