summaryrefslogtreecommitdiffstats
path: root/src/mainwindowshare.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit114a878c64ce6f8223cfd22d76a20eb16d177e5e (patch)
treeacaf47eb0fa12142d3896416a69e74cbf5a72242 /src/mainwindowshare.h
downloadtdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.tar.gz
tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/mainwindowshare.h')
-rw-r--r--src/mainwindowshare.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/src/mainwindowshare.h b/src/mainwindowshare.h
new file mode 100644
index 00000000..6fba07a3
--- /dev/null
+++ b/src/mainwindowshare.h
@@ -0,0 +1,88 @@
+/***************************************************************************
+ mainwindowshare.h - shared stuff of the main widgets
+ -------------------
+ begin : 19 Dec 2002
+ copyright : (C) 2002 by Falk Brettschneider
+ email : falk@kdevelop.org
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+#ifndef __MAINWINDOWSHARE_H__
+#define __MAINWINDOWSHARE_H__
+
+#include <qobject.h>
+
+class KAction;
+class KToggleAction;
+namespace KParts {
+ class MainWindow;
+}
+/**
+Shared main window functionality.
+*/
+class MainWindowShare : public QObject
+{
+ Q_OBJECT
+public:
+ MainWindowShare(QObject* pParent = 0L, const char* name = 0L);
+ ~MainWindowShare() {}
+
+ void createActions();
+ void init();
+
+public slots:
+ void slotGUICreated( KParts::Part * );
+
+signals:
+ void gotoNextWindow();
+ void gotoPreviousWindow();
+ void gotoFirstWindow();
+ void gotoLastWindow();
+
+private slots:
+ void slotReportBug();
+ void slotKeyBindings();
+ void slotConfigureToolbars();
+ void slotConfigureNotifications();
+ void slotConfigureEditors();
+ void slotSettings();
+ void slotActiveProcessChanged( KDevPlugin*, bool );
+ void slotActivePartChanged( KParts::Part* part );
+ void slotStopPopupActivated(int);
+ void slotStopMenuAboutToShow();
+ void slotStopButtonPressed();
+ void slotNewToolbarConfig();
+ void slotShowMenuBar();
+ void slotActionStatusText( const QString &text );
+
+ void slotToggleMainToolbar();
+ void slotToggleBuildToolbar();
+ void slotToggleViewToolbar();
+ void slotToggleBrowserToolbar();
+ void slotToggleStatusbar();
+
+ void contextMenu(QPopupMenu *, const Context *);
+
+private:
+ KToggleAction* m_toggleMainToolbar;
+ KToggleAction* m_toggleBuildToolbar;
+ KToggleAction* m_toggleViewToolbar;
+ KToggleAction* m_toggleBrowserToolbar;
+ KToggleAction* m_toggleStatusbar;
+
+ KAction * m_configureEditorAction;
+
+ KToolBarPopupAction* m_stopProcesses; //!< Stops all running processes
+
+ KParts::MainWindow* m_pMainWnd;
+ QPtrList<KDevPlugin> activeProcesses;
+};
+
+#endif // __MAINWINDOWSHARE_H__