kplato
KPlato::CalendarPanel Class Reference
#include <kptcalendarpanel.h>
Detailed Description
Provides a widget for calendar input.
Definition at line 46 of file kptcalendarpanel.h.
Signals | |
void | dateChanged (QDate) |
void | dateSelected (QDate) |
void | dateEntered (QDate) |
void | tableClicked () |
void | weekSelected (int week, int year) |
void | weekdaySelected (int day) |
void | selectionCleared () |
Public Member Functions | |
CalendarPanel (QWidget *parent=0, QDate=QDate::currentDate(), const char *name=0, WFlags f=0) | |
CalendarPanel (QWidget *parent, const char *name) | |
virtual | ~CalendarPanel () |
QSize | sizeHint () const |
QSize | minimumSizeHint () const |
bool | setDate (const QDate &) |
const QDate & | getDate () const |
const QDate & | date () const |
void | setEnabled (bool) |
void | setFontSize (int) |
int | fontSize () const |
void | setCloseButton (bool enable) |
bool | hasCloseButton () const |
void | setCalendar (Calendar *cal) |
DateMap | selectedDates () |
IntMap | selectedWeekdays () |
WeekMap | selectedWeeks () |
DateMap | markedDates () |
IntMap | markedWeekdays () |
WeekMap | markedWeeks () |
void | clear () |
void | markSelected (int state) |
Protected Slots | |
void | dateChangedSlot (QDate) |
void | tableClickedSlot () |
void | monthForwardClicked () |
void | monthBackwardClicked () |
void | yearForwardClicked () |
void | yearBackwardClicked () |
void | selectWeekClicked () |
void | selectMonthClicked () |
void | selectYearClicked () |
void | lineEnterPressed () |
void | slotWeekdaySelected (int day) |
void | slotWeekSelected (int week, int year) |
void | slotSelectionCleared () |
Protected Member Functions | |
virtual bool | eventFilter (QObject *o, QEvent *e) |
virtual void | resizeEvent (QResizeEvent *) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
QToolButton * | yearForward |
QToolButton * | yearBackward |
QToolButton * | monthForward |
QToolButton * | monthBackward |
QToolButton * | selectMonth |
QToolButton * | selectYear |
QLineEdit * | line |
DateValidator * | val |
DateTable * | table |
QSize | maxMonthRect |
Properties | |
QDate | date |
bool | closeButton |
Constructor & Destructor Documentation
|
The usual constructor. The given date will be displayed initially. Definition at line 59 of file kptcalendarpanel.cc. |
|
Standard qt widget constructor. The initial date will be the current date. Definition at line 65 of file kptcalendarpanel.cc. |
|
The destructor.
Definition at line 122 of file kptcalendarpanel.cc. |
Member Function Documentation
|
|
|
This signal is emitted each time the selected date is changed. Usually, this does not mean that the date has been entered, since the date also changes, for example, when another month is selected.
|
|
This signal is emitted when enter is pressed and a VALID date has been entered before into the line edit. Connect to both dateEntered() and dateSelected() to receive all events where the user really enters a date. |
|
This signal is emitted each time a day has been selected by clicking on the table (hitting a day in the current month).
|
|
to catch move keyEvents when QLineEdit has keyFocus
Definition at line 128 of file kptcalendarpanel.cc. |
|
Returns the font size of the widget elements.
Definition at line 109 of file kptcalendarpanel.h. |
|
Returns the selected date.
Definition at line 227 of file kptcalendarpanel.cc. |
|
Definition at line 503 of file kptcalendarpanel.cc. |
|
the resize event
Definition at line 147 of file kptcalendarpanel.cc. |
|
All selections have been cleared.
|
|
By calling this method with Clicking the close-button will cause the CalendarPanel's topLevelWidget()'s close() method being called. This is mostly useful for toplevel datepickers without a window manager decoration.
Definition at line 483 of file kptcalendarpanel.cc. |
|
Sets the date.
Definition at line 239 of file kptcalendarpanel.cc. |
|
Enables or disables the widget.
Definition at line 379 of file kptcalendarpanel.cc. |
|
Sets the font size of the widgets elements.
Definition at line 450 of file kptcalendarpanel.cc. |
|
The size hint for date pickers. The size hint recommends the minimum size of the widget so that all elements may be placed without clipping. This sometimes looks ugly, so when using the size hint, try adding 28 to each of the reported numbers of pixels. Definition at line 412 of file kptcalendarpanel.cc. |
|
This signal is emitted when the day has been selected by clicking on it in the table.
|
Member Data Documentation
|
the line edit to enter the date directly
Definition at line 160 of file kptcalendarpanel.h. |
|
the month backward button
Definition at line 154 of file kptcalendarpanel.h. |
|
the month forward button
Definition at line 152 of file kptcalendarpanel.h. |
|
the button for selecting the month directly
Definition at line 156 of file kptcalendarpanel.h. |
|
the button for selecting the year directly
Definition at line 158 of file kptcalendarpanel.h. |
|
the date table
Definition at line 164 of file kptcalendarpanel.h. |
|
the validator for the line edit:
Definition at line 162 of file kptcalendarpanel.h. |
|
the year backward button
Definition at line 150 of file kptcalendarpanel.h. |
|
the year forward button
Definition at line 148 of file kptcalendarpanel.h. |
The documentation for this class was generated from the following files: