• 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::optionsChanged
void optionsChanged()
Emitted when the configuration has or may have been changed.
KateApp::shouldExit
bool shouldExit()
application should exit
Definition kateapp.h:109
KateApp::application
Kate::Application * application()
accessor to the Kate::Application plugin interface
Definition kateapp.cpp:118
KateApp::newMainWindow
KateMainWindow * newMainWindow(TDEConfig *sconfig=0, const TQString &sgroup="")
window management
Definition kateapp.cpp:434
KateApp::shutdownKate
void shutdownKate(KateMainWindow *win)
kate shutdown
Definition kateapp.cpp:297
KateApp::mainWindow
KateMainWindow * mainWindow(uint n)
give back the window you want
Definition kateapp.cpp:474
KateApp::self
static KateApp * self()
static accessor to avoid casting ;)
Definition kateapp.cpp:113
KateApp::documentManager
KateDocManager * documentManager()
accessor to document manager
Definition kateapp.cpp:371
KateApp::kateVersion
static TQString kateVersion(bool fullVersion=true)
Returns the current Kate version (X.Y) or (X.Y.Z).
Definition kateapp.cpp:127
KateApp::activeMainWindow
KateMainWindow * activeMainWindow()
give back current active main window can only be 0 at app start or exit
Definition kateapp.cpp:456
KateApp::pluginManager
KatePluginManager * pluginManager()
other accessors for global unique instances
Definition kateapp.cpp:366
KateApp::openURL
bool openURL(const KURL &url, const TQString &encoding, bool isTempFile)
some stuff for the dcop API
Definition kateapp.cpp:381
KateApp::KateApp
KateApp(TDECmdLineArgs *args)
constructors & accessor to app object + plugin interface for it
Definition kateapp.cpp:53
KateApp::mainWindows
uint mainWindows() const
give back number of existing main windows
Definition kateapp.cpp:469
KateApp::setCursor
bool setCursor(int line, int column)
position cursor in current active view
Definition kateapp.cpp:410
KateApp::openInput
bool openInput(const TQString &text)
helper to handle stdin input open a new document/view, fill it with the text given
Definition kateapp.cpp:422
KateApp::sessionManager
KateSessionManager * sessionManager()
accessor to session manager
Definition kateapp.cpp:376
KateApp::removeMainWindow
void removeMainWindow(KateMainWindow *mainWindow)
removes the mainwindow given, DOES NOT DELETE IT
Definition kateapp.cpp:451
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.15.0
This website is maintained by Timothy Pearson.