#include <klocalizedstring.h>

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

#ifndef UI_KOPAGELAYOUTWIDGET_H
#define UI_KOPAGELAYOUTWIDGET_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "KoUnitDoubleSpinBox.h"

QT_BEGIN_NAMESPACE

class Ui_KoPageLayoutWidget
{
public:
    QVBoxLayout *vboxLayout;
    QGridLayout *gridLayout;
    QLabel *unitsLabel;
    QComboBox *units;
    QLabel *stylesLabel;
    QComboBox *pageStyle;
    QLabel *label_2;
    QComboBox *sizes;
    QLabel *label_3;
    QHBoxLayout *hboxLayout;
    KoUnitDoubleSpinBox *width;
    QLabel *label;
    KoUnitDoubleSpinBox *height;
    QLabel *label1;
    QRadioButton *portrait;
    QRadioButton *landscape;
    QLabel *facingPageLabel;
    QRadioButton *singleSided;
    QRadioButton *facingPages;
    QLabel *directionLabel;
    QComboBox *textDirection;
    QGroupBox *margins;
    QFormLayout *formLayout;
    QLabel *label2;
    KoUnitDoubleSpinBox *topMargin;
    QLabel *leftLabel;
    KoUnitDoubleSpinBox *bindingEdgeMargin;
    QLabel *rightLabel;
    KoUnitDoubleSpinBox *pageEdgeMargin;
    QLabel *label_12;
    KoUnitDoubleSpinBox *bottomMargin;
    QSpacerItem *spacerItem;

    void setupUi(QWidget *KoPageLayoutWidget)
    {
        if (KoPageLayoutWidget->objectName().isEmpty())
            KoPageLayoutWidget->setObjectName(QStringLiteral("KoPageLayoutWidget"));
        KoPageLayoutWidget->resize(341, 417);
        vboxLayout = new QVBoxLayout(KoPageLayoutWidget);
        vboxLayout->setContentsMargins(0, 0, 0, 0);
        vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
        gridLayout = new QGridLayout();
#ifndef UI_Q_OS_MAC
        gridLayout->setContentsMargins(0, 0, 0, 0);
#endif
        gridLayout->setObjectName(QStringLiteral("gridLayout"));
        unitsLabel = new QLabel(KoPageLayoutWidget);
        unitsLabel->setObjectName(QStringLiteral("unitsLabel"));
        unitsLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        units = new QComboBox(KoPageLayoutWidget);
        units->setObjectName(QStringLiteral("units"));
        QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(units->sizePolicy().hasHeightForWidth());
        units->setSizePolicy(sizePolicy);

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

        stylesLabel = new QLabel(KoPageLayoutWidget);
        stylesLabel->setObjectName(QStringLiteral("stylesLabel"));
        stylesLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        pageStyle = new QComboBox(KoPageLayoutWidget);
        pageStyle->setObjectName(QStringLiteral("pageStyle"));

        gridLayout->addWidget(pageStyle, 1, 1, 1, 2);

        label_2 = new QLabel(KoPageLayoutWidget);
        label_2->setObjectName(QStringLiteral("label_2"));
        label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        sizes = new QComboBox(KoPageLayoutWidget);
        sizes->setObjectName(QStringLiteral("sizes"));

        gridLayout->addWidget(sizes, 2, 1, 1, 2);

        label_3 = new QLabel(KoPageLayoutWidget);
        label_3->setObjectName(QStringLiteral("label_3"));
        label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        hboxLayout = new QHBoxLayout();
        hboxLayout->setContentsMargins(0, 0, 0, 0);
        hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
        width = new KoUnitDoubleSpinBox(KoPageLayoutWidget);
        width->setObjectName(QStringLiteral("width"));

        hboxLayout->addWidget(width);

        label = new QLabel(KoPageLayoutWidget);
        label->setObjectName(QStringLiteral("label"));
        QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Preferred);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
        label->setSizePolicy(sizePolicy1);

        hboxLayout->addWidget(label);

        height = new KoUnitDoubleSpinBox(KoPageLayoutWidget);
        height->setObjectName(QStringLiteral("height"));

        hboxLayout->addWidget(height);


        gridLayout->addLayout(hboxLayout, 3, 1, 1, 2);

        label1 = new QLabel(KoPageLayoutWidget);
        label1->setObjectName(QStringLiteral("label1"));
        label1->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout->addWidget(label1, 4, 0, 1, 1);

        portrait = new QRadioButton(KoPageLayoutWidget);
        portrait->setObjectName(QStringLiteral("portrait"));

        gridLayout->addWidget(portrait, 4, 1, 1, 1);

        landscape = new QRadioButton(KoPageLayoutWidget);
        landscape->setObjectName(QStringLiteral("landscape"));

        gridLayout->addWidget(landscape, 4, 2, 1, 1);

        facingPageLabel = new QLabel(KoPageLayoutWidget);
        facingPageLabel->setObjectName(QStringLiteral("facingPageLabel"));
        facingPageLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout->addWidget(facingPageLabel, 5, 0, 1, 1);

        singleSided = new QRadioButton(KoPageLayoutWidget);
        singleSided->setObjectName(QStringLiteral("singleSided"));

        gridLayout->addWidget(singleSided, 5, 1, 1, 1);

        facingPages = new QRadioButton(KoPageLayoutWidget);
        facingPages->setObjectName(QStringLiteral("facingPages"));

        gridLayout->addWidget(facingPages, 5, 2, 1, 1);

        directionLabel = new QLabel(KoPageLayoutWidget);
        directionLabel->setObjectName(QStringLiteral("directionLabel"));
        directionLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout->addWidget(directionLabel, 6, 0, 1, 1);

        textDirection = new QComboBox(KoPageLayoutWidget);
        textDirection->setObjectName(QStringLiteral("textDirection"));
        sizePolicy.setHeightForWidth(textDirection->sizePolicy().hasHeightForWidth());
        textDirection->setSizePolicy(sizePolicy);

        gridLayout->addWidget(textDirection, 6, 1, 1, 2);

        gridLayout->setColumnStretch(1, 1);
        gridLayout->setColumnStretch(2, 1);

        vboxLayout->addLayout(gridLayout);

        margins = new QGroupBox(KoPageLayoutWidget);
        margins->setObjectName(QStringLiteral("margins"));
        formLayout = new QFormLayout(margins);
        formLayout->setObjectName(QStringLiteral("formLayout"));
        label2 = new QLabel(margins);
        label2->setObjectName(QStringLiteral("label2"));
        label2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        formLayout->setWidget(0, QFormLayout::LabelRole, label2);

        topMargin = new KoUnitDoubleSpinBox(margins);
        topMargin->setObjectName(QStringLiteral("topMargin"));
        topMargin->setMaximum(999.99);

        formLayout->setWidget(0, QFormLayout::FieldRole, topMargin);

        leftLabel = new QLabel(margins);
        leftLabel->setObjectName(QStringLiteral("leftLabel"));
        leftLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        formLayout->setWidget(1, QFormLayout::LabelRole, leftLabel);

        bindingEdgeMargin = new KoUnitDoubleSpinBox(margins);
        bindingEdgeMargin->setObjectName(QStringLiteral("bindingEdgeMargin"));
        bindingEdgeMargin->setMaximum(999.99);

        formLayout->setWidget(1, QFormLayout::FieldRole, bindingEdgeMargin);

        rightLabel = new QLabel(margins);
        rightLabel->setObjectName(QStringLiteral("rightLabel"));
        rightLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        formLayout->setWidget(2, QFormLayout::LabelRole, rightLabel);

        pageEdgeMargin = new KoUnitDoubleSpinBox(margins);
        pageEdgeMargin->setObjectName(QStringLiteral("pageEdgeMargin"));
        pageEdgeMargin->setMaximum(999.99);

        formLayout->setWidget(2, QFormLayout::FieldRole, pageEdgeMargin);

