kdelibs/kdeui/xmlgui/kmenumenuhandler_p.h

61 lines
1.5 KiB
C
Raw Normal View History

2014-11-13 01:04:59 +02:00
/* This file is part of the KDE project
Copyright (C) 2006 Olivier Goffart <ogoffart@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.
*/
2015-07-11 18:20:46 +03:00
#ifndef KMENUMENUHANDLER_P_H
#define KMENUMENUHANDLER_P_H
2014-11-13 01:04:59 +02:00
#include <QObject>
class KXMLGUIBuilder;
class KMenu;
class KSelectAction;
namespace KDEPrivate {
/**
* @internal
* This class handle the context menu of KMenu.
* Used by KXmlGuiBuilder
* @author Olivier Goffart <ogoffart@kde.org>
*/
class KMenuMenuHandler : public QObject
{
Q_OBJECT
public:
KMenuMenuHandler(KXMLGUIBuilder *b);
~KMenuMenuHandler() {}
void insertKMenu( KMenu *menu );
private Q_SLOTS:
void slotSetShortcut();
void buildToolbarAction();
void slotAddToToolBar(int);
private:
KXMLGUIBuilder *m_builder;
KSelectAction *m_toolbarAction;
};
} //END namespace KDEPrivate
#endif