kate Library API Documentation

application.cpp

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00016    Boston, MA 02111-1307, USA.
00017 */
00018 
00019 #include "application.h"
00020 #include "application.moc"
00021 
00022 #include "documentmanager.h"
00023 #include "mainwindow.h"
00024 #include "pluginmanager.h"
00025 
00026 #include "../app/kateapp.h"
00027 
00028 #include <kapplication.h>
00029 
00030 namespace Kate
00031 {
00032 
00033 class PrivateApplication
00034   {
00035   public:
00036     PrivateApplication ()
00037     {
00038     }
00039 
00040     ~PrivateApplication ()
00041     {
00042       
00043     }          
00044     
00045     KateApp *app; 
00046   };
00047             
00048 Application::Application (void *application) : QObject ((KateApp *) application)
00049 {
00050   d = new PrivateApplication;
00051   d->app = (KateApp *) application;
00052 }
00053 
00054 Application::~Application ()
00055 {
00056   delete d;
00057 }
00058 
00059 DocumentManager *Application::documentManager ()
00060 {
00061   return d->app->documentManager ();
00062 }
00063 
00064 ProjectManager *Application::projectManager ()
00065 {
00066   return d->app->projectManager ();
00067 }
00068 
00069 PluginManager *Application::pluginManager ()
00070 {
00071   return d->app->pluginManager ();
00072 }
00073 
00074 InitPluginManager *Application::initPluginManager ()
00075 {
00076   return d->app->initPluginManager ();
00077 }
00078     
00079 MainWindow *Application::activeMainWindow ()
00080 {
00081   return d->app->activeMainWindow ();
00082 }
00083     
00084 uint Application::mainWindows ()
00085 {
00086   return d->app->mainWindows ();
00087 }
00088  
00089 MainWindow *Application::mainWindow (uint n)
00090 {
00091   return d->app->mainWindow (n);
00092 }
00093 
00094 Application *application ()
00095 {
00096   return ((KateApp *)kapp)->application ();
00097 }
00098 
00099 }
00100 
KDE Logo
This file is part of the documentation for kate Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Apr 11 13:44:48 2004 by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2003