Changeset View
Changeset View
Standalone View
Standalone View
src/dolphincontextmenu.h
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Line(s) | 136 | { | |||
---|---|---|---|---|---|
141 | QString icon; | 141 | QString icon; | ||
142 | QString comment; | 142 | QString comment; | ||
143 | }; | 143 | }; | ||
144 | 144 | | |||
145 | enum ContextType | 145 | enum ContextType | ||
146 | { | 146 | { | ||
147 | NoContext = 0, | 147 | NoContext = 0, | ||
148 | ItemContext = 1, | 148 | ItemContext = 1, | ||
149 | TrashContext = 2 | 149 | TrashContext = 2, | ||
150 | TimelineContext = 4, | ||||
elvisangelaccio: I'd prefer to add separate `TimelineContext` and `SearchContext` values. It would be more… | |||||
151 | SearchContext = 8, | ||||
150 | }; | 152 | }; | ||
151 | 153 | | |||
152 | QPoint m_pos; | 154 | QPoint m_pos; | ||
153 | DolphinMainWindow* m_mainWindow; | 155 | DolphinMainWindow* m_mainWindow; | ||
154 | 156 | | |||
155 | KFileItem m_fileInfo; | 157 | KFileItem m_fileInfo; | ||
156 | 158 | | |||
157 | QUrl m_baseUrl; | 159 | QUrl m_baseUrl; | ||
158 | KFileItem* m_baseFileItem; /// File item for m_baseUrl | 160 | KFileItem* m_baseFileItem; /// File item for m_baseUrl | ||
159 | 161 | | |||
160 | KFileItemList m_selectedItems; | 162 | KFileItemList m_selectedItems; | ||
161 | mutable KFileItemListProperties* m_selectedItemsProperties; | 163 | mutable KFileItemListProperties* m_selectedItemsProperties; | ||
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 | void addDirectoryItemContextMenu(KFileItemActions &fileItemActions); | ||||
173 | | ||||
170 | }; | 174 | }; | ||
171 | 175 | | |||
172 | #endif | 176 | #endif |
I'd prefer to add separate TimelineContext and SearchContext values. It would be more future-proof.