#include <FLObjectFactory.h>
Lista de todos los miembros.
Tipos públicos |
| enum | CellAlignment {
AlignAuto = Qt::AlignAuto,
AlignLeft = Qt::AlignLeft,
AlignRight = Qt::AlignRight,
AlignHCenter = Qt::AlignHCenter,
AlignJustify = Qt::AlignJustify,
AlignTop = Qt::AlignTop,
AlignBottom = Qt::AlignBottom,
AlignVCenter = Qt::AlignVCenter,
AlignCenter = Qt::AlignCenter
} |
Slots públicos |
| void | setRowReadOnly (int row, bool ro) |
| void | sortColumn (int col, bool ascending=true, bool wholeRows=false) |
| void | setColumnReadOnly (int col, bool ro) |
| void | removeRow (int row) |
| void | clear () |
| void | editCell (int row, int col) |
| void | hideColumn (int col) |
| void | hideRow (int row) |
| void | showColumn (int col) |
| void | showRow (int row) |
| QString | text (int row, int col) |
| void | setColumnLabels (const QString &sep, const QString &str) |
| void | setRowLabels (const QString &sep, const QString &str) |
| void | setLeftMargin (int m) |
| void | setTopMargin (int m) |
| void | setNumCols (const int c) |
| void | setNumRows (const int r) |
| void | setColumnWidth (const int c, const int w) |
| int | columnWidth (int c) |
| void | setRowHeight (int row, int h) |
| int | rowHeight (int row) |
| int | currentRow () |
| int | currentColumn () |
| void | selectRow (int row) |
| int | numRows () |
| int | numCols () |
| void | swapRows (int row1, int row2, bool swapHeader=false) |
| void | swapColumns (int col1, int col2, bool swapHeader=false) |
| void | repaintContents () |
| void | clearSelection (bool repaint=true) |
| QStringList | selectedRows () |
| QStringList | selectedCols () |
| QStringList | selectedCells () |
| void | setText (int row, int col, const QString &text) |
| void | insertRows (int row, int count=1) |
| void | insertColumns (int col, int count=1) |
| void | adjustColumn (int col) |
| void | adjustRow (int fil) |
| void | setPixmap (int row, int col, const QPixmap &pix) |
| QPixmap | pixmap (int row, int col) |
| void | emitCurrentChanged (int row, int col) |
| void | emitClicked (int row, int col, int, const QPoint &) |
| void | emitDoubleClicked (int row, int col, int, const QPoint &) |
| void | emitValueChanged (int row, int col) |
| void | emitSelectionChanged () |
Señales |
| void | currentChanged (int, int) |
| void | clicked (int, int) |
| void | doubleClicked (int, int) |
| void | valueChanged (int, int) |
| void | selectionChanged () |
Métodos públicos |
| | FLTableInterface (QWidget *p, const QString &n) |
| | FLTableInterface () |
| | FLTableInterface (QTable *t) |
Métodos protegidos |
| void | connects () const |
Atributos protegidos |
| QTable * | obj_ |
Documentación de las enumeraciones miembro de la clase
- Valores de enumeraciones:
| AlignAuto |
|
| AlignLeft |
|
| AlignRight |
|
| AlignHCenter |
|
| AlignJustify |
|
| AlignTop |
|
| AlignBottom |
|
| AlignVCenter |
|
| AlignCenter |
|
Documentación del constructor y destructor
| FLTableInterface::FLTableInterface |
( |
QWidget * |
p, |
|
|
const QString & |
n |
|
) |
| [inline] |
| FLTableInterface::FLTableInterface |
( |
| ) |
[inline] |
| FLTableInterface::FLTableInterface |
( |
QTable * |
t | ) |
[inline] |
Documentación de las funciones miembro
| void FLTableInterface::adjustColumn |
( |
int |
col | ) |
[inline, slot] |
Ajusta el ancho de la columna automticamente
- Parámetros:
-
| col. | posicin de la columna |
| void FLTableInterface::adjustRow |
( |
int |
fil | ) |
[inline, slot] |
Ajusta el alto de la fila automticamente
- Parámetros:
-
| void FLTableInterface::clear |
( |
| ) |
[slot] |
| void FLTableInterface::clearSelection |
( |
bool |
repaint = true | ) |
[inline, slot] |
| void FLTableInterface::clicked |
( |
int |
, |
|
|
int |
|
|
) |
| [signal] |
Seal emitida al pulsar sobre una casilla determinada
- Parámetros:
-
| int. | nmero de fila |
| int. | nmero columna |
| int FLTableInterface::columnWidth |
( |
int |
c | ) |
[inline, slot] |
- Devuelve:
- Ancho de la columna
| void FLTableInterface::connects |
( |
| ) |
const [protected] |
| void FLTableInterface::currentChanged |
( |
int |
, |
|
|
int |
|
|
) |
| [signal] |
Seal emitida al cambiar la casilla seleccionada de la tabla
- Parámetros:
-
| int. | nmero de fila |
| int. | nmero columna |
| int FLTableInterface::currentColumn |
( |
| ) |
[inline, slot] |
Devuelve el nmwero de columna actual.
- Devuelve:
- nmero de columna actual
| int FLTableInterface::currentRow |
( |
void |
| ) |
[inline, slot] |
Devuelve el nmero de fila actual.
- Devuelve:
- nmero de fila actual
| void FLTableInterface::doubleClicked |
( |
int |
, |
|
|
int |
|
|
) |
| [signal] |
Seal emitida al hacer dobel click en una determinada casilla
- Parámetros:
-
| int. | nmero de fila |
| int. | nmero columna |
| void FLTableInterface::editCell |
( |
int |
row, |
|
|
int |
col |
|
) |
| [inline, slot] |
Inicia la edicin de una celda
- Parámetros:
-
| fil. | nmero de la fila |
| col. | nmero de la columna |
| void FLTableInterface::emitClicked |
( |
int |
row, |
|
|
int |
col, |
|
|
int |
, |
|
|
const QPoint & |
|
|
) |
| [inline, slot] |
| void FLTableInterface::emitCurrentChanged |
( |
int |
row, |
|
|
int |
col |
|
) |
| [inline, slot] |
| void FLTableInterface::emitDoubleClicked |
( |
int |
row, |
|
|
int |
col, |
|
|
int |
, |
|
|
const QPoint & |
|
|
) |
| [inline, slot] |
| void FLTableInterface::emitSelectionChanged |
( |
| ) |
[inline, slot] |
| void FLTableInterface::emitValueChanged |
( |
int |
row, |
|
|
int |
col |
|
) |
| [inline, slot] |
| void FLTableInterface::hideColumn |
( |
int |
col | ) |
[inline, slot] |
Esconde una columna
- Parámetros:
-
| void FLTableInterface::hideRow |
( |
int |
row | ) |
[inline, slot] |
Esconde una fila
- Parámetros:
-
| void FLTableInterface::insertColumns |
( |
int |
col, |
|
|
int |
count = 1 |
|
) |
| [inline, slot] |
Inserta una o ms nuevas columnas en el lugar establecido
- Parámetros:
-
| col. | posicin donde insertar las nuevas columnas |
| count. | nmero de columnas a insertar |
| void FLTableInterface::insertRows |
( |
int |
row, |
|
|
int |
count = 1 |
|
) |
| [inline, slot] |
Inserta una o ms nuevas filas en el lugar establecido
- Parámetros:
-
| row. | posicin donde insertar las nuevas filas |
| count. | nmero de filas a insertar |
| int FLTableInterface::numCols |
( |
| ) |
[inline, slot] |
Devuelve el nmero total de columnas de la tabla
- Devuelve:
- nmero de columnas
| int FLTableInterface::numRows |
( |
| ) |
[inline, slot] |
Devuelve el nmero total de filas de la tabla
- Devuelve:
- nmero de filas
| QPixmap FLTableInterface::pixmap |
( |
int |
row, |
|
|
int |
col |
|
) |
| [inline, slot] |
Obtiene la imagen Pixmap de una celda
- Parámetros:
-
| row | Numero de la fila |
| col | Numero de la columna |
- Devuelve:
- Imagen Pixmap
| void FLTableInterface::removeRow |
( |
int |
row | ) |
[inline, slot] |
Elimina una fila
- Parámetros:
-
| row.nmero | de la fila a eliminar |
| void FLTableInterface::repaintContents |
( |
| ) |
[inline, slot] |
| int FLTableInterface::rowHeight |
( |
int |
row | ) |
[inline, slot] |
Devuelve una lista con las celdas seleccionadas, con el formato fila.columna, separadas por comas y comenzando por ceros. Para objetos con selectionMode = Single / Multi
- Devuelve:
- Celdas seleccionadas
Devuelve una lista con las columnas seleccionadas, separadas por comas y comenzando por cero. Para objetos con selectionMode = Multi
- Devuelve:
- Columnas seleccionadas
Devuelve una lista con las filas seleccionadas, separadas por comas y comenzando por cero. Para objetos con selectionMode = SingleRow / MultiRow
- Devuelve:
- Filas seleccionadas
| void FLTableInterface::selectionChanged |
( |
| ) |
[signal] |
Seal emitida al cambiarse la seleccin en la tabla
| void FLTableInterface::selectRow |
( |
int |
row | ) |
[inline, slot] |
Selecciona el nmero de fila establecido
- Parámetros:
-
| row. | nmero de fila que se desea seleccionar |
| void FLTableInterface::setColumnLabels |
( |
const QString & |
sep, |
|
|
const QString & |
str |
|
) |
| [inline, slot] |
Establece los ttulos de todas las columnas
- Parámetros:
-
| sep. | Caracter separador de los ttulos |
| str. | Lista de ttulos separados por el carcter separador |
| void FLTableInterface::setColumnReadOnly |
( |
int |
col, |
|
|
bool |
ro |
|
) |
| [inline, slot] |
Cambia una columna de modo solo lectura a lectura - escritura y viceversa.
- Parámetros:
-
| col. | nmero de columna |
| ro. | TRUE si la fila es de slo lectura, FALSE si no lo es |
| void FLTableInterface::setColumnWidth |
( |
const int |
c, |
|
|
const int |
w |
|
) |
| [inline, slot] |
Establece la anchura de un columna
- Parámetros:
-
| c. | Nmero de la columna |
| w. | Anchura |
| void FLTableInterface::setLeftMargin |
( |
int |
m | ) |
[inline, slot] |
Establece el margen para los ttulos de las filas
- Parámetros:
-
| void FLTableInterface::setNumCols |
( |
const int |
c | ) |
[inline, slot] |
Establece el nmero total de columnas de la tabla
- Parámetros:
-
| c. | nmero de columnas que tendr la tabla |
| void FLTableInterface::setNumRows |
( |
const int |
r | ) |
[inline, slot] |
Establece el nmero total de filas de la tabla
- Parámetros:
-
| c. | nmero de filas que tendr la tabla |
| void FLTableInterface::setPixmap |
( |
int |
row, |
|
|
int |
col, |
|
|
const QPixmap & |
pix |
|
) |
| [inline, slot] |
Establece el contenido de una celda como una imagen Pixmap
- Parámetros:
-
| row | Numero de la fila |
| col | Numero de la columna |
| pix | Imagen Pixmap |
| void FLTableInterface::setRowHeight |
( |
int |
row, |
|
|
int |
h |
|
) |
| [inline, slot] |
Establece el alto de una fila
- Parámetros:
-
| row | Nmero de orden de la fila, empezando en 0 |
| h | Alto de la fila |
| void FLTableInterface::setRowLabels |
( |
const QString & |
sep, |
|
|
const QString & |
str |
|
) |
| [inline, slot] |
Establece los ttulos de las filas
- Parámetros:
-
| sep. | Caracter separador de los ttulos |
| str. | Lista de ttulos separados por el carcter separador |
| void FLTableInterface::setRowReadOnly |
( |
int |
row, |
|
|
bool |
ro |
|
) |
| [inline, slot] |
Cambia una fila de modo solo lectura a lectura - escritura y viceversa.
- Parámetros:
-
| row. | nmero de fila |
| ro. | TRUE si la fila es de slo lectura, FALSE si no lo es |
| void FLTableInterface::setText |
( |
int |
row, |
|
|
int |
col, |
|
|
const QString & |
text |
|
) |
| [inline, slot] |
Establece un texto para casilla determinada
- Parámetros:
-
| row. | nmero de fila |
| col. | nmero de columna |
| text. | texto que deseamos insertar |
| void FLTableInterface::setTopMargin |
( |
int |
m | ) |
[inline, slot] |
Establece el margen para los ttulos de las columnas
- Parámetros:
-
| void FLTableInterface::showColumn |
( |
int |
col | ) |
[inline, slot] |
Muestra una columna
- Parámetros:
-
| void FLTableInterface::showRow |
( |
int |
row | ) |
[inline, slot] |
Muestra una fila
- Parámetros:
-
| void FLTableInterface::sortColumn |
( |
int |
col, |
|
|
bool |
ascending = true, |
|
|
bool |
wholeRows = false |
|
) |
| [inline, slot] |
Ordena una columna
- Parámetros:
-
| col,: | Nmero de columna |
| ascending. | Orden ascendente (true) o descendente (false) |
| wholeRows. | Ordenar slo la columna (false) o las filas enteras (true) |
| void FLTableInterface::swapColumns |
( |
int |
col1, |
|
|
int |
col2, |
|
|
bool |
swapHeader = false |
|
) |
| [inline, slot] |
Cambia una columna por otra
- Parámetros:
-
| col1,: | Columna 1 |
| col2,: | Columna 2 |
| swapHeader,: | Indica si hay que cambiar tambin las cabeceras de las columnas |
| void FLTableInterface::swapRows |
( |
int |
row1, |
|
|
int |
row2, |
|
|
bool |
swapHeader = false |
|
) |
| [inline, slot] |
Cambia una fila por otra
- Parámetros:
-
| row1,: | Fila 1 |
| row2,: | Fila 2 |
| swapHeader,: | Indica si hay que cambiar tambin las cabeceras de las filas |
| QString FLTableInterface::text |
( |
int |
row, |
|
|
int |
col |
|
) |
| [inline, slot] |
Devuelve el texto que contiene una determinada casilla de la tabla
- Parámetros:
-
| row. | nmero de la fila de la casilla |
| col. | nmero de la columna de la casilla |
| void FLTableInterface::valueChanged |
( |
int |
, |
|
|
int |
|
|
) |
| [signal] |
Seal emitida al cambiarse el valor de una celda
- Parámetros:
-
| int. | nmero de fila |
| int. | nmero columna |
Documentación de los datos miembro
La documentación para esta clase fue generada a partir de los siguientes ficheros: