• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

Public Member Functions | List of all members
KateIndentScript Class Reference

#include <kateindentscript.h>

Inheritance diagram for KateIndentScript:
Inheritance graph
[legend]

Public Member Functions

 KateIndentScript (const QString &url, const KateIndentScriptHeader &header)
 
QPair< int, int > indent (KateView *view, const KTextEditor::Cursor &position, QChar typedCharacter, int indentWidth)
 
const KateIndentScriptHeader & indentHeader () const
 
const QString & triggerCharacters ()
 
- Public Member Functions inherited from KateScript
 KateScript (const QString &urlOrScript, enum InputType inputType=InputURL)
 
virtual ~KateScript ()
 
QString backtrace (const QScriptValue &error, const QString &header=QString())
 
void clearExceptions ()
 
void displayBacktrace (const QScriptValue &error, const QString &header=QString())
 
const QString & errorMessage ()
 
QScriptValue function (const QString &name)
 
KateScriptHeader & generalHeader ()
 
QScriptValue global (const QString &name)
 
bool load ()
 
void setGeneralHeader (const KateScriptHeader &generalHeader)
 
bool setView (KateView *view)
 
const QString & url ()
 

Additional Inherited Members

- Public Types inherited from KateScript
enum  InputType { InputURL, InputSCRIPT }
 
- Protected Member Functions inherited from KateScript
bool hasException (const QScriptValue &object, const QString &file)
 
- Protected Attributes inherited from KateScript
QScriptEngine * m_engine
 

Detailed Description

A specialized class for scripts that are of type KateScriptInformation::IndentationScript.

Definition at line 94 of file kateindentscript.h.

Constructor & Destructor Documentation

KateIndentScript::KateIndentScript ( const QString &  url,
const KateIndentScriptHeader &  header 
)

Definition at line 28 of file kateindentscript.cpp.

Member Function Documentation

QPair< int, int > KateIndentScript::indent ( KateView *  view,
const KTextEditor::Cursor &  position,
QChar  typedCharacter,
int  indentWidth 
)

Returns a pair where the first value is the indent amount, and the second value is the alignment.

Definition at line 55 of file kateindentscript.cpp.

const KateIndentScriptHeader & KateIndentScript::indentHeader ( ) const

Definition at line 35 of file kateindentscript.cpp.

const QString & KateIndentScript::triggerCharacters ( )

Definition at line 40 of file kateindentscript.cpp.


The documentation for this class was generated from the following files:
  • kateindentscript.h
  • kateindentscript.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:57:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal