#include <attributeeditor.h>
Aufstellung aller Elemente
Klassen |
| struct | ValueListEntry |
Öffentliche Slots |
| void | returnPressed () |
| void | clicked () |
| void | activated (int number) |
| void | valueSelected (TableViewer *viewer, const bool selected, const QString &selection) |
Signale |
| void | userUpdate () |
Öffentliche Methoden |
| | AttributeEditor (SQLConnectionInterface *connection, const ViewEntry *view, const QString &attribute, const bool editable=true, const QString &value=QString::null, QWidget *parent=NULL, const char *name=NULL) |
| | ~AttributeEditor () |
| QString | getValue () const |
| void | setValue (const QString &value) |
| void | mark () |
Private Methoden |
| QString | fetchTuple (const QString &tableName, const QString &attributes, const QString &key, const QString &keyValue) |
| QList< ValueListEntry > * | fetchValueList (const QString &tableName, const QString &attributes, const QString &key) |
Private Attribute |
| SQLConnectionInterface * | Connection |
| const ViewEntry * | View |
| QString | Attribute |
| QLineEdit * | LineEdit |
| QLabel * | Label |
| QComboBox * | ComboBox |
| QPushButton * | Button |
| TableViewer * | Selector |
| const ViewTable * | SelectView |
| QString | SelectValue |
| QString | SelectAttribute |
| QString | SelectInfoAttributes |
| QList< ValueListEntry > * | SelectList |
Beschreibung der Konstruktoren und Destruktoren
Constructor.
- Parameter:
-
| connection | Datenbank-Verbindung. |
| view | ViewEntry des Attributes. |
| editable | Ist Wert editierbar? |
| value | Startwert. |
| parent | Parent QWidget; default: NULL. |
| name | Widget-Name; default: NULL. |
Dokumentation der Elementfunktionen
Qt-Slot: Wert ComboBox gewählt.
Qt-Slot: "Auswahl..."-Button angeklickt.
| QString AttributeEditor::fetchTuple |
( |
const QString & |
tableName, |
|
|
const QString & |
attributes, |
|
|
const QString & |
key, |
|
|
const QString & |
keyValue |
|
) |
| [private] |
Wert des Attributes zurückgeben.
- Rückgabe:
- Attributwert.
Eingabe markieren (z.B. nach Update-Fehler).
Qt-Slot: Return in LineEdit gedrückt.
Wert des Attributes setzen
- Parameter:
-
Qt-Signal: Wert-Eingabe in LineEdit mit Return beendet.
Qt-Slot: Selektion durchgeführt.
Dokumentation der Datenelemente
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: