kexi

KFormDesigner::WidgetWithSubpropertiesInterface Class Reference

#include <widgetwithsubpropertiesinterface.h>

Inheritance diagram for KFormDesigner::WidgetWithSubpropertiesInterface:
KexiDBAutoField KexiDBComboBox

Public Member Functions

void setSubwidget (TQWidget *widget)
TQWidget * subwidget () const
TQValueList< TQCString > subproperies () const
const TQMetaProperty * findMetaSubproperty (const char *name) const
TQVariant subproperty (const char *name, bool &ok) const
bool setSubproperty (const char *name, const TQVariant &value)

Protected Attributes

TQGuardedPtr< TQWidget > m_subwidget
TQValueList< TQCString > m_subproperies

Detailed Description

An interface for declaring form widgets to have subproperties.

Currently used in KexiDBAutoField to allow editing specific properties of its internal editor. For example, if the autofield is of type Image Box, the Image Box widget has some specific properties like "lineWidth". Such properties are provided by the parent KexiDBAutoField object as subproperties.

Definition at line 36 of file widgetwithsubpropertiesinterface.h.

Constructor & Destructor Documentation

◆ WidgetWithSubpropertiesInterface()

WidgetWithSubpropertiesInterface::WidgetWithSubpropertiesInterface ( )

Definition at line 29 of file widgetwithsubpropertiesinterface.cpp.

◆ ~WidgetWithSubpropertiesInterface()

WidgetWithSubpropertiesInterface::~WidgetWithSubpropertiesInterface ( )
virtual

Definition at line 33 of file widgetwithsubpropertiesinterface.cpp.

Member Function Documentation

◆ findMetaSubproperty()

const TQMetaProperty * WidgetWithSubpropertiesInterface::findMetaSubproperty ( const char * name) const
Returns
a meta property for a widget's subproperty or 0 if there is no such subproperty.

Definition at line 71 of file widgetwithsubpropertiesinterface.cpp.

◆ setSubproperty()

bool WidgetWithSubpropertiesInterface::setSubproperty ( const char * name,
const TQVariant & value )

Sets a subproperty value value for a subproperty name

Returns
true on successful setting and false when there is no such a subproperty in the subwidget or TQObject::setProperty() failed.

Definition at line 92 of file widgetwithsubpropertiesinterface.cpp.

◆ setSubwidget()

void WidgetWithSubpropertiesInterface::setSubwidget ( TQWidget * widget)

Sets widget subwidget handling subproperties. Setting 0 clears subwidget.

Todo
maybe someone wants to add more than one widget here?

Definition at line 37 of file widgetwithsubpropertiesinterface.cpp.

◆ subproperies()

TQValueList< TQCString > WidgetWithSubpropertiesInterface::subproperies ( ) const
Returns
a list of subproperties available for this widget. This is achieved by only listing those properties that are available in the

Definition at line 66 of file widgetwithsubpropertiesinterface.cpp.

◆ subproperty()

TQVariant WidgetWithSubpropertiesInterface::subproperty ( const char * name,
bool & ok ) const
Returns
a value of widget's subproperty. ok is set to true on success and to false on failure.

Definition at line 82 of file widgetwithsubpropertiesinterface.cpp.

◆ subwidget()

TQWidget * WidgetWithSubpropertiesInterface::subwidget ( ) const
Returns
the assigned subwidget.

Definition at line 61 of file widgetwithsubpropertiesinterface.cpp.

Member Data Documentation

◆ m_subproperies

TQValueList<TQCString> KFormDesigner::WidgetWithSubpropertiesInterface::m_subproperies
protected

Definition at line 68 of file widgetwithsubpropertiesinterface.h.

◆ m_subwidget

TQGuardedPtr<TQWidget> KFormDesigner::WidgetWithSubpropertiesInterface::m_subwidget
protected

Definition at line 67 of file widgetwithsubpropertiesinterface.h.


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