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

Kate

Signals | Public Member Functions | Static Public Member Functions | Properties | List of all members
KateGlobal Class Reference

#include <kateglobal.h>

Inheritance diagram for KateGlobal:
Inheritance graph
[legend]

Signals

void clipboardHistoryChanged ()
 
- Signals inherited from KTextEditor::Editor
void documentCreated (KTextEditor::Editor *editor, KTextEditor::Document *document)
 

Public Member Functions

 ~KateGlobal ()
 
const KAboutData * aboutData () const
 
const QStringList & clipboardHistory () const
 
KateCmd * cmdManager ()
 
QStringList commandList () const
 
QList< KTextEditor::Command * > commands () const
 
const KComponentData & componentData ()
 
void configDialog (QWidget *parent)
 
bool configDialogSupported () const
 
KTextEditor::ConfigPage * configPage (int number, QWidget *parent)
 
QString configPageFullName (int number) const
 
KIcon configPageIcon (int number) const
 
QString configPageName (int number) const
 
int configPages () const
 
QObject * container ()
 
void copyToClipboard (const QString &text)
 
KTextEditor::Document * createDocument (QObject *parent)
 
void deregisterDocument (KateDocument *doc)
 
void deregisterView (KateView *view)
 
KDirWatch * dirWatch ()
 
KateDocumentConfig * documentConfig ()
 
const QList
< KTextEditor::Document * > & 
documents ()
 
KateHlManager * hlManager ()
 
QList< KateDocument * > & kateDocuments ()
 
KateModeManager * modeManager ()
 
KatePartPluginManager * pluginManager ()
 
KTextEditor::Command * queryCommand (const QString &cmd) const
 
void readConfig (KConfig *config=0)
 
bool registerCommand (KTextEditor::Command *cmd)
 
void registerDocument (KateDocument *doc)
 
KTextEditor::TemplateScript * registerTemplateScript (QObject *owner, const QString &script)
 
void registerView (KateView *view)
 
KateRendererConfig * rendererConfig ()
 
KateSchemaManager * schemaManager ()
 
KateScriptManager * scriptManager ()
 
KSharedConfig::Ptr sessionConfig ()
 
void setContainer (QObject *container)
 
void setSessionConfig (KSharedConfig::Ptr sessionConfig)
 
KateSnippetGlobal * snippetGlobal ()
 
QWidget * snippetWidget ()
 
KateSpellCheckManager * spellCheckManager ()
 
bool unregisterCommand (KTextEditor::Command *cmd)
 
void unregisterTemplateScript (KTextEditor::TemplateScript *templateScript)
 
KateViewConfig * viewConfig ()
 
QList< KateView * > & views ()
 
KateViGlobal * viInputModeGlobal ()
 
KateWordCompletionModel * wordCompletionModel ()
 
void writeConfig (KConfig *config=0)
 
- Public Member Functions inherited from KTextEditor::Editor
 Editor (QObject *parent)
 
virtual ~Editor ()
 
const QString & defaultEncoding () const
 
void setSimpleMode (bool on)
 
bool simpleMode () const
 
- Public Member Functions inherited from KTextEditor::CommandInterface
virtual ~CommandInterface ()
 
- Public Member Functions inherited from KTextEditor::ContainerInterface
 ContainerInterface ()
 
virtual ~ContainerInterface ()
 
- Public Member Functions inherited from KTextEditor::TemplateScriptRegistrar
 TemplateScriptRegistrar ()
 
virtual ~TemplateScriptRegistrar ()
 

Static Public Member Functions

static void decRef ()
 
static void incRef ()
 
static QString katePartVersion ()
 
static KateGlobal * self ()
 

Properties

KSharedConfig::Ptr sessionConfig
 
QWidget snippetWidget
 

Additional Inherited Members

- Protected Member Functions inherited from KTextEditor::Editor
void setDefaultEncoding (const QString &defaultEncoding)
 

Detailed Description

KateGlobal One instance of this class is hold alive during a kate part session, as long as any factory, document or view stay around, here is the place to put things which are needed and shared by all this objects ;)

Definition at line 70 of file kateglobal.h.

Constructor & Destructor Documentation

KateGlobal::~KateGlobal ( )

Destructor.

Definition at line 203 of file kateglobal.cpp.

Member Function Documentation

const KAboutData* KateGlobal::aboutData ( ) const
inlinevirtual

General Information about this editor.

return the about data

Returns
about data of this editor part

Implements KTextEditor::Editor.

Definition at line 152 of file kateglobal.h.

const QStringList& KateGlobal::clipboardHistory ( ) const
inline

Clipboard history, filled with text we ever copied to clipboard via copyToClipboard.

Definition at line 423 of file kateglobal.h.

void KateGlobal::clipboardHistoryChanged ( )
signal

Emitted if the history of clipboard changes via copyToClipboard.

KateCmd* KateGlobal::cmdManager ( )
inline

command manager

Returns
command manager

Definition at line 332 of file kateglobal.h.

QStringList KateGlobal::commandList ( ) const
virtual

Get a list of available commandline strings.

Returns
commandline strings

Implements KTextEditor::CommandInterface.

Definition at line 510 of file kateglobal.cpp.

QList< KTextEditor::Command * > KateGlobal::commands ( ) const
virtual

Get a list of all registered commands.

Returns
list of all commands

Implements KTextEditor::CommandInterface.

Definition at line 507 of file kateglobal.cpp.

const KComponentData& KateGlobal::componentData ( )
inline

public accessor to the instance

Returns
instance

Definition at line 234 of file kateglobal.h.

void KateGlobal::configDialog ( QWidget *  parent)
virtual

Shows a config dialog for the part, changes will be applied to the editor, but not saved anywhere automagically, call writeConfig to save them.

Implements KTextEditor::Editor.

Definition at line 303 of file kateglobal.cpp.

bool KateGlobal::configDialogSupported ( ) const
virtual

Does this editor support a config dialog.

Returns
does this editor have a config dialog?

Implements KTextEditor::Editor.

Definition at line 298 of file kateglobal.cpp.

KTextEditor::ConfigPage * KateGlobal::configPage ( int  number,
QWidget *  parent 
)
virtual

returns config page with the given number, config pages from 0 to configPages()-1 are available if configPages() > 0

Implements KTextEditor::Editor.

Definition at line 358 of file kateglobal.cpp.

QString KateGlobal::configPageFullName ( int  number) const
virtual

Implements KTextEditor::Editor.

Definition at line 410 of file kateglobal.cpp.

KIcon KateGlobal::configPageIcon ( int  number) const
virtual

Implements KTextEditor::Editor.

Definition at line 436 of file kateglobal.cpp.

QString KateGlobal::configPageName ( int  number) const
virtual

Implements KTextEditor::Editor.

Definition at line 384 of file kateglobal.cpp.

int KateGlobal::configPages ( ) const
virtual

Number of available config pages If the editor returns a number < 1, it doesn't support this and the embedding app should use the configDialog () instead.

Returns
number of config pages

Implements KTextEditor::Editor.

Definition at line 353 of file kateglobal.cpp.

QObject * KateGlobal::container ( )
virtual

Get the currently associated Container object.

Returns
container object

Implements KTextEditor::ContainerInterface.

Definition at line 516 of file kateglobal.cpp.

void KateGlobal::copyToClipboard ( const QString &  text)

Copy text to clipboard an remember it in the history.

Parameters
texttext to copy to clipboard, does nothing if empty!

empty => nop

move to clipboard

remember in history cut after 10 entries

notify about change

Definition at line 547 of file kateglobal.cpp.

KTextEditor::Document * KateGlobal::createDocument ( QObject *  parent)
virtual

Create a new document object.

Parameters
parentparent object
Returns
created KTextEditor::Document

Implements KTextEditor::Editor.

Definition at line 236 of file kateglobal.cpp.

static void KateGlobal::decRef ( )
inlinestatic

decrement reference counter

Definition at line 222 of file kateglobal.h.

void KateGlobal::deregisterDocument ( KateDocument *  doc)

unregister document at the factory

Parameters
docdocument to register

Definition at line 478 of file kateglobal.cpp.

void KateGlobal::deregisterView ( KateView *  view)

unregister view at the factory

Parameters
viewview to unregister

Definition at line 491 of file kateglobal.cpp.

KDirWatch* KateGlobal::dirWatch ( )
inline

global dirwatch

Returns
dirwatch instance

Definition at line 284 of file kateglobal.h.

KateDocumentConfig* KateGlobal::documentConfig ( )
inline

fallback document config

Returns
default config for all documents

Definition at line 303 of file kateglobal.h.

const QList< KTextEditor::Document * > & KateGlobal::documents ( )
virtual

Returns a list of all documents of this editor.

Returns
list of all existing documents

Implements KTextEditor::Editor.

Definition at line 245 of file kateglobal.cpp.

KateHlManager* KateGlobal::hlManager ( )
inline

hl manager

Returns
hl manager

Definition at line 326 of file kateglobal.h.

static void KateGlobal::incRef ( )
inlinestatic

increment reference counter

Definition at line 217 of file kateglobal.h.

QList<KateDocument*>& KateGlobal::kateDocuments ( )
inline

return a list of all registered docs

Returns
all known documents

Definition at line 266 of file kateglobal.h.

QString KateGlobal::katePartVersion ( )
static

Returns the current version of Kate Part: KDE X.Y.Z contains Kate Part X-1.Y.

Returns
version of type x.y, e.g. 3.2

Definition at line 59 of file kateglobal.cpp.

KateModeManager* KateGlobal::modeManager ( )
inline

global mode manager used to manage the modes centrally

Returns
mode manager

Definition at line 291 of file kateglobal.h.

KatePartPluginManager* KateGlobal::pluginManager ( )
inline

global plugin manager

Returns
kate part plugin manager

Definition at line 278 of file kateglobal.h.

KTextEditor::Command * KateGlobal::queryCommand ( const QString &  cmd) const
virtual

query for command

Parameters
cmdname of command to query for
Returns
found command or 0

Implements KTextEditor::CommandInterface.

Definition at line 504 of file kateglobal.cpp.

void KateGlobal::readConfig ( KConfig *  config = 0)
virtual

Configuration management.

Read editor configuration from given config object

Parameters
configconfig object

Implements KTextEditor::Editor.

Definition at line 258 of file kateglobal.cpp.

bool KateGlobal::registerCommand ( KTextEditor::Command *  cmd)
virtual

register given command this works global, for all documents

Parameters
cmdcommand to register
Returns
success

Implements KTextEditor::CommandInterface.

Definition at line 498 of file kateglobal.cpp.

void KateGlobal::registerDocument ( KateDocument *  doc)

register document at the factory this allows us to loop over all docs for example on config changes

Parameters
docdocument to register

Definition at line 471 of file kateglobal.cpp.

KTextEditor::TemplateScript * KateGlobal::registerTemplateScript ( QObject *  owner,
const QString &  script 
)
virtual

TemplateScriptRegistrar interface.

Implements KTextEditor::TemplateScriptRegistrar.

Definition at line 528 of file kateglobal.cpp.

void KateGlobal::registerView ( KateView *  view)

register view at the factory this allows us to loop over all views for example on config changes

Parameters
viewview to register

Definition at line 485 of file kateglobal.cpp.

KateRendererConfig* KateGlobal::rendererConfig ( )
inline

fallback renderer config

Returns
default config for all renderers

Definition at line 315 of file kateglobal.h.

KateSchemaManager* KateGlobal::schemaManager ( )
inline

manager for the katepart schemas

Returns
schema manager

Definition at line 297 of file kateglobal.h.

KateScriptManager* KateGlobal::scriptManager ( )
inline

Global script collection.

Definition at line 320 of file kateglobal.h.

KateGlobal * KateGlobal::self ( )
static

Kate Part Internal stuff ;)

singleton accessor

Returns
instance of the factory

Definition at line 462 of file kateglobal.cpp.

KSharedConfig::Ptr KateGlobal::sessionConfig ( )
inline

Get session config, defaults to KGlobal::config()

Returns
session config

Definition at line 102 of file kateglobal.h.

void KateGlobal::setContainer ( QObject *  container)
virtual

Set the associated container object.

Implements KTextEditor::ContainerInterface.

Definition at line 519 of file kateglobal.cpp.

void KateGlobal::setSessionConfig ( KSharedConfig::Ptr  sessionConfig)
inline

Set session config.

Parameters
sessionConfignew session config

Definition at line 111 of file kateglobal.h.

KateSnippetGlobal * KateGlobal::snippetGlobal ( )

global instance of the snippet handling lazy constructed on first use to allow it to use the session config set after editor is constructed

Returns
global instance of the snippet handling

Definition at line 250 of file kateglobal.cpp.

QWidget* KateGlobal::snippetWidget ( )

Create a new snippet widget, to allow to manage and insert snippets.

Returns
new snippet widget
KateSpellCheckManager* KateGlobal::spellCheckManager ( )
inline

spell check manager

Returns
spell check manager

Definition at line 344 of file kateglobal.h.

bool KateGlobal::unregisterCommand ( KTextEditor::Command *  cmd)
virtual

unregister given command this works global, for all documents

Parameters
cmdcommand to unregister
Returns
success

Implements KTextEditor::CommandInterface.

Definition at line 501 of file kateglobal.cpp.

void KateGlobal::unregisterTemplateScript ( KTextEditor::TemplateScript *  templateScript)
virtual

Implements KTextEditor::TemplateScriptRegistrar.

Definition at line 533 of file kateglobal.cpp.

KateViewConfig* KateGlobal::viewConfig ( )
inline

fallback view config

Returns
default config for all views

Definition at line 309 of file kateglobal.h.

QList<KateView*>& KateGlobal::views ( )
inline

return a list of all registered views

Returns
all known views

Definition at line 272 of file kateglobal.h.

KateViGlobal* KateGlobal::viInputModeGlobal ( )
inline

vi input mode global

Returns
vi input mode global

Definition at line 338 of file kateglobal.h.

KateWordCompletionModel* KateGlobal::wordCompletionModel ( )
inline

global instance of the simple word completion mode

Returns
global instance of the simple word completion mode

Definition at line 350 of file kateglobal.h.

void KateGlobal::writeConfig ( KConfig *  config = 0)
virtual

Write editor configuration to given config object.

Parameters
configconfig object

Implements KTextEditor::Editor.

Definition at line 274 of file kateglobal.cpp.

Property Documentation

KSharedConfig::Ptr KateGlobal::sessionConfig
readwrite

property to tell the editor to use a given session config for session related configuration instead of KGlobal::config().

MUST be set directly after first creation of the editor as otherwise some parts might not pick this up.

Definition at line 96 of file kateglobal.h.

QWidget * KateGlobal::snippetWidget
read

property to create a new snippet widget.

caller must handle the delete then, is a variant with a widget inside

Definition at line 82 of file kateglobal.h.


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