Kexi API Documentation (2.0 alpha)

KexiMacroPart Class Reference

#include <keximacropart.h>

Inheritance diagram for KexiMacroPart:

KexiPart::Part List of all members.

Detailed Description

Kexi Macro Plugin.

Definition at line 30 of file keximacropart.h.

Public Member Functions

 KexiMacroPart (QObject *parent, const char *name, const QStringList &args)
 Constructor.
virtual ~KexiMacroPart ()
 Destructor.
virtual bool execute (KexiPart::Item *item, QObject *sender=0)
 Implementation of the KexiPart::Part::action method used to provide scripts as KAction's to the outside world.
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

KexiMacroPart::KexiMacroPart 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 57 of file keximacropart.cpp.

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

KexiMacroPart::~KexiMacroPart  )  [virtual]
 

Destructor.

Definition at line 80 of file keximacropart.cpp.


Member Function Documentation

KexiViewBase * KexiMacroPart::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 126 of file keximacropart.cpp.

References Kexi::DataViewMode, Kexi::DesignViewMode, KexiDialogBase::mainWin(), KexiPart::Item::name(), KexiMainWindow::project(), KoMacro::Manager::self(), and Kexi::TextViewMode.

Referenced by execute().

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

Implementation of the KexiPart::Part::action method used to provide scripts as KAction's to the outside world.

Reimplemented from KexiPart::Part.

Definition at line 86 of file keximacropart.cpp.

References createView(), Kexi::DataViewMode, KexiMacroView::execute(), KexiPart::Item::identifier(), KexiMacroView::loadData(), KexiPart::Part::m_mainWin, KexiMacroView::macro(), KexiPart::Item::name(), and KexiDialogBase::setId().

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

Returns:
the i18n message for the passed englishMessage string.

Definition at line 159 of file keximacropart.cpp.

void KexiMacroPart::initInstanceActions  )  [protected, virtual]
 

Initialize the instance actions.

Reimplemented from KexiPart::Part.

Definition at line 120 of file keximacropart.cpp.

void KexiMacroPart::initPartActions  )  [protected, virtual]
 

Initialize the part's actions.

Reimplemented from KexiPart::Part.

Definition at line 108 of file keximacropart.cpp.

References KoMacro::Manager::init(), 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:11 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003