Changeset View
Changeset View
Standalone View
Standalone View
src/dolphincontextmenu.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | * - 'Actions': Contains all actions which can be applied to the | 46 | * - 'Actions': Contains all actions which can be applied to the | ||
47 | * given item. | 47 | * given item. | ||
48 | */ | 48 | */ | ||
49 | class DolphinContextMenu : public QMenu | 49 | class DolphinContextMenu : public QMenu | ||
50 | { | 50 | { | ||
51 | Q_OBJECT | 51 | Q_OBJECT | ||
52 | 52 | | |||
53 | public: | 53 | public: | ||
54 | enum Command | 54 | enum class Command | ||
55 | { | 55 | { | ||
56 | None, | 56 | None, | ||
57 | OpenParentFolder, | 57 | OpenParentFolder, | ||
58 | OpenParentFolderInNewWindow, | 58 | OpenParentFolderInNewWindow, | ||
59 | OpenParentFolderInNewTab | 59 | OpenParentFolderInNewTab | ||
60 | }; | 60 | }; | ||
61 | 61 | | |||
62 | /** | 62 | /** | ||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 139 | { | |||
140 | int type; | 140 | int type; | ||
141 | QString name; | 141 | QString name; | ||
142 | QString filePath; // empty for separator | 142 | QString filePath; // empty for separator | ||
143 | QString templatePath; // same as filePath for template | 143 | QString templatePath; // same as filePath for template | ||
144 | QString icon; | 144 | QString icon; | ||
145 | QString comment; | 145 | QString comment; | ||
146 | }; | 146 | }; | ||
147 | 147 | | |||
148 | enum ContextType | 148 | enum class ContextType | ||
149 | { | 149 | { | ||
150 | NoContext = 0, | 150 | NoContext = 0, | ||
151 | ItemContext = 1, | 151 | Item = 1, | ||
152 | TrashContext = 2 | 152 | Trash = 2 | ||
153 | }; | 153 | }; | ||
154 | 154 | | |||
155 | QPoint m_pos; | 155 | QPoint m_pos; | ||
156 | DolphinMainWindow* m_mainWindow; | 156 | DolphinMainWindow* m_mainWindow; | ||
157 | 157 | | |||
158 | KFileItem m_fileInfo; | 158 | KFileItem m_fileInfo; | ||
159 | 159 | | |||
160 | QUrl m_baseUrl; | 160 | QUrl m_baseUrl; | ||
Show All 15 Lines |