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

kate

  • kate
  • app
katemainwindow.h
1 /* This file is part of the KDE project
2  Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
3  Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
4  Copyright (C) 2001 Anders Lund <anders.lund@lund.tdcadsl.dk>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef __KATE_MAINWINDOW_H__
22 #define __KATE_MAINWINDOW_H__
23 
24 #include "katemain.h"
25 #include "katemdi.h"
26 
27 #include <kate/view.h>
28 #include <kate/document.h>
29 
30 #include <tdeparts/part.h>
31 
32 #include <tdeaction.h>
33 
34 class KateTabWidget;
35 class GrepTool;
36 
37 namespace Kate {
38  class MainWindow;
39  class ToolViewManager;
40 }
41 
42 class KFileItem;
43 class TDERecentFilesAction;
44 class DCOPObject;
45 
46 class KateExternalToolsMenuAction;
47 
48 class KateMainWindow : public KateMDI::MainWindow, virtual public KParts::PartBase
49 {
50  Q_OBJECT
51 
52  friend class KateConfigDialog;
53  friend class KateViewManager;
54 
55  public:
61  KateMainWindow (TDEConfig *sconfig, const TQString &sgroup);
62 
66  ~KateMainWindow();
67 
71  public:
72  Kate::MainWindow *mainWindow () { return m_mainWindow; }
73  Kate::ToolViewManager *toolViewManager () { return m_toolViewManager; }
74 
75  KateViewManager *viewManager () { return m_viewManager; }
76 
77  DCOPObject *dcopObject () { return m_dcop; }
78 
82  public:
85  KURL activeDocumentUrl();
86 
87  uint mainWindowNumber () const { return myID; }
88 
96  bool showModOnDiskPrompt();
97 
102  KateTabWidget *tabWidget ();
103 
104  public:
105  void readProperties(TDEConfig *config);
106  void saveProperties(TDEConfig *config);
107  void saveGlobalProperties( TDEConfig* sessionConfig );
108 
109  public:
110  bool queryClose_internal();
111 
112  private:
113  void setupMainWindow();
114  void setupActions();
115  bool queryClose();
116 
120  void readOptions();
121 
125  void saveOptions();
126 
127  void dragEnterEvent( TQDragEnterEvent * );
128  void dropEvent( TQDropEvent * );
129 
134  private slots:
135  void newWindow ();
136 
137  void slotConfigure();
138 
139  void slotOpenWithMenuAction(int idx);
140 
141  void slotGrepToolItemSelected ( const TQString &filename, int linenumber );
142  void slotMail();
143 
144  void slotFileQuit();
145  void slotEditToolbars();
146  void slotNewToolbarConfig();
147  void slotWindowActivated ();
148  void slotUpdateOpenWith();
149  void documentMenuAboutToShow();
150  void slotDropEvent(TQDropEvent *);
151  void editKeys();
152  void mSlotFixOpenWithMenu();
153 
154  void fileSelected(const KFileItem *file);
155 
156  void tipOfTheDay();
157 
158  /* to update the caption */
159  void slotDocumentCreated(Kate::Document *doc);
160  void slotNameChanged(Kate::Document *doc);
161  void updateCaption(Kate::Document *doc);
162 
163  void pluginHelp();
164  void slotFullScreen(bool);
165 
166  public:
167  void openURL (const TQString &name=0L);
168 
169  private slots:
170  void updateGrepDir (bool visible);
171 
172  protected:
173  bool event( TQEvent * );
174 
175  private slots:
176  void slotDocumentCloseAll();
177 
178  private:
179  static uint uniqueID;
180  uint myID;
181 
182  Kate::MainWindow *m_mainWindow;
183  Kate::ToolViewManager *m_toolViewManager;
184 
185  bool syncKonsole;
186  bool useInstance;
187  bool modNotification;
188 
189  DCOPObject *m_dcop;
190 
191  // console
192  KateConsole *console;
193 
194  // management items
195  KateViewManager *m_viewManager;
196 
197  TDERecentFilesAction *fileOpenRecent;
198 
199  KateFileList *filelist;
200  KateFileSelector *fileselector;
201 
202  TDEActionMenu* documentOpenWith;
203 
204  TQPopupMenu *documentMenu;
205 
206  TDEToggleAction* settingsShowFilelist;
207  TDEToggleAction* settingsShowFileselector;
208 
209  KateExternalToolsMenuAction *externalTools;
210  GrepTool * greptool;
211  bool m_modignore, m_grrr;
212 
213  KateTabWidget *m_tabWidget;
214 };
215 
216 #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.