KFormDesigner::ConnectionDialog Class Reference
#include <connectiondialog.h>
Inheritance diagram for KFormDesigner::ConnectionDialog:

Detailed Description
This dialog is used to edit the connections of a form. It uses KexiTableView for this. There is also a details widget (icon + text)) that shows correctness of current connection.
Definition at line 46 of file connectiondialog.h.
Member Enumeration Documentation
|
|
Definition at line 102 of file connectiondialog.h. |
Constructor & Destructor Documentation
|
|
Definition at line 48 of file connectiondialog.cpp. References KexiTableView::adjustColumnWidthToContents(), BAdd, BRemove, initTable(), m_buttons, m_data, m_pixmapLabel, m_table, m_textLabel, newItem(), removeItem(), KexiTableView::setData(), KexiDataAwareObjectInterface::setInsertingEnabled(), KexiTableView::setSpreadSheetMode(), slotCellSelected(), and slotRowInserted(). |
|
|
Definition at line 52 of file connectiondialog.h. |
Member Function Documentation
|
|
This function checks if the connection represented by KexiTableItem item is valid. It checks if all args (sender, receiver, signal and slot) are given, and then if signal/slot args are compatible (should be always true, as we don't show non-compatible slots). It calls setStatusOk() or setStatusError() following the result of checks. Definition at line 330 of file connectiondialog.cpp. References KexiTableViewData::column(), m_data, setStatusError(), and setStatusOk(). Referenced by initTable(), and slotRowInserted(). |
|
|
Displays as modal dialog, to edit connections in Form::connectionBuffer(). Definition at line 141 of file connectiondialog.cpp. References m_form, and updateTableData(). Referenced by KFormDesigner::FormManager::editConnections(). |
|
|
Inits table data, columns, etc.
Definition at line 102 of file connectiondialog.cpp. References KexiTableViewData::addColumn(), checkConnection(), KexiDB::Field::Enum, KexiTableViewColumn::field(), m_data, m_signalsColumnData, m_slotsColumnData, m_table, m_widgetsColumnData, KexiTableView::maximizeColumnsWidth(), KexiTableView::setColumnStretchEnabled(), KexiTableViewColumn::setReadOnly(), KexiTableViewColumn::setRelatedData(), slotCellChanged(), and KexiDB::Field::Text. Referenced by ConnectionDialog(). |
|
|
Creates a new item. It just moves the cursor to the last empty row. Definition at line 359 of file connectiondialog.cpp. References KexiTableView::acceptRowEdit(), m_table, KexiDataAwareObjectInterface::rows(), and KexiDataAwareObjectInterface::setCursorPosition(). Referenced by ConnectionDialog(), and slotConnectionAborted(). |
|
|
Hides the dialog and allow the user to create the Connection by drag-and-drop in the Form itself. Currently disabled in the GUI. Definition at line 366 of file connectiondialog.cpp. References KFormDesigner::FormManager::self(), slotConnectionAborted(), and slotConnectionCreated(). |
|
|
Definition at line 403 of file connectiondialog.cpp. References KexiDataAwareObjectInterface::currentRow(), KexiDataAwareObjectInterface::deleteItem(), m_buffer, m_table, KexiDataAwareObjectInterface::rows(), and KexiDataAwareObjectInterface::selectedItem(). Referenced by ConnectionDialog(). |
|
||||||||||||
|
Used when connection is wrong. Displays a message in details widget and changes icon in 'OK?' column. msg is the message explaining what's wrong. Definition at line 238 of file connectiondialog.cpp. References KexiDataAwareObjectInterface::currentRow(), m_pixmapLabel, m_table, m_textLabel, KexiDataAwareObjectInterface::rows(), and KexiDataAwareObjectInterface::selectedItem(). Referenced by checkConnection(). |
|
|
Used when connection is ok. Displays a message in details widget and changes icon in 'OK?' column. Definition at line 219 of file connectiondialog.cpp. References KexiDataAwareObjectInterface::currentRow(), m_pixmapLabel, m_table, m_textLabel, KexiDataAwareObjectInterface::rows(), and KexiDataAwareObjectInterface::selectedItem(). Referenced by checkConnection(). |
|
||||||||||||||||||||
|
Slot called when the user modifies a cell. Signal and/or slot cells are cleared if necessary (not valid anymore). Definition at line 257 of file connectiondialog.cpp. Referenced by initTable(). |
|
||||||||||||
|
Definition at line 149 of file connectiondialog.cpp. References BRemove, KexiDataAwareObjectInterface::itemAt(), m_buttons, m_table, updateSignalList(), and updateSlotList(). Referenced by ConnectionDialog(). |
|
|
This slot is called when the user aborts connection creation (when in drag-and-drop mode). The dialog is restored, and an empty connection is created. Definition at line 393 of file connectiondialog.cpp. References m_form, and newItem(). Referenced by newItemByDragnDrop(). |
|
||||||||||||
|
This slot is called when the user ends connection creation (when in drag-and-drop mode). The dialog is restored, and the created connection is added to the list. Definition at line 376 of file connectiondialog.cpp. References KexiDataAwareObjectInterface::data(), KexiDataAwareObjectInterface::insertItem(), m_buffer, m_form, m_table, KFormDesigner::Connection::receiver(), KexiDataAwareObjectInterface::rows(), KFormDesigner::Connection::sender(), KFormDesigner::Connection::signal(), and KFormDesigner::Connection::slot(). Referenced by newItemByDragnDrop(). |
|
|
Slot called when the user presses 'Ok' button. The Form::connectionBuffer() is deleted, created again and filled with Connection. If the user presses 'Cancel', nothing happens. Definition at line 168 of file connectiondialog.cpp. References KFormDesigner::Form::connectionBuffer(), KexiDataAwareObjectInterface::itemAt(), m_buffer, m_form, m_table, KexiDataAwareObjectInterface::rows(), KFormDesigner::Form::setConnectionBuffer(), KFormDesigner::Connection::setReceiver(), KFormDesigner::Connection::setSender(), KFormDesigner::Connection::setSignal(), and KFormDesigner::Connection::setSlot(). |
|
||||||||||||
|
Definition at line 161 of file connectiondialog.cpp. References checkConnection(), and m_buffer. Referenced by ConnectionDialog(). |
|
|
Updates the signal list, according to the sender name.
Definition at line 311 of file connectiondialog.cpp. References KexiTableViewData::append(), KexiTableViewData::createItem(), KexiTableViewData::deleteAllRows(), m_form, m_signalsColumnData, KFormDesigner::Form::objectTree(), and KFormDesigner::ObjectTreeItem::widget(). Referenced by slotCellSelected(). |
|
|
Updates the slot list, according to the receiver name, and only shows those who are compatible with signal args. Definition at line 277 of file connectiondialog.cpp. References KexiTableViewData::append(), KexiTableViewData::createItem(), KexiTableViewData::deleteAllRows(), m_form, m_slotsColumnData, KFormDesigner::Form::objectTree(), and KFormDesigner::ObjectTreeItem::widget(). Referenced by slotCellSelected(). |
|
|
Updates the widget list (shown in receiver and sender columns). Then fill in the table with the connections in m_buffer. Definition at line 190 of file connectiondialog.cpp. References KexiTableViewData::append(), KFormDesigner::Form::connectionBuffer(), KexiTableViewData::createItem(), KexiDataAwareObjectInterface::data(), KexiDataAwareObjectInterface::insertItem(), m_buffer, m_form, m_table, m_widgetsColumnData, KFormDesigner::Form::objectTree(), KFormDesigner::Connection::receiver(), KexiDataAwareObjectInterface::rows(), KFormDesigner::Connection::sender(), KFormDesigner::Connection::signal(), and KFormDesigner::Connection::slot(). Referenced by exec(). |
Member Data Documentation
|
|
Definition at line 104 of file connectiondialog.h. Referenced by removeItem(), slotConnectionCreated(), slotOk(), slotRowInserted(), and updateTableData(). |
|
|
Definition at line 109 of file connectiondialog.h. Referenced by ConnectionDialog(), and slotCellSelected(). |
|
|
Definition at line 106 of file connectiondialog.h. Referenced by checkConnection(), ConnectionDialog(), and initTable(). |
|
|
Definition at line 103 of file connectiondialog.h. Referenced by exec(), slotConnectionAborted(), slotConnectionCreated(), slotOk(), updateSignalList(), updateSlotList(), and updateTableData(). |
|
|
Definition at line 108 of file connectiondialog.h. Referenced by ConnectionDialog(), setStatusError(), and setStatusOk(). |
|
|
Definition at line 107 of file connectiondialog.h. Referenced by initTable(), and updateSignalList(). |
|
|
Definition at line 107 of file connectiondialog.h. Referenced by initTable(), and updateSlotList(). |
|
|
Definition at line 105 of file connectiondialog.h. Referenced by ConnectionDialog(), initTable(), newItem(), removeItem(), setStatusError(), setStatusOk(), slotCellSelected(), slotConnectionCreated(), slotOk(), and updateTableData(). |
|
|
Definition at line 108 of file connectiondialog.h. Referenced by ConnectionDialog(), setStatusError(), and setStatusOk(). |
|
|
Definition at line 107 of file connectiondialog.h. Referenced by initTable(), and updateTableData(). |
The documentation for this class was generated from the following files:
