kexi

KexiRelationWidget Class Reference

Inheritance diagram for KexiRelationWidget:

KexiViewBase KexiActionProxy List of all members.

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
KexiRelationViewTableContainertable (const QString &name) const
const ConnectionList * connections () const
void addTable (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

void KexiRelationWidget::aboutToShowPopupMenu  )  [protected, slot]
 

Todo:
what about query?

Definition at line 328 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 202 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::clear  )  [slot]
 

Removes all tables and coonections from the widget.

Definition at line 351 of file kexirelationwidget.cpp.

void KexiRelationWidget::designSelectedTable  )  [protected, slot]
 

Todo:
what about query?

Definition at line 297 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 270 of file kexirelationwidget.cpp.

void KexiRelationWidget::fillTablesCombo  )  [protected]
 

Fills table's combo box with all available table names.

Definition at line 364 of file kexirelationwidget.cpp.

void KexiRelationWidget::hideAllTablesExcept KexiDB::TableSchema::List tables  )  [slot]
 

Hides all tables except tables.

Definition at line 420 of file kexirelationwidget.cpp.

void KexiRelationWidget::invalidateActions  )  [protected]
 

Invalidates all actions availability.

Definition at line 265 of file kexirelationwidget.cpp.

void KexiRelationWidget::objectCreated const QCString &  mime,
const QCString &  name
 

Used to add newly created object information to the combo box.

Definition at line 373 of file kexirelationwidget.cpp.

void KexiRelationWidget::objectDeleted const QCString &  mime,
const QCString &  name
 

Todo:
query?

Definition at line 383 of file kexirelationwidget.cpp.

void KexiRelationWidget::objectRenamed const QCString &  mime,
const QCString &  name,
const QCString &  newName
 

Todo:
query?

Definition at line 404 of file kexirelationwidget.cpp.

void KexiRelationWidget::openSelectedTable  )  [protected, slot]
 

Todo:
what about query?

Definition at line 287 of file kexirelationwidget.cpp.

void KexiRelationWidget::removeAllConnections  )  [slot]
 

Removes all coonections from the view.

Definition at line 358 of file kexirelationwidget.cpp.

TablesDict * KexiRelationWidget::tables  )  const
 

Returns:
a dictionary of added tables

Definition at line 139 of file kexirelationwidget.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys