kexi

#include <kexidatasourcepage.h>

Public Slots

void setProject (KexiProject *prj)
void clearDataSourceSelection (bool alsoClearComboBox=true)
void clearWidgetDataSourceSelection ()
void setDataSource (const TQCString &mimeType, const TQCString &name)
void assignPropertySet (KoProperty::Set *propertySet)

Signals

void jumpToObjectRequested (const TQCString &mime, const TQCString &name)
void formDataSourceChanged (const TQCString &mime, const TQCString &name)
void dataSourceFieldOrExpressionChanged (const TQString &string, const TQString &caption, KexiDB::Field::Type type)
void insertAutoFields (const TQString &sourceMimeType, const TQString &sourceName, const TQStringList &fields)

Public Member Functions

 KexiDataSourcePage (TQWidget *parent, const char *name=0)
KexiDataSourceComboBox * dataSourceCombo () const
KexiObjectInfoLabel * objectInfoLabel () const

Protected Slots

void slotDataSourceTextChanged (const TQString &string)
void slotDataSourceChanged ()
void slotFieldSelected ()
void slotGotoSelected ()
void slotInsertSelectedFields ()
void slotFieldListViewSelectionChanged ()
void slotFieldDoubleClicked (const TQString &sourceMimeType, const TQString &sourceName, const TQString &fieldName)

Protected Member Functions

void updateSourceFieldWidgetsAvailability ()

Protected Attributes

KexiFieldComboBox * m_sourceFieldCombo
KexiObjectInfoLabel * m_objectInfoLabel
KexiDataSourceComboBox * m_dataSourceCombo
TQLabel * m_dataSourceLabel
TQLabel * m_noDataSourceAvailableLabel
TQLabel * m_widgetDSLabel
TQLabel * m_availableFieldsLabel
TQLabel * m_mousePointerLabel
TQLabel * m_availableFieldsDescriptionLabel
TQToolButton * m_clearWidgetDSButton
TQToolButton * m_clearDSButton
TQToolButton * m_gotoButton
TQToolButton * m_addField
TQFrame * m_dataSourceSeparator
TQString m_noDataSourceAvailableSingleText
TQString m_noDataSourceAvailableMultiText
bool m_insideClearDataSourceSelection: 1
KexiFieldListView * m_fieldListView
TQCString m_currentObjectName

Detailed Description

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

Definition at line 38 of file kexidatasourcepage.h.

Constructor & Destructor Documentation

◆ KexiDataSourcePage()

KexiDataSourcePage::KexiDataSourcePage ( TQWidget * parent,
const char * name = 0 )
Todo
allow to hide such helpers by adding global option

Definition at line 46 of file kexidatasourcepage.cpp.

◆ ~KexiDataSourcePage()

KexiDataSourcePage::~KexiDataSourcePage ( )
virtual

Definition at line 204 of file kexidatasourcepage.cpp.

Member Function Documentation

◆ assignPropertySet

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.

◆ clearDataSourceSelection

void KexiDataSourcePage::clearDataSourceSelection ( bool alsoClearComboBox = true)
slot

Definition at line 214 of file kexidatasourcepage.cpp.

◆ clearWidgetDataSourceSelection

void KexiDataSourcePage::clearWidgetDataSourceSelection ( )
slot

Definition at line 234 of file kexidatasourcepage.cpp.

◆ dataSourceCombo()

KexiDataSourceComboBox * KexiDataSourcePage::dataSourceCombo ( ) const
inline

Definition at line 47 of file kexidatasourcepage.h.

◆ dataSourceFieldOrExpressionChanged

void KexiDataSourcePage::dataSourceFieldOrExpressionChanged ( const TQString & string,
const TQString & 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)

◆ formDataSourceChanged

void KexiDataSourcePage::formDataSourceChanged ( const TQCString & mime,
const TQCString & name )
signal

Signal emitted when form's data source has been changed. It's connected to the Form Manager.

◆ insertAutoFields

void KexiDataSourcePage::insertAutoFields ( const TQString & sourceMimeType,
const TQString & sourceName,
const TQStringList & fields )
signal

Signal emitted when 'insert fields' button has been clicked

◆ jumpToObjectRequested

void KexiDataSourcePage::jumpToObjectRequested ( const TQCString & mime,
const TQCString & name )
signal

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

◆ objectInfoLabel()

KexiObjectInfoLabel * KexiDataSourcePage::objectInfoLabel ( ) const
inline

Definition at line 48 of file kexidatasourcepage.h.

◆ setDataSource

void KexiDataSourcePage::setDataSource ( const TQCString & mimeType,
const TQCString & 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.

◆ setProject

void KexiDataSourcePage::setProject ( KexiProject * prj)
slot

Definition at line 208 of file kexidatasourcepage.cpp.

◆ slotDataSourceChanged

void KexiDataSourcePage::slotDataSourceChanged ( )
protectedslot

Definition at line 290 of file kexidatasourcepage.cpp.

◆ slotDataSourceTextChanged

void KexiDataSourcePage::slotDataSourceTextChanged ( const TQString & string)
protectedslot

string.isEmpty() && m_dataSourceCombo->selectedName() == string.latin1();

Definition at line 275 of file kexidatasourcepage.cpp.

◆ slotFieldDoubleClicked

void KexiDataSourcePage::slotFieldDoubleClicked ( const TQString & sourceMimeType,
const TQString & sourceName,
const TQString & fieldName )
protectedslot

Definition at line 265 of file kexidatasourcepage.cpp.

◆ slotFieldListViewSelectionChanged

void KexiDataSourcePage::slotFieldListViewSelectionChanged ( )
protectedslot

Definition at line 444 of file kexidatasourcepage.cpp.

◆ slotFieldSelected

void KexiDataSourcePage::slotFieldSelected ( )
protectedslot
Todo
this should also work for expressions

Definition at line 331 of file kexidatasourcepage.cpp.

◆ slotGotoSelected

void KexiDataSourcePage::slotGotoSelected ( )
protectedslot

Definition at line 244 of file kexidatasourcepage.cpp.

◆ slotInsertSelectedFields

void KexiDataSourcePage::slotInsertSelectedFields ( )
protectedslot

Definition at line 253 of file kexidatasourcepage.cpp.

◆ updateSourceFieldWidgetsAvailability()

void KexiDataSourcePage::updateSourceFieldWidgetsAvailability ( )
protected

m_dataSourceCombo->selectedName().isEmpty();

Definition at line 458 of file kexidatasourcepage.cpp.

Member Data Documentation

◆ m_addField

TQToolButton * KexiDataSourcePage::m_addField
protected

Definition at line 98 of file kexidatasourcepage.h.

◆ m_availableFieldsDescriptionLabel

TQLabel * KexiDataSourcePage::m_availableFieldsDescriptionLabel
protected

Definition at line 97 of file kexidatasourcepage.h.

◆ m_availableFieldsLabel

TQLabel * KexiDataSourcePage::m_availableFieldsLabel
protected

Definition at line 96 of file kexidatasourcepage.h.

◆ m_clearDSButton

TQToolButton * KexiDataSourcePage::m_clearDSButton
protected

Definition at line 98 of file kexidatasourcepage.h.

◆ m_clearWidgetDSButton

TQToolButton* KexiDataSourcePage::m_clearWidgetDSButton
protected

Definition at line 98 of file kexidatasourcepage.h.

◆ m_currentObjectName

TQCString KexiDataSourcePage::m_currentObjectName
protected

Used only in assignPropertySet() to check whether we already have the set assigned.

Definition at line 109 of file kexidatasourcepage.h.

◆ m_dataSourceCombo

KexiDataSourceComboBox* KexiDataSourcePage::m_dataSourceCombo
protected

Definition at line 94 of file kexidatasourcepage.h.

◆ m_dataSourceLabel

TQLabel* KexiDataSourcePage::m_dataSourceLabel
protected

Definition at line 95 of file kexidatasourcepage.h.

◆ m_dataSourceSeparator

TQFrame* KexiDataSourcePage::m_dataSourceSeparator
protected

Definition at line 99 of file kexidatasourcepage.h.

◆ m_fieldListView

KexiFieldListView* KexiDataSourcePage::m_fieldListView
protected

Definition at line 105 of file kexidatasourcepage.h.

◆ m_gotoButton

TQToolButton * KexiDataSourcePage::m_gotoButton
protected

Definition at line 98 of file kexidatasourcepage.h.

◆ m_insideClearDataSourceSelection

bool KexiDataSourcePage::m_insideClearDataSourceSelection
protected

Definition at line 101 of file kexidatasourcepage.h.

◆ m_mousePointerLabel

TQLabel * KexiDataSourcePage::m_mousePointerLabel
protected

Definition at line 97 of file kexidatasourcepage.h.

◆ m_noDataSourceAvailableLabel

TQLabel * KexiDataSourcePage::m_noDataSourceAvailableLabel
protected

Definition at line 95 of file kexidatasourcepage.h.

◆ m_noDataSourceAvailableMultiText

TQString KexiDataSourcePage::m_noDataSourceAvailableMultiText
protected

Definition at line 100 of file kexidatasourcepage.h.

◆ m_noDataSourceAvailableSingleText

TQString KexiDataSourcePage::m_noDataSourceAvailableSingleText
protected

Definition at line 100 of file kexidatasourcepage.h.

◆ m_objectInfoLabel

KexiObjectInfoLabel* KexiDataSourcePage::m_objectInfoLabel
protected

Definition at line 93 of file kexidatasourcepage.h.

◆ m_sourceFieldCombo

KexiFieldComboBox* KexiDataSourcePage::m_sourceFieldCombo
protected

Definition at line 92 of file kexidatasourcepage.h.

◆ m_widgetDSLabel

TQLabel * KexiDataSourcePage::m_widgetDSLabel
protected

Definition at line 96 of file kexidatasourcepage.h.


The documentation for this class was generated from the following files: