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

kate

  • kate
  • app
kateviewmanager.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
3 Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
4 Copyright (C) 2001 Anders Lund <anders.lund@lund.tdcadsl.dk>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __KATE_VIEWMANAGER_H__
22#define __KATE_VIEWMANAGER_H__
23
24#include "katemain.h"
25#include "../interfaces/viewmanager.h"
26
27#include <kate/view.h>
28#include <kate/document.h>
29#include <tqguardedptr.h>
30
31class KateMainWindow;
32class KateViewSpaceContainer;
33
34class TDEConfig;
35class TDEAction;
36
37class TQToolButton;
38
39class KateViewManager : public TQObject
40{
41 TQ_OBJECT
42
43 public:
44 KateViewManager (KateMainWindow *parent);
45 ~KateViewManager ();
46
47 Kate::ViewManager *viewManager () const { return m_viewManager; };
48
49 KateViewSpaceContainer *activeContainer () { return m_currentContainer; }
50
51 TQPtrList<KateViewSpaceContainer> *containers() { return &m_viewSpaceContainerList; }
52
53 void updateViewSpaceActions ();
54
55 private:
59 void setupActions ();
60
61 public:
62 /* This will save the splitter configuration */
63 void saveViewConfiguration(TDEConfig *config,const TQString& group);
64
65 /* restore it */
66 void restoreViewConfiguration (TDEConfig *config,const TQString& group);
67
68 uint openURL (const KURL &url, const TQString& encoding, bool activate = true, bool isTempFile=false);
69
70 public slots:
71 void openURL (const KURL &url);
72
73 private:
74 void removeViewSpace (KateViewSpace *viewspace);
75
76 bool showFullPath;
77
78 public:
79 Kate::View* activeView ();
80 KateViewSpace* activeViewSpace ();
81
82 uint viewCount ();
83 uint viewSpaceCount ();
84
85 void setViewActivationBlocked (bool block);
86
87 public:
88 void closeViews(uint documentNumber);
89 KateMainWindow *mainWindow();
90
91 private slots:
92 void activateView ( Kate::View *view );
93 void activateSpace ( Kate::View* v );
94
95 void tabChanged(TQWidget*);
96
97 public slots:
98 bool getShowFullPath() const { return showFullPath; }
99
100 void activateView ( uint documentNumber );
101 void activateView ( int documentNumber ) { activateView((uint) documentNumber); };
102
103 void slotDocumentNew ();
104 void slotDocumentOpen ();
105 void slotDocumentClose ();
106
108 void slotSplitViewSpaceHoriz ();
110 void slotSplitViewSpaceVert ();
111
112 void slotNewTab();
113 void slotCloseTab ();
114 void activateNextTab ();
115 void activatePrevTab ();
116
117 void slotCloseCurrentViewSpace();
118
119 void setActiveSpace ( KateViewSpace* vs );
120 void setActiveView ( Kate::View* view );
121
122 void setShowFullPath(bool enable);
123
124 void activateNextView();
125 void activatePrevView();
126
127 protected:
128 friend class KateViewSpaceContainer;
129
130 TQGuardedPtr<Kate::View> guiMergedView;
131
132 signals:
133 void statusChanged (Kate::View *, int, int, int, bool, int, const TQString &);
134 void statChanged ();
135 void viewChanged ();
136
137 private:
138 Kate::ViewManager *m_viewManager;
139 TQPtrList<KateViewSpaceContainer> m_viewSpaceContainerList;
140 KateViewSpaceContainer *m_currentContainer;
141
142 KateMainWindow *m_mainWindow;
143 bool m_init;
144
145 TQToolButton *m_closeTabButton;
146 TDEAction *m_closeView;
147 TDEAction *m_closeTab;
148 TDEAction *m_activateNextTab;
149 TDEAction *m_activatePrevTab;
150 TDEAction *goNext;
151 TDEAction *goPrev;
152};
153
154#endif
Kate::ViewManager
Interface to the viewmanager.
Definition: viewmanager.h:34

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.9.4
This website is maintained by Timothy Pearson.