#include <connectiondialog.h>
|
| enum | { BAdd = 10
, BRemove
} |
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.
◆ anonymous enum
◆ ConnectionDialog()
| KFormDesigner::ConnectionDialog::ConnectionDialog |
( |
TQWidget * | parent | ) |
|
◆ ~ConnectionDialog()
| KFormDesigner::ConnectionDialog::~ConnectionDialog |
( |
| ) |
|
|
inline |
◆ checkConnection
| void KFormDesigner::ConnectionDialog::checkConnection |
( |
KexiTableItem * | item | ) |
|
|
protectedslot |
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.
◆ exec()
| void KFormDesigner::ConnectionDialog::exec |
( |
Form * | form | ) |
|
Displays as modal dialog, to edit connections in Form::connectionBuffer().
Definition at line 141 of file connectiondialog.cpp.
◆ initTable()
| void KFormDesigner::ConnectionDialog::initTable |
( |
| ) |
|
|
protected |
◆ newItem
| void KFormDesigner::ConnectionDialog::newItem |
( |
| ) |
|
|
protectedslot |
Creates a new item. It just moves the cursor to the last empty row.
Definition at line 359 of file connectiondialog.cpp.
◆ newItemByDragnDrop
| void KFormDesigner::ConnectionDialog::newItemByDragnDrop |
( |
| ) |
|
|
protectedslot |
◆ removeItem
| void KFormDesigner::ConnectionDialog::removeItem |
( |
| ) |
|
|
protectedslot |
◆ setStatusError()
| void KFormDesigner::ConnectionDialog::setStatusError |
( |
const TQString & | msg, |
|
|
KexiTableItem * | item = 0 ) |
|
protected |
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.
◆ setStatusOk()
| void KFormDesigner::ConnectionDialog::setStatusOk |
( |
KexiTableItem * | item = 0 | ) |
|
|
protected |
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.
◆ slotCellChanged
| void KFormDesigner::ConnectionDialog::slotCellChanged |
( |
KexiTableItem * | item, |
|
|
int | col, |
|
|
TQVariant & | , |
|
|
KexiDB::ResultInfo * | ) |
|
protectedslot |
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.
◆ slotCellSelected
| void KFormDesigner::ConnectionDialog::slotCellSelected |
( |
int | col, |
|
|
int | row ) |
|
protectedslot |
◆ slotConnectionAborted
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.
◆ slotConnectionCreated
| void KFormDesigner::ConnectionDialog::slotConnectionCreated |
( |
KFormDesigner::Form * | form, |
|
|
KFormDesigner::Connection & | connection ) |
|
protectedslot |
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.
◆ slotOk
| void KFormDesigner::ConnectionDialog::slotOk |
( |
| ) |
|
|
protectedvirtualslot |
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.
◆ slotRowInserted
| void KFormDesigner::ConnectionDialog::slotRowInserted |
( |
KexiTableItem * | item, |
|
|
bool | ) |
|
protectedslot |
◆ updateSignalList()
| void KFormDesigner::ConnectionDialog::updateSignalList |
( |
KexiTableItem * | item | ) |
|
|
protected |
◆ updateSlotList()
| void KFormDesigner::ConnectionDialog::updateSlotList |
( |
KexiTableItem * | item | ) |
|
|
protected |
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.
◆ updateTableData()
| void KFormDesigner::ConnectionDialog::updateTableData |
( |
| ) |
|
|
protected |
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.
◆ m_buffer
| ConnectionBuffer* KFormDesigner::ConnectionDialog::m_buffer |
|
protected |
◆ m_buttons
| TQIntDict<TQButton> KFormDesigner::ConnectionDialog::m_buttons |
|
protected |
◆ m_data
◆ m_form
| Form* KFormDesigner::ConnectionDialog::m_form |
|
protected |
◆ m_pixmapLabel
| TQLabel* KFormDesigner::ConnectionDialog::m_pixmapLabel |
|
protected |
◆ m_signalsColumnData
◆ m_slotsColumnData
◆ m_table
◆ m_textLabel
| TQLabel * KFormDesigner::ConnectionDialog::m_textLabel |
|
protected |
◆ m_widgetsColumnData
The documentation for this class was generated from the following files:
|