/* This file is part of the KDE project Copyright (C) 2006 Olivier Goffart 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 KMENUMENUHANDLER_P_H #define KMENUMENUHANDLER_P_H #include class KXMLGUIBuilder; class KMenu; class KSelectAction; namespace KDEPrivate { /** * @internal * This class handle the context menu of KMenu. * Used by KXmlGuiBuilder * @author Olivier Goffart */ 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