Table Viewer.
Mehr ...
#include <tableviewer.h>
Aufstellung aller Elemente
Öffentliche Typen |
| enum | TableViewerMode { TVM_EditMode = (1 << 0),
TVM_SelectMode = (1 << 1),
TVM_ReadOnly = (1 << 10)
} |
Öffentliche Slots |
| void | search (const QString &newText) |
| void | setSortAttribute (int section) |
| void | selectView (int selection) |
| void | selectTuple (QListViewItem *item) |
| void | closeEditor (TupleEditor *editor, const bool commited) |
| void | newClicked () |
| void | okayClicked () |
| void | nullClicked () |
| void | cancelClicked () |
Signale |
| void | doneSelection (TableViewer *viewer, const bool selected, const QString &selected) |
Öffentliche Methoden |
| | TableViewer (SQLConnectionInterface *connection, const ViewTable *viewTable, const cardinal mode=TVM_EditMode, const QString &joinAttribute=QString::null, const QString &joinValue=QString::null, const QString &selectAttribute=QString::null, const QString &selectValue=QString::null, QWidget *parent=NULL, const char *name=NULL) |
| | ~TableViewer () |
| void | loadTable (const char *tableName=NULL, const char *orderBy=NULL) |
Private Methoden |
| void | closeEvent (QCloseEvent *event) |
Private Attribute |
| SQLConnectionInterface * | Connection |
| QWhatsThis * | WhatsThis |
| QLabel * | StatusBar |
| QDict< TupleEditor > | TupleEditors |
| cardinal | Mode |
| const ViewTable * | Views |
| const ViewEntry * | View |
| QString | JoinAttribute |
| QString | JoinValue |
| QString | SelectAttribute |
| QString | SelectValue |
| QListView * | TableView |
| QList< QString > | Attributes |
| QLabel * | FindLabel |
| QLineEdit * | FindLineEdit |
| cardinal | FindSection |
| bool | SkipNextUpdate |
| cardinal | MinNotFoundIndex |
Ausführliche Beschreibung
Table Viewer.
TableViewer ist ein Qt-Widget zur Darstellung einer Tabelle.
- Autor:
- Thomas Dreibholz
- Version:
- 1.0
Dokumentation der Aufzählungstypen
Modus für den Viewer: Editieren der Tupel oder Selektion eines Tupels.
- Aufzählungswerte:
| TVM_EditMode |
|
| TVM_SelectMode |
|
| TVM_ReadOnly |
|
Beschreibung der Konstruktoren und Destruktoren
Constructor.
- Parameter:
-
| connection | Datenbank-Verbindung. |
| viewTable | ViewTable-Struktur für den Viewer. |
| mode | Modus des Viewers: Editier- oder Selektiermodus. |
| joinAttribute | Attribut für Join. |
| joinValue | Wert für Join. |
| selectAttribute | Attribut für Selektion. |
| selectValue | Start-Wert für Selektion. |
| parent | Parent QWidget; default: NULL. |
| name | Widget-Name; default: NULL. |
Dokumentation der Elementfunktionen
Qt-Slot: Tupel-Auswahl: Abbruch-Button geklickt.
Qt-Slot: Einen geöffneten Tupel-Editor wieder schließen.
Qt-Signal: Tupel-Auswahl: Auswahl durchgeführt.
Laden einer Tabelle aus der Datenbank.
- Parameter:
-
| tableName | Tabellen-Name. |
| orderBy | Sortierung (z.B. 'Name, Vorname') |
Qt-Slot: Neues Tupel einfügen.
Qt-Slot: Tupel-Auswahl: Null-Button geklickt.
Qt-Slot: Tupel-Auswahl: Okay-Button geklickt.
Qt-Slot: Tupel ausgewählt.
Qt-Slot: View ausgewählt.
Qt-Slot: Header des ListView-Widget angeklickt.
Dokumentation der Datenelemente
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: