kexi
KexiDataSourcePage Class Reference
#include <kexidatasourcepage.h>
Inherits QWidget.
Detailed Description
A page within form designer's property tabbed pane, providing data source editor.Definition at line 38 of file kexidatasourcepage.h.
Public Slots | |
void | setProject (KexiProject *prj) |
void | clearDataSourceSelection (bool alsoClearComboBox=true) |
void | clearWidgetDataSourceSelection () |
void | setDataSource (const QCString &mimeType, const QCString &name) |
void | assignPropertySet (KoProperty::Set *propertySet) |
Signals | |
void | jumpToObjectRequested (const QCString &mime, const QCString &name) |
void | formDataSourceChanged (const QCString &mime, const QCString &name) |
void | dataSourceFieldOrExpressionChanged (const QString &string, const QString &caption, KexiDB::Field::Type type) |
void | insertAutoFields (const QString &sourceMimeType, const QString &sourceName, const QStringList &fields) |
Public Member Functions | |
KexiDataSourcePage (QWidget *parent, const char *name=0) | |
KexiDataSourceComboBox * | dataSourceCombo () const |
KexiObjectInfoLabel * | objectInfoLabel () const |
Protected Slots | |
void | slotDataSourceTextChanged (const QString &string) |
void | slotDataSourceChanged () |
void | slotFieldSelected () |
void | slotGotoSelected () |
void | slotInsertSelectedFields () |
void | slotFieldListViewSelectionChanged () |
void | slotFieldDoubleClicked (const QString &sourceMimeType, const QString &sourceName, const QString &fieldName) |
Protected Member Functions | |
void | updateSourceFieldWidgetsAvailability () |
Protected Attributes | |
KexiFieldComboBox * | m_sourceFieldCombo |
KexiObjectInfoLabel * | m_objectInfoLabel |
KexiDataSourceComboBox * | m_dataSourceCombo |
QLabel * | m_dataSourceLabel |
QLabel * | m_noDataSourceAvailableLabel |
QLabel * | m_widgetDSLabel |
QLabel * | m_availableFieldsLabel |
QLabel * | m_mousePointerLabel |
QLabel * | m_availableFieldsDescriptionLabel |
QToolButton * | m_clearWidgetDSButton |
QToolButton * | m_clearDSButton |
QToolButton * | m_gotoButton |
QToolButton * | m_addField |
QFrame * | m_dataSourceSeparator |
QString | m_noDataSourceAvailableSingleText |
QString | m_noDataSourceAvailableMultiText |
bool | m_insideClearDataSourceSelection: 1 |
KexiFieldListView * | m_fieldListView |
QCString | m_currentObjectName |
Constructor & Destructor Documentation
KexiDataSourcePage::KexiDataSourcePage | ( | QWidget * | parent, | |
const char * | name = 0 | |||
) |
- Todo:
- allow to hide such helpers by adding global option
Definition at line 46 of file kexidatasourcepage.cpp.
Member Function Documentation
void KexiDataSourcePage::setDataSource | ( | const QCString & | mimeType, | |
const QCString & | name | |||
) | [slot] |
Sets data source of a currently selected form.
This is performed on form initialization and on activating.
Definition at line 352 of file kexidatasourcepage.cpp.
void KexiDataSourcePage::assignPropertySet | ( | KoProperty::Set * | propertySet | ) | [slot] |
Receives a pointer to a new property set (from KexiFormView::managerPropertyChanged()).
Definition at line 357 of file kexidatasourcepage.cpp.
void KexiDataSourcePage::jumpToObjectRequested | ( | const QCString & | mime, | |
const QCString & | name | |||
) | [signal] |
Signal emitted when helper button 'go to selected data source' is clicked.
void KexiDataSourcePage::formDataSourceChanged | ( | const QCString & | mime, | |
const QCString & | name | |||
) | [signal] |
Signal emitted when form's data source has been changed. It's connected to the Form Manager.
void KexiDataSourcePage::dataSourceFieldOrExpressionChanged | ( | const QString & | string, | |
const QString & | caption, | |||
KexiDB::Field::Type | type | |||
) | [signal] |
Signal emitted when current widget's data source (field/expression) has been changed. It's connected to the Form Manager. caption for this field is also provided (e.g. AutoField form widget use it)
void KexiDataSourcePage::insertAutoFields | ( | const QString & | sourceMimeType, | |
const QString & | sourceName, | |||
const QStringList & | fields | |||
) | [signal] |
Signal emitted when 'insert fields' button has been clicked
void KexiDataSourcePage::slotDataSourceTextChanged | ( | const QString & | string | ) | [protected, slot] |
string.isEmpty() && m_dataSourceCombo->selectedName() == string.latin1();
Definition at line 275 of file kexidatasourcepage.cpp.
void KexiDataSourcePage::slotFieldSelected | ( | ) | [protected, slot] |
void KexiDataSourcePage::updateSourceFieldWidgetsAvailability | ( | ) | [protected] |
Member Data Documentation
QCString KexiDataSourcePage::m_currentObjectName [protected] |
Used only in assignPropertySet() to check whether we already have the set assigned.
Definition at line 108 of file kexidatasourcepage.h.
The documentation for this class was generated from the following files: