OSB_GUI::DateSelect Class Reference

Inheritance diagram for OSB_GUI::DateSelect:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Date selection widget.

Definition at line 63 of file dateselect.h.

Public Types

Signals

Public Member Functions

Private Slots

Private Member Functions

Private Attributes


Member Enumeration Documentation

enum OSB_GUI::DateSelect::SelectMode

Behavior on left mouse clicks:.

Enumerator:
smNever  Never select a date.
smAlways  Left mouse click set selected date.
smToggleOn  Date selection is currently on, left mouse click on selected date deselects it. This is the default.
smToggleOff  Date selection is currently off, left mouse click switches it on.

Definition at line 67 of file dateselect.h.


Constructor & Destructor Documentation

OSB_GUI::DateSelect::DateSelect ( const QDate &  date,
QWidget parent,
const char *  name = "dateSelect_",
WFlags  fl = 0 
)

Constructor with selected date and Qt arguments.

OSB_GUI::DateSelect::DateSelect ( QWidget parent,
const char *  name = "dateSelect_",
WFlags  fl = 0 
) [explicit]

Constructor with Qt arguments only.


Member Function Documentation

void OSB_GUI::DateSelect::accept (  )  [private, slot]

Accept the selected date.

Emits selected(const QDate&) and closes the widget.

void OSB_GUI::DateSelect::build ( QDate  date  )  [private]

Construct the widgets: called from the constructors.

Parameters:
date Selected date, set to current date if it is not valid.

void OSB_GUI::DateSelect::keyPressEvent ( QKeyEvent *  event  )  [private]

Handle pressed keys.

Calls accept if Enter or Return was pressed,
otherwise closes the widget.

void OSB_GUI::DateSelect::popup ( const QPoint &  pos  ) 

Show the widget as popup.

Parameters:
pos Global screen position of the upper-left corner.
Note:
The function has no effect if the widget was not created with the flag Qt::WType_Popup.

void OSB_GUI::DateSelect::selected ( const QDate &  date  )  [signal]

Signal sent if the user has selected a date.

Parameters:
date The selected date, it may not be set.
See also:
keyPressEvent()

QDate OSB_GUI::DateSelect::selected (  )  const

Get the selected date, it needn't be set.

SelectMode OSB_GUI::DateSelect::selectMode (  )  const

Get the selection mode.

void OSB_GUI::DateSelect::setSelected ( const QDate &  date  ) 

Set the selected date.

void OSB_GUI::DateSelect::setSelectMode ( SelectMode  mode  ) 

Set the selection mode.


Member Data Documentation

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

Layout for all children.

Definition at line 163 of file dateselect.h.

MonthDays* OSB_GUI::DateSelect::monthDays_ [private]

Widget with days for month and year.

Definition at line 158 of file dateselect.h.

MonthSpin* OSB_GUI::DateSelect::monthSpin_ [private]

Month spin box.

Definition at line 154 of file dateselect.h.

QPushButton* OSB_GUI::DateSelect::pbOk_ [private]

Select push button if used as popup.

Definition at line 160 of file dateselect.h.

QHBoxLayout* OSB_GUI::DateSelect::spinLayout_ [private]

Layout for month and year spinboxes.

Definition at line 165 of file dateselect.h.

QSpinBox* OSB_GUI::DateSelect::spYear_ [private]

Year spin box.

Definition at line 156 of file dateselect.h.


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