Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / apps / lib / konq / tests / konqpopupmenutest.h
blobe1fec758b4019534701acb18509199c81e9f4d3e
1 /* This file is part of KDE
2 Copyright (c) 2007 David Faure <faure@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; either
7 version 2 of the License, or (at your option) any later version.
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.
20 #ifndef KONQPOPUPMENUTEST_H
21 #define KONQPOPUPMENUTEST_H
23 #include <QObject>
24 #include <KFileItem>
25 #include <KActionCollection>
26 class KNewMenu;
28 class KonqPopupMenuTest : public QObject
30 Q_OBJECT
31 public:
32 KonqPopupMenuTest();
34 private slots:
35 void initTestCase();
36 void testFile();
37 void testFilePreviewSubMenu();
38 void testSubDirectory();
39 void testViewDirectory();
41 void testHtmlLink();
42 void testHtmlPage();
44 private:
45 KFileItem m_fileItem;
46 KFileItem m_linkItem;
47 KFileItem m_subDirItem;
48 KFileItem m_rootItem;
49 QAction* m_back;
50 QAction* m_forward;
51 QAction* m_up;
52 QAction* m_reload;
53 QAction* m_cut;
54 QAction* m_copy;
55 QAction* m_paste;
56 QAction* m_pasteTo;
57 QAction* m_properties;
58 QAction* m_rename;
59 QAction* m_trash;
60 QAction* m_newWindow;
61 QAction* m_newTab;
62 QAction* m_preview1;
63 QAction* m_preview2;
64 QActionGroup* m_tabHandlingActions;
65 QActionGroup* m_previewActions;
66 QActionGroup* m_htmlEditActions;
67 QActionGroup* m_fileEditActions;
68 QActionGroup* m_linkActions;
69 QActionGroup* m_partActions;
70 KNewMenu* m_newMenu;
71 KActionCollection m_actionCollection;
74 #endif