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);
72 Kate::MainWindow *mainWindow () {
return m_mainWindow; }
75 KateViewManager *viewManager () {
return m_viewManager; }
77 DCOPObject *dcopObject () {
return m_dcop; }
85 KURL activeDocumentUrl();
87 uint mainWindowNumber ()
const {
return myID; }
96 bool showModOnDiskPrompt();
102 KateTabWidget *tabWidget ();
105 void readProperties(TDEConfig *config);
106 void saveProperties(TDEConfig *config);
107 void saveGlobalProperties( TDEConfig* sessionConfig );
110 bool queryClose_internal();
113 void setupMainWindow();
127 void dragEnterEvent( TQDragEnterEvent * );
128 void dropEvent( TQDropEvent * );
137 void slotConfigure();
139 void slotOpenWithMenuAction(
int idx);
141 void slotGrepToolItemSelected (
const TQString &filename,
int linenumber );
145 void slotEditToolbars();
146 void slotNewToolbarConfig();
147 void slotWindowActivated ();
148 void slotUpdateOpenWith();
149 void documentMenuAboutToShow();
150 void slotDropEvent(TQDropEvent *);
152 void mSlotFixOpenWithMenu();
154 void fileSelected(
const KFileItem *file);
159 void slotDocumentCreated(Kate::Document *doc);
160 void slotNameChanged(Kate::Document *doc);
161 void updateCaption(Kate::Document *doc);
164 void slotFullScreen(
bool);
167 void openURL (
const TQString &name=0L);
170 void updateGrepDir (
bool visible);
173 bool event( TQEvent * );
176 void slotDocumentCloseAll();
179 static uint uniqueID;
182 Kate::MainWindow *m_mainWindow;
187 bool modNotification;
195 KateViewManager *m_viewManager;
197 TDERecentFilesAction *fileOpenRecent;
199 KateFileList *filelist;
200 KateFileSelector *fileselector;
202 TDEActionMenu* documentOpenWith;
204 TQPopupMenu *documentMenu;
206 TDEToggleAction* settingsShowFilelist;
207 TDEToggleAction* settingsShowFileselector;
211 bool m_modignore, m_grrr;
213 KateTabWidget *m_tabWidget;
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...