aboutsummaryrefslogtreecommitdiff
path: root/qdeduper/pathchooser.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'qdeduper/pathchooser.hpp')
-rw-r--r--qdeduper/pathchooser.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/qdeduper/pathchooser.hpp b/qdeduper/pathchooser.hpp
new file mode 100644
index 0000000..07f9f51
--- /dev/null
+++ b/qdeduper/pathchooser.hpp
@@ -0,0 +1,31 @@
+#ifndef PATHCHOOSER_HPP
+#define PATHCHOOSER_HPP
+
+#include <filesystem>
+#include <utility>
+#include <vector>
+
+#include <QDialog>
+
+namespace fs = std::filesystem;
+
+class QDialogButtonBox;
+class QTableView;
+class QStandardItemModel;
+
+class PathChooser : public QDialog
+{
+ Q_OBJECT
+private:
+ QTableView *tv;
+ QStandardItemModel *im;
+ QDialogButtonBox *bb;
+public:
+ PathChooser(QWidget *parent = nullptr);
+ std::vector<std::pair<fs::path, bool>> get_dirs();
+public Q_SLOTS:
+ void add_new();
+ void delete_selected();
+};
+
+#endif