2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2016-02-02 18:26:51 +01:00
|
|
|
#pragma once
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-04-24 15:49:09 +02:00
|
|
|
#include <QWidget>
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2013-03-28 09:01:07 +01:00
|
|
|
namespace Utils {
|
|
|
|
|
class PathChooser;
|
2019-05-28 13:49:26 +02:00
|
|
|
class FilePath;
|
2013-03-28 09:01:07 +01:00
|
|
|
} // namespace Utils
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2013-08-13 10:52:57 +02:00
|
|
|
namespace ProjectExplorer {
|
2010-12-10 19:02:19 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2012-04-24 15:49:09 +02:00
|
|
|
class ImportWidget : public QWidget
|
2010-12-10 19:02:19 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-04-24 15:49:09 +02:00
|
|
|
|
2010-12-10 19:02:19 +01:00
|
|
|
public:
|
2016-04-13 15:52:14 +02:00
|
|
|
explicit ImportWidget(QWidget *parent = nullptr);
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2019-05-28 13:49:26 +02:00
|
|
|
void setCurrentDirectory(const Utils::FilePath &dir);
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2019-06-26 17:05:14 +02:00
|
|
|
bool ownsReturnKey() const;
|
2019-06-06 17:59:30 +02:00
|
|
|
|
2012-04-24 15:49:09 +02:00
|
|
|
signals:
|
2019-05-28 13:49:26 +02:00
|
|
|
void importFrom(const Utils::FilePath &dir);
|
2012-04-24 15:49:09 +02:00
|
|
|
|
2016-01-29 16:38:37 +02:00
|
|
|
private:
|
2012-04-24 15:49:09 +02:00
|
|
|
void handleImportRequest();
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-04-24 15:49:09 +02:00
|
|
|
Utils::PathChooser *m_pathChooser;
|
2019-06-26 17:05:14 +02:00
|
|
|
bool m_ownsReturnKey = false;
|
2010-12-10 19:02:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2013-08-13 10:52:57 +02:00
|
|
|
} // namespace ProjectExplorer
|