diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-09-19 02:39:03 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-09-19 02:39:03 -0400 |
commit | 41e9051f2d809c42c3dfecc2eb11ad544cbd27b7 (patch) | |
tree | e370e08b0e0a45c6eef38704aa2f2b2b0e6d8033 /qdeduper/pathchooser.hpp | |
parent | 4b8d314f575d9e893d8dda7431194f8b470fc888 (diff) | |
download | deduper-41e9051f2d809c42c3dfecc2eb11ad544cbd27b7.tar.xz |
You break it, you fix it!
The GUI is now working again, with scanning built-in.
Diffstat (limited to 'qdeduper/pathchooser.hpp')
-rw-r--r-- | qdeduper/pathchooser.hpp | 31 |
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 |