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

#ifndef UI_ADDDICTDIALOG_H
#define UI_ADDDICTDIALOG_H

#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include <fcitxqti18nhelper.h>

QT_BEGIN_NAMESPACE

class Ui_AddDictDialog
{
public:
    QVBoxLayout *verticalLayout;
    QFormLayout *formLayout;
    QLabel *typeLabel;
    QComboBox *typeComboBox;
    QLabel *pathLabel;
    QHBoxLayout *horizontalLayout;
    QLineEdit *urlLineEdit;
    QPushButton *browseButton;
    QLabel *hostLabel;
    QLineEdit *hostLineEdit;
    QLabel *portLabel;
    QSpinBox *portSpinBox;
    QSpacerItem *verticalSpacer;
    QLabel *encodingLabel;
    QLineEdit *encodingEdit;
    QDialogButtonBox *buttonBox;

    void setupUi(QDialog *AddDictDialog)
    {
        if (AddDictDialog->objectName().isEmpty())
            AddDictDialog->setObjectName("AddDictDialog");
        AddDictDialog->resize(356, 347);
        verticalLayout = new QVBoxLayout(AddDictDialog);
        verticalLayout->setObjectName("verticalLayout");
        formLayout = new QFormLayout();
        formLayout->setObjectName("formLayout");
        formLayout->setVerticalSpacing(6);
        typeLabel = new QLabel(AddDictDialog);
        typeLabel->setObjectName("typeLabel");

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

        typeComboBox = new QComboBox(AddDictDialog);
        typeComboBox->setObjectName("typeComboBox");
        QSizePolicy sizePolicy(QSizePolicy::Policy::MinimumExpanding, QSizePolicy::Policy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(typeComboBox->sizePolicy().hasHeightForWidth());
        typeComboBox->setSizePolicy(sizePolicy);

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

        pathLabel = new QLabel(AddDictDialog);
        pathLabel->setObjectName("pathLabel");

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

        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setObjectName("horizontalLayout");
        urlLineEdit = new QLineEdit(AddDictDialog);
        urlLineEdit->setObjectName("urlLineEdit");

        horizontalLayout->addWidget(urlLineEdit);

        browseButton = new QPushButton(AddDictDialog);
        browseButton->setObjectName("browseButton");
        QIcon icon;
        QString iconThemeName = QString::fromUtf8("document-open");
        if (QIcon::hasThemeIcon(iconThemeName)) {
            icon = QIcon::fromTheme(iconThemeName);
        } else {
            icon.addFile(QString::fromUtf8("."), QSize(), QIcon::Mode::Normal, QIcon::State::Off);
        }
        browseButton->setIcon(icon);

        horizontalLayout->addWidget(browseButton);


        formLayout->setLayout(1, QFormLayout::ItemRole::FieldRole, horizontalLayout);

        hostLabel = new QLabel(AddDictDialog);
        hostLabel->setObjectName("hostLabel");

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

        hostLineEdit = new QLineEdit(AddDictDialog);
        hostLineEdit->setObjectName("hostLineEdit");

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

        portLabel = new QLabel(AddDictDialog);
        portLabel->setObjectName("portLabel");

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

        portSpinBox = new QSpinBox(AddDictDialog);
        portSpinBox->setObjectName("portSpinBox");
        portSpinBox->setMinimum(1);
        portSpinBox->setMaximum(65535);
        portSpinBox->setValue(1178);

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

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

        formLayout->setItem(5, QFormLayout::ItemRole::FieldRole, verticalSpacer);

        encodingLabel = new QLabel(AddDictDialog);
        encodingLabel->setObjectName("encodingLabel");

        formLayout->setWidget(4, QFormLayout::ItemRole::LabelRole, encodingLabel);

        encodingEdit = new QLineEdit(AddDictDialog);
        encodingEdit->setObjectName("encodingEdit");
        encodingEdit->setPlaceholderText(QString::fromUtf8("EUC-JP"));

        formLayout->setWidget(4, QFormLayout::ItemRole::FieldRole, encodingEdit);


        verticalLayout->addLayout(formLayout);

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

        verticalLayout->addWidget(buttonBox);

#if QT_CONFIG(shortcut)
        typeLabel->setBuddy(typeComboBox);
        pathLabel->setBuddy(urlLineEdit);
        hostLabel->setBuddy(hostLineEdit);
        portLabel->setBuddy(portSpinBox);
#endif // QT_CONFIG(shortcut)
        QWidget::setTabOrder(typeComboBox, urlLineEdit);
        QWidget::setTabOrder(urlLineEdit, browseButton);
        QWidget::setTabOrder(browseButton, hostLineEdit);
        QWidget::setTabOrder(hostLineEdit, portSpinBox);

        retranslateUi(AddDictDialog);
        QObject::connect(buttonBox, &QDialogButtonBox::accepted, AddDictDialog, qOverload<>(&QDialog::accept));
        QObject::connect(buttonBox, &QDialogButtonBox::rejected, AddDictDialog, qOverload<>(&QDialog::reject));

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

    void retranslateUi(QDialog *AddDictDialog)
    {
        AddDictDialog->setWindowTitle(fcitx::tr2fcitx("Dialog", nullptr));
        typeLabel->setText(fcitx::tr2fcitx("&Type:", nullptr));
        pathLabel->setText(fcitx::tr2fcitx("&Path:", nullptr));
        browseButton->setText(QString());
        hostLabel->setText(fcitx::tr2fcitx("&Host:", nullptr));
        hostLineEdit->setText(fcitx::tr2fcitx("localhost", nullptr));
        portLabel->setText(fcitx::tr2fcitx("&Port:", nullptr));
        encodingLabel->setText(fcitx::tr2fcitx("Encoding:", nullptr));
        encodingEdit->setText(QString());
    } // retranslateUi

};

namespace Ui {
    class AddDictDialog: public Ui_AddDictDialog {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_ADDDICTDIALOG_H
