KDevelop API Documentation

mainwindowshare.h

Go to the documentation of this file.
00001 /***************************************************************************
00002           mainwindowshare.h  -  shared stuff of the main widgets
00003                              -------------------
00004     begin                : 19 Dec 2002
00005     copyright            : (C) 2002 by Falk Brettschneider
00006     email                : falk@kdevelop.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef __MAINWINDOWSHARE_H__
00018 #define __MAINWINDOWSHARE_H__
00019 
00020 #include <qobject.h>
00021 
00022 class KAction;
00023 class KToggleAction;
00024 namespace KParts {
00025   class MainWindow;
00026 }
00027 
00028 class MainWindowShare : public QObject
00029 {
00030   Q_OBJECT
00031 public:
00032   MainWindowShare(QObject* pParent = 0L, const char* name = 0L);
00033   ~MainWindowShare() {}
00034 
00035   void createActions();
00036   void init();
00037 
00038 public slots:
00039   void slotGUICreated( KParts::Part * );
00040 
00041 signals:
00042   void gotoNextWindow();
00043   void gotoPreviousWindow();
00044   void gotoFirstWindow();
00045   void gotoLastWindow();
00046 
00047 private slots:
00048   void slotReportBug();
00049   void slotKeyBindings();
00050   void slotConfigureToolbars();
00051   void slotConfigureNotifications();
00052   void slotConfigureEditors();
00053   void slotSettings();
00054   void slotActiveProcessChanged( KDevPlugin*, bool );
00055   void slotActivePartChanged( KParts::Part* part );
00056   void slotStopPopupActivated(int);
00057   void slotStopMenuAboutToShow();
00058   void slotStopButtonPressed();
00059   void slotNewToolbarConfig();
00060   void slotShowMenuBar();
00061   void slotActionStatusText( const QString &text );
00062 
00063   void slotToggleMainToolbar();
00064   void slotToggleBuildToolbar();
00065   void slotToggleViewToolbar();
00066   void slotToggleBrowserToolbar();
00067   void slotToggleStatusbar();
00068 
00069   void contextMenu(QPopupMenu *, const Context *);
00070 
00071 private:
00072   KToggleAction*   m_toggleMainToolbar;
00073   KToggleAction*   m_toggleBuildToolbar;
00074   KToggleAction*   m_toggleViewToolbar;
00075   KToggleAction*   m_toggleBrowserToolbar;
00076   KToggleAction*   m_toggleStatusbar;
00077 
00078   KAction * m_configureEditorAction;
00079 
00080   KToolBarPopupAction*  m_stopProcesses;                 
00081 
00082   KParts::MainWindow*   m_pMainWnd;
00083   QPtrList<KDevPlugin>  activeProcesses;
00084 };
00085 
00086 #endif // __MAINWINDOWSHARE_H__
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:58 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003