blob: b5970ee8e7829797c6bf7b302820f369d94274ba (
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
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QList>
#include <utils/filepath.h>
#include "../core_global.h"
QT_BEGIN_NAMESPACE
class QWidget;
QT_END_NAMESPACE
namespace Core {
class IWizardFactory;
class CORE_EXPORT NewDialog {
public:
NewDialog();
virtual ~NewDialog() = 0;
virtual QWidget *widget() = 0;
virtual void setWizardFactories(QList<IWizardFactory *> factories,
const Utils::FilePath &defaultLocation,
const QVariantMap &extraVariables) = 0;
virtual void setWindowTitle(const QString &title) = 0;
virtual void showDialog() = 0;
static QWidget *currentDialog()
{
return m_currentDialog ? m_currentDialog->widget() : nullptr;
}
private:
inline static NewDialog *m_currentDialog = nullptr;
};
} // namespace Core
|