Fix no newlines warnings. Patch by Peter Oberndorfer
[kdevelopdvcssupport.git] / shell / mainwindow_p.h
blob53c20c3dd652a1c7e7815cdd22f1d208e4296d92
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
25 #include <QObject>
26 #include <QPointer>
28 class QStackedWidget;
29 class KActionCollection;
31 namespace Sublime {
32 class View;
35 namespace KParts {
36 class Part;
39 namespace KTextEditor {
40 class View;
43 namespace KDevelop {
45 class IPlugin;
46 class MainWindow;
47 class StatusBar;
49 class MainWindowPrivate: public QObject {
50 Q_OBJECT
51 public:
52 MainWindowPrivate(MainWindow *mainWindow);
54 QPointer<QWidget> centralPlugin;
56 void setupActions();
57 void setupGui();
58 void registerStatus(QObject*);
60 public Q_SLOTS:
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);
68 //actions
69 void fileNew();
71 void gotoNextWindow();
72 void gotoPreviousWindow();
73 void gotoFirstWindow();
74 void gotoLastWindow();
76 void viewAddNewToolView();
78 void newWindow();
79 void splitHorizontal();
80 void splitVertical();
81 void split(Qt::Orientation orientation);
82 void toggleFullScreen(bool fullScreen);
84 void projectOpened();
85 void projectClosed();
86 void configureToolbars();
87 void newToolbarConfig();
89 void settingsDialog();
90 void stopPopupActivated( int );
91 void stopMenuAboutToShow();
92 void stopButtonPressed();
93 void showMenuBar();
95 void toggleStatusbar();
97 void quitAll();
99 void fixToolbar();
101 bool applicationQuitRequested() const;
103 private:
104 KActionCollection *actionCollection();
106 MainWindow *m_mainWindow;
107 StatusBar* m_statusBar;
108 QWidget* lastXMLGUIClientView;
109 static bool s_quitRequested;
114 #endif