kexi
KexiRelationWidget Class Reference
Inheritance diagram for KexiRelationWidget:

Detailed Description
Definition at line 44 of file kexirelationwidget.h.
Public Slots | |
void | addTable (KexiDB::TableSchema *t, const QRect &rect=QRect()) |
void | addConnection (const SourceConnection &conn) |
void | removeSelectedObject () |
void | clear () |
void | removeAllConnections () |
void | hideAllTablesExcept (KexiDB::TableSchema::List *tables) |
Signals | |
void | tableAdded (KexiDB::TableSchema &t) |
void | tableHidden (KexiDB::TableSchema &t) |
void | tablePositionChanged (KexiRelationViewTableContainer *) |
void | aboutConnectionRemove (KexiRelationViewConnection *) |
void | tableFieldDoubleClicked (KexiDB::TableSchema *table, const QString &fieldName) |
Public Member Functions | |
KexiRelationWidget (KexiMainWindow *win, QWidget *parent, const char *name=0) | |
virtual | ~KexiRelationWidget () |
TablesDict * | tables () const |
KexiRelationViewTableContainer * | table (const QString &name) const |
const ConnectionList * | connections () const |
void | addTable (const QString &t) |
virtual QSize | sizeHint () const |
void | objectCreated (const QCString &mime, const QCString &name) |
void | objectDeleted (const QCString &mime, const QCString &name) |
void | objectRenamed (const QCString &mime, const QCString &name, const QCString &newName) |
Protected Slots | |
void | slotAddTable () |
void | tableViewGotFocus () |
void | connectionViewGotFocus () |
void | emptyAreaGotFocus () |
void | tableContextMenuRequest (const QPoint &pos) |
void | connectionContextMenuRequest (const QPoint &pos) |
void | emptyAreaContextMenuRequest (const QPoint &pos) |
void | openSelectedTable () |
void | designSelectedTable () |
void | slotTableHidden (KexiDB::TableSchema &table) |
void | aboutToShowPopupMenu () |
void | slotTableFieldDoubleClicked (QListViewItem *i, const QPoint &, int) |
Protected Member Functions | |
void | executePopup (QPoint pos=QPoint(-1,-1)) |
void | invalidateActions () |
void | fillTablesCombo () |
Member Function Documentation
TablesDict * KexiRelationWidget::tables | ( | ) | const |
void KexiRelationWidget::objectCreated | ( | const QCString & | mime, | |
const QCString & | name | |||
) |
Used to add newly created object information to the combo box.
- Todo:
- query?
Definition at line 375 of file kexirelationwidget.cpp.
void KexiRelationWidget::objectDeleted | ( | const QCString & | mime, | |
const QCString & | name | |||
) |
Definition at line 385 of file kexirelationwidget.cpp.
void KexiRelationWidget::objectRenamed | ( | const QCString & | mime, | |
const QCString & | name, | |||
const QCString & | newName | |||
) |
Definition at line 406 of file kexirelationwidget.cpp.
void KexiRelationWidget::addTable | ( | KexiDB::TableSchema * | t, | |
const QRect & | rect = QRect() | |||
) | [slot] |
Adds a table t to the area. This changes only visual representation. If rect is valid, table widget rgeometry will be initialized.
Definition at line 165 of file kexirelationwidget.cpp.
void KexiRelationWidget::addConnection | ( | const SourceConnection & | conn | ) | [slot] |
Adds a connection con to the area. This changes only visual representation.
Definition at line 204 of file kexirelationwidget.cpp.
void KexiRelationWidget::clear | ( | ) | [slot] |
Removes all tables and coonections from the widget.
Definition at line 353 of file kexirelationwidget.cpp.
void KexiRelationWidget::removeAllConnections | ( | ) | [slot] |
Removes all coonections from the view.
Definition at line 360 of file kexirelationwidget.cpp.
void KexiRelationWidget::hideAllTablesExcept | ( | KexiDB::TableSchema::List * | tables | ) | [slot] |
Hides all tables except tables.
Definition at line 422 of file kexirelationwidget.cpp.
void KexiRelationWidget::openSelectedTable | ( | ) | [protected, slot] |
Definition at line 289 of file kexirelationwidget.cpp.
void KexiRelationWidget::designSelectedTable | ( | ) | [protected, slot] |
Definition at line 299 of file kexirelationwidget.cpp.
void KexiRelationWidget::aboutToShowPopupMenu | ( | ) | [protected, slot] |
Definition at line 330 of file kexirelationwidget.cpp.
void KexiRelationWidget::executePopup | ( | QPoint | pos = QPoint(-1,-1) |
) | [protected] |
executes popup menu at pos, or, if pos not specified: at center of selected table view (if any selected), or at center point of the relations view.
Definition at line 272 of file kexirelationwidget.cpp.
void KexiRelationWidget::invalidateActions | ( | ) | [protected] |
void KexiRelationWidget::fillTablesCombo | ( | ) | [protected] |
Fills table's combo box with all available table names.
Definition at line 366 of file kexirelationwidget.cpp.
The documentation for this class was generated from the following files: