aboutsummaryrefslogtreecommitdiff
path: root/qdeduper/mingui.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-19 02:39:03 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-19 02:39:03 -0400
commit41e9051f2d809c42c3dfecc2eb11ad544cbd27b7 (patch)
treee370e08b0e0a45c6eef38704aa2f2b2b0e6d8033 /qdeduper/mingui.hpp
parent4b8d314f575d9e893d8dda7431194f8b470fc888 (diff)
downloaddeduper-41e9051f2d809c42c3dfecc2eb11ad544cbd27b7.tar.xz
You break it, you fix it!
The GUI is now working again, with scanning built-in.
Diffstat (limited to 'qdeduper/mingui.hpp')
-rw-r--r--qdeduper/mingui.hpp18
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();