21 #ifndef __KATE_VIEWMANAGER_H__
22 #define __KATE_VIEWMANAGER_H__
25 #include "../interfaces/viewmanager.h"
27 #include <kate/view.h>
28 #include <kate/document.h>
29 #include <tqguardedptr.h>
32 class KateViewSpaceContainer;
39 class KateViewManager :
public TQObject
44 KateViewManager (KateMainWindow *parent);
49 KateViewSpaceContainer *activeContainer () {
return m_currentContainer; }
51 TQPtrList<KateViewSpaceContainer> *containers() {
return &m_viewSpaceContainerList; }
53 void updateViewSpaceActions ();
63 void saveViewConfiguration(TDEConfig *config,
const TQString& group);
66 void restoreViewConfiguration (TDEConfig *config,
const TQString& group);
68 uint openURL (
const KURL &url,
const TQString& encoding,
bool activate =
true,
bool isTempFile=
false);
71 void openURL (
const KURL &url);
74 void removeViewSpace (KateViewSpace *viewspace);
79 Kate::View* activeView ();
80 KateViewSpace* activeViewSpace ();
83 uint viewSpaceCount ();
85 void setViewActivationBlocked (
bool block);
88 void closeViews(uint documentNumber);
89 KateMainWindow *mainWindow();
92 void activateView ( Kate::View *view );
93 void activateSpace ( Kate::View* v );
95 void tabChanged(TQWidget*);
98 bool getShowFullPath()
const {
return showFullPath; }
100 void activateView ( uint documentNumber );
101 void activateView (
int documentNumber ) { activateView((uint) documentNumber); };
103 void slotDocumentNew ();
104 void slotDocumentOpen ();
105 void slotDocumentClose ();
108 void slotSplitViewSpaceHoriz ();
110 void slotSplitViewSpaceVert ();
113 void slotCloseTab ();
114 void activateNextTab ();
115 void activatePrevTab ();
117 void slotCloseCurrentViewSpace();
119 void setActiveSpace ( KateViewSpace* vs );
120 void setActiveView ( Kate::View* view );
122 void setShowFullPath(
bool enable);
124 void activateNextView();
125 void activatePrevView();
128 friend class KateViewSpaceContainer;
130 TQGuardedPtr<Kate::View> guiMergedView;
133 void statusChanged (Kate::View *,
int,
int,
int,
bool,
int,
const TQString &);
139 TQPtrList<KateViewSpaceContainer> m_viewSpaceContainerList;
140 KateViewSpaceContainer *m_currentContainer;
142 KateMainWindow *m_mainWindow;
145 TQToolButton *m_closeTabButton;
146 TDEAction *m_closeView;
147 TDEAction *m_closeTab;
148 TDEAction *m_activateNextTab;
149 TDEAction *m_activatePrevTab;
Interface to the viewmanager.