#include <klocalizedstring.h>

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

#ifndef UI_GOOGLECLOUDENGINE_H
#define UI_GOOGLECLOUDENGINE_H

#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "kurlrequester.h"

QT_BEGIN_NAMESPACE

class Ui_GoogleCloudEngine
{
public:
    QVBoxLayout *verticalLayout;
    QGroupBox *grpAuth;
    QGridLayout *gridLayout_2;
    QLabel *labelServiceJSON;
    KUrlRequester *serviceJSON;
    QPushButton *btnLogin;
    QSpacerItem *horizontalSpacer;
    QLabel *labHelp;
    QFrame *lineHelp;
    QGroupBox *grpSettings;
    QGridLayout *gridLayout_3;
    QLabel *labSource;
    QLabel *labTranslation;
    QComboBox *langSource;
    QComboBox *langTranslation;

    void setupUi(QWidget *GoogleCloudEngine)
    {
        if (GoogleCloudEngine->objectName().isEmpty())
            GoogleCloudEngine->setObjectName("GoogleCloudEngine");
        GoogleCloudEngine->resize(400, 408);
        verticalLayout = new QVBoxLayout(GoogleCloudEngine);
        verticalLayout->setObjectName("verticalLayout");
        grpAuth = new QGroupBox(GoogleCloudEngine);
        grpAuth->setObjectName("grpAuth");
        gridLayout_2 = new QGridLayout(grpAuth);
        gridLayout_2->setObjectName("gridLayout_2");
        labelServiceJSON = new QLabel(grpAuth);
        labelServiceJSON->setObjectName("labelServiceJSON");

        gridLayout_2->addWidget(labelServiceJSON, 2, 0, 1, 2);

        serviceJSON = new KUrlRequester(grpAuth);
        serviceJSON->setObjectName("serviceJSON");

        gridLayout_2->addWidget(serviceJSON, 3, 0, 1, 2);

        btnLogin = new QPushButton(grpAuth);
        btnLogin->setObjectName("btnLogin");

        gridLayout_2->addWidget(btnLogin, 4, 1, 1, 1);

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

        gridLayout_2->addItem(horizontalSpacer, 4, 0, 1, 1);

        labHelp = new QLabel(grpAuth);
        labHelp->setObjectName("labHelp");
        labHelp->setMinimumSize(QSize(0, 102));
        labHelp->setTextFormat(Qt::RichText);
        labHelp->setWordWrap(true);

        gridLayout_2->addWidget(labHelp, 0, 0, 1, 2);

        lineHelp = new QFrame(grpAuth);
        lineHelp->setObjectName("lineHelp");
        QSizePolicy sizePolicy(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::MinimumExpanding);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(lineHelp->sizePolicy().hasHeightForWidth());
        lineHelp->setSizePolicy(sizePolicy);
        lineHelp->setFrameShape(QFrame::Shape::HLine);
        lineHelp->setFrameShadow(QFrame::Shadow::Sunken);

        gridLayout_2->addWidget(lineHelp, 1, 0, 1, 2);


        verticalLayout->addWidget(grpAuth);

        grpSettings = new QGroupBox(GoogleCloudEngine);
        grpSettings->setObjectName("grpSettings");
        gridLayout_3 = new QGridLayout(grpSettings);
        gridLayout_3->setObjectName("gridLayout_3");
        labSource = new QLabel(grpSettings);
        labSource->setObjectName("labSource");

        gridLayout_3->addWidget(labSource, 0, 0, 1, 1);

        labTranslation = new QLabel(grpSettings);
        labTranslation->setObjectName("labTranslation");

        gridLayout_3->addWidget(labTranslation, 0, 1, 1, 1);

        langSource = new QComboBox(grpSettings);
        langSource->setObjectName("langSource");

        gridLayout_3->addWidget(langSource, 1, 0, 1, 1);

        langTranslation = new QComboBox(grpSettings);
        langTranslation->setObjectName("langTranslation");

        gridLayout_3->addWidget(langTranslation, 1, 1, 1, 1);


        verticalLayout->addWidget(grpSettings);

#if QT_CONFIG(shortcut)
        labelServiceJSON->setBuddy(serviceJSON);
        labSource->setBuddy(langSource);
        labTranslation->setBuddy(langTranslation);
#endif // QT_CONFIG(shortcut)

        retranslateUi(GoogleCloudEngine);

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

    void retranslateUi(QWidget *GoogleCloudEngine)
    {
        grpAuth->setTitle(tr2i18n("Authentication", nullptr));
        labelServiceJSON->setText(tr2i18n("Service Account's Private Key JSON:", nullptr));
        btnLogin->setText(tr2i18n("Login", nullptr));
        labHelp->setText(tr2i18n("<p>You need to <a href=\"https://developers.google.com/identity/protocols/oauth2/service-account#creatinganaccount\">create a Service Account</a> in Google Cloud Console and provide public/private key JSON file below.</p><p>The Service Account needs to be assigned <span style=\" text-decoration: underline;\">Cloud Translation API User</span> role on IAM page or must be granted access to the Google's Cloud Translation APIs in a different manner.</p>", nullptr));
        grpSettings->setTitle(tr2i18n("Settings", nullptr));
        labSource->setText(tr2i18n("Source language:", nullptr));
        labTranslation->setText(tr2i18n("Translate to:", nullptr));
        (void)GoogleCloudEngine;
    } // retranslateUi

};

namespace Ui {
    class GoogleCloudEngine: public Ui_GoogleCloudEngine {};
} // namespace Ui

QT_END_NAMESPACE

#endif // GOOGLECLOUDENGINE_H

