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

Kate

  • KateCommands
  • CoreCommands
Public Member Functions | Static Public Member Functions | List of all members
KateCommands::CoreCommands Class Reference

#include <katecmds.h>

Inheritance diagram for KateCommands::CoreCommands:
Inheritance graph
[legend]

Public Member Functions

 ~CoreCommands ()
 
const QStringList & cmds ()
 
KCompletion * completionObject (KTextEditor::View *, const QString &)
 
bool exec (class KTextEditor::View *view, const QString &cmd, QString &errorMsg)
 
bool exec (class KTextEditor::View *view, const QString &cmd, QString &errorMsg, const KTextEditor::Range &range=KTextEditor::Range(-1,-0,-1, 0))
 
virtual void flagCompletions (QStringList &)
 
bool help (class KTextEditor::View *, const QString &, QString &)
 
virtual void processText (KTextEditor::View *, const QString &)
 
bool supportsRange (const QString &range)
 
virtual bool wantsToProcessText (const QString &)
 
- Public Member Functions inherited from KTextEditor::Command
virtual ~Command ()
 
- Public Member Functions inherited from KTextEditor::CommandExtension
virtual ~CommandExtension ()
 
- Public Member Functions inherited from KTextEditor::RangeCommand
virtual ~RangeCommand ()
 

Static Public Member Functions

static CoreCommands * self ()
 

Detailed Description

This KTextEditor::Command provides access to a lot of the core functionality of kate part, settings, utilities, navigation etc.

it needs to get a kateview pointer, it will cast the kate::view pointer hard to kateview

Definition at line 49 of file katecmds.h.

Constructor & Destructor Documentation

KateCommands::CoreCommands::~CoreCommands ( )
inline

Definition at line 56 of file katecmds.h.

Member Function Documentation

const QStringList & KateCommands::CoreCommands::cmds ( )
virtual

supported commands as prefixes

Returns
prefix list

Implements KTextEditor::Command.

Definition at line 71 of file katecmds.cpp.

KCompletion * KateCommands::CoreCommands::completionObject ( KTextEditor::View *  view,
const QString &  cmd 
)
virtual

override completionObject from interfaces/document.h .

Implements KTextEditor::CommandExtension.

Definition at line 509 of file katecmds.cpp.

bool KateCommands::CoreCommands::exec ( class KTextEditor::View *  view,
const QString &  cmd,
QString &  errorMsg 
)
virtual

execute command

Parameters
viewview to use for execution
cmdcmd string
errorMsgerror to return if no success
Returns
success

Implements KTextEditor::Command.

Definition at line 221 of file katecmds.cpp.

bool KateCommands::CoreCommands::exec ( class KTextEditor::View *  view,
const QString &  cmd,
QString &  errorMsg,
const KTextEditor::Range &  range = KTextEditor::Range(-1, -0, -1, 0) 
)
virtual

execute command on given range

Parameters
viewview to use for execution
cmdcmd string
errorMsgerror to return if no success
rangeStartfirst line in range
rangeEndlast line in range
Returns
success

Implements KTextEditor::RangeCommand.

Definition at line 228 of file katecmds.cpp.

virtual void KateCommands::CoreCommands::flagCompletions ( QStringList &  )
inlinevirtual

Implements KTextEditor::CommandExtension.

Definition at line 95 of file katecmds.h.

bool KateCommands::CoreCommands::help ( class KTextEditor::View *  ,
const QString &  cmd,
QString &  msg 
)
virtual

This command does not have help.

See also
KTextEditor::Command::help

Implements KTextEditor::Command.

Definition at line 90 of file katecmds.cpp.

virtual void KateCommands::CoreCommands::processText ( KTextEditor::View *  ,
const QString &   
)
inlinevirtual

Implements KTextEditor::CommandExtension.

Definition at line 97 of file katecmds.h.

static CoreCommands* KateCommands::CoreCommands::self ( )
inlinestatic

Definition at line 99 of file katecmds.h.

bool KateCommands::CoreCommands::supportsRange ( const QString &  range)
virtual

Implements KTextEditor::RangeCommand.

Definition at line 498 of file katecmds.cpp.

virtual bool KateCommands::CoreCommands::wantsToProcessText ( const QString &  )
inlinevirtual

Implements KTextEditor::CommandExtension.

Definition at line 96 of file katecmds.h.


The documentation for this class was generated from the following files:
  • katecmds.h
  • katecmds.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:55 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
  • Applications
  •   Libraries
  •     libkonq
  • 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