kexi

#include <kexiformpart.h>

Inheritance diagram for KexiFormPart:
KexiPart::Part

Public Member Functions

 KexiFormPart (TQObject *parent, const char *name, const TQStringList &)
KexiDataSourcePage * dataSourcePage () const
void generateForm (KexiDB::FieldList *list, TQDomDocument &domDoc)
virtual TQString i18nMessage (const TQCString &englishMessage, KexiDialogBase *dlg) const
Public Member Functions inherited from KexiPart::Part
 Part (TQObject *parent, const char *name, const TQStringList &)
virtual ~Part ()
virtual bool execute (KexiPart::Item *item, TQObject *sender=0)
int supportedViewModes () const
int supportedUserViewModes () const
KexiDialogBase * openInstance (KexiMainWindow *win, KexiPart::Item &item, int viewMode=Kexi::DataViewMode, TQMap< TQString, TQString > *staticObjectArgs=0)
virtual bool remove (KexiMainWindow *win, KexiPart::Item &item)
virtual tristate rename (KexiMainWindow *win, KexiPart::Item &item, const TQString &newName)
TQCString instanceName () const
TQString instanceCaption () const
Info * info () const
GUIClient * guiClient () const
GUIClient * instanceGuiClient (int mode=0) const
TDEActionCollection * actionCollectionForMode (int viewMode) const
const Kexi::ObjectStatus & lastOperationStatus () const

Static Public Member Functions

static KFormDesigner::WidgetLibrary * library ()

Protected Slots

void slotAutoTabStopsSet (KFormDesigner::Form *form, bool set)
void slotAssignAction ()
void slotPropertyChanged (TQWidget *widget, const TQCString &name, const TQVariant &value)
void slotWidgetCreatedByFormsLibrary (TQWidget *widget)
Protected Slots inherited from KexiPart::Part
void slotCreate ()

Protected Member Functions

virtual KexiDialogTempData * createTempData (KexiDialogBase *dialog)
virtual KexiViewBase * createView (TQWidget *parent, KexiDialogBase *dialog, KexiPart::Item &item, int viewMode=Kexi::DataViewMode, TQMap< TQString, TQString > *staticObjectArgs=0)
virtual void initPartActions ()
virtual void initInstanceActions ()
virtual void setupCustomPropertyPanelTabs (KTabWidget *tab, KexiMainWindow *mainWin)
Protected Member Functions inherited from KexiPart::Part
 Part (TQObject *parent, StaticInfo *info)
void createGUIClients (KexiMainWindow *win)
virtual KexiDB::SchemaData * loadSchemaData (KexiDialogBase *dlg, const KexiDB::SchemaData &sdata, int viewMode)
bool loadDataBlock (KexiDialogBase *dlg, TQString &dataString, const TQString &dataID=TQString())
TDEAction * createSharedAction (int mode, const TQString &text, const TQString &pix_name, const TDEShortcut &cut, const char *name, const char *subclassName=0)
TDEAction * createSharedToggleAction (int mode, const TQString &text, const TQString &pix_name, const TDEShortcut &cut, const char *name)
TDEAction * createSharedPartAction (const TQString &text, const TQString &pix_name, const TDEShortcut &cut, const char *name, const char *subclassName=0)
TDEAction * createSharedPartToggleAction (const TQString &text, const TQString &pix_name, const TDEShortcut &cut, const char *name)
void setActionAvailable (const char *action_name, bool avail)
void setInfo (Info *info)

Static Protected Attributes

static KFormDesigner::WidgetLibrary * static_formsLibrary = 0L

Additional Inherited Members

Signals inherited from KexiPart::Part
void newObjectRequest (KexiPart::Info *info)
Protected Attributes inherited from KexiPart::Part
TQMap< TQString, TQString > m_names
int m_supportedViewModes
int m_supportedUserViewModes
Info * m_info
GUIClient * m_guiClient
TQIntDict< GUIClient > m_instanceGuiClients
KexiMainWindow * m_mainWin
Kexi::ObjectStatus m_status
int m_registeredPartID
bool m_newObjectsAreDirty: 1
PartPrivate * d

Detailed Description

Kexi Form Plugin.

It just creates a KexiFormView. See there for most of code.

Definition at line 49 of file kexiformpart.h.

Constructor & Destructor Documentation

◆ KexiFormPart()

KexiFormPart::KexiFormPart ( TQObject * parent,
const char * name,
const TQStringList & l )

Definition at line 80 of file kexiformpart.cpp.

