• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • app
kateapp.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
3 Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __KATE_APP_H__
21#define __KATE_APP_H__
22
23#include "katemain.h"
24
25#include <tdeapplication.h>
26
27#include <tqvaluelist.h>
28
29class KateSessionManager;
30class KateAppDCOPIface;
31
32namespace Kate {
33 class Application;
34}
35
36class TDECmdLineArgs;
37
42class TDE_EXPORT KateApp : public TDEApplication
43{
44 TQ_OBJECT
45
49 public:
54 KateApp (TDECmdLineArgs *args);
55
59 ~KateApp ();
60
65 static KateApp *self ();
66
71 Kate::Application *application ();
72
78 static TQString kateVersion (bool fullVersion = true);
79
83 private:
87 void restoreKate ();
88
93 bool startupKate ();
94
98 public:
103 void shutdownKate(KateMainWindow *win);
104
109 bool shouldExit () { return m_shouldExit; }
110
115 bool query_session_close();
116
121 void reparse_config();
122
123 signals:
127 void optionsChanged();
128
132 public:
137 KatePluginManager *pluginManager();
138
143 KateDocManager *documentManager ();
144
149 KateSessionManager *sessionManager();
150
154 public:
161 KateMainWindow *newMainWindow (TDEConfig *sconfig = 0, const TQString &sgroup = "");
162
167 void removeMainWindow (KateMainWindow *mainWindow);
168
174 KateMainWindow *activeMainWindow ();
175
180 uint mainWindows () const;
181
187 KateMainWindow *mainWindow (uint n);
188
192 public:
201 bool openURL (const KURL &url, const TQString &encoding, bool isTempFile );
202
209 bool setCursor (int line, int column);
210
217 bool openInput (const TQString &text);
218
219 private:
223 TDECmdLineArgs *m_args;
224
228 Kate::Application *m_application;
229
233 KateDocManager *m_docManager;
234
238 KatePluginManager *m_pluginManager;
239
243 KateSessionManager *m_sessionManager;
244
248 TQValueList<KateMainWindow*> m_mainWindows;
249
253 KateAppDCOPIface *m_obj;
254
258 bool m_shouldExit;
259};
260
261#endif
KateApp
Kate Application This class represents the core kate application object.
Definition: kateapp.h:43
KateApp::optionsChanged
void optionsChanged()
Emitted when the configuration has or may have been changed.
KateApp::shouldExit
bool shouldExit()
application should exit
Definition: kateapp.h:109
KateSessionManager
The Kate session manager.
Definition: katesession.h:177
Kate::Application
Interface to the application, beside some global methodes to access other objects like document/proje...
Definition: application.h:39
Kate
Namespace collecting as much of the internal Kate classes as we can manage.
Definition: kateapp.h:32

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kate

Skip menu "kate"
  • kate
  • libkonq
  • twin
  •   lib
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.