21#ifndef __KATE_MAINWINDOW_H__
22#define __KATE_MAINWINDOW_H__
28#include <kate/document.h>
30#include <tdeparts/part.h>
43class TDERecentFilesAction;
48class KateMainWindow :
public KateMDI::MainWindow,
virtual public KParts::PartBase
52 friend class KateConfigDialog;
53 friend class KateViewManager;
61 KateMainWindow (TDEConfig *sconfig,
const TQString &sgroup);
71 Kate::MainWindow *mainWindow () {
return m_mainWindow; }
72 Kate::ToolViewManager *toolViewManager () {
return m_toolViewManager; }
74 KateViewManager *viewManager () {
return m_viewManager; }
76 DCOPObject *dcopObject () {
return m_dcop; }
83 KURL activeDocumentUrl();
85 uint mainWindowNumber ()
const {
return myID; }
94 bool showModOnDiskPrompt();
100 KateTabWidget *tabWidget ();
102 void readProperties(TDEConfig *config);
103 void saveProperties(TDEConfig *config);
105 bool queryCloseAllDocuments();
106 bool queryClose_internal();
108 void openURL (
const TQString &name=0L);
114 void slotSelectionChanged();
122 void activateSession(
int sessionId);
125 void setupMainWindow();
139 void dragEnterEvent( TQDragEnterEvent * );
140 void dropEvent( TQDropEvent * );
149 void slotConfigure();
151 void slotOpenWithMenuAction(
int idx);
153 void slotGrepToolItemSelected (
const TQString &filename,
int linenumber );
157 void slotEditToolbars();
158 void slotNewToolbarConfig();
159 void slotWindowActivated ();
160 void slotUpdateOpenWith();
161 void documentMenuAboutToShow();
162 void slotDropEvent(TQDropEvent *);
164 void mSlotFixOpenWithMenu();
166 void fileSelected(
const KFileItem *file);
171 void slotDocumentCreated(Kate::Document *doc);
172 void slotNameChanged(Kate::Document *doc);
173 void updateCaption(Kate::Document *doc);
176 void slotFullScreen(
bool);
178 void updateGrepDir (
bool visible);
179 void slotDocumentCloseAll();
182 bool event( TQEvent * );
183 bool eventFilter(TQObject *obj, TQEvent *ev);
186 static uint uniqueID;
189 Kate::MainWindow *m_mainWindow;
190 Kate::ToolViewManager *m_toolViewManager;
192 bool showSessionName;
195 bool modNotification;
200 KateConsole *console;
203 KateViewManager *m_viewManager;
205 TDERecentFilesAction *fileOpenRecent;
207 KateFileList *filelist;
208 KateFileSelector *fileselector;
209 KateSessionPanel *m_sessionpanel;
211 TDEActionMenu* documentOpenWith;
213 TQPopupMenu *documentMenu;
215 TDEToggleAction* settingsShowFilelist;
216 TDEToggleAction* settingsShowFileselector;
218 KateExternalToolsMenuAction *externalTools;
222 KateTabWidget *m_tabWidget;
225class KateSessionListActionMenu :
public TDEActionMenu
230 KateSessionListActionMenu(KateMainWindow *mw,
const TQString &text, TQObject *parent = NULL,
const char *name = NULL);
231 ~KateSessionListActionMenu() {}
234 void slotAboutToShow();
237 KateMainWindow *m_mainWindow;
Namespace collecting as much of the internal Kate classes as we can manage.