kexi

KexiDataSourcePage Class Reference

#include <kexidatasourcepage.h>

List of all members.


Detailed Description

A page within form's property tabbed pane, providing data source information.

Definition at line 40 of file kexidatasourcepage.h.


Public Slots

void setProject (KexiProject *prj)
void clearDataSourceSelection ()
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)
virtual ~KexiDataSourcePage ()
KexiDataSourceComboBoxdataSourceCombo () const
KexiObjectInfoLabelobjectInfoLabel () const

Protected Slots

void slotDataSourceTextChanged (const QString &string)
void slotDataSourceSelected ()
void slotFieldSelected ()
void slotGotoSelected ()
void slotInsertSelectedFields ()
void slotFieldListViewSelectionChanged ()

Protected Member Functions

void updateSourceFieldWidgetsAvailability ()

Protected Attributes

KexiFieldComboBoxm_sourceFieldCombo
KexiObjectInfoLabelm_objectInfoLabel
KexiDataSourceComboBoxm_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
KexiFieldListViewm_fieldListView

Constructor & Destructor Documentation

KexiDataSourcePage::KexiDataSourcePage QWidget *  parent,
const char *  name = 0
 

Todo:
allow to hide such helpers by adding global option

Definition at line 44 of file kexidatasourcepage.cpp.


Member Function Documentation

void KexiDataSourcePage::assignPropertySet KoProperty::Set *  propertySet  )  [slot]
 

Receives a pointer to a new property set (from KexiFormView::managerPropertyChanged()).

Definition at line 335 of file kexidatasourcepage.cpp.

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::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::insertAutoFields const QString &  sourceMimeType,
const QString &  sourceName,
const QStringList &  fields
[signal]
 

Signal emitted when 'insert fields' button has been clicked

void KexiDataSourcePage::jumpToObjectRequested const QCString &  mime,
const QCString &  name
[signal]
 

Signal emitted when helper button 'go to selected data source' is clicked.

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 330 of file kexidatasourcepage.cpp.

void KexiDataSourcePage::slotFieldSelected  )  [protected, slot]
 

Todo:
this should also work for expressions

Definition at line 311 of file kexidatasourcepage.cpp.

void KexiDataSourcePage::slotInsertSelectedFields  )  [protected, slot]
 

Todo:
what about query fields/aliases? it.current()->text(0) can be not enough

Definition at line 236 of file kexidatasourcepage.cpp.


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