20 #ifndef __KATE_APP_H__
21 #define __KATE_APP_H__
25 #include <tdeapplication.h>
27 #include <tqvaluelist.h>
29 class KateSessionManager;
30 class KateAppDCOPIface;
42 class KDE_EXPORT
KateApp :
public TDEApplication
78 static TQString kateVersion (
bool fullVersion =
true);
103 void shutdownKate (KateMainWindow *win);
119 KatePluginManager *pluginManager();
125 KateDocManager *documentManager ();
131 KateSessionManager *sessionManager ();
143 KateMainWindow *newMainWindow (TDEConfig *sconfig = 0,
const TQString &sgroup =
"");
149 void removeMainWindow (KateMainWindow *mainWindow);
156 KateMainWindow *activeMainWindow ();
162 uint mainWindows ()
const;
169 KateMainWindow *mainWindow (uint n);
183 bool openURL (
const KURL &url,
const TQString &encoding,
bool isTempFile );
191 bool setCursor (
int line,
int column);
199 bool openInput (
const TQString &text);
205 TDECmdLineArgs *m_args;
215 KateDocManager *m_docManager;
220 KatePluginManager *m_pluginManager;
225 KateSessionManager *m_sessionManager;
230 TQValueList<KateMainWindow*> m_mainWindows;
235 KateAppDCOPIface *m_obj;