Changeset View
Changeset View
Standalone View
Standalone View
src/dolphincontextmenu.h
Show All 19 Lines | |||||
20 | #ifndef DOLPHINCONTEXTMENU_H | 20 | #ifndef DOLPHINCONTEXTMENU_H | ||
21 | #define DOLPHINCONTEXTMENU_H | 21 | #define DOLPHINCONTEXTMENU_H | ||
22 | 22 | | |||
23 | #include <KFileCopyToMenu> | 23 | #include <KFileCopyToMenu> | ||
24 | #include <KFileItem> | 24 | #include <KFileItem> | ||
25 | 25 | | |||
26 | #include <QMenu> | 26 | #include <QMenu> | ||
27 | #include <QUrl> | 27 | #include <QUrl> | ||
28 | #include <PurposeWidgets/Menu> | ||||
28 | 29 | | |||
29 | class QAction; | 30 | class QAction; | ||
30 | class DolphinMainWindow; | 31 | class DolphinMainWindow; | ||
31 | class KFileItemActions; | 32 | class KFileItemActions; | ||
32 | class KFileItemListProperties; | 33 | class KFileItemListProperties; | ||
33 | class DolphinRemoveAction; | 34 | class DolphinRemoveAction; | ||
34 | 35 | | |||
36 | | ||||
35 | /** | 37 | /** | ||
36 | * @brief Represents the context menu which appears when doing a right | 38 | * @brief Represents the context menu which appears when doing a right | ||
37 | * click on an item or the viewport of the file manager. | 39 | * click on an item or the viewport of the file manager. | ||
38 | * | 40 | * | ||
39 | * Beside static menu entries (e. g. 'Paste' or 'Properties') two | 41 | * Beside static menu entries (e. g. 'Paste' or 'Properties') two | ||
40 | * dynamic sub menus are shown when opening a context menu above | 42 | * dynamic sub menus are shown when opening a context menu above | ||
41 | * an item: | 43 | * an item: | ||
42 | * - 'Open With': Contains all applications which are registered to | 44 | * - 'Open With': Contains all applications which are registered to | ||
▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | 136 | private: | |||
162 | 164 | | |||
163 | int m_context; | 165 | int m_context; | ||
164 | KFileCopyToMenu m_copyToMenu; | 166 | KFileCopyToMenu m_copyToMenu; | ||
165 | QList<QAction*> m_customActions; | 167 | QList<QAction*> m_customActions; | ||
166 | 168 | | |||
167 | Command m_command; | 169 | Command m_command; | ||
168 | 170 | | |||
169 | DolphinRemoveAction* m_removeAction; // Action that represents either 'Move To Trash' or 'Delete' | 171 | DolphinRemoveAction* m_removeAction; // Action that represents either 'Move To Trash' or 'Delete' | ||
172 | | ||||
173 | Purpose::Menu* m_shareMenu; | ||||
170 | }; | 174 | }; | ||
171 | 175 | | |||
172 | #endif | 176 | #endif |