kcmenumngr.h
/* This file is part of the KDE libraries
Copyright (C) 1999 Matthias Ettrich (ettrich@kde.org)
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 KCMENUMNGR_H
#define KCMENUMNGR_H
class QWidget;
class QPopupMenu;
class KContextMenuManagerPrivate;
#include <qobject.h>
#include <qptrdict.h>
#include <qkeysequence.h>
#include <kdelibs_export.h>
class KDEUI_EXPORT KContextMenuManager : public QObject
{
Q_OBJECT
public:
static void insert( QWidget* widget, QPopupMenu* popup );
static bool showOnButtonPress( void );
private slots:
void widgetDestroyed();
private:
KContextMenuManager( QObject* parent = 0, const char* name = 0);
~KContextMenuManager();
bool eventFilter( QObject *, QEvent * );
QPtrDict<QPopupMenu> menus;
bool showOnPress;
QKeySequence menuKey;
static KContextMenuManager* manager;
friend class I_really_like_this_class; // avoid warning
KContextMenuManagerPrivate *d;
};
#endif

KDE Home | KDE Accessibility Home | Description of Access Keys