kate Library API Documentation

toolviewmanager.cpp

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002 Joseph Wenninger <jowenn@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 "toolviewmanager.h"
00020 #include "toolviewmanager.moc"
00021 
00022 #include "plugin.h"
00023 #include "documentmanager.h"
00024 #include "pluginmanager.h"
00025 
00026 #include "../app/katemainwindow.h"
00027 
00028 namespace Kate
00029 {
00030 
00031 class PrivateToolViewManager
00032   {
00033   public:
00034     PrivateToolViewManager ()
00035     {
00036     }
00037 
00038     ~PrivateToolViewManager ()
00039     {    
00040     }          
00041         
00042     KateMainWindow *toolViewMan; 
00043   };
00044             
00045 ToolViewManager::ToolViewManager (void *toolViewManager) : QObject ((KateMainWindow*) toolViewManager)
00046 {
00047   d = new PrivateToolViewManager ();
00048   d->toolViewMan = (KateMainWindow*) toolViewManager;
00049 }
00050 
00051 ToolViewManager::~ToolViewManager ()
00052 {
00053   delete d;
00054 }
00055 
00056 KMdiToolViewAccessor *ToolViewManager::addToolView(KDockWidget::DockPosition position, QWidget *widget, const QPixmap &icon, const QString &sname, const QString &tabToolTip, const QString &tabCaption)
00057 {
00058   return d->toolViewMan->addToolView (position, widget, icon, sname, tabToolTip, tabCaption);
00059 }
00060 
00061 bool ToolViewManager::removeToolView(QWidget *widget)
00062 {
00063   return d->toolViewMan->removeToolView (widget);
00064 }
00065 
00066 bool ToolViewManager::removeToolView(KMdiToolViewAccessor *accessor)
00067 {
00068   return d->toolViewMan->removeToolView (accessor);
00069 }
00070 
00071 bool ToolViewManager::showToolView(QWidget *widget)
00072 {
00073   return d->toolViewMan->showToolView (widget);
00074 }
00075 
00076 bool ToolViewManager::showToolView(KMdiToolViewAccessor *accessor)
00077 {
00078   return d->toolViewMan->showToolView (accessor);
00079 }
00080 
00081 bool ToolViewManager::hideToolView(QWidget *widget)
00082 {
00083   return d->toolViewMan->hideToolView (widget);
00084 }
00085     
00086 bool ToolViewManager::hideToolView(KMdiToolViewAccessor *accessor)
00087 {
00088   return d->toolViewMan->hideToolView (accessor);
00089 }
00090 
00091 }
KDE Logo
This file is part of the documentation for kate Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 8 02:43:14 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003