aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/designer/cpp/formclasswizard.h
blob: aa18b3a115b3c12e4c2dc0330ef2ce9c2039ef6c (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
// 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 "formclasswizardparameters.h"

#include <coreplugin/basefilewizardfactory.h>

namespace Designer {
namespace Internal {

class FormClassWizard : public Core::BaseFileWizardFactory
{
    Q_OBJECT

public:
    FormClassWizard();

    QString headerSuffix() const;
    QString sourceSuffix() const;
    QString formSuffix() const;

private:
    Core::BaseFileWizard *create(QWidget *parent, const Core::WizardDialogParameters &parameters) const final;

    Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const final;
};

} // namespace Internal
} // namespace Designer