blob: f0fd50df07e276bf7531818933509ce4917dfd36 (
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
48
49
50
51
52
|
// Copyright (C) 2016 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 <QCoreApplication>
#include <QWizardPage>
namespace Utils { class FilePath; }
namespace Designer {
class FormClassWizardParameters;
class FormClassWizardGenerationParameters;
namespace Internal {
class NewClassWidget;
class FormClassWizardPage : public QWizardPage
{
Q_DECLARE_TR_FUNCTIONS(Designer::Internal::FormClassWizardPage)
public:
FormClassWizardPage();
~FormClassWizardPage() override;
bool isComplete () const override;
bool validatePage() override;
void setClassName(const QString &suggestedClassName);
void setFilePath(const Utils::FilePath &);
Utils::FilePath filePath() const;
// Fill out applicable parameters
void getParameters(FormClassWizardParameters *) const;
FormClassWizardGenerationParameters generationParameters() const;
void setGenerationParameters(const FormClassWizardGenerationParameters &gp);
static bool lowercaseHeaderFiles();
private:
void slotValidChanged();
bool m_isValid = false;
Designer::Internal::NewClassWidget *m_newClassWidget;
};
} // namespace Internal
} // namespace Designer
|