From e25c84c0463f5a43d3b2bb836850f5c5963a2846 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 30 Sep 2022 23:58:46 -0400 Subject: Add context menu for the image view. Shortcuts are currently broken. Will be fixed in future commits. --- qdeduper/mingui.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'qdeduper/mingui.hpp') diff --git a/qdeduper/mingui.hpp b/qdeduper/mingui.hpp index a4b2089..19db256 100644 --- a/qdeduper/mingui.hpp +++ b/qdeduper/mingui.hpp @@ -38,6 +38,16 @@ enum ViewMode view_marked }; +enum ItemActionType +{ + mark_toggle, + mark_all_except, + show_only, + open_with_system_viewer, + open_containing_folder, + ACTION_MAX +}; + class DeduperMainWindow : public QMainWindow { Q_OBJECT @@ -73,6 +83,9 @@ private: void mark_all(); void mark_none(bool msg = true); void marked_update(bool update_msg = true); + void show_only(size_t x); + void open_image(size_t x); + void locate_image(size_t x); fs::path::string_type common_prefix(const std::vector &fns); bool modified_check(bool quitting = true); protected: -- cgit v1.2.3