        label_12 = new QLabel(margins);
        label_12->setObjectName(QStringLiteral("label_12"));
        label_12->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        formLayout->setWidget(3, QFormLayout::LabelRole, label_12);

        bottomMargin = new KoUnitDoubleSpinBox(margins);
        bottomMargin->setObjectName(QStringLiteral("bottomMargin"));
        bottomMargin->setMaximum(999.99);

        formLayout->setWidget(3, QFormLayout::FieldRole, bottomMargin);


        vboxLayout->addWidget(margins);

        spacerItem = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding);

        vboxLayout->addItem(spacerItem);

#ifndef UI_QT_NO_SHORTCUT
        unitsLabel->setBuddy(units);
        stylesLabel->setBuddy(pageStyle);
        label_2->setBuddy(sizes);
        label_3->setBuddy(width);
        label->setBuddy(height);
        directionLabel->setBuddy(textDirection);
        label2->setBuddy(topMargin);
        leftLabel->setBuddy(bindingEdgeMargin);
        rightLabel->setBuddy(pageEdgeMargin);
        label_12->setBuddy(bottomMargin);
#endif // QT_NO_SHORTCUT
        QWidget::setTabOrder(units, sizes);
        QWidget::setTabOrder(sizes, width);
        QWidget::setTabOrder(width, height);
        QWidget::setTabOrder(height, portrait);
        QWidget::setTabOrder(portrait, landscape);
        QWidget::setTabOrder(landscape, singleSided);
        QWidget::setTabOrder(singleSided, facingPages);
        QWidget::setTabOrder(facingPages, textDirection);
        QWidget::setTabOrder(textDirection, topMargin);
        QWidget::setTabOrder(topMargin, bindingEdgeMargin);
        QWidget::setTabOrder(bindingEdgeMargin, pageEdgeMargin);
        QWidget::setTabOrder(pageEdgeMargin, bottomMargin);

        retranslateUi(KoPageLayoutWidget);

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

    void retranslateUi(QWidget *KoPageLayoutWidget)
    {
        unitsLabel->setText(tr2i18n("Unit:", Q_NULLPTR));
        stylesLabel->setText(tr2i18n("Follow style:", Q_NULLPTR));
        label_2->setText(tr2i18n("Size:", Q_NULLPTR));
        label_3->setText(tr2i18n("Width:", Q_NULLPTR));
        label->setText(tr2i18n("Height:", Q_NULLPTR));
        label1->setText(tr2i18n("Orientation:", Q_NULLPTR));
        portrait->setText(tr2i18n("Portrait", Q_NULLPTR));
        landscape->setText(tr2i18n("Landscape", Q_NULLPTR));
        facingPageLabel->setText(tr2i18n("Facing pages:", Q_NULLPTR));
        singleSided->setText(tr2i18n("Single sided", Q_NULLPTR));
        facingPages->setText(tr2i18n("Facing pages", Q_NULLPTR));
        directionLabel->setText(tr2i18n("Text direction:", Q_NULLPTR));
        textDirection->clear();
        textDirection->insertItems(0, QStringList()
         << tr2i18n("Automatic", Q_NULLPTR)
         << tr2i18n("Left to right", Q_NULLPTR)
         << tr2i18n("Right to left", Q_NULLPTR)
        );
        margins->setTitle(tr2i18n("Margins", Q_NULLPTR));
        label2->setText(tr2i18n("Top:", Q_NULLPTR));
        leftLabel->setText(tr2i18n("Binding edge:", Q_NULLPTR));
        rightLabel->setText(tr2i18n("Page edge:", Q_NULLPTR));
        label_12->setText(tr2i18n("Bottom:", Q_NULLPTR));
        Q_UNUSED(KoPageLayoutWidget);
    } // retranslateUi

};

namespace Ui {
    class KoPageLayoutWidget: public Ui_KoPageLayoutWidget {};
} // namespace Ui

QT_END_NAMESPACE

#endif // KOPAGELAYOUTWIDGET_H

