#include <klocalizedstring.h>

/********************************************************************************
** Form generated from reading UI file 'smtpsettings.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_SMTPSETTINGS_H
#define UI_SMTPSETTINGS_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QStackedWidget>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "klineedit.h"
#include "kpasswordlineedit.h"

QT_BEGIN_NAMESPACE

class Ui_SMTPSettings
{
public:
    QVBoxLayout *verticalLayout;
    QTabWidget *tabWidget;
    QWidget *smptTab;
    QVBoxLayout *verticalLayout_2;
    QGroupBox *groupBox;
    QGridLayout *gridLayout;
    QLabel *hostLabel;
    KLineEdit *kcfg_host;
    QLabel *usernameLabel;
    KLineEdit *kcfg_userName;
    QLabel *passwordLabel;
    KPasswordLineEdit *password;
    QCheckBox *kcfg_storePassword;
    QCheckBox *kcfg_requiresAuthentication;
    QSpacerItem *verticalSpacer;
    QWidget *advancedTab;
    QVBoxLayout *verticalLayout_7;
    QGroupBox *encryptionGroup;
    QVBoxLayout *verticalLayout_5;
    QStackedWidget *checkCapabilitiesStack;
    QWidget *page;
    QVBoxLayout *verticalLayout_3;
    QPushButton *checkCapabilities;
    QWidget *page_2;
    QVBoxLayout *verticalLayout_4;
    QProgressBar *checkCapabilitiesProgress;
    QLabel *noAuthPossible;
    QFormLayout *formLayout_2;
    QLabel *label;
    QHBoxLayout *encryptHLayout;
    QRadioButton *encryptionNone;
    QRadioButton *encryptionSsl;
    QRadioButton *encryptionTls;
    QLabel *portLabel;
    QSpinBox *kcfg_port;
    QLabel *authLabel;
    QComboBox *authCombo;
    QGroupBox *groupBox_2;
    QFormLayout *formLayout;
    QCheckBox *kcfg_specifyHostname;
    QLabel *hostnameLabel;
    KLineEdit *kcfg_localHostname;
    QCheckBox *kcfg_specifySenderOverwriteAddress;
    QLabel *label_2;
    KLineEdit *kcfg_senderOverwriteAddress;
    QLabel *precommandLabel;
    KLineEdit *kcfg_precommand;
    QSpacerItem *verticalSpacer_2;

    void setupUi(QWidget *SMTPSettings)
    {
        if (SMTPSettings->objectName().isEmpty())
            SMTPSettings->setObjectName(QStringLiteral("SMTPSettings"));
        SMTPSettings->resize(411, 474);
        verticalLayout = new QVBoxLayout(SMTPSettings);
        verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
        verticalLayout->setContentsMargins(0, 0, 0, 0);
        tabWidget = new QTabWidget(SMTPSettings);
        tabWidget->setObjectName(QStringLiteral("tabWidget"));
        smptTab = new QWidget();
        smptTab->setObjectName(QStringLiteral("smptTab"));
        verticalLayout_2 = new QVBoxLayout(smptTab);
        verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
        groupBox = new QGroupBox(smptTab);
        groupBox->setObjectName(QStringLiteral("groupBox"));
        gridLayout = new QGridLayout(groupBox);
        gridLayout->setObjectName(QStringLiteral("gridLayout"));
        hostLabel = new QLabel(groupBox);
        hostLabel->setObjectName(QStringLiteral("hostLabel"));
        hostLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        kcfg_host = new KLineEdit(groupBox);
        kcfg_host->setObjectName(QStringLiteral("kcfg_host"));
        kcfg_host->setProperty("trapEnterKeyEvent", QVariant(true));

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

        usernameLabel = new QLabel(groupBox);
        usernameLabel->setObjectName(QStringLiteral("usernameLabel"));
        usernameLabel->setEnabled(false);
        usernameLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        kcfg_userName = new KLineEdit(groupBox);
        kcfg_userName->setObjectName(QStringLiteral("kcfg_userName"));
        kcfg_userName->setEnabled(false);
        kcfg_userName->setProperty("trapEnterKeyEvent", QVariant(true));

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

        passwordLabel = new QLabel(groupBox);
        passwordLabel->setObjectName(QStringLiteral("passwordLabel"));
        passwordLabel->setEnabled(false);
        passwordLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        password = new KPasswordLineEdit(groupBox);
        password->setObjectName(QStringLiteral("password"));
        password->setEnabled(false);

        gridLayout->addWidget(password, 3, 1, 1, 1);

        kcfg_storePassword = new QCheckBox(groupBox);
        kcfg_storePassword->setObjectName(QStringLiteral("kcfg_storePassword"));
        kcfg_storePassword->setEnabled(false);

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

        kcfg_requiresAuthentication = new QCheckBox(groupBox);
        kcfg_requiresAuthentication->setObjectName(QStringLiteral("kcfg_requiresAuthentication"));

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


        verticalLayout_2->addWidget(groupBox);

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

        verticalLayout_2->addItem(verticalSpacer);

        tabWidget->addTab(smptTab, QString());
        advancedTab = new QWidget();
        advancedTab->setObjectName(QStringLiteral("advancedTab"));
        verticalLayout_7 = new QVBoxLayout(advancedTab);
        verticalLayout_7->setObjectName(QStringLiteral("verticalLayout_7"));
        encryptionGroup = new QGroupBox(advancedTab);
        encryptionGroup->setObjectName(QStringLiteral("encryptionGroup"));
        encryptionGroup->setEnabled(true);
        verticalLayout_5 = new QVBoxLayout(encryptionGroup);
        verticalLayout_5->setObjectName(QStringLiteral("verticalLayout_5"));
        checkCapabilitiesStack = new QStackedWidget(encryptionGroup);
        checkCapabilitiesStack->setObjectName(QStringLiteral("checkCapabilitiesStack"));
        page = new QWidget();
        page->setObjectName(QStringLiteral("page"));
        verticalLayout_3 = new QVBoxLayout(page);
        verticalLayout_3->setObjectName(QStringLiteral("verticalLayout_3"));
        checkCapabilities = new QPushButton(page);
        checkCapabilities->setObjectName(QStringLiteral("checkCapabilities"));

        verticalLayout_3->addWidget(checkCapabilities);

        checkCapabilitiesStack->addWidget(page);
        page_2 = new QWidget();
        page_2->setObjectName(QStringLiteral("page_2"));
        verticalLayout_4 = new QVBoxLayout(page_2);
        verticalLayout_4->setObjectName(QStringLiteral("verticalLayout_4"));
        checkCapabilitiesProgress = new QProgressBar(page_2);
        checkCapabilitiesProgress->setObjectName(QStringLiteral("checkCapabilitiesProgress"));
        checkCapabilitiesProgress->setValue(0);

        verticalLayout_4->addWidget(checkCapabilitiesProgress);

        checkCapabilitiesStack->addWidget(page_2);

        verticalLayout_5->addWidget(checkCapabilitiesStack);

        noAuthPossible = new QLabel(encryptionGroup);
        noAuthPossible->setObjectName(QStringLiteral("noAuthPossible"));
        noAuthPossible->setVisible(false);
        noAuthPossible->setFrameShape(QFrame::Box);
        noAuthPossible->setFrameShadow(QFrame::Plain);
        noAuthPossible->setLineWidth(0);
        noAuthPossible->setAlignment(Qt::AlignCenter);

        verticalLayout_5->addWidget(noAuthPossible);

        formLayout_2 = new QFormLayout();
        formLayout_2->setObjectName(QStringLiteral("formLayout_2"));
        formLayout_2->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
        label = new QLabel(encryptionGroup);
        label->setObjectName(QStringLiteral("label"));

        formLayout_2->setWidget(0, QFormLayout::LabelRole, label);

        encryptHLayout = new QHBoxLayout();
        encryptHLayout->setObjectName(QStringLiteral("encryptHLayout"));
        encryptionNone = new QRadioButton(encryptionGroup);
        encryptionNone->setObjectName(QStringLiteral("encryptionNone"));

        encryptHLayout->addWidget(encryptionNone);

        encryptionSsl = new QRadioButton(encryptionGroup);
        encryptionSsl->setObjectName(QStringLiteral("encryptionSsl"));

        encryptHLayout->addWidget(encryptionSsl);

        encryptionTls = new QRadioButton(encryptionGroup);
        encryptionTls->setObjectName(QStringLiteral("encryptionTls"));

        encryptHLayout->addWidget(encryptionTls);


        formLayout_2->setLayout(0, QFormLayout::FieldRole, encryptHLayout);

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

        formLayout_2->setWidget(1, QFormLayout::LabelRole, portLabel);

        kcfg_port = new QSpinBox(encryptionGroup);
        kcfg_port->setObjectName(QStringLiteral("kcfg_port"));
        kcfg_port->setMinimum(1);
        kcfg_port->setMaximum(65535);
        kcfg_port->setValue(25);

        formLayout_2->setWidget(1, QFormLayout::FieldRole, kcfg_port);

        authLabel = new QLabel(encryptionGroup);
        authLabel->setObjectName(QStringLiteral("authLabel"));

        formLayout_2->setWidget(2, QFormLayout::LabelRole, authLabel);

        authCombo = new QComboBox(encryptionGroup);
        authCombo->setObjectName(QStringLiteral("authCombo"));

        formLayout_2->setWidget(2, QFormLayout::FieldRole, authCombo);


        verticalLayout_5->addLayout(formLayout_2);


        verticalLayout_7->addWidget(encryptionGroup);

        groupBox_2 = new QGroupBox(advancedTab);
        groupBox_2->setObjectName(QStringLiteral("groupBox_2"));
        formLayout = new QFormLayout(groupBox_2);
        formLayout->setObjectName(QStringLiteral("formLayout"));
        kcfg_specifyHostname = new QCheckBox(groupBox_2);
        kcfg_specifyHostname->setObjectName(QStringLiteral("kcfg_specifyHostname"));

        formLayout->setWidget(0, QFormLayout::SpanningRole, kcfg_specifyHostname);

        hostnameLabel = new QLabel(groupBox_2);
        hostnameLabel->setObjectName(QStringLiteral("hostnameLabel"));
        hostnameLabel->setEnabled(false);
        hostnameLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        kcfg_localHostname = new KLineEdit(groupBox_2);
        kcfg_localHostname->setObjectName(QStringLiteral("kcfg_localHostname"));
        kcfg_localHostname->setEnabled(false);
        kcfg_localHostname->setProperty("trapEnterKeyEvent", QVariant(true));

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

        kcfg_specifySenderOverwriteAddress = new QCheckBox(groupBox_2);
        kcfg_specifySenderOverwriteAddress->setObjectName(QStringLiteral("kcfg_specifySenderOverwriteAddress"));

        formLayout->setWidget(2, QFormLayout::SpanningRole, kcfg_specifySenderOverwriteAddress);

        label_2 = new QLabel(groupBox_2);
        label_2->setObjectName(QStringLiteral("label_2"));
        label_2->setEnabled(false);

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

        kcfg_senderOverwriteAddress = new KLineEdit(groupBox_2);
        kcfg_senderOverwriteAddress->setObjectName(QStringLiteral("kcfg_senderOverwriteAddress"));
        kcfg_senderOverwriteAddress->setEnabled(false);
        kcfg_senderOverwriteAddress->setProperty("trapEnterKeyEvent", QVariant(true));

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

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

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

        kcfg_precommand = new KLineEdit(groupBox_2);
        kcfg_precommand->setObjectName(QStringLiteral("kcfg_precommand"));
        kcfg_precommand->setProperty("trapEnterKeyEvent", QVariant(true));

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


        verticalLayout_7->addWidget(groupBox_2);

        verticalSpacer_2 = new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);

        verticalLayout_7->addItem(verticalSpacer_2);

        tabWidget->addTab(advancedTab, QString());

        verticalLayout->addWidget(tabWidget);

#ifndef UI_QT_NO_SHORTCUT
        hostLabel->setBuddy(kcfg_host);
        usernameLabel->setBuddy(kcfg_userName);
        passwordLabel->setBuddy(password);
        portLabel->setBuddy(kcfg_port);
        hostnameLabel->setBuddy(kcfg_localHostname);
#endif // QT_NO_SHORTCUT
        QWidget::setTabOrder(tabWidget, kcfg_host);
        QWidget::setTabOrder(kcfg_host, kcfg_requiresAuthentication);
        QWidget::setTabOrder(kcfg_requiresAuthentication, kcfg_userName);
        QWidget::setTabOrder(kcfg_userName, password);
        QWidget::setTabOrder(password, kcfg_storePassword);
        QWidget::setTabOrder(kcfg_storePassword, checkCapabilities);
        QWidget::setTabOrder(checkCapabilities, encryptionNone);
        QWidget::setTabOrder(encryptionNone, encryptionSsl);
        QWidget::setTabOrder(encryptionSsl, encryptionTls);
        QWidget::setTabOrder(encryptionTls, authCombo);
        QWidget::setTabOrder(authCombo, kcfg_specifyHostname);
        QWidget::setTabOrder(kcfg_specifyHostname, kcfg_localHostname);
        QWidget::setTabOrder(kcfg_localHostname, kcfg_specifySenderOverwriteAddress);
        QWidget::setTabOrder(kcfg_specifySenderOverwriteAddress, kcfg_senderOverwriteAddress);
        QWidget::setTabOrder(kcfg_senderOverwriteAddress, kcfg_precommand);

        retranslateUi(SMTPSettings);
        QObject::connect(kcfg_specifyHostname, SIGNAL(toggled(bool)), hostnameLabel, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_specifyHostname, SIGNAL(toggled(bool)), kcfg_localHostname, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_requiresAuthentication, SIGNAL(toggled(bool)), kcfg_userName, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_requiresAuthentication, SIGNAL(toggled(bool)), usernameLabel, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_requiresAuthentication, SIGNAL(toggled(bool)), passwordLabel, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_requiresAuthentication, SIGNAL(toggled(bool)), password, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_requiresAuthentication, SIGNAL(toggled(bool)), kcfg_storePassword, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_specifySenderOverwriteAddress, SIGNAL(toggled(bool)), label_2, SLOT(setEnabled(bool)));
        QObject::connect(kcfg_specifySenderOverwriteAddress, SIGNAL(toggled(bool)), kcfg_senderOverwriteAddress, SLOT(setEnabled(bool)));

        tabWidget->setCurrentIndex(0);
        checkCapabilitiesStack->setCurrentIndex(0);


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

    void retranslateUi(QWidget *SMTPSettings)
    {
        groupBox->setTitle(tr2i18n("Account Information", Q_NULLPTR));
        hostLabel->setText(tr2i18n("Outgoing &mail server:", Q_NULLPTR));
        usernameLabel->setText(tr2i18n("&Login:", Q_NULLPTR));
        passwordLabel->setText(tr2i18n("P&assword:", Q_NULLPTR));
        kcfg_storePassword->setText(tr2i18n("&Store SMTP password", Q_NULLPTR));
        kcfg_requiresAuthentication->setText(tr2i18n("Server &requires authentication", Q_NULLPTR));
        tabWidget->setTabText(tabWidget->indexOf(smptTab), tr2i18n("General", "general smtp settings"));
        encryptionGroup->setTitle(tr2i18n("Connection Settings", Q_NULLPTR));
        checkCapabilities->setText(tr2i18n("Auto Detect", Q_NULLPTR));
        noAuthPossible->setText(tr2i18n("This server does not support authentication", Q_NULLPTR));
        label->setText(tr2i18n("Encryption:", Q_NULLPTR));
        encryptionNone->setText(tr2i18n("&None", Q_NULLPTR));
        encryptionSsl->setText(tr2i18n("&SSL", Q_NULLPTR));
        encryptionTls->setText(tr2i18n("&TLS", Q_NULLPTR));
        portLabel->setText(tr2i18n("&Port:", Q_NULLPTR));
        authLabel->setText(tr2i18n("Authentication:", Q_NULLPTR));
        groupBox_2->setTitle(tr2i18n("SMTP Settings", Q_NULLPTR));
        kcfg_specifyHostname->setText(tr2i18n("Sen&d custom hostname to server", Q_NULLPTR));
        hostnameLabel->setText(tr2i18n("Hostna&me:", Q_NULLPTR));
        kcfg_specifySenderOverwriteAddress->setText(tr2i18n("Use custom sender address", Q_NULLPTR));
        label_2->setText(tr2i18n("Sender Address:", Q_NULLPTR));
        precommandLabel->setText(tr2i18n("Precommand:", Q_NULLPTR));
        tabWidget->setTabText(tabWidget->indexOf(advancedTab), tr2i18n("Advanced", "advanced smtp settings"));
        Q_UNUSED(SMTPSettings);
    } // retranslateUi

};

namespace Ui {
    class SMTPSettings: public Ui_SMTPSettings {};
} // namespace Ui

QT_END_NAMESPACE

#endif // SMTPSETTINGS_H

