• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

Public Member Functions | Protected Attributes | List of all members
KateJScript Class Reference

#include <katejscript.h>

Inherited by TestJScriptEnv.

Public Member Functions

 KateJScript ()
 
virtual ~KateJScript ()
 
KJS::ObjectImp * wrapDocument (KJS::ExecState *exec, KateDocument *doc)
 
KJS::ObjectImp * wrapView (KJS::ExecState *exec, KateView *view)
 
bool execute (KateView *view, const TQString &script, TQString &errorMsg)
 

Protected Attributes

KJS::Object * m_global
 
KJS::Interpreter * m_interpreter
 
KJS::Object * m_document
 
KJS::Object * m_view
 

Detailed Description

Whole Kate Part scripting in one classs Allow subclassing to allow specialized scripting engine for indenters.

Definition at line 52 of file katejscript.h.

Constructor & Destructor Documentation

◆ KateJScript()

KateJScript::KateJScript ( )

generate new global interpreter for part scripting

Definition at line 238 of file katejscript.cpp.

◆ ~KateJScript()

KateJScript::~KateJScript ( )
virtual

be destructive

Definition at line 252 of file katejscript.cpp.

Member Function Documentation

◆ execute()

bool KateJScript::execute ( KateView *  view,
const TQString &  script,
TQString &  errorMsg 
)

execute given script the script will get the doc and view exposed via document and view object in global scope

Parameters
viewview to expose
scriptsource code of script to execute
errorMsgerror to return if no success
Returns
success or not?

Definition at line 270 of file katejscript.cpp.

◆ wrapDocument()

KJS::ObjectImp * KateJScript::wrapDocument ( KJS::ExecState *  exec,
KateDocument *  doc 
)

creates a JS wrapper object for given KateDocument

Parameters
execexecution state, to find out interpreter to use
docdocument object to wrap
Returns
new js wrapper object

Definition at line 260 of file katejscript.cpp.

◆ wrapView()

KJS::ObjectImp * KateJScript::wrapView ( KJS::ExecState *  exec,
KateView *  view 
)

creates a JS wrapper object for given KateView

Parameters
execexecution state, to find out interpreter to use
viewview object to wrap
Returns
new js wrapper object

Definition at line 265 of file katejscript.cpp.

Member Data Documentation

◆ m_document

KJS::Object* KateJScript::m_document
protected

object for document

Definition at line 106 of file katejscript.h.

◆ m_global

KJS::Object* KateJScript::m_global
protected

global object of interpreter

Definition at line 96 of file katejscript.h.

◆ m_interpreter

KJS::Interpreter* KateJScript::m_interpreter
protected

js interpreter

Definition at line 101 of file katejscript.h.

◆ m_view

KJS::Object* KateJScript::m_view
protected

object for view

Definition at line 111 of file katejscript.h.


The documentation for this class was generated from the following files:
  • katejscript.h
  • katejscript.cpp

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.