diff --git a/kdevplatform/shell/mainwindow_p.h b/kdevplatform/shell/mainwindow_p.h index 3020957966..1e915a0759 100644 --- a/kdevplatform/shell/mainwindow_p.h +++ b/kdevplatform/shell/mainwindow_p.h @@ -1,158 +1,158 @@ /* This file is part of the KDevelop project Copyright 2002 Falk Brettschneider Copyright 2003 John Firebaugh Copyright 2006 Adam Treat Copyright 2006, 2007 Alexander Dymo This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef KDEVPLATFORM_MAINWINDOW_PRIVATE_H #define KDEVPLATFORM_MAINWINDOW_PRIVATE_H #include #include #include - +#include #include #include class KActionCollection; class QMenu; namespace Sublime { class View; class Container; } namespace KParts { class Part; } namespace KTextEditor { class View; } namespace KTextEditorIntegration { class MainWindow; } namespace KDevelop { class IPlugin; class MainWindow; class StatusBar; class MainWindowPrivate: public QObject { Q_OBJECT public: explicit MainWindowPrivate(MainWindow *mainWindow); ~MainWindowPrivate() override; QPointer centralPlugin; QMetaObject::Connection activeDocumentReadWriteConnection; void setupActions(); void setupGui(); void setupStatusBar(); void registerStatus(QObject*); void tabContextMenuRequested(Sublime::View *view, QMenu* menu); void tabToolTipRequested(Sublime::View* view, Sublime::Container* container, int tab); void dockBarContextMenuRequested(Qt::DockWidgetArea area, const QPoint& position); public Q_SLOTS: void addPlugin( KDevelop::IPlugin *plugin ); void removePlugin( KDevelop::IPlugin *plugin ); void updateSourceFormatterGuiClient(bool hasFormatters); void activePartChanged(KParts::Part *part); void mergeView(Sublime::View *view); void changeActiveView(Sublime::View *view); void xmlguiclientDestroyed(QObject* obj); //actions void fileNew(); void gotoNextWindow(); void gotoPreviousWindow(); void selectPrevItem(); void selectNextItem(); void viewAddNewToolView(); void newWindow(); void splitHorizontal(); void splitVertical(); void split(Qt::Orientation orientation); void toggleFullScreen(bool fullScreen); void gotoNextSplit(); void gotoPreviousSplit(); void newToolbarConfig(); void settingsDialog(); void quitAll(); // void fixToolbar(); ///Returns true if we're currently changing the active view through changeActiveView() bool changingActiveView() const ; void configureNotifications(); void showAboutPlatform(); void showLoadedPlugins(); void toggleArea(bool b); void showErrorMessage(const QString& message, int timeout); void pluginDestroyed(QObject*); /// the following slots always activate the m_tabView before calling the normal slot above /// @see m_tabView /// @see tabContextMenuRequested void contextMenuFileNew(); void contextMenuSplitHorizontal(); void contextMenuSplitVertical(); /// reload all open documents void reloadAll(); KTextEditorIntegration::MainWindow *kateWrapper() const; private: KActionCollection *actionCollection(); MainWindow* const m_mainWindow; StatusBar* m_statusBar; QWidget* lastXMLGUIClientView; QPointer m_workingSetCornerWidget; QMap m_pluginCustomClients; bool m_changingActiveView; /// the view of the tab that got it's context menu connected Sublime::View* m_tabView; QPair > m_tabTooltip; KTextEditorIntegration::MainWindow* m_kateWrapper; }; } #endif