• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

interfaces

contextmenuextension.h

00001 /***************************************************************************
00002  *   This file is part of KDevelop                                         *
00003  *   Copyright 2008 Andreas Pakulat <apaku@gmx.de>                         *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Library General Public License as       *
00007  *   published by the Free Software Foundation; either version 2 of the    *
00008  *   License, or (at your option) any later version.                       *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU Library General Public     *
00016  *   License along with this program; if not, write to the                 *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
00019  ***************************************************************************/
00020 
00021 #ifndef CONTEXTMENUEXTENSION_H
00022 #define CONTEXTMENUEXTENSION_H
00023 
00024 #include <QtCore/QString>
00025 #include <QtCore/QList>
00026 
00027 #include "interfacesexport.h"
00028 
00029 class QAction;
00030 class QMenu;
00031 template <typename T> class QList;
00032 
00033 namespace KDevelop
00034 {
00035 
00036 class KDEVPLATFORMINTERFACES_EXPORT ContextMenuExtension
00037 {
00038 public:
00039 
00041     static const QString FileGroup;
00043     static const QString RefactorGroup;
00045     static const QString BuildGroup;
00047     static const QString RunGroup;
00049     static const QString DebugGroup;
00051     static const QString EditGroup;
00056     static const QString VcsGroup;
00058     static const QString ProjectGroup;
00059 
00065     static const QString ExtensionGroup;
00066 
00070     ContextMenuExtension();
00071     ~ContextMenuExtension();
00072     ContextMenuExtension( const ContextMenuExtension& rhs );
00073 
00074     ContextMenuExtension& operator=( const ContextMenuExtension& rhs );
00075 
00081     void addAction( const QString& group, QAction* action );
00082 
00088     QList<QAction*> actions( const QString& group ) const;
00089 
00093     static void populateMenu(QMenu* menu, const QList<ContextMenuExtension>& extensions);
00094 
00095 private:
00096     class ContextMenuExtensionPrivate* const d;
00097 };
00098 
00099 }
00100 
00101 #endif

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  •     interfaces
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal