Eneboo - Documentación para desarrolladores
Señales | Métodos públicos | Métodos protegidos | Atributos protegidos
Referencia de la Clase VDateTable

#include <vdatetable.h>

Diagrama de herencias de VDateTable
QGridView QScrollView QScrollView QFrame QFrame QFrame QFrame QWidget QWidget QWidget QWidget QWidget QWidget QWidget QWidget

Lista de todos los miembros.

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 QDategetDate () 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

Documentación del constructor y destructor

VDateTable::VDateTable ( QWidget parent = 0,
QDate  date = QDate::currentDate(),
const char *  name = 0,
WFlags  f = 0 
)
VDateTable::~VDateTable ( )

Documentación de las funciones miembro

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.

Ver también:
focusOutEvent(), setFocusPolicy(), keyPressEvent(), keyReleaseEvent(), event(), QFocusEvent

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.

Ver también:
focusInEvent(), setFocusPolicy(), keyPressEvent(), keyReleaseEvent(), event(), QFocusEvent

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.

Ver también:
keyReleaseEvent(), QKeyEvent::ignore(), setFocusPolicy(), focusInEvent(), focusOutEvent(), event(), QKeyEvent

Reimplementado de QWidget.

void VDateTable::paintCell ( QPainter painter,
int  row,
int  col 
) [protected, virtual]

Paint a cell.

Implementa QGridView.

bool VDateTable::setDate ( const QDate date_)

Select and display this date.

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]

Documentación de los datos miembro

QDate VDateTable::date [protected]

The currently selected date.

The day of the first day in the month [1..7].

Save the size of the largest used cell content.

int VDateTable::numdays [protected]

The number of days in the current month.

The number of days in the previous month.

unused


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'