• 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 KDE_EXPORT KateApp : public TDEApplication
43 {
44  Q_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 
114  public:
119  KatePluginManager *pluginManager();
120 
125  KateDocManager *documentManager ();
126 
131  KateSessionManager *sessionManager ();
132 
136  public:
143  KateMainWindow *newMainWindow (TDEConfig *sconfig = 0, const TQString &sgroup = "");
144 
149  void removeMainWindow (KateMainWindow *mainWindow);
150 
156  KateMainWindow *activeMainWindow ();
157 
162  uint mainWindows () const;
163 
169  KateMainWindow *mainWindow (uint n);
170 
174  public:
183  bool openURL (const KURL &url, const TQString &encoding, bool isTempFile );
184 
191  bool setCursor (int line, int column);
192 
199  bool openInput (const TQString &text);
200 
201  private:
205  TDECmdLineArgs *m_args;
206 
210  Kate::Application *m_application;
211 
215  KateDocManager *m_docManager;
216 
220  KatePluginManager *m_pluginManager;
221 
225  KateSessionManager *m_sessionManager;
226 
230  TQValueList<KateMainWindow*> m_mainWindows;
231 
235  KateAppDCOPIface *m_obj;
236 
240  bool m_shouldExit;
241 };
242 
243 #endif

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.1.2
This website is maintained by Timothy Pearson.