/********************************************************************************
** Form generated from reading UI file 'qgslayoutnewpagedialog.ui'
**
** Created by: Qt User Interface Compiler version 5.11.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UI_QGSLAYOUTNEWPAGEDIALOG_H
#define UI_QGSLAYOUTNEWPAGEDIALOG_H

#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include "qgsdoublespinbox.h"
#include "qgslayoutunitscombobox.h"
#include "qgsratiolockbutton.h"

QT_BEGIN_NAMESPACE

class Ui_QgsLayoutNewPageDialog
{
public:
    QGridLayout *gridLayout_2;
    QGroupBox *groupBox;
    QGridLayout *gridLayout;
    QLabel *label_3;
    QLabel *mWidthLabel;
    QComboBox *mPageOrientationComboBox;
    QLabel *label_4;
    QComboBox *mPageSizeComboBox;
    QLabel *mHeightLabel;
    QGridLayout *gridLayout_3;
    QgsLayoutUnitsComboBox *mSizeUnitsComboBox;
    QHBoxLayout *_2;
    QgsRatioLockButton *mLockAspectRatio;
    QgsDoubleSpinBox *mWidthSpin;
    QgsDoubleSpinBox *mHeightSpin;
    QGridLayout *gridLayout_4;
    QSpinBox *mPagesSpinBox;
    QLabel *label_2;
    QSpacerItem *horizontalSpacer;
    QLabel *label;
    QComboBox *mPositionComboBox;
    QSpinBox *mExistingPageSpinBox;
    QDialogButtonBox *buttonBox;
    QSpacerItem *verticalSpacer;

    void setupUi(QDialog *QgsLayoutNewPageDialog)
    {
        if (QgsLayoutNewPageDialog->objectName().isEmpty())
            QgsLayoutNewPageDialog->setObjectName(QStringLiteral("QgsLayoutNewPageDialog"));
        QgsLayoutNewPageDialog->resize(415, 321);
        gridLayout_2 = new QGridLayout(QgsLayoutNewPageDialog);
        gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
        groupBox = new QGroupBox(QgsLayoutNewPageDialog);
        groupBox->setObjectName(QStringLiteral("groupBox"));
        gridLayout = new QGridLayout(groupBox);
        gridLayout->setObjectName(QStringLiteral("gridLayout"));
        label_3 = new QLabel(groupBox);
        label_3->setObjectName(QStringLiteral("label_3"));

        gridLayout->addWidget(label_3, 0, 0, 1, 1);

        mWidthLabel = new QLabel(groupBox);
        mWidthLabel->setObjectName(QStringLiteral("mWidthLabel"));

        gridLayout->addWidget(mWidthLabel, 2, 0, 1, 1);

        mPageOrientationComboBox = new QComboBox(groupBox);
        mPageOrientationComboBox->setObjectName(QStringLiteral("mPageOrientationComboBox"));

        gridLayout->addWidget(mPageOrientationComboBox, 1, 1, 1, 1);

        label_4 = new QLabel(groupBox);
        label_4->setObjectName(QStringLiteral("label_4"));

        gridLayout->addWidget(label_4, 1, 0, 1, 1);

        mPageSizeComboBox = new QComboBox(groupBox);
        mPageSizeComboBox->setObjectName(QStringLiteral("mPageSizeComboBox"));

        gridLayout->addWidget(mPageSizeComboBox, 0, 1, 1, 1);

        mHeightLabel = new QLabel(groupBox);
        mHeightLabel->setObjectName(QStringLiteral("mHeightLabel"));

        gridLayout->addWidget(mHeightLabel, 3, 0, 1, 1);

        gridLayout_3 = new QGridLayout();
        gridLayout_3->setObjectName(QStringLiteral("gridLayout_3"));
        mSizeUnitsComboBox = new QgsLayoutUnitsComboBox(groupBox);
        mSizeUnitsComboBox->setObjectName(QStringLiteral("mSizeUnitsComboBox"));

        gridLayout_3->addWidget(mSizeUnitsComboBox, 0, 4, 2, 1);

        _2 = new QHBoxLayout();
        _2->setObjectName(QStringLiteral("_2"));
        _2->setContentsMargins(2, 2, 0, 2);
        mLockAspectRatio = new QgsRatioLockButton(groupBox);
        mLockAspectRatio->setObjectName(QStringLiteral("mLockAspectRatio"));
        QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(mLockAspectRatio->sizePolicy().hasHeightForWidth());
        mLockAspectRatio->setSizePolicy(sizePolicy);
        mLockAspectRatio->setContentsMargins(13, -1, -1, -1);

        _2->addWidget(mLockAspectRatio);


        gridLayout_3->addLayout(_2, 0, 3, 2, 1);

        mWidthSpin = new QgsDoubleSpinBox(groupBox);
        mWidthSpin->setObjectName(QStringLiteral("mWidthSpin"));
        mWidthSpin->setDecimals(3);
        mWidthSpin->setMaximum(1e+07);
        mWidthSpin->setValue(100);
        mWidthSpin->setProperty("showClearButton", QVariant(false));

        gridLayout_3->addWidget(mWidthSpin, 0, 0, 1, 3);

        mHeightSpin = new QgsDoubleSpinBox(groupBox);
        mHeightSpin->setObjectName(QStringLiteral("mHeightSpin"));
        mHeightSpin->setDecimals(3);
        mHeightSpin->setMaximum(1e+07);
        mHeightSpin->setValue(100);
        mHeightSpin->setProperty("showClearButton", QVariant(false));

        gridLayout_3->addWidget(mHeightSpin, 1, 0, 1, 3);

        gridLayout_3->setColumnStretch(0, 1);
        gridLayout_3->setColumnStretch(4, 1);

        gridLayout->addLayout(gridLayout_3, 2, 1, 2, 1);

        gridLayout->setColumnStretch(1, 1);

        gridLayout_2->addWidget(groupBox, 3, 0, 1, 4);

        gridLayout_4 = new QGridLayout();
        gridLayout_4->setObjectName(QStringLiteral("gridLayout_4"));
        mPagesSpinBox = new QSpinBox(QgsLayoutNewPageDialog);
        mPagesSpinBox->setObjectName(QStringLiteral("mPagesSpinBox"));
        mPagesSpinBox->setMinimum(1);

        gridLayout_4->addWidget(mPagesSpinBox, 0, 1, 1, 1);

        label_2 = new QLabel(QgsLayoutNewPageDialog);
        label_2->setObjectName(QStringLiteral("label_2"));

        gridLayout_4->addWidget(label_2, 0, 2, 1, 1);

        horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

        gridLayout_4->addItem(horizontalSpacer, 0, 3, 1, 1);

        label = new QLabel(QgsLayoutNewPageDialog);
        label->setObjectName(QStringLiteral("label"));

        gridLayout_4->addWidget(label, 0, 0, 1, 1);

        mPositionComboBox = new QComboBox(QgsLayoutNewPageDialog);
        mPositionComboBox->addItem(QString());
        mPositionComboBox->addItem(QString());
        mPositionComboBox->addItem(QString());
        mPositionComboBox->setObjectName(QStringLiteral("mPositionComboBox"));

        gridLayout_4->addWidget(mPositionComboBox, 1, 0, 1, 2);

        mExistingPageSpinBox = new QSpinBox(QgsLayoutNewPageDialog);
        mExistingPageSpinBox->setObjectName(QStringLiteral("mExistingPageSpinBox"));
        mExistingPageSpinBox->setMinimum(1);

        gridLayout_4->addWidget(mExistingPageSpinBox, 1, 2, 1, 1);

        gridLayout_4->setColumnStretch(1, 1);
        gridLayout_4->setColumnStretch(3, 1);

        gridLayout_2->addLayout(gridLayout_4, 1, 0, 1, 4);

        buttonBox = new QDialogButtonBox(QgsLayoutNewPageDialog);
        buttonBox->setObjectName(QStringLiteral("buttonBox"));
        buttonBox->setOrientation(Qt::Horizontal);
        buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok);

        gridLayout_2->addWidget(buttonBox, 5, 0, 1, 4);

        verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);

        gridLayout_2->addItem(verticalSpacer, 4, 2, 1, 1);

        QWidget::setTabOrder(mPagesSpinBox, mPositionComboBox);
        QWidget::setTabOrder(mPositionComboBox, mExistingPageSpinBox);
        QWidget::setTabOrder(mExistingPageSpinBox, mPageSizeComboBox);
        QWidget::setTabOrder(mPageSizeComboBox, mPageOrientationComboBox);
        QWidget::setTabOrder(mPageOrientationComboBox, mWidthSpin);
        QWidget::setTabOrder(mWidthSpin, mHeightSpin);
        QWidget::setTabOrder(mHeightSpin, mLockAspectRatio);
        QWidget::setTabOrder(mLockAspectRatio, mSizeUnitsComboBox);

        retranslateUi(QgsLayoutNewPageDialog);
        QObject::connect(buttonBox, SIGNAL(accepted()), QgsLayoutNewPageDialog, SLOT(accept()));
        QObject::connect(buttonBox, SIGNAL(rejected()), QgsLayoutNewPageDialog, SLOT(reject()));

        mPositionComboBox->setCurrentIndex(2);


        QMetaObject::connectSlotsByName(QgsLayoutNewPageDialog);
    } // setupUi

    void retranslateUi(QDialog *QgsLayoutNewPageDialog)
    {
        QgsLayoutNewPageDialog->setWindowTitle(QApplication::translate("QgsLayoutNewPageDialog", "Insert Pages", nullptr));
        groupBox->setTitle(QApplication::translate("QgsLayoutNewPageDialog", "Page Size", nullptr));
        label_3->setText(QApplication::translate("QgsLayoutNewPageDialog", "Size", nullptr));
        mWidthLabel->setText(QApplication::translate("QgsLayoutNewPageDialog", "Width", nullptr));
        label_4->setText(QApplication::translate("QgsLayoutNewPageDialog", "Orientation", nullptr));
        mHeightLabel->setText(QApplication::translate("QgsLayoutNewPageDialog", "Height", nullptr));
#ifndef QT_NO_TOOLTIP
        mLockAspectRatio->setToolTip(QApplication::translate("QgsLayoutNewPageDialog", "Lock aspect ratio (including while drawing extent onto canvas)", nullptr));
#endif // QT_NO_TOOLTIP
        mWidthSpin->setSuffix(QString());
        mHeightSpin->setSuffix(QString());
        label_2->setText(QApplication::translate("QgsLayoutNewPageDialog", "page(s)", nullptr));
        label->setText(QApplication::translate("QgsLayoutNewPageDialog", "Insert", nullptr));
        mPositionComboBox->setItemText(0, QApplication::translate("QgsLayoutNewPageDialog", "Before Page", nullptr));
        mPositionComboBox->setItemText(1, QApplication::translate("QgsLayoutNewPageDialog", "After Page", nullptr));
        mPositionComboBox->setItemText(2, QApplication::translate("QgsLayoutNewPageDialog", "At End", nullptr));

    } // retranslateUi

};

namespace Ui {
    class QgsLayoutNewPageDialog: public Ui_QgsLayoutNewPageDialog {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_QGSLAYOUTNEWPAGEDIALOG_H
