Kexi API Documentation (2.0 alpha)

KexiScriptPart Class Reference

#include <kexiscriptpart.h>

Inheritance diagram for KexiScriptPart:

KexiPart::Part List of all members.

Detailed Description

Kexi Scripting Plugin.

Definition at line 35 of file kexiscriptpart.h.

Public Member Functions

 KexiScriptPart (QObject *parent, const char *name, const QStringList &args)
 Constructor.
virtual ~KexiScriptPart ()
 Destructor.
virtual bool execute (KexiPart::Item *item, QObject *sender=0)
 Implementation of the KexiPart::Part::execute method used to execute the passed item instance.
virtual QString i18nMessage (const QCString &englishMessage) const

Protected Member Functions

virtual KexiViewBasecreateView (QWidget *parent, KexiDialogBase *dialog, KexiPart::Item &item, int viewMode=Kexi::DesignViewMode, QMap< QString, QString > *staticObjectArgs=0)
 Create a new view.
virtual void initPartActions ()
 Initialize the part's actions.
virtual void initInstanceActions ()
 Initialize the instance actions.


Constructor & Destructor Documentation

KexiScriptPart::KexiScriptPart QObject *  parent,
const char *  name,
const QStringList &  args
 

Constructor.

Parameters:
parent The parent QObject this part is child of.
name The name this part has.
args Optional list of arguments passed to this part.

Definition at line 47 of file kexiscriptpart.cpp.

References Kexi::DesignViewMode, KexiPart::Part::m_names, KexiPart::Part::m_registeredPartID, KexiPart::Part::m_supportedViewModes, and KexiPart::ScriptObjectType.

KexiScriptPart::~KexiScriptPart  )  [virtual]
 

Destructor.

Definition at line 65 of file kexiscriptpart.cpp.


Member Function Documentation

KexiViewBase * KexiScriptPart::createView QWidget parent,
KexiDialogBase dialog,
KexiPart::Item item,
int  viewMode = Kexi::DesignViewMode,
QMap< QString, QString > *  staticObjectArgs = 0
[protected, virtual]
 

Create a new view.

Parameters:
parent The parent QWidget the new view is displayed in.
dialog The KexiDialogBase the view is child of.
item The KexiPart::Item this view is for.
viewMode The viewmode we like to have a view for.

Implements KexiPart::Part.

Definition at line 162 of file kexiscriptpart.cpp.

References Kexi::DesignViewMode, KexiDialogBase::mainWin(), KexiPart::Item::name(), and KexiMainWindow::project().

Referenced by execute().

bool KexiScriptPart::execute KexiPart::Item item,
QObject *  sender = 0
[virtual]
 

Implementation of the KexiPart::Part::execute method used to execute the passed item instance.

Reimplemented from KexiPart::Part.

Definition at line 71 of file kexiscriptpart.cpp.

References createView(), Kexi::DesignViewMode, KexiPart::Item::identifier(), KexiPart::Part::m_mainWin, KexiScriptDesignView::scriptAction(), and KexiDialogBase::setId().

QString KexiScriptPart::i18nMessage const QCString &  englishMessage  )  const [virtual]
 

Returns:
the i18n message for the passed englishMessage string.

Definition at line 190 of file kexiscriptpart.cpp.

void KexiScriptPart::initInstanceActions  )  [protected, virtual]
 

Initialize the instance actions.

Reimplemented from KexiPart::Part.

Definition at line 156 of file kexiscriptpart.cpp.

References KexiPart::Part::createSharedAction(), and Kexi::DesignViewMode.

void KexiScriptPart::initPartActions  )  [protected, virtual]
 

Initialize the part's actions.

Reimplemented from KexiPart::Part.

Definition at line 114 of file kexiscriptpart.cpp.

References KexiMainWindow::findPopupMenu(), and KexiPart::Part::m_mainWin.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:23 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003