Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / konqueror / settings / konq / kcustommenueditor.h
blob8ad104e0d18779eac590f4f87eebdb232da0f67b
1 /* This file is part of the KDE libraries
2 Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; version 2
7 of the License.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
19 #ifndef _KCUSTOMMENUEDITOR_H_
20 #define _KCUSTOMMENUEDITOR_H_
22 #include <kdialog.h>
24 class K3ListView;
25 class KConfigBase;
28 * Dialog for editing custom menus.
30 * @author Waldo Bastian (bastian@kde.org)
32 class KCustomMenuEditor : public KDialog
34 Q_OBJECT
35 public:
36 /**
37 * Create a dialog for editing a custom menu
39 KCustomMenuEditor(QWidget *parent);
40 ~KCustomMenuEditor();
41 /**
42 * load the custom menu
44 void load(KConfig *);
46 /**
47 * save the custom menu
49 void save(KConfig *);
51 public Q_SLOTS:
52 void slotNewItem();
53 void slotRemoveItem();
54 void slotMoveUp();
55 void slotMoveDown();
56 void refreshButton();
58 protected:
59 class Item;
60 K3ListView *m_listView;
62 class KCustomMenuEditorPrivate;
63 KCustomMenuEditorPrivate* const d;
66 #endif