kate
viewmanager.cpp
Go to the documentation of this file.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., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #include "viewmanager.h" 00020 #include "viewmanager.moc" 00021 00022 #include "plugin.h" 00023 #include "documentmanager.h" 00024 #include "toolviewmanager.h" 00025 #include "pluginmanager.h" 00026 00027 #include "../app/kateviewmanager.h" 00028 00029 namespace Kate 00030 { 00031 00032 class PrivateViewManager 00033 { 00034 public: 00035 PrivateViewManager () 00036 { 00037 } 00038 00039 ~PrivateViewManager () 00040 { 00041 } 00042 00043 KateViewManager *viewMan; 00044 }; 00045 00046 ViewManager::ViewManager (void *viewManager) : QObject ((KateViewManager*) viewManager) 00047 { 00048 d = new PrivateViewManager (); 00049 d->viewMan = (KateViewManager*) viewManager; 00050 } 00051 00052 ViewManager::~ViewManager () 00053 { 00054 delete d; 00055 } 00056 00057 View *ViewManager::activeView() 00058 { 00059 return d->viewMan->activeView(); 00060 } 00061 00062 void ViewManager::activateView ( uint documentNumber ) 00063 { 00064 d->viewMan->activateView( documentNumber ); 00065 } 00066 00067 void ViewManager::openURL (const KURL &url) 00068 { 00069 d->viewMan->openURL (url, QString::null, true); 00070 } 00071 00072 } 00073