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
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 210 of file kexirelationview.cpp.
KexiRelationViewTableContainer * KexiRelationView::addTable | ( | 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 rgeometry will be initialized.
- Todo:
- what about query?
Definition at line 117 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::clearSelection | ( | ) | [slot] |
Clears current selection - table/query or connection.
Definition at line 412 of file kexirelationview.cpp.
void KexiRelationView::containerMoved | ( | KexiRelationViewTableContainer * | c | ) | [protected, slot] |
Definition at line 303 of file kexirelationview.cpp.
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 280 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::hideTable | ( | KexiRelationViewTableContainer * | tableView | ) | [protected] |
Definition at line 529 of file kexirelationview.cpp.
void KexiRelationView::removeAllConnections | ( | ) | [slot] |
Removes all coonections from the view.
Definition at line 601 of file kexirelationview.cpp.
void KexiRelationView::removeSelectedObject | ( | ) | [slot] |
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.
TablesDict* KexiRelationView::tables | ( | ) | [inline] |
The documentation for this class was generated from the following files: