diff options
Diffstat (limited to 'qdeduper/mingui.hpp')
-rw-r--r-- | qdeduper/mingui.hpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/qdeduper/mingui.hpp b/qdeduper/mingui.hpp index b8d13ef..3515047 100644 --- a/qdeduper/mingui.hpp +++ b/qdeduper/mingui.hpp @@ -2,6 +2,7 @@ #define MINGUI_HPP #include <filesystem> +#include <map> #include <vector> #include <string> #include <unordered_set> @@ -9,12 +10,15 @@ #include <QMainWindow> #include <QList> +#include "sigdb_qt.hpp" + class QHBoxLayout; class QLabel; class QStatusBar; class QScrollArea; class QTextEdit; class QListView; +class QProgressDialog; class QSplitter; class QStandardItemModel; class ImageItemDelegate; @@ -30,10 +34,14 @@ private: QLabel *permamsg; QStatusBar *sb; QListView *lw; + std::map<std::string, QAction*> menuact; QList<QAction*> selhk; QStandardItemModel *im = nullptr; ImageItemDelegate *id = nullptr; - std::size_t ngroups, curgroup; + QProgressDialog *pd = nullptr; + SignatureDB *sdb = nullptr; + + std::size_t curgroup; bool nohotkeywarn; void mark_toggle(std::size_t x); void mark_all_but(std::size_t x); @@ -51,11 +59,17 @@ public: DeduperMainWindow(); void setup_menu(); - void show_images(const std::vector<std::filesystem::path> &fns); + void show_images(const std::vector<fs::path> &fns); void update_distances(const std::map<std::pair<std::size_t, std::size_t>, double> &d); void update_viewstatus(std::size_t cur, std::size_t size); void save_list(); void load_list(); + + void scan_dirs(std::vector<std::pair<fs::path, bool>> paths); +public Q_SLOTS: + void create_new(); + void update_actions(); + void show_group(size_t gid); Q_SIGNALS: void next(); void prev(); |