Eneboo - Documentación para desarrolladores
Señales | Métodos públicos | Métodos protegidos | Propiedades
Referencia de la Clase QWellArray
Diagrama de herencias de QWellArray
QGridView QScrollView QScrollView QFrame QFrame QFrame QFrame QWidget QWidget QWidget QWidget QWidget QWidget QWidget QWidget QColorWell

Lista de todos los miembros.

Señales

void selected (int row, int col)

Métodos públicos

 QWellArray (QWidget *parent=0, const char *name=0, bool popup=FALSE)
 ~QWellArray ()
QString cellContent (int row, int col) const
int selectedColumn () const
int selectedRow () const
virtual void setCurrent (int row, int col)
virtual void setSelected (int row, int col)
QSize sizeHint () const
virtual void setCellBrush (int row, int col, const QBrush &)
QBrush cellBrush (int row, int col)

Métodos protegidos

void dimensionChange (int oldRows, int oldCols)
virtual void paintCell (QPainter *, int row, int col)
virtual void paintCellContents (QPainter *, int row, int col, const QRect &)
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
void mouseMoveEvent (QMouseEvent *)
void keyPressEvent (QKeyEvent *)
void focusInEvent (QFocusEvent *)
void focusOutEvent (QFocusEvent *)

Propiedades

int selectedColumn
int selectedRow

Documentación del constructor y destructor

QWellArray::QWellArray ( QWidget parent = 0,
const char *  name = 0,
bool  popup = FALSE 
)
QWellArray::~QWellArray ( ) [inline]

Documentación de las funciones miembro

QBrush QWellArray::cellBrush ( int  row,
int  col 
)

Returns the brush set for the cell at row, col. If no brush is set, NoBrush is returned.

QString QWellArray::cellContent ( int  row,
int  col 
) const
void QWellArray::dimensionChange ( int  oldRows,
int  oldCols 
) [protected, virtual]

Sets the size of the well array to be rows cells by cols. Resets any brush information set by setCellBrush().

Reimplementado de QGridView.

void QWellArray::focusInEvent ( QFocusEvent ) [protected, virtual]

Reimplementado de QWidget.

void QWellArray::focusOutEvent ( QFocusEvent ) [protected, virtual]

Reimplementado de QWidget.

void QWellArray::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 QWellArray::mouseMoveEvent ( QMouseEvent e) [protected, virtual]

Reimplementado de QScrollView.

Reimplementado en QColorWell.

void QWellArray::mousePressEvent ( QMouseEvent e) [protected, virtual]

Reimplementado de QScrollView.

Reimplementado en QColorWell.

void QWellArray::mouseReleaseEvent ( QMouseEvent e) [protected, virtual]

Reimplementado de QScrollView.

Reimplementado en QColorWell.

void QWellArray::paintCell ( QPainter p,
int  row,
int  col 
) [protected, virtual]

This pure virtual function is called to paint the single cell at (row, col) using painter p. The painter must be open when paintCell() is called and must remain open.

The coordinate system is translated so that the origin is at the top-left corner of the cell to be painted, i.e. cell coordinates. Do not scale or shear the coordinate system (or if you do, restore the transformation matrix before you return).

The painter is not clipped by default in order to get maximum efficiency. If you want clipping, use

    p->setClipRect( cellRect(), QPainter::CoordPainter );
    //... your drawing code
    p->setClipping( FALSE );

Implementa QGridView.

void QWellArray::paintCellContents ( QPainter p,
int  row,
int  col,
const QRect r 
) [protected, virtual]

Reimplement this function to change the contents of the well array.

Reimplementado en QColorWell.

void QWellArray::selected ( int  row,
int  col 
) [signal]
int QWellArray::selectedColumn ( ) const [inline]
int QWellArray::selectedRow ( ) const [inline]
void QWellArray::setCellBrush ( int  row,
int  col,
const QBrush b 
) [virtual]
void QWellArray::setCurrent ( int  row,
int  col 
) [virtual]
void QWellArray::setSelected ( int  row,
int  col 
) [virtual]

Sets the currently selected cell to row, col. If row or col are less than zero, the current cell is unselected.

Does not set the position of the focus indicator.

QSize QWellArray::sizeHint ( ) const [virtual]

Reimplementado de QScrollView.


Documentación de propiedades

int QWellArray::selectedColumn [read]
int QWellArray::selectedRow [read]

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