The QTableSelection class provides access to a selected area in a QTable.table.
Más...
#include <qtable.h>
Lista de todos los miembros.
Métodos públicos |
| QTableSelection () |
| QTableSelection (int start_row, int start_col, int end_row, int end_col) |
void | init (int row, int col) |
void | expandTo (int row, int col) |
bool | operator== (const QTableSelection &s) const |
bool | operator!= (const QTableSelection &s) const |
int | topRow () const |
int | bottomRow () const |
int | leftCol () const |
int | rightCol () const |
int | anchorRow () const |
int | anchorCol () const |
int | numRows () const |
int | numCols () const |
bool | isActive () const |
bool | isEmpty () const |
| QTableSelection () |
| QTableSelection (int start_row, int start_col, int end_row, int end_col) |
void | init (int row, int col) |
void | expandTo (int row, int col) |
bool | operator== (const QTableSelection &s) const |
bool | operator!= (const QTableSelection &s) const |
int | topRow () const |
int | bottomRow () const |
int | leftCol () const |
int | rightCol () const |
int | anchorRow () const |
int | anchorCol () const |
int | numRows () const |
int | numCols () const |
bool | isActive () const |
bool | isEmpty () const |
Descripción detallada
The QTableSelection class provides access to a selected area in a QTable.
table.
The selection is a rectangular set of cells in a QTable. One of the rectangle's cells is called the anchor cell; this is the cell that was selected first. The init() function sets the anchor and the selection rectangle to exactly this cell; the expandTo() function expands the selection rectangle to include additional cells.
There are various access functions to find out about the area: anchorRow() and anchorCol() return the anchor's position; leftCol(), rightCol(), topRow() and bottomRow() return the rectangle's four edges. All four are part of the selection.
A newly created QTableSelection is inactive -- isActive() returns FALSE. You must use init() and expandTo() to activate it.
- Ver también:
- QTable QTable::addSelection() QTable::selection() QTable::selectCells() QTable::selectRow() QTable::selectColumn()
Documentación del constructor y destructor
QTableSelection::QTableSelection |
( |
| ) |
|
QTableSelection::QTableSelection |
( |
int |
start_row, |
|
|
int |
start_col, |
|
|
int |
end_row, |
|
|
int |
end_col |
|
) |
| |
Creates an active selection, starting at start_row and start_col, ending at end_row and end_col.
QTableSelection::QTableSelection |
( |
| ) |
|
QTableSelection::QTableSelection |
( |
int |
start_row, |
|
|
int |
start_col, |
|
|
int |
end_row, |
|
|
int |
end_col |
|
) |
| |
Documentación de las funciones miembro
int QTableSelection::anchorCol |
( |
| ) |
const [inline] |
int QTableSelection::anchorCol |
( |
| ) |
const [inline] |
int QTableSelection::anchorRow |
( |
| ) |
const [inline] |
int QTableSelection::anchorRow |
( |
| ) |
const [inline] |
int QTableSelection::bottomRow |
( |
| ) |
const [inline] |
int QTableSelection::bottomRow |
( |
| ) |
const [inline] |
void QTableSelection::expandTo |
( |
int |
row, |
|
|
int |
col |
|
) |
| |
void QTableSelection::expandTo |
( |
int |
row, |
|
|
int |
col |
|
) |
| |
Expands the selection to include cell row, col. The new selection rectangle is the bounding rectangle of row, col and the previous selection rectangle. After calling this function the selection is active.
If you haven't called init(), this function does nothing.
- Ver también:
- init() isActive()
void QTableSelection::init |
( |
int |
row, |
|
|
int |
col |
|
) |
| |
Sets the selection anchor to cell row, col and the selection to only contain this cell. The selection is not active until expandTo() is called.
To extend the selection to include additional cells, call expandTo().
- Ver también:
- isActive()
void QTableSelection::init |
( |
int |
row, |
|
|
int |
col |
|
) |
| |
bool QTableSelection::isActive |
( |
| ) |
const [inline] |
Returns whether the selection is active or not. A selection is active after init() and expandTo() have been called.
bool QTableSelection::isActive |
( |
| ) |
const [inline] |
bool QTableSelection::isEmpty |
( |
void |
| ) |
const [inline] |
bool QTableSelection::isEmpty |
( |
void |
| ) |
const [inline] |
int QTableSelection::leftCol |
( |
| ) |
const [inline] |
int QTableSelection::leftCol |
( |
| ) |
const [inline] |
int QTableSelection::numCols |
( |
| ) |
const |
Returns the number of columns in the selection.
- Ver también:
- numRows()
int QTableSelection::numCols |
( |
| ) |
const |
int QTableSelection::numRows |
( |
| ) |
const |
Returns the number of rows in the selection.
- Ver también:
- numCols()
int QTableSelection::numRows |
( |
| ) |
const |
Returns TRUE if s does not include the same cells as the selection; otherwise returns FALSE.
Returns TRUE if s includes the same cells as the selection; otherwise returns FALSE.
int QTableSelection::rightCol |
( |
| ) |
const [inline] |
int QTableSelection::rightCol |
( |
| ) |
const [inline] |
int QTableSelection::topRow |
( |
| ) |
const [inline] |
int QTableSelection::topRow |
( |
| ) |
const [inline] |
La documentación para esta clase fue generada a partir de los siguientes ficheros: