Eneboo - Documentación para desarrolladores
|
#include <vdatetable.h>
Señales | |
void | dateChanged (QDate) |
void | tableClicked () |
Métodos públicos | |
VDateTable (QWidget *parent=0, QDate date=QDate::currentDate(), const char *name=0, WFlags f=0) | |
~VDateTable () | |
virtual QSize | sizeHint () const |
bool | setDate (const QDate &) |
const QDate & | getDate () const |
Métodos protegidos | |
virtual void | paintCell (QPainter *, int, int) |
virtual void | viewportResizeEvent (QResizeEvent *) |
virtual void | contentsMousePressEvent (QMouseEvent *) |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | focusInEvent (QFocusEvent *e) |
virtual void | focusOutEvent (QFocusEvent *e) |
virtual void | virtual_hook (int id, void *data) |
Atributos protegidos | |
QDate | date |
int | firstday |
int | numdays |
int | numDaysPrevMonth |
bool | unused_hasSelection |
QRect | maxCell |
VDateTable::VDateTable | ( | QWidget * | parent = 0 , |
QDate | date = QDate::currentDate() , |
||
const char * | name = 0 , |
||
WFlags | f = 0 |
||
) |
VDateTable::~VDateTable | ( | ) |
void VDateTable::contentsMousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
React on mouse clicks that select a date.
Reimplementado de QScrollView.
void VDateTable::dateChanged | ( | QDate | ) | [signal] |
The selected date changed.
void VDateTable::focusInEvent | ( | QFocusEvent * | ) | [protected, virtual] |
This event handler can be reimplemented in a subclass to receive keyboard focus events (focus received) for the widget.
A widget normally must setFocusPolicy() to something other than NoFocus
in order to receive focus events. (Note that the application programmer can call setFocus() on any widget, even those that do not normally accept focus.)
The default implementation updates the widget (except for toplevel widgets that do not specify a focusPolicy() ). It also calls setMicroFocusHint(), hinting any system-specific input tools about the focus of the user's attention.
Reimplementado de QWidget.
void VDateTable::focusOutEvent | ( | QFocusEvent * | ) | [protected, virtual] |
This event handler can be reimplemented in a subclass to receive keyboard focus events (focus lost) for the widget.
A widget normally must setFocusPolicy() to something other than NoFocus
in order to receive focus events. (Note that the application programmer can call setFocus() on any widget, even those that do not normally accept focus.)
The default implementation updates the widget (except for toplevel widgets that do not specify a focusPolicy() ). It also calls setMicroFocusHint(), hinting any system-specific input tools about the focus of the user's attention.
Reimplementado de QWidget.
const QDate & VDateTable::getDate | ( | ) | const |
void VDateTable::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
This event handler, for event e, can be reimplemented in a subclass to receive key press events for the widget.
A widget must call setFocusPolicy() to accept focus initially and have focus in order to receive a key press event.
If you reimplement this handler, it is very important that you explicitly ignore the event if you do not understand it, so that the widget's parent can interpret it; otherwise, the event will be implicitly accepted. Although top-level widgets are able to choose whether to accept or ignore unknown events because they have no parent widgets that could otherwise handle them, it is good practice to explicitly ignore events to make widgets as reusable as possible.
The default implementation closes popup widgets if the user presses Esc. Otherwise the event is ignored.
Reimplementado de QWidget.
Paint a cell.
Implementa QGridView.
QSize VDateTable::sizeHint | ( | ) | const [virtual] |
Reimplementado de QScrollView.
void VDateTable::tableClicked | ( | ) | [signal] |
A date has been selected by clicking on the table.
void VDateTable::viewportResizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
Handle the resize events.
Reimplementado de QScrollView.
void VDateTable::virtual_hook | ( | int | id, |
void * | data | ||
) | [protected, virtual] |
QDate VDateTable::date [protected] |
The currently selected date.
int VDateTable::firstday [protected] |
The day of the first day in the month [1..7].
QRect VDateTable::maxCell [protected] |
Save the size of the largest used cell content.
int VDateTable::numdays [protected] |
The number of days in the current month.
int VDateTable::numDaysPrevMonth [protected] |
The number of days in the previous month.
bool VDateTable::unused_hasSelection [protected] |
unused