21 #ifndef __KATE_MAINWINDOW_H__
22 #define __KATE_MAINWINDOW_H__
27 #include <kate/view.h>
28 #include <kate/document.h>
30 #include <tdeparts/part.h>
32 #include <tdeaction.h>
39 class ToolViewManager;
43 class TDERecentFilesAction;
48 class 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; }
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 queryClose_internal();
107 void openURL (
const TQString &name=0L);
113 void slotSelectionChanged();
121 void activateSession(
int sessionId);
124 void setupMainWindow();
138 void dragEnterEvent( TQDragEnterEvent * );
139 void dropEvent( TQDropEvent * );
148 void slotConfigure();
150 void slotOpenWithMenuAction(
int idx);
152 void slotGrepToolItemSelected (
const TQString &filename,
int linenumber );
156 void slotEditToolbars();
157 void slotNewToolbarConfig();
158 void slotWindowActivated ();
159 void slotUpdateOpenWith();
160 void documentMenuAboutToShow();
161 void slotDropEvent(TQDropEvent *);
163 void mSlotFixOpenWithMenu();
165 void fileSelected(
const KFileItem *file);
170 void slotDocumentCreated(Kate::Document *doc);
171 void slotNameChanged(Kate::Document *doc);
172 void updateCaption(Kate::Document *doc);
175 void slotFullScreen(
bool);
177 void updateGrepDir (
bool visible);
178 void slotDocumentCloseAll();
181 bool event( TQEvent * );
182 bool eventFilter(TQObject *obj, TQEvent *ev);
185 static uint uniqueID;
188 Kate::MainWindow *m_mainWindow;
191 bool showSessionName;
194 bool modNotification;
202 KateViewManager *m_viewManager;
204 TDERecentFilesAction *fileOpenRecent;
206 KateFileList *filelist;
207 KateFileSelector *fileselector;
208 KateSessionPanel *m_sessionpanel;
210 TDEActionMenu* documentOpenWith;
212 TQPopupMenu *documentMenu;
214 TDEToggleAction* settingsShowFilelist;
215 TDEToggleAction* settingsShowFileselector;
221 KateTabWidget *m_tabWidget;
224 class KateSessionListActionMenu :
public TDEActionMenu
229 KateSessionListActionMenu(KateMainWindow *mw,
const TQString &text, TQObject *parent = NULL,
const char *name = NULL);
230 ~KateSessionListActionMenu() {}
233 void slotAboutToShow();
236 KateMainWindow *m_mainWindow;
KateConsole This class is used for the internal terminal emulator It uses internally the konsole part...
Namespace collecting as much of the internal Kate classes as we can manage.