blob: 9894097c1c9ed8756658b85c9bb4b23edc1a85e6 (
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
39
40
41
42
43
44
45
46
47
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#ifndef CMAKEPROJECTCONVERTERDIALOG_H
#define CMAKEPROJECTCONVERTERDIALOG_H
#include <qmlprojectmanager/qmlproject.h>
#include <utils/fancylineedit.h>
#include <utils/filepath.h>
#include <utils/infolabel.h>
#include <utils/pathchooser.h>
#include <QDialog>
namespace QmlProjectManager {
namespace GenerateCmake {
class CmakeProjectConverterDialog : public QDialog
{
Q_OBJECT
public:
CmakeProjectConverterDialog(const QmlProjectManager::QmlProject *oldProject);
const Utils::FilePath newPath() const;
public slots:
void pathValidChanged();
private:
const QString startsWithBlacklisted(const QString &text) const;
const QString errorText() const;
const QString uniqueProjectName(const Utils::FilePath &dir, const QString &oldName) const;
bool isValid();
private:
Utils::FilePath m_newProjectDir;
Utils::FancyLineEdit *m_nameEditor;
Utils::PathChooser *m_dirSelector;
Utils::InfoLabel *m_errorLabel;
QPushButton *m_okButton;
};
} //GenerateCmake
} //QmlProjectManager
#endif // CMAKEPROJECTCONVERTERDIALOG_H
|