aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/importwidget.h
blob: 1e9c4c2950591aec4915fa951d643d22d2711389 (plain)
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
34
35
36
37
38
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <QWidget>

namespace Utils {
class PathChooser;
class FilePath;
} // namespace Utils

namespace ProjectExplorer {
namespace Internal {

class ImportWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ImportWidget(QWidget *parent = nullptr);

    void setCurrentDirectory(const Utils::FilePath &dir);

    bool ownsReturnKey() const;

signals:
    void importFrom(const Utils::FilePath &dir);

private:
    void handleImportRequest();

    Utils::PathChooser *m_pathChooser;
    bool m_ownsReturnKey = false;
};

} // namespace Internal
} // namespace ProjectExplorer