• 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 
29 class KateSessionManager;
30 class KateAppDCOPIface;
31 
32 namespace Kate {
33  class Application;
34 }
35 
36 class TDECmdLineArgs;
37 
42 class 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
KateSessionManager
The Kate session manager.
Definition: katesession.h:176
KateApp
Kate Application This class represents the core kate application object.
Definition: kateapp.h:42
KateApp::shouldExit
bool shouldExit()
application should exit
Definition: kateapp.h:109
Kate::documentManager
DocumentManager * documentManager()
Returns the document manager object.
Definition: documentmanager.cpp:114
Kate::Application
Interface to the application, beside some global methodes to access other objects like document/proje...
Definition: application.h:38
Kate::application
Application * application()
Returns the application object.
Definition: application.cpp:91
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.8.13
This website is maintained by Timothy Pearson.