Kexi API Documentation (2.0 alpha)

KexiScriptEditor Class Reference

#include <kexiscripteditor.h>

Inheritance diagram for KexiScriptEditor:

KexiEditor KexiViewBase QWidget KexiActionProxy List of all members.

Detailed Description

The KexiEditor class embeds text editor for editing scripting code.

Definition at line 36 of file kexiscripteditor.h.

Public Slots

void slotTextChanged ()
void setLineNo (long)

Public Member Functions

 KexiScriptEditor (KexiMainWindow *mainWin, QWidget *parent, const char *name=0)
 Constructor.
virtual ~KexiScriptEditor ()
 Destructor.
bool isInitialized () const
void initialize (Kross::Api::ScriptAction *scriptaction)
 Initializes the editor.


Constructor & Destructor Documentation

KexiScriptEditor::KexiScriptEditor KexiMainWindow mainWin,
QWidget parent,
const char *  name = 0
 

Constructor.

Definition at line 44 of file kexiscripteditor.cpp.

KexiScriptEditor::~KexiScriptEditor  )  [virtual]
 

Destructor.

Definition at line 50 of file kexiscripteditor.cpp.


Member Function Documentation

void KexiScriptEditor::initialize Kross::Api::ScriptAction *  scriptaction  ) 
 

Initializes the editor.

Call this if you like to start with a clear editor instance. Thinks like the language highlighter will be reset, undo/redo are cleared and setDirty(false) is set.

Definition at line 60 of file kexiscripteditor.cpp.

References KexiEditor::clearUndoRedo(), KexiViewBase::setDirty(), KexiEditor::setHighlightMode(), KexiEditor::setText(), slotTextChanged(), and KexiEditor::textChanged().

bool KexiScriptEditor::isInitialized  )  const
 

Returns:
true if this editor is already initialized (initialize was called) else false is returned.

Definition at line 55 of file kexiscripteditor.cpp.

void KexiScriptEditor::setLineNo long   )  [slot]
 

Definition at line 98 of file kexiscripteditor.cpp.

References KexiEditor::setCursorPosition().

void KexiScriptEditor::slotTextChanged  )  [slot]
 

Definition at line 91 of file kexiscripteditor.cpp.

References KexiViewBase::setDirty(), and KexiEditor::text().

Referenced by initialize().


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:22 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003