1/*
2 * Copyright (C) 2000 Matthias Elter <elter@kde.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program 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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 *
18 */
19
20#ifndef kmenuedit_h
21#define kmenuedit_h
22
23#include <KXmlGuiWindow>
24
25class QSplitter;
26class KAction;
27class BasicTab;
28class TreeView;
29
30class KMenuEdit : public KXmlGuiWindow
31{
32 Q_OBJECT
33
34public:
35 KMenuEdit();
36 ~KMenuEdit();
37
38 void selectMenu(const QString &menu);
39 void selectMenuEntry(const QString &menuEntry);
40
41 // dbus method
42 void restoreSystemMenu();
43
44protected:
45 void setupView();
46 void setupActions();
47 bool queryClose();
48
49protected Q_SLOTS:
50 void slotSave();
51 void slotChangeView();
52 void slotRestoreMenu();
53 void slotConfigure();
54
55protected:
56 TreeView *m_tree;
57 BasicTab *m_basicTab;
58 QSplitter *m_splitter;
59
60 KAction *m_actionDelete;
61 bool m_showHidden;
62};
63
64#endif
65