• 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>

Inherits Command, CommandExtension, and RangeCommand.

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 &)
 

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 ( )

supported commands as prefixes

Returns
prefix list

Definition at line 71 of file katecmds.cpp.

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

override completionObject from interfaces/document.h .

Definition at line 509 of file katecmds.cpp.

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

execute command

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

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) 
)

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

Definition at line 228 of file katecmds.cpp.

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

Definition at line 95 of file katecmds.h.

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

This command does not have help.

See also
KTextEditor::Command::help

Definition at line 90 of file katecmds.cpp.

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

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)

Definition at line 498 of file katecmds.cpp.

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

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-2020 The KDE developers.
Generated on Sat May 9 2020 03:57:03 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