• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • interfaces
viewmanager.cpp
1 /* This file is part of the KDE project
2  Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #include "viewmanager.h"
20 #include "viewmanager.moc"
21 
22 #include "plugin.h"
23 #include "documentmanager.h"
24 #include "toolviewmanager.h"
25 #include "pluginmanager.h"
26 
27 #include "../app/kateviewmanager.h"
28 
29 namespace Kate
30 {
31 
32 class PrivateViewManager
33  {
34  public:
35  PrivateViewManager ()
36  {
37  }
38 
39  ~PrivateViewManager ()
40  {
41  }
42 
43  KateViewManager *viewMan;
44  };
45 
46 ViewManager::ViewManager (void *viewManager) : TQObject ((KateViewManager*) viewManager)
47 {
48  d = new PrivateViewManager ();
49  d->viewMan = (KateViewManager*) viewManager;
50 }
51 
52 ViewManager::~ViewManager ()
53 {
54  delete d;
55 }
56 
57 View *ViewManager::activeView()
58 {
59  return d->viewMan->activeView();
60 }
61 
62 void ViewManager::activateView ( uint documentNumber )
63 {
64  d->viewMan->activateView( documentNumber );
65 }
66 
67 void ViewManager::openURL (const KURL &url)
68 {
69  d->viewMan->openURL (url, TQString::null, true);
70 }
71 
72 }
73 
Kate::ViewManager::~ViewManager
virtual ~ViewManager()
Desctructor.
Definition: viewmanager.cpp:52
Kate::ViewManager::activeView
Kate::View * activeView()
Returns a pointer to the currently active view.
Definition: viewmanager.cpp:57
Kate::ViewManager::activateView
void activateView(uint documentNumber)
Activates the view with the corresponding documentNumber.
Definition: viewmanager.cpp:62
Kate::ViewManager::ViewManager
ViewManager(void *viewManager)
Construtor, should not interest, internal usage.
Definition: viewmanager.cpp:46
Kate::ViewManager::openURL
void openURL(const KURL &url)
Opens the file pointed to by URL.
Definition: viewmanager.cpp:67
Kate
Namespace collecting as much of the internal Kate classes as we can manage.
Definition: kateapp.h:32

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kate

Skip menu "kate"
  • kate
  • libkonq
  • twin
  •   lib
Generated for kate by doxygen 1.8.13
This website is maintained by Timothy Pearson.