kexi
KexiRelationView Class Reference
#include <kexirelationview.h>
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 (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) | |
virtual | ~KexiRelationView () |
TablesDict * | tables () |
KexiRelationViewTableContainer * | addTable (KexiDB::TableSchema *t, const QRect &rect=QRect()) |
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
|
Adds a connection con to the area. This changes only visual representation.
Definition at line 210 of file kexirelationview.cpp. |
|
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 117 of file kexirelationview.cpp. |
|
Removes all tables and connections from the view. Does not emit signals like tableHidden(). Definition at line 592 of file kexirelationview.cpp. |
|
Clears current selection - table/query or connection.
Definition at line 412 of file kexirelationview.cpp. |
|
Definition at line 303 of file kexirelationview.cpp. |
|
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 280 of file kexirelationview.cpp. |
|
Hides all tables except tables. Definition at line 552 of file kexirelationview.cpp. |
|
Definition at line 529 of file kexirelationview.cpp. |
|
Removes all coonections from the view. Definition at line 601 of file kexirelationview.cpp. |
|
removes selected table or connection
Definition at line 489 of file kexirelationview.cpp. |
|
Resizes contents to size exactly enough to fit tableViews. Executed on every tableView's drop event. Definition at line 467 of file kexirelationview.cpp. |
|
Definition at line 77 of file kexirelationview.h. |
The documentation for this class was generated from the following files: