#include <kptcalendarpanel.h>
Provides a widget for calendar input.
Definition at line 46 of file kptcalendarpanel.h.
◆ CalendarPanel() [1/2]
| KPlato::CalendarPanel::CalendarPanel |
( |
TQWidget * | parent = 0, |
|
|
TQDate | dt = TQDate::currentDate(), |
|
|
const char * | name = 0, |
|
|
WFlags | f = 0 ) |
The usual constructor.
The given date will be displayed initially.
Definition at line 59 of file kptcalendarpanel.cpp.
◆ CalendarPanel() [2/2]
| KPlato::CalendarPanel::CalendarPanel |
( |
TQWidget * | parent, |
|
|
const char * | name ) |
Standard tqt widget constructor.
The initial date will be the current date.
Definition at line 65 of file kptcalendarpanel.cpp.
◆ ~CalendarPanel()
| KPlato::CalendarPanel::~CalendarPanel |
( |
| ) |
|
|
virtual |
◆ clear()
| void KPlato::CalendarPanel::clear |
( |
| ) |
|
◆ date()
| const TQDate & KPlato::CalendarPanel::date |
( |
| ) |
const |
◆ dateChanged
| void KPlato::CalendarPanel::dateChanged |
( |
TQDate | | ) |
|
|
signal |
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. - See also
- dateSelected
◆ dateChangedSlot
| void KPlato::CalendarPanel::dateChangedSlot |
( |
TQDate | date | ) |
|
|
protectedslot |
◆ dateEntered
| void KPlato::CalendarPanel::dateEntered |
( |
TQDate | | ) |
|
|
signal |
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.
◆ dateSelected
| void KPlato::CalendarPanel::dateSelected |
( |
TQDate | | ) |
|
|
signal |
This signal is emitted each time a day has been selected by clicking on the table (hitting a day in the current month).
◆ eventFilter()
| bool KPlato::CalendarPanel::eventFilter |
( |
TQObject * | o, |
|
|
TQEvent * | e ) |
|
protectedvirtual |
◆ fontSize()
| int KPlato::CalendarPanel::fontSize |
( |
| ) |
const |
|
inline |
◆ getDate()
| const TQDate & KPlato::CalendarPanel::getDate |
( |
| ) |
const |
◆ hasCloseButton()
| bool KPlato::CalendarPanel::hasCloseButton |
( |
| ) |
const |
◆ lineEnterPressed
| void KPlato::CalendarPanel::lineEnterPressed |
( |
| ) |
|
|
protectedslot |
◆ markedDates()
| DateMap KPlato::CalendarPanel::markedDates |
( |
| ) |
|
◆ markedWeekdays()
| IntMap KPlato::CalendarPanel::markedWeekdays |
( |
| ) |
|
◆ markSelected()
| void KPlato::CalendarPanel::markSelected |
( |
int | state | ) |
|
◆ minimumSizeHint()
| TQSize KPlato::CalendarPanel::minimumSizeHint |
( |
| ) |
const |
|
inline |
◆ monthBackwardClicked
| void KPlato::CalendarPanel::monthBackwardClicked |
( |
| ) |
|
|
protectedslot |
◆ monthForwardClicked
| void KPlato::CalendarPanel::monthForwardClicked |
( |
| ) |
|
|
protectedslot |
◆ resizeEvent()
| void KPlato::CalendarPanel::resizeEvent |
( |
TQResizeEvent * | | ) |
|
|
protectedvirtual |
◆ selectedDates()
| DateMap KPlato::CalendarPanel::selectedDates |
( |
| ) |
|
◆ selectedWeekdays()
| IntMap KPlato::CalendarPanel::selectedWeekdays |
( |
| ) |
|
◆ selectionCleared
| void KPlato::CalendarPanel::selectionCleared |
( |
| ) |
|
|
signal |
All selections have been cleared.
◆ selectMonthClicked
| void KPlato::CalendarPanel::selectMonthClicked |
( |
| ) |
|
|
protectedslot |
◆ selectWeekClicked
| void KPlato::CalendarPanel::selectWeekClicked |
( |
| ) |
|
|
protectedslot |
◆ selectYearClicked
| void KPlato::CalendarPanel::selectYearClicked |
( |
| ) |
|
|
protectedslot |
◆ setCalendar()
| void KPlato::CalendarPanel::setCalendar |
( |
Calendar * | cal | ) |
|
◆ setCloseButton()
| void KPlato::CalendarPanel::setCloseButton |
( |
bool | enable | ) |
|
By calling this method with enable = true, CalendarPanel will show a little close-button in the upper button-row.
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. - See also
- hasCloseButton
Definition at line 483 of file kptcalendarpanel.cpp.
◆ setDate()
| bool KPlato::CalendarPanel::setDate |
( |
const TQDate & | date | ) |
|
Sets the date.
- Returns
false and does not change anything if the date given is invalid.
Definition at line 239 of file kptcalendarpanel.cpp.
◆ setEnabled()
| void KPlato::CalendarPanel::setEnabled |
( |
bool | enable | ) |
|
◆ setFontSize()
| void KPlato::CalendarPanel::setFontSize |
( |
int | s | ) |
|
◆ sizeHint()
| TQSize KPlato::CalendarPanel::sizeHint |
( |
| ) |
const |
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.cpp.
◆ slotSelectionCleared
| void KPlato::CalendarPanel::slotSelectionCleared |
( |
| ) |
|
|
protectedslot |
◆ slotWeekdaySelected
| void KPlato::CalendarPanel::slotWeekdaySelected |
( |
int | day | ) |
|
|
protectedslot |
◆ slotWeekSelected
| void KPlato::CalendarPanel::slotWeekSelected |
( |
int | week, |
|
|
int | year ) |
|
protectedslot |
◆ tableClicked
| void KPlato::CalendarPanel::tableClicked |
( |
| ) |
|
|
signal |
This signal is emitted when the day has been selected by clicking on it in the table.
◆ tableClickedSlot
| void KPlato::CalendarPanel::tableClickedSlot |
( |
| ) |
|
|
protectedslot |
◆ virtual_hook()
| void KPlato::CalendarPanel::virtual_hook |
( |
int | id, |
|
|
void * | data ) |
|
protectedvirtual |
◆ yearBackwardClicked
| void KPlato::CalendarPanel::yearBackwardClicked |
( |
| ) |
|
|
protectedslot |
◆ yearForwardClicked
| void KPlato::CalendarPanel::yearForwardClicked |
( |
| ) |
|
|
protectedslot |
◆ line
| TQLineEdit* KPlato::CalendarPanel::line |
|
protected |
◆ maxMonthRect
| TQSize KPlato::CalendarPanel::maxMonthRect |
|
protected |
◆ monthBackward
| TQToolButton* KPlato::CalendarPanel::monthBackward |
|
protected |
◆ monthForward
| TQToolButton* KPlato::CalendarPanel::monthForward |
|
protected |
◆ selectMonth
| TQToolButton* KPlato::CalendarPanel::selectMonth |
|
protected |
◆ selectYear
| TQToolButton* KPlato::CalendarPanel::selectYear |
|
protected |
◆ table
| DateTable* KPlato::CalendarPanel::table |
|
protected |
◆ val
◆ yearBackward
| TQToolButton* KPlato::CalendarPanel::yearBackward |
|
protected |
◆ yearForward
| TQToolButton* KPlato::CalendarPanel::yearForward |
|
protected |
The documentation for this class was generated from the following files:
|