◆ ~KexiFormPart()

KexiFormPart::~KexiFormPart ( )
virtual

Definition at line 119 of file kexiformpart.cpp.

Member Function Documentation

◆ createTempData()

KexiDialogTempData * KexiFormPart::createTempData ( KexiDialogBase * dialog)
protectedvirtual

Creates and returns a new temporary data for a dialog dialog. This method is called on openInstance() once per dialog. Reimplement this to return KexiDialogTempData subclass instance. Default implemention just returns empty KexiDialogTempData object.

Reimplemented from KexiPart::Part.

Definition at line 231 of file kexiformpart.cpp.

◆ createView()

KexiViewBase * KexiFormPart::createView ( TQWidget * parent,
KexiDialogBase * dialog,
KexiPart::Item & item,
int viewMode = Kexi::DataViewMode,
TQMap< TQString, TQString > * staticObjectArgs = 0 )
protectedvirtual

Creates a new view for mode viewMode, item and parent. The view will be used inside dialog.

Implements KexiPart::Part.

Definition at line 236 of file kexiformpart.cpp.

◆ dataSourcePage()

KexiDataSourcePage * KexiFormPart::dataSourcePage ( ) const

Definition at line 480 of file kexiformpart.cpp.

◆ generateForm()

void KexiFormPart::generateForm ( KexiDB::FieldList * list,
TQDomDocument & domDoc )

line edit!

Definition at line 253 of file kexiformpart.cpp.

◆ i18nMessage()

TQString KexiFormPart::i18nMessage ( const TQCString & englishMessage,
KexiDialogBase * dlg ) const
virtual
Returns
i18n'd message translated from englishMessage. This method is useful for messages like: "<p>Table \"%1\" has been modified.</p>", – such messages can be accurately translated, while this could not: "<p>%1 \"%2\" has been modified.</p>". See implementation of this method in KexiTablePart to see what strings are needed for translation.

Default implementation returns generic englishMessage. In special cases, englishMessage can start with ":", to indicate that empty string will be generated if a part does not offer a message for such englishMessage. This is used e.g. in KexiMainWindowImpl::closeDialog().

Reimplemented from KexiPart::Part.

Definition at line 444 of file kexiformpart.cpp.

◆ initInstanceActions()

void KexiFormPart::initInstanceActions ( )
protectedvirtual

Reimplemented from KexiPart::Part.

Definition at line 159 of file kexiformpart.cpp.

◆ initPartActions()

void KexiFormPart::initPartActions ( )
protectedvirtual

Reimplemented from KexiPart::Part.

Definition at line 153 of file kexiformpart.cpp.

◆ library()

KFormDesigner::WidgetLibrary * KexiFormPart::library ( )
static
Returns
a pointer to Forms Widget Library.

Definition at line 124 of file kexiformpart.cpp.

◆ setupCustomPropertyPanelTabs()

void KexiFormPart::setupCustomPropertyPanelTabs ( KTabWidget * tab,
KexiMainWindow * mainWin )
protectedvirtual

This method can be reimplemented to setup additional tabs in the property editor panel. Default implementation does nothing. This method is called whenever current dialog (KexiDialogBase) is switched and type (mime type) of its contents differs from previous one. For example, if a user switched from Table Designer to Form Designer, additional tab containing Form Designer's object tree should be shown.

Reimplemented from KexiPart::Part.

Definition at line 485 of file kexiformpart.cpp.

◆ slotAssignAction

void KexiFormPart::slotAssignAction ( )
protectedslot

Definition at line 406 of file kexiformpart.cpp.

◆ slotAutoTabStopsSet

void KexiFormPart::slotAutoTabStopsSet ( KFormDesigner::Form * form,
bool set )
protectedslot

Definition at line 397 of file kexiformpart.cpp.

◆ slotPropertyChanged

void KexiFormPart::slotPropertyChanged ( TQWidget * widget,
const TQCString & name,
const TQVariant & value )
protectedslot

Definition at line 456 of file kexiformpart.cpp.

◆ slotWidgetCreatedByFormsLibrary

void KexiFormPart::slotWidgetCreatedByFormsLibrary ( TQWidget * widget)
protectedslot

Definition at line 511 of file kexiformpart.cpp.

Member Data Documentation

◆ static_formsLibrary

KFormDesigner::WidgetLibrary * KexiFormPart::static_formsLibrary = 0L
staticprotected
Todo
#define KEXI_SHOW_SPLITTER_WIDGET

Definition at line 95 of file kexiformpart.h.


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