kate Library API Documentation

mainwindow.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 "mainwindow.h"
00020 #include "mainwindow.moc"
00021 
00022 #include "documentmanager.h"
00023 #include "plugin.h"
00024 #include "viewmanager.h"
00025 #include "toolviewmanager.h"
00026 #include "pluginmanager.h"
00027 
00028 #include "../app/katemainwindow.h"
00029 
00030 #include <kapplication.h>
00031 
00032 namespace Kate
00033 {
00034 
00035 class PrivateMainWindow
00036   {
00037   public:
00038     PrivateMainWindow ()
00039     {
00040     }
00041 
00042     ~PrivateMainWindow ()
00043     {
00044 
00045     }
00046 
00047     KateMainWindow *win;
00048   };
00049 
00050 MainWindow::MainWindow (void *mainWindow) : QObject ((KateMainWindow*) mainWindow)
00051 {
00052   d = new PrivateMainWindow;
00053   d->win = (KateMainWindow*) mainWindow;
00054 }
00055 
00056 MainWindow::~MainWindow ()
00057 {
00058   delete d;
00059 }
00060 
00061 KXMLGUIFactory *MainWindow::guiFactory() const
00062 {
00063   return d->win->guiFactory();
00064 }
00065 
00066 ViewManager *MainWindow::viewManager () const
00067 {
00068   return d->win->viewManager ();
00069 }
00070 
00071 ToolViewManager *MainWindow::toolViewManager () const
00072 {
00073   return d->win->toolViewManager ();
00074 }
00075 
00076 Project *MainWindow::activeProject () const
00077 {
00078   return d->win->activeProject ();
00079 }
00080 
00081 Project *MainWindow::createProject (const QString &type, const QString &name, const QString &filename)
00082 {
00083   return d->win->createProject (type, name, filename);
00084 }
00085 
00086 Project *MainWindow::openProject (const QString &filename)
00087 {
00088   return d->win->openProject (filename);
00089 }
00090 
00091 }
00092 
KDE Logo
This file is part of the documentation for kate Library Version 3.4.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Nov 4 00:48:31 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003