KexiDataSourceComboBox Class Reference
#include <kexidatasourcecombobox.h>
Inheritance diagram for KexiDataSourceComboBox:

Detailed Description
A combo box listing availabe data sources (tables and queries) with icons."Define query..." item can be also prepended.
Definition at line 34 of file kexidatasourcecombobox.h.
Public Slots | |
| void | setProject (KexiProject *prj, bool showTables=true, bool showQueries=true) |
| Sets global project that is used to retrieve schema informationm for this combo box. | |
| void | setDataSource (const QString &mimeType, const QString &name) |
Signals | |
| void | dataSourceChanged () |
| Emitted whenever data source changes. | |
Public Member Functions | |
| KexiDataSourceComboBox (QWidget *parent, const char *name=0) | |
| ~KexiDataSourceComboBox () | |
| KexiProject * | project () const |
| QString | selectedMimeType () const |
| QString | selectedName () const |
| bool | isSelectionValid () const |
| int | findItem (const QString &mimeType, const QString &name) |
Protected Slots | |
| void | slotNewItemStored (KexiPart::Item &item) |
| void | slotItemRemoved (const KexiPart::Item &item) |
| void | slotItemRenamed (const KexiPart::Item &item, const QCString &oldName) |
| void | slotActivated (int index) |
| void | slotReturnPressed (const QString &text) |
Protected Member Functions | |
| virtual void | focusOutEvent (QFocusEvent *e) |
Protected Attributes | |
| Private * | d |
Constructor & Destructor Documentation
|
||||||||||||
|
Definition at line 72 of file kexidatasourcecombobox.cpp. References d, slotActivated(), and slotReturnPressed(). |
|
|
Definition at line 86 of file kexidatasourcecombobox.cpp. References d. |
Member Function Documentation
|
|
Emitted whenever data source changes. Even setting invalid data source or clearing it will emit this signal. Referenced by setDataSource(), slotActivated(), and slotReturnPressed(). |
|
||||||||||||
|
Definition at line 213 of file kexidatasourcecombobox.cpp. References d. Referenced by setDataSource(), slotItemRemoved(), and slotItemRenamed(). |
|
|
Definition at line 325 of file kexidatasourcecombobox.cpp. References slotReturnPressed(). |
|
|
Definition at line 296 of file kexidatasourcecombobox.cpp. References d. Referenced by selectedName(), KexiDataSourcePage::slotDataSourceChanged(), KexiDataSourcePage::slotDataSourceTextChanged(), KexiDataSourcePage::slotGotoSelected(), and KexiDataSourcePage::updateSourceFieldWidgetsAvailability(). |
|
|
Definition at line 91 of file kexidatasourcecombobox.cpp. References d. Referenced by KexiDataSourcePage::slotDataSourceChanged(). |
|
|
Definition at line 277 of file kexidatasourcecombobox.cpp. References d, and selectedName(). Referenced by KexiDataSourcePage::slotDataSourceChanged(), and KexiDataSourcePage::slotGotoSelected(). |
|
|
Definition at line 289 of file kexidatasourcecombobox.cpp. References isSelectionValid(). Referenced by KexiDataSourcePage::clearDataSourceSelection(), selectedMimeType(), KexiDataSourcePage::slotDataSourceChanged(), KexiDataSourcePage::slotDataSourceTextChanged(), and KexiDataSourcePage::slotGotoSelected(). |
|
||||||||||||
|
Sets item for data source described by mimeType and name. If mimeType is empty, either "kexi/table" and "kexi/query" are tried. Definition at line 165 of file kexidatasourcecombobox.cpp. References d, dataSourceChanged(), findItem(), and slotActivated(). Referenced by KexiDataSourcePage::clearDataSourceSelection(), and KexiDataSourcePage::setDataSource(). |
|
||||||||||||||||
|
Sets global project that is used to retrieve schema informationm for this combo box. Tables visibility can be set using showTables queries visibility using showQueries. Definition at line 96 of file kexidatasourcecombobox.cpp. References d, KexiProject::getSortedItems(), Kexi::partManager(), slotItemRemoved(), slotItemRenamed(), and slotNewItemStored(). Referenced by KexiDataSourcePage::setProject(). |
|
|
Definition at line 269 of file kexidatasourcecombobox.cpp. References d, and dataSourceChanged(). Referenced by KexiDataSourceComboBox(), and setDataSource(). |
|
|
Definition at line 239 of file kexidatasourcecombobox.cpp. References d, and findItem(). Referenced by setProject(). |
|
||||||||||||
|
Definition at line 258 of file kexidatasourcecombobox.cpp. References findItem(), KexiPart::Item::mimeType(), and KexiPart::Item::name(). Referenced by setProject(). |
|
|
Definition at line 189 of file kexidatasourcecombobox.cpp. References d, KexiPart::Item::mimeType(), and KexiPart::Item::name(). Referenced by setProject(). |
|
|
Definition at line 302 of file kexidatasourcecombobox.cpp. References dataSourceChanged(). Referenced by focusOutEvent(), and KexiDataSourceComboBox(). |
Member Data Documentation
|
|
Definition at line 84 of file kexidatasourcecombobox.h. Referenced by findItem(), isSelectionValid(), KexiDataSourceComboBox(), project(), selectedMimeType(), setDataSource(), setProject(), slotActivated(), slotItemRemoved(), slotNewItemStored(), and ~KexiDataSourceComboBox(). |
The documentation for this class was generated from the following files:
