24d1565789
Replace the generation of #ifdef's for the macros by QT_CONFIG checks. Implement it using streamable classes to make it easier to switch the output language later. Task-number: PYSIDE-797 Change-Id: I28b5ed3ec80cd525a3df0cd54d9be4f09149cde4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
296 lines
12 KiB
C++
296 lines
12 KiB
C++
/*
|
|
*********************************************************************
|
|
**
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
** Contact: https://www.qt.io/licensing/
|
|
**
|
|
** This file is part of the autotests of the Qt Toolkit.
|
|
**
|
|
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
|
|
** Commercial License Usage
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
** accordance with the commercial license agreement provided with the
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
|
**
|
|
** GNU General Public License Usage
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
** General Public License version 3 as published by the Free Software
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
** included in the packaging of this file. Please review the following
|
|
** information to ensure the GNU General Public License requirements will
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
|
**
|
|
** $QT_END_LICENSE$
|
|
**
|
|
*********************************************************************
|
|
*/
|
|
|
|
/********************************************************************************
|
|
** Form generated from reading UI file 'formwindowsettings.ui'
|
|
**
|
|
** Created by: Qt User Interface Compiler version 5.0.0
|
|
**
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
********************************************************************************/
|
|
|
|
#ifndef FORMWINDOWSETTINGS_H
|
|
#define FORMWINDOWSETTINGS_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QDialog>
|
|
#include <QtWidgets/QDialogButtonBox>
|
|
#include <QtWidgets/QFrame>
|
|
#include <QtWidgets/QGridLayout>
|
|
#include <QtWidgets/QGroupBox>
|
|
#include <QtWidgets/QHBoxLayout>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QLineEdit>
|
|
#include <QtWidgets/QSpacerItem>
|
|
#include <QtWidgets/QSpinBox>
|
|
#include <QtWidgets/QTextEdit>
|
|
#include <QtWidgets/QVBoxLayout>
|
|
#include <gridpanel_p.h>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_FormWindowSettings
|
|
{
|
|
public:
|
|
QGridLayout *gridLayout;
|
|
QDialogButtonBox *buttonBox;
|
|
QFrame *line;
|
|
QHBoxLayout *hboxLayout;
|
|
QGroupBox *layoutDefaultGroupBox;
|
|
QGridLayout *gridLayout1;
|
|
QLabel *label_2;
|
|
QLabel *label;
|
|
QSpinBox *defaultSpacingSpinBox;
|
|
QSpinBox *defaultMarginSpinBox;
|
|
QGroupBox *layoutFunctionGroupBox;
|
|
QGridLayout *gridLayout2;
|
|
QLineEdit *spacingFunctionLineEdit;
|
|
QLineEdit *marginFunctionLineEdit;
|
|
QLabel *label_3;
|
|
QLabel *label_3_2;
|
|
QGroupBox *pixmapFunctionGroupBox_2;
|
|
QVBoxLayout *vboxLayout;
|
|
QLineEdit *authorLineEdit;
|
|
QGroupBox *includeHintsGroupBox;
|
|
QVBoxLayout *vboxLayout1;
|
|
QTextEdit *includeHintsTextEdit;
|
|
QHBoxLayout *hboxLayout1;
|
|
QGroupBox *pixmapFunctionGroupBox;
|
|
QVBoxLayout *vboxLayout2;
|
|
QLineEdit *pixmapFunctionLineEdit;
|
|
QSpacerItem *spacerItem;
|
|
qdesigner_internal::GridPanel *gridPanel;
|
|
|
|
void setupUi(QDialog *FormWindowSettings)
|
|
{
|
|
if (FormWindowSettings->objectName().isEmpty())
|
|
FormWindowSettings->setObjectName(QString::fromUtf8("FormWindowSettings"));
|
|
FormWindowSettings->resize(433, 465);
|
|
gridLayout = new QGridLayout(FormWindowSettings);
|
|
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
|
buttonBox = new QDialogButtonBox(FormWindowSettings);
|
|
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
|
buttonBox->setOrientation(Qt::Horizontal);
|
|
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
|
|
|
|
gridLayout->addWidget(buttonBox, 6, 0, 1, 2);
|
|
|
|
line = new QFrame(FormWindowSettings);
|
|
line->setObjectName(QString::fromUtf8("line"));
|
|
line->setFrameShape(QFrame::HLine);
|
|
line->setFrameShadow(QFrame::Sunken);
|
|
|
|
gridLayout->addWidget(line, 5, 0, 1, 2);
|
|
|
|
hboxLayout = new QHBoxLayout();
|
|
#ifndef Q_OS_MAC
|
|
hboxLayout->setSpacing(6);
|
|
#endif
|
|
hboxLayout->setContentsMargins(0, 0, 0, 0);
|
|
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
|
|
layoutDefaultGroupBox = new QGroupBox(FormWindowSettings);
|
|
layoutDefaultGroupBox->setObjectName(QString::fromUtf8("layoutDefaultGroupBox"));
|
|
layoutDefaultGroupBox->setCheckable(true);
|
|
gridLayout1 = new QGridLayout(layoutDefaultGroupBox);
|
|
#ifndef Q_OS_MAC
|
|
gridLayout1->setSpacing(6);
|
|
#endif
|
|
gridLayout1->setContentsMargins(8, 8, 8, 8);
|
|
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
|
|
label_2 = new QLabel(layoutDefaultGroupBox);
|
|
label_2->setObjectName(QString::fromUtf8("label_2"));
|
|
|
|
gridLayout1->addWidget(label_2, 1, 0, 1, 1);
|
|
|
|
label = new QLabel(layoutDefaultGroupBox);
|
|
label->setObjectName(QString::fromUtf8("label"));
|
|
|
|
gridLayout1->addWidget(label, 0, 0, 1, 1);
|
|
|
|
defaultSpacingSpinBox = new QSpinBox(layoutDefaultGroupBox);
|
|
defaultSpacingSpinBox->setObjectName(QString::fromUtf8("defaultSpacingSpinBox"));
|
|
|
|
gridLayout1->addWidget(defaultSpacingSpinBox, 1, 1, 1, 1);
|
|
|
|
defaultMarginSpinBox = new QSpinBox(layoutDefaultGroupBox);
|
|
defaultMarginSpinBox->setObjectName(QString::fromUtf8("defaultMarginSpinBox"));
|
|
|
|
gridLayout1->addWidget(defaultMarginSpinBox, 0, 1, 1, 1);
|
|
|
|
|
|
hboxLayout->addWidget(layoutDefaultGroupBox);
|
|
|
|
layoutFunctionGroupBox = new QGroupBox(FormWindowSettings);
|
|
layoutFunctionGroupBox->setObjectName(QString::fromUtf8("layoutFunctionGroupBox"));
|
|
layoutFunctionGroupBox->setCheckable(true);
|
|
gridLayout2 = new QGridLayout(layoutFunctionGroupBox);
|
|
#ifndef Q_OS_MAC
|
|
gridLayout2->setSpacing(6);
|
|
#endif
|
|
gridLayout2->setContentsMargins(8, 8, 8, 8);
|
|
gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
|
|
spacingFunctionLineEdit = new QLineEdit(layoutFunctionGroupBox);
|
|
spacingFunctionLineEdit->setObjectName(QString::fromUtf8("spacingFunctionLineEdit"));
|
|
|
|
gridLayout2->addWidget(spacingFunctionLineEdit, 1, 1, 1, 1);
|
|
|
|
marginFunctionLineEdit = new QLineEdit(layoutFunctionGroupBox);
|
|
marginFunctionLineEdit->setObjectName(QString::fromUtf8("marginFunctionLineEdit"));
|
|
|
|
gridLayout2->addWidget(marginFunctionLineEdit, 0, 1, 1, 1);
|
|
|
|
label_3 = new QLabel(layoutFunctionGroupBox);
|
|
label_3->setObjectName(QString::fromUtf8("label_3"));
|
|
|
|
gridLayout2->addWidget(label_3, 0, 0, 1, 1);
|
|
|
|
label_3_2 = new QLabel(layoutFunctionGroupBox);
|
|
label_3_2->setObjectName(QString::fromUtf8("label_3_2"));
|
|
|
|
gridLayout2->addWidget(label_3_2, 1, 0, 1, 1);
|
|
|
|
|
|
hboxLayout->addWidget(layoutFunctionGroupBox);
|
|
|
|
|
|
gridLayout->addLayout(hboxLayout, 2, 0, 1, 2);
|
|
|
|
pixmapFunctionGroupBox_2 = new QGroupBox(FormWindowSettings);
|
|
pixmapFunctionGroupBox_2->setObjectName(QString::fromUtf8("pixmapFunctionGroupBox_2"));
|
|
vboxLayout = new QVBoxLayout(pixmapFunctionGroupBox_2);
|
|
#ifndef Q_OS_MAC
|
|
vboxLayout->setSpacing(6);
|
|
#endif
|
|
vboxLayout->setContentsMargins(8, 8, 8, 8);
|
|
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
|
|
authorLineEdit = new QLineEdit(pixmapFunctionGroupBox_2);
|
|
authorLineEdit->setObjectName(QString::fromUtf8("authorLineEdit"));
|
|
|
|
vboxLayout->addWidget(authorLineEdit);
|
|
|
|
|
|
gridLayout->addWidget(pixmapFunctionGroupBox_2, 0, 0, 1, 2);
|
|
|
|
includeHintsGroupBox = new QGroupBox(FormWindowSettings);
|
|
includeHintsGroupBox->setObjectName(QString::fromUtf8("includeHintsGroupBox"));
|
|
vboxLayout1 = new QVBoxLayout(includeHintsGroupBox);
|
|
#ifndef Q_OS_MAC
|
|
vboxLayout1->setSpacing(6);
|
|
#endif
|
|
vboxLayout1->setContentsMargins(8, 8, 8, 8);
|
|
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
|
|
includeHintsTextEdit = new QTextEdit(includeHintsGroupBox);
|
|
includeHintsTextEdit->setObjectName(QString::fromUtf8("includeHintsTextEdit"));
|
|
|
|
vboxLayout1->addWidget(includeHintsTextEdit);
|
|
|
|
|
|
gridLayout->addWidget(includeHintsGroupBox, 3, 0, 2, 1);
|
|
|
|
hboxLayout1 = new QHBoxLayout();
|
|
#ifndef Q_OS_MAC
|
|
hboxLayout1->setSpacing(6);
|
|
#endif
|
|
hboxLayout1->setContentsMargins(0, 0, 0, 0);
|
|
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
|
|
pixmapFunctionGroupBox = new QGroupBox(FormWindowSettings);
|
|
pixmapFunctionGroupBox->setObjectName(QString::fromUtf8("pixmapFunctionGroupBox"));
|
|
pixmapFunctionGroupBox->setCheckable(true);
|
|
vboxLayout2 = new QVBoxLayout(pixmapFunctionGroupBox);
|
|
#ifndef Q_OS_MAC
|
|
vboxLayout2->setSpacing(6);
|
|
#endif
|
|
vboxLayout2->setContentsMargins(8, 8, 8, 8);
|
|
vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2"));
|
|
pixmapFunctionLineEdit = new QLineEdit(pixmapFunctionGroupBox);
|
|
pixmapFunctionLineEdit->setObjectName(QString::fromUtf8("pixmapFunctionLineEdit"));
|
|
|
|
vboxLayout2->addWidget(pixmapFunctionLineEdit);
|
|
|
|
|
|
hboxLayout1->addWidget(pixmapFunctionGroupBox);
|
|
|
|
|
|
gridLayout->addLayout(hboxLayout1, 3, 1, 1, 1);
|
|
|
|
spacerItem = new QSpacerItem(111, 115, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
gridLayout->addItem(spacerItem, 4, 1, 1, 1);
|
|
|
|
gridPanel = new qdesigner_internal::GridPanel(FormWindowSettings);
|
|
gridPanel->setObjectName(QString::fromUtf8("gridPanel"));
|
|
|
|
gridLayout->addWidget(gridPanel, 1, 0, 1, 2);
|
|
|
|
#if QT_CONFIG(shortcut)
|
|
label_2->setBuddy(defaultSpacingSpinBox);
|
|
label->setBuddy(defaultMarginSpinBox);
|
|
label_3->setBuddy(marginFunctionLineEdit);
|
|
label_3_2->setBuddy(spacingFunctionLineEdit);
|
|
#endif // QT_CONFIG(shortcut)
|
|
QWidget::setTabOrder(authorLineEdit, defaultMarginSpinBox);
|
|
QWidget::setTabOrder(defaultMarginSpinBox, defaultSpacingSpinBox);
|
|
QWidget::setTabOrder(defaultSpacingSpinBox, marginFunctionLineEdit);
|
|
QWidget::setTabOrder(marginFunctionLineEdit, spacingFunctionLineEdit);
|
|
QWidget::setTabOrder(spacingFunctionLineEdit, pixmapFunctionLineEdit);
|
|
|
|
retranslateUi(FormWindowSettings);
|
|
QObject::connect(buttonBox, SIGNAL(accepted()), FormWindowSettings, SLOT(accept()));
|
|
QObject::connect(buttonBox, SIGNAL(rejected()), FormWindowSettings, SLOT(reject()));
|
|
|
|
QMetaObject::connectSlotsByName(FormWindowSettings);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QDialog *FormWindowSettings)
|
|
{
|
|
FormWindowSettings->setWindowTitle(QApplication::translate("FormWindowSettings", "Form Settings", nullptr));
|
|
layoutDefaultGroupBox->setTitle(QApplication::translate("FormWindowSettings", "Layout &Default", nullptr));
|
|
label_2->setText(QApplication::translate("FormWindowSettings", "&Spacing:", nullptr));
|
|
label->setText(QApplication::translate("FormWindowSettings", "&Margin:", nullptr));
|
|
layoutFunctionGroupBox->setTitle(QApplication::translate("FormWindowSettings", "&Layout Function", nullptr));
|
|
label_3->setText(QApplication::translate("FormWindowSettings", "Ma&rgin:", nullptr));
|
|
label_3_2->setText(QApplication::translate("FormWindowSettings", "Spa&cing:", nullptr));
|
|
pixmapFunctionGroupBox_2->setTitle(QApplication::translate("FormWindowSettings", "&Author", nullptr));
|
|
includeHintsGroupBox->setTitle(QApplication::translate("FormWindowSettings", "&Include Hints", nullptr));
|
|
pixmapFunctionGroupBox->setTitle(QApplication::translate("FormWindowSettings", "&Pixmap Function", nullptr));
|
|
gridPanel->setTitle(QApplication::translate("FormWindowSettings", "Grid", nullptr));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class FormWindowSettings: public Ui_FormWindowSettings {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // FORMWINDOWSETTINGS_H
|