aboutsummaryrefslogtreecommitdiff
path: root/qdeduper/pathchooser.hpp
blob: 07f9f511ec8356d9029d9418b0c3d4664b8ef5f5 (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
#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