• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

kate/interfaces/kate

Kate::Application

Kate::Application Class Reference

Central interface to the application. More...

#include <application.h>

Inheritance diagram for Kate::Application:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Application (void *application)
virtual ~Application ()
Kate::MainWindow * activeMainWindow ()
Kate::DocumentManager * documentManager ()
KTextEditor::Editor * editor ()
const QList< Kate::MainWindow * > & mainWindows () const
Kate::PluginManager * pluginManager ()

Detailed Description

Central interface to the application.

The class Application is central as it provides access to the core application, which includes the

  • document manager, access it with documentManager()
  • plugin manager, access it with pluginManager()
  • main windows, access a main window with mainWindow() or activeMainWindow()
  • used editor component, access it with editor().

To access the application use the global accessor function application(). You should never have to create an instance of this class yourself.

Author:
Christoph Cullmann <cullmann@kde.org>

Definition at line 61 of file application.h.


Constructor & Destructor Documentation

Kate::Application::Application ( void *  application  ) 

Construtor.

The constructor is internally used by the Kate application, so it is of no interest for plugin developers. Plugin developers should use the global accessor application() instead.

For internal use only.

Definition at line 48 of file application.cpp.

Kate::Application::~Application (  )  [virtual]

Virtual desctructor.

Definition at line 54 of file application.cpp.


Member Function Documentation

MainWindow * Kate::Application::activeMainWindow (  ) 

Accessor to the active mainwindow.

There is always an active mainwindow, so it is not necessary to test the returned value for NULL.

Returns:
a pointer to the active mainwindow

Definition at line 69 of file application.cpp.

DocumentManager * Kate::Application::documentManager (  ) 

Accessor to the document manager.

There is always an document manager, so it is not necessary to test the returned value for NULL.

Returns:
a pointer to the document manager

Definition at line 59 of file application.cpp.

KTextEditor::Editor * Kate::Application::editor (  ) 

Accessor to the global editor part.

There is always an editor part, so it is not necessary to test the returned value for NULL.

Returns:
KTextEditor component

Definition at line 87 of file application.cpp.

const QList< MainWindow * > & Kate::Application::mainWindows (  )  const

Get a list of all mainwindows.

At least one entry, always.

Returns:
all mainwindows
See also:
activeMainWindow()

Definition at line 77 of file application.cpp.

PluginManager * Kate::Application::pluginManager (  ) 

Accessor to the plugin manager.

There is always an plugin manager, so it is not necessary to test the returned value for NULL.

Returns:
a pointer to the plugin manager

Definition at line 64 of file application.cpp.


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

kate/interfaces/kate

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

kdesdk

Skip menu "kdesdk"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal