1 /* This file is part of the KDevelop project
2 Copyright 2002 Falk Brettschneider <falkbr@kdevelop.org>
3 Copyright 2003 John Firebaugh <jfirebaugh@kde.org>
4 Copyright 2006 Adam Treat <treat@kde.org>
5 Copyright 2006, 2007 Alexander Dymo <adymo@kdevelop.org>
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
22 #ifndef KDEVMAINWINDOW_PRIVATE_H
23 #define KDEVMAINWINDOW_PRIVATE_H
29 class KActionCollection
;
39 namespace KTextEditor
{
49 class MainWindowPrivate
: public QObject
{
52 MainWindowPrivate(MainWindow
*mainWindow
);
54 QPointer
<QWidget
> centralPlugin
;
58 void registerStatus(QObject
*);
61 void addPlugin( KDevelop::IPlugin
*plugin
);
62 void removePlugin( IPlugin
*plugin
);
64 void activePartChanged(KParts::Part
*part
);
65 void changeActiveView(Sublime::View
*view
);
66 void xmlguiclientDestroyed(QObject
* obj
);
71 void gotoNextWindow();
72 void gotoPreviousWindow();
73 void gotoFirstWindow();
74 void gotoLastWindow();
76 void viewAddNewToolView();
79 void splitHorizontal();
81 void split(Qt::Orientation orientation
);
82 void toggleFullScreen(bool fullScreen
);
86 void configureToolbars();
87 void newToolbarConfig();
89 void settingsDialog();
90 void stopPopupActivated( int );
91 void stopMenuAboutToShow();
92 void stopButtonPressed();
95 void toggleStatusbar();
101 bool applicationQuitRequested() const;
104 KActionCollection
*actionCollection();
106 MainWindow
*m_mainWindow
;
107 StatusBar
* m_statusBar
;
108 QWidget
* lastXMLGUIClientView
;
109 static bool s_quitRequested
;