aboutsummaryrefslogtreecommitdiff
path: root/qdeduper/pathchooser.hpp
blob: 3cafebe1c716fac642ac30e4af3b08f594d8e577 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//Chris Xiong 2022
//License: MPL-2.0
#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