#include <kexirelationview.h>
Inherits TQScrollView.
Public Slots | |
| void | clearSelection () |
| void | clear () |
| void | removeAllConnections () |
| void | hideAllTablesExcept (KexiDB::TableSchema::List *tables) |
| void | slotTableScrolling (const TQString &) |
| void | removeSelectedObject () |
Signals | |
| void | tableContextMenuRequest (const TQPoint &pos) |
| void | connectionContextMenuRequest (const TQPoint &pos) |
| void | emptyAreaContextMenuRequest (const TQPoint &pos) |
| void | tableViewGotFocus () |
| void | connectionViewGotFocus () |
| void | emptyAreaGotFocus () |
| void | tableHidden (KexiDB::TableSchema &t) |
| void | tablePositionChanged (KexiRelationViewTableContainer *) |
| void | aboutConnectionRemove (KexiRelationViewConnection *) |
Public Member Functions | |
| KexiRelationView (TQWidget *parent, const char *name=0) | |
| TablesDict * | tables () |
| KexiRelationViewTableContainer * | addTableContainer (KexiDB::TableSchema *t, const TQRect &rect=TQRect()) |
| KexiRelationViewTableContainer * | tableContainer (KexiDB::TableSchema *t) const |
| void | addConnection (const SourceConnection &_conn) |
| void | setReadOnly (bool) |
| KexiRelationViewConnection * | selectedConnection () const |
| KexiRelationViewTableContainer * | focusedTableView () const |
| virtual TQSize | sizeHint () const |
| const ConnectionList * | connections () const |
Protected Slots | |
| void | containerMoved (KexiRelationViewTableContainer *c) |
| void | slotListUpdate (TQObject *s) |
| void | slotTableViewEndDrag () |
| void | slotTableViewGotFocus () |
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.
Constructor & Destructor Documentation
◆ KexiRelationView()
| KexiRelationView::KexiRelationView | ( | TQWidget * | parent, |
| const char * | name = 0 |
||
| ) |
Definition at line 48 of file kexirelationview.cpp.
◆ ~KexiRelationView()
|
virtual |
Definition at line 100 of file kexirelationview.cpp.
Member Function Documentation
◆ addConnection()
| 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.
◆ addTableContainer()
| KexiRelationViewTableContainer * KexiRelationView::addTableContainer | ( | KexiDB::TableSchema * | t, |
| const TQRect & | rect = TQRect() |
||
| ) |
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.
◆ clear
|
slot |
Removes all tables and connections from the view. Does not emit signals like tableHidden().
Definition at line 592 of file kexirelationview.cpp.
◆ clearSelection
|
slot |
Clears current selection - table/query or connection.
Definition at line 412 of file kexirelationview.cpp.
◆ connections()
|
inline |
Definition at line 101 of file kexirelationview.h.
◆ containerMoved
|
protectedslot |
◆ focusedTableView()
|
inline |
Definition at line 97 of file kexirelationview.h.
◆ hideAllTablesExcept
|
slot |
Hides all tables except tables.
- Todo:
- what about queries?
Definition at line 552 of file kexirelationview.cpp.
◆ removeAllConnections
|
slot |
Removes all coonections from the view.
Definition at line 601 of file kexirelationview.cpp.
◆ removeSelectedObject
|
slot |
removes selected table or connection
Definition at line 489 of file kexirelationview.cpp.
◆ selectedConnection()
|
inline |
Definition at line 95 of file kexirelationview.h.
◆ setReadOnly()
| void KexiRelationView::setReadOnly | ( | bool | b | ) |
Definition at line 333 of file kexirelationview.cpp.
◆ sizeHint()
|
virtual |
Definition at line 587 of file kexirelationview.cpp.
◆ slotListUpdate
|
protectedslot |
Definition at line 349 of file kexirelationview.cpp.
◆ slotTableScrolling
|
slot |
Definition at line 292 of file kexirelationview.cpp.
◆ slotTableViewEndDrag
|
protectedslot |
Definition at line 481 of file kexirelationview.cpp.
◆ slotTableViewGotFocus
|
protectedslot |
Definition at line 574 of file kexirelationview.cpp.
◆ tableContainer()
| KexiRelationViewTableContainer * KexiRelationView::tableContainer | ( | KexiDB::TableSchema * | t | ) | const |
- Returns
- table container for table t.
Definition at line 117 of file kexirelationview.cpp.
◆ tables()
|
inline |
- Returns
- a dictionary of added tables
Definition at line 78 of file kexirelationview.h.
The documentation for this class was generated from the following files:
