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 * );
184 static uint uniqueID;
187 Kate::MainWindow *m_mainWindow;
192 bool modNotification;
200 KateViewManager *m_viewManager;
202 TDERecentFilesAction *fileOpenRecent;
204 KateFileList *filelist;
205 KateFileSelector *fileselector;
206 KateSessionPanel *m_sessionpanel;
208 TDEActionMenu* documentOpenWith;
210 TQPopupMenu *documentMenu;
212 TDEToggleAction* settingsShowFilelist;
213 TDEToggleAction* settingsShowFileselector;
217 bool m_modignore, m_grrr;
219 KateTabWidget *m_tabWidget;
222 class KateSessionListActionMenu :
public TDEActionMenu
227 KateSessionListActionMenu(KateMainWindow *mw,
const TQString &text, TQObject *parent = NULL,
const char *name = NULL);
228 ~KateSessionListActionMenu() {}
231 void slotAboutToShow();
234 KateMainWindow *m_mainWindow;
Namespace collecting as much of the internal Kate classes as we can manage.
KateConsole This class is used for the internal terminal emulator It uses internally the konsole part...