kexi
KexiRelationView Class Reference
#include <kexirelationview.h>
Inherits QScrollView.
Detailed Description
provides a view for displaying relations between database tables.It is currently used for two purposes:
- displaying global database relations
- displaying relations defined for a database query
The class is for displaying only - retrieving data and updating data on the backend side is implemented in KexiRelationWidget, and more specifically in: Kexi Relation Part and Kexi Query Part.
Definition at line 68 of file kexirelationview.h.
Public Slots | |
| void | clearSelection () |
| void | clear () |
| void | removeAllConnections () |
| void | hideAllTablesExcept (KexiDB::TableSchema::List *tables) |
| void | slotTableScrolling (const QString &) |
| void | removeSelectedObject () |
Signals | |
| void | tableContextMenuRequest (const QPoint &pos) |
| void | connectionContextMenuRequest (const QPoint &pos) |
| void | emptyAreaContextMenuRequest (const QPoint &pos) |
| void | tableViewGotFocus () |
| void | connectionViewGotFocus () |
| void | emptyAreaGotFocus () |
| void | tableHidden (KexiDB::TableSchema &t) |
| void | tablePositionChanged (KexiRelationViewTableContainer *) |
| void | aboutConnectionRemove (KexiRelationViewConnection *) |
Public Member Functions | |
| KexiRelationView (QWidget *parent, const char *name=0) | |
| TablesDict * | tables () |
| KexiRelationViewTableContainer * | addTableContainer (KexiDB::TableSchema *t, const QRect &rect=QRect()) |
| KexiRelationViewTableContainer * | tableContainer (KexiDB::TableSchema *t) const |
| void | addConnection (const SourceConnection &_conn) |
| void | setReadOnly (bool) |
| KexiRelationViewConnection * | selectedConnection () const |
| KexiRelationViewTableContainer * | focusedTableView () const |
| virtual QSize | sizeHint () const |
| const ConnectionList * | connections () const |
Protected Slots | |
| void | containerMoved (KexiRelationViewTableContainer *c) |
| void | slotListUpdate (QObject *s) |
| void | slotTableViewEndDrag () |
| void | slotTableViewGotFocus () |
Protected Member Functions | |
| void | drawContents (QPainter *p, int cx, int cy, int cw, int ch) |
| void | contentsMousePressEvent (QMouseEvent *ev) |
| virtual void | keyPressEvent (QKeyEvent *ev) |
| void | recalculateSize (int width, int height) |
| void | stretchExpandSize () |
| void | hideTable (KexiRelationViewTableContainer *tableView) |
| void | removeConnection (KexiRelationViewConnection *conn) |
Protected Attributes | |
| TablesDict | m_tables |
| bool | m_readOnly |
| ConnectionList | m_connectionViews |
| KexiRelationViewConnection * | m_selectedConnection |
|
QGuardedPtr < KexiRelationViewTableContainer > | m_focusedTableView |
Member Function Documentation
| TablesDict* KexiRelationView::tables | ( | ) | [inline] |
| KexiRelationViewTableContainer * KexiRelationView::addTableContainer | ( | KexiDB::TableSchema * | t, | |
| const QRect & | rect = QRect() | |||
| ) |
Adds a table t to the area. This changes only visual representation. If rect is valid, table widget geometry will be initialized.
- Returns:
- added table container or 0 on failure.
- Todo:
- what about query?
Definition at line 123 of file kexirelationview.cpp.
| KexiRelationViewTableContainer * KexiRelationView::tableContainer | ( | KexiDB::TableSchema * | t | ) | const |
| void KexiRelationView::addConnection | ( | const SourceConnection & | _conn | ) |
Adds a connection con to the area. This changes only visual representation.
- Todo:
- what about query?
- Todo:
- what about query?
Definition at line 208 of file kexirelationview.cpp.
| void KexiRelationView::clearSelection | ( | ) | [slot] |
Clears current selection - table/query or connection.
Definition at line 412 of file kexirelationview.cpp.
| void KexiRelationView::clear | ( | ) | [slot] |
Removes all tables and connections from the view. Does not emit signals like tableHidden().
Definition at line 592 of file kexirelationview.cpp.
| void KexiRelationView::removeAllConnections | ( | ) | [slot] |
Removes all coonections from the view.
Definition at line 601 of file kexirelationview.cpp.
| void KexiRelationView::hideAllTablesExcept | ( | KexiDB::TableSchema::List * | tables | ) | [slot] |
Hides all tables except tables.
- Todo:
- what about queries?
Definition at line 552 of file kexirelationview.cpp.
| void KexiRelationView::removeSelectedObject | ( | ) | [slot] |
| void KexiRelationView::containerMoved | ( | KexiRelationViewTableContainer * | c | ) | [protected, slot] |
| void KexiRelationView::drawContents | ( | QPainter * | p, | |
| int | cx, | |||
| int | cy, | |||
| int | cw, | |||
| int | ch | |||
| ) | [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 278 of file kexirelationview.cpp.
| void KexiRelationView::stretchExpandSize | ( | ) | [protected] |
Resizes contents to size exactly enough to fit tableViews. Executed on every tableView's drop event.
Definition at line 467 of file kexirelationview.cpp.
| void KexiRelationView::hideTable | ( | KexiRelationViewTableContainer * | tableView | ) | [protected] |
The documentation for this class was generated from the following files:

