kexi

#include <kexireportfactory.h>

Inheritance diagram for KexiReportFactory:
KFormDesigner::WidgetFactory

Public Slots

void editText ()
Public Slots inherited from KFormDesigner::WidgetFactory
void resetEditor ()

Public Member Functions

 KexiReportFactory (TQObject *parent, const char *name, const TQStringList &args)
virtual TQString name ()
virtual TQWidget * createWidget (const TQCString &classname, TQWidget *parent, const char *name, KFormDesigner::Container *container, int options=DefaultOptions)
virtual bool createMenuActions (const TQCString &classname, TQWidget *w, TQPopupMenu *menu, KFormDesigner::Container *container)
virtual bool startEditing (const TQCString &classname, TQWidget *w, KFormDesigner::Container *container)
virtual bool previewWidget (const TQCString &, TQWidget *, KFormDesigner::Container *)
virtual TQValueList< TQCString > autoSaveProperties (const TQCString &classname)
Public Member Functions inherited from KFormDesigner::WidgetFactory
 WidgetFactory (TQObject *parent=0, const char *name=0)
void addClass (WidgetInfo *w)
void hideClass (const char *classname)
const WidgetInfo::Dict classes () const
virtual void createCustomActions (TDEActionCollection *col)
virtual bool clearWidgetContent (const TQCString &classname, TQWidget *w)
virtual bool saveSpecialProperty (const TQCString &classname, const TQString &name, const TQVariant &value, TQWidget *w, TQDomElement &parentNode, TQDomDocument &parent)
virtual bool readSpecialProperty (const TQCString &classname, TQDomElement &node, TQWidget *w, ObjectTreeItem *item)
bool isPropertyVisible (const TQCString &classname, TQWidget *w, const TQCString &property, bool multiple, bool isTopLevel)
TQString propertyDescForName (const TQCString &name)
TQString propertyDescForValue (const TQCString &name)
virtual void setPropertyOptions (WidgetPropertySet &buf, const WidgetInfo &info, TQWidget *w)
TQString internalProperty (const TQCString &classname, const TQCString &property) const

Protected Member Functions

virtual bool isPropertyVisibleInternal (const TQCString &, TQWidget *, const TQCString &, bool isTopLevel)
Protected Member Functions inherited from KFormDesigner::WidgetFactory
virtual bool propertySetShouldBeReloadedAfterPropertyChange (const TQCString &classname, TQWidget *w, const TQCString &property)
void createEditor (const TQCString &classname, const TQString &text, TQWidget *w, Container *container, TQRect geometry, int align, bool useFrame=false, bool multiLine=false, BackgroundMode background=TQt::NoBackground)
void disableFilter (TQWidget *w, Container *container)
bool editList (TQWidget *w, TQStringList &list)
bool editRichText (TQWidget *w, TQString &text)
void editListView (TQListView *listview)
virtual bool eventFilter (TQObject *obj, TQEvent *ev)
void changeProperty (const char *name, const TQVariant &value, Form *form)
virtual void resizeEditor (TQWidget *editor, TQWidget *widget, const TQCString &classname)
bool inheritsFactories ()
TQString editorText () const
void setEditorText (const TQString &text)
void setEditor (TQWidget *widget, TQWidget *editor)
TQWidget * editor (TQWidget *widget) const
void setWidget (TQWidget *widget, Container *container)
TQWidget * widget () const
void setInternalProperty (const TQCString &classname, const TQCString &property, const TQString &value)

Additional Inherited Members

Public Types inherited from KFormDesigner::WidgetFactory
enum  CreateWidgetOptions {
  AnyOrientation = 1 , HorizontalOrientation = 2 , VerticalOrientation = 4 , DesignViewMode = 8 ,
  DefaultOptions = AnyOrientation | DesignViewMode
}
Protected Slots inherited from KFormDesigner::WidgetFactory
virtual bool changeText (const TQString &newText)
void changeTextInternal (const TQString &text)
void slotTextChanged ()
void editorDeleted ()
void widgetDestroyed ()
Protected Attributes inherited from KFormDesigner::WidgetFactory
WidgetLibrary * m_library
TQCString m_editedWidgetClass
TQString m_firstText
TQGuardedPtr< ResizeHandleSet > m_handles
TQGuardedPtr< Container > m_container
WidgetInfo::Dict m_classesByName
TQAsciiDict< char > * m_hiddenClasses
TQMap< TQCString, TQString > m_propDesc
TQMap< TQCString, TQString > m_propValDesc
TQMap< TQCString, TQString > m_internalProp
bool m_showAdvancedProperties
TQString m_xmlGUIFileName
KXMLGUIClient * m_guiClient
TQGuardedPtr< TQWidget > m_widget
TQGuardedPtr< TQWidget > m_editor

Detailed Description

Kexi Factory (DB widgets + subform).

Definition at line 26 of file kexireportfactory.h.

Constructor & Destructor Documentation

◆ KexiReportFactory()

KexiReportFactory::KexiReportFactory ( TQObject * parent,
const char * name,
const TQStringList & args )

Definition at line 36 of file kexireportfactory.cpp.

◆ ~KexiReportFactory()

KexiReportFactory::~KexiReportFactory ( )
virtual

Definition at line 85 of file kexireportfactory.cpp.

Member Function Documentation

◆ autoSaveProperties()

TQValueList< TQCString > KexiReportFactory::autoSaveProperties ( const TQCString & classname)
virtual

You need to return here a list of the properties that should automatically be saved for a widget belonging to classname, and your custom properties (eg "text" for label or button, "contents" for combobox...).

Implements KFormDesigner::WidgetFactory.

Definition at line 164 of file kexireportfactory.cpp.

◆ createMenuActions()

bool KexiReportFactory::createMenuActions ( const TQCString & classname,
TQWidget * w,
TQPopupMenu * menu,
KFormDesigner::Container * container )
virtual

This function can be used to add custom items in widget w context menu menu.

Todo
use TDEAction

Implements KFormDesigner::WidgetFactory.

Definition at line 117 of file kexireportfactory.cpp.

◆ createWidget()

TQWidget * KexiReportFactory::createWidget ( const TQCString & classname,
TQWidget * parent,
const char * name,
KFormDesigner::Container * container,
int options = DefaultOptions )
virtual

Creates a widget (and if needed a KFormDesigner::Container).

Returns
the created widget
Parameters
classnamethe classname of the widget, which should get created
parentthe parent for the created widget
namethe name of the created widget
containerthe toplevel Container (if a container should get created)
optionsoptions for the created widget: orientation and view mode (see CreateWidgetOptions)

Implements KFormDesigner::WidgetFactory.

Definition at line 96 of file kexireportfactory.cpp.

◆ editText

void KexiReportFactory::editText ( )
slot

Definition at line 201 of file kexireportfactory.cpp.

◆ isPropertyVisibleInternal()

bool KexiReportFactory::isPropertyVisibleInternal ( const TQCString & classname,
TQWidget * w,
const TQCString & property,
bool isTopLevel )
protectedvirtual

This function is called when we want to know whether the property should be visible. Implement it in the factory; don't forget to call implementation in the superclass. Default implementation hides "caption", "icon", "sizeIncrement" and "iconText" properties.

Reimplemented from KFormDesigner::WidgetFactory.

Definition at line 149 of file kexireportfactory.cpp.

◆ name()

TQString KexiReportFactory::name ( )
virtual

Definition at line 90 of file kexireportfactory.cpp.

◆ previewWidget()

bool KexiReportFactory::previewWidget ( const TQCString & classname,
TQWidget * widget,
KFormDesigner::Container * container )
virtual

This function is called just before the Form is previewed. It allows widgets to make changes before switching (ie for a Spring, hiding the cross)

Implements KFormDesigner::WidgetFactory.

Definition at line 219 of file kexireportfactory.cpp.

◆ startEditing()

bool KexiReportFactory::startEditing ( const TQCString & classname,
TQWidget * w,
KFormDesigner::Container * container )
virtual

Creates (if necessary) an editor to edit the contents of the widget directly in the Form (eg creates a line edit to change the text of a label). classname is the class the widget belongs to, w is the widget to edit and container is the parent container of this widget (to access Form etc.).

Implements KFormDesigner::WidgetFactory.

Definition at line 131 of file kexireportfactory.cpp.


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