mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-12-02 08:33:00 +08:00
120 lines
2.0 KiB
C
120 lines
2.0 KiB
C
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||
|
|
||
|
#ifndef CLASSWIZARD_H
|
||
|
#define CLASSWIZARD_H
|
||
|
|
||
|
#include <QWizard>
|
||
|
|
||
|
QT_BEGIN_NAMESPACE
|
||
|
class QCheckBox;
|
||
|
class QGroupBox;
|
||
|
class QLabel;
|
||
|
class QLineEdit;
|
||
|
class QRadioButton;
|
||
|
QT_END_NAMESPACE
|
||
|
|
||
|
//! [0]
|
||
|
class ClassWizard : public QWizard
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
ClassWizard(QWidget *parent = nullptr);
|
||
|
|
||
|
void accept() override;
|
||
|
};
|
||
|
//! [0]
|
||
|
|
||
|
//! [1]
|
||
|
class IntroPage : public QWizardPage
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
IntroPage(QWidget *parent = nullptr);
|
||
|
|
||
|
private:
|
||
|
QLabel *label;
|
||
|
};
|
||
|
//! [1]
|
||
|
|
||
|
//! [2]
|
||
|
class ClassInfoPage : public QWizardPage
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
ClassInfoPage(QWidget *parent = nullptr);
|
||
|
|
||
|
private:
|
||
|
QLabel *classNameLabel;
|
||
|
QLabel *baseClassLabel;
|
||
|
QLineEdit *classNameLineEdit;
|
||
|
QLineEdit *baseClassLineEdit;
|
||
|
QCheckBox *qobjectMacroCheckBox;
|
||
|
QGroupBox *groupBox;
|
||
|
QRadioButton *qobjectCtorRadioButton;
|
||
|
QRadioButton *qwidgetCtorRadioButton;
|
||
|
QRadioButton *defaultCtorRadioButton;
|
||
|
QCheckBox *copyCtorCheckBox;
|
||
|
};
|
||
|
//! [2]
|
||
|
|
||
|
//! [3]
|
||
|
class CodeStylePage : public QWizardPage
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
CodeStylePage(QWidget *parent = nullptr);
|
||
|
|
||
|
protected:
|
||
|
void initializePage() override;
|
||
|
|
||
|
private:
|
||
|
QCheckBox *commentCheckBox;
|
||
|
QCheckBox *protectCheckBox;
|
||
|
QCheckBox *includeBaseCheckBox;
|
||
|
QLabel *macroNameLabel;
|
||
|
QLabel *baseIncludeLabel;
|
||
|
QLineEdit *macroNameLineEdit;
|
||
|
QLineEdit *baseIncludeLineEdit;
|
||
|
};
|
||
|
//! [3]
|
||
|
|
||
|
class OutputFilesPage : public QWizardPage
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
OutputFilesPage(QWidget *parent = nullptr);
|
||
|
|
||
|
protected:
|
||
|
void initializePage() override;
|
||
|
|
||
|
private:
|
||
|
QLabel *outputDirLabel;
|
||
|
QLabel *headerLabel;
|
||
|
QLabel *implementationLabel;
|
||
|
QLineEdit *outputDirLineEdit;
|
||
|
QLineEdit *headerLineEdit;
|
||
|
QLineEdit *implementationLineEdit;
|
||
|
};
|
||
|
|
||
|
class ConclusionPage : public QWizardPage
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
ConclusionPage(QWidget *parent = nullptr);
|
||
|
|
||
|
protected:
|
||
|
void initializePage() override;
|
||
|
|
||
|
private:
|
||
|
QLabel *label;
|
||
|
};
|
||
|
|
||
|
#endif
|