#include <kdialog.h>
#include <klocale.h>

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

#ifndef UI_SMTPSETTINGS_DESKTOP_H
#define UI_SMTPSETTINGS_DESKTOP_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QFormLayout>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QProgressBar>
#include <QtGui/QRadioButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QStackedWidget>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "kbuttongroup.h"
#include "kcombobox.h"
#include "klineedit.h"
#include "knuminput.h"
#include "kpushbutton.h"
#include "ktabwidget.h"

QT_BEGIN_NAMESPACE

class Ui_SMTPSettings
{
public:
    QVBoxLayout *verticalLayout;
    KTabWidget *tabWidget;
    QWidget *smptTab;
    QVBoxLayout *verticalLayout_2;
    QGroupBox *groupBox;
    QGridLayout *gridLayout;
    QLabel *hostLabel;
    KLineEdit *kcfg_host;
    QLabel *usernameLabel;
    KLineEdit *kcfg_userName;
    QLabel *passwordLabel;
    KLineEdit *password;
    QCheckBox *kcfg_storePassword;
    QCheckBox *kcfg_requiresAuthentication;
    QSpacerItem *verticalSpacer;
    QWidget *advancedTab;
    QVBoxLayout *verticalLayout_7;
    KButtonGroup *kcfg_encryption;
    QVBoxLayout *verticalLayout_5;
    QStackedWidget *checkCapabilitiesStack;
    QWidget *page;
    QVBoxLayout *verticalLayout_3;
    KPushButton *checkCapabilities;
    QWidget *page_2;
    QVBoxLayout *verticalLayout_4;
    QProgressBar *checkCapabilitiesProgress;
    QLabel *noAuthPossible;
    QFormLayout *formLayout_2;
    QLabel *label;
    QHBoxLayout *encryptHLayout;
    QRadioButton *none;
    QRadioButton *ssl;
    QRadioButton *tls;
    QLabel *portLabel;
    KIntNumInput *kcfg_port;
    QLabel *authLabel;
    KComboBox *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(QString::fromUtf8("SMTPSettings"));
        SMTPSettings->resize(392, 446);
        verticalLayout = new QVBoxLayout(SMTPSettings);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        tabWidget = new KTabWidget(SMTPSettings);
        tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
        smptTab = new QWidget();
        smptTab->setObjectName(QString::fromUtf8("smptTab"));
        verticalLayout_2 = new QVBoxLayout(smptTab);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
        groupBox = new QGroupBox(smptTab);
        groupBox->setObjectName(QString::fromUtf8("groupBox"));
        gridLayout = new QGridLayout(groupBox);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        hostLabel = new QLabel(groupBox);
        hostLabel->setObjectName(QString::fromUtf8("hostLabel"));
        hostLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        kcfg_host = new KLineEdit(groupBox);
        kcfg_host->setObjectName(QString::fromUtf8("kcfg_host"));

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

        usernameLabel = new QLabel(groupBox);
        usernameLabel->setObjectName(QString::fromUtf8("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(QString::fromUtf8("kcfg_userName"));
        kcfg_userName->setEnabled(false);

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

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

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

        password = new KLineEdit(groupBox);
        password->setObjectName(QString::fromUtf8("password"));
        password->setEnabled(false);
        password->setEchoMode(QLineEdit::Password);

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

        kcfg_storePassword = new QCheckBox(groupBox);
        kcfg_storePassword->setObjectName(QString::fromUtf8("kcfg_storePassword"));
        kcfg_storePassword->setEnabled(false);

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

        kcfg_requiresAuthentication = new QCheckBox(groupBox);
        kcfg_requiresAuthentication->setObjectName(QString::fromUtf8("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(QString::fromUtf8("advancedTab"));
        verticalLayout_7 = new QVBoxLayout(advancedTab);
        verticalLayout_7->setObjectName(QString::fromUtf8("verticalLayout_7"));
        kcfg_encryption = new KButtonGroup(advancedTab);
        kcfg_encryption->setObjectName(QString::fromUtf8("kcfg_encryption"));
        kcfg_encryption->setEnabled(true);
        verticalLayout_5 = new QVBoxLayout(kcfg_encryption);
        verticalLayout_5->setObjectName(QString::fromUtf8("verticalLayout_5"));
        checkCapabilitiesStack = new QStackedWidget(kcfg_encryption);
        checkCapabilitiesStack->setObjectName(QString::fromUtf8("checkCapabilitiesStack"));
        page = new QWidget();
        page->setObjectName(QString::fromUtf8("page"));
        verticalLayout_3 = new QVBoxLayout(page);
        verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
        checkCapabilities = new KPushButton(page);
        checkCapabilities->setObjectName(QString::fromUtf8("checkCapabilities"));

        verticalLayout_3->addWidget(checkCapabilities);

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

        verticalLayout_4->addWidget(checkCapabilitiesProgress);

        checkCapabilitiesStack->addWidget(page_2);

        verticalLayout_5->addWidget(checkCapabilitiesStack);

        noAuthPossible = new QLabel(kcfg_encryption);
        noAuthPossible->setObjectName(QString::fromUtf8("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(QString::fromUtf8("formLayout_2"));
        formLayout_2->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
        label = new QLabel(kcfg_encryption);
        label->setObjectName(QString::fromUtf8("label"));

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

        encryptHLayout = new QHBoxLayout();
        encryptHLayout->setObjectName(QString::fromUtf8("encryptHLayout"));
        none = new QRadioButton(kcfg_encryption);
        none->setObjectName(QString::fromUtf8("none"));

        encryptHLayout->addWidget(none);

        ssl = new QRadioButton(kcfg_encryption);
        ssl->setObjectName(QString::fromUtf8("ssl"));

        encryptHLayout->addWidget(ssl);

        tls = new QRadioButton(kcfg_encryption);
        tls->setObjectName(QString::fromUtf8("tls"));

        encryptHLayout->addWidget(tls);


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

        portLabel = new QLabel(kcfg_encryption);
        portLabel->setObjectName(QString::fromUtf8("portLabel"));
        portLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        kcfg_port = new KIntNumInput(kcfg_encryption);
        kcfg_port->setObjectName(QString::fromUtf8("kcfg_port"));
        kcfg_port->setValue(25);
        kcfg_port->setMinimum(1);

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

        authLabel = new QLabel(kcfg_encryption);
        authLabel->setObjectName(QString::fromUtf8("authLabel"));

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

        authCombo = new KComboBox(kcfg_encryption);
        authCombo->setObjectName(QString::fromUtf8("authCombo"));

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


        verticalLayout_5->addLayout(formLayout_2);


        verticalLayout_7->addWidget(kcfg_encryption);

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

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

        hostnameLabel = new QLabel(groupBox_2);
        hostnameLabel->setObjectName(QString::fromUtf8("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(QString::fromUtf8("kcfg_localHostname"));
        kcfg_localHostname->setEnabled(false);

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

        kcfg_specifySenderOverwriteAddress = new QCheckBox(groupBox_2);
        kcfg_specifySenderOverwriteAddress->setObjectName(QString::fromUtf8("kcfg_specifySenderOverwriteAddress"));

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

        label_2 = new QLabel(groupBox_2);
        label_2->setObjectName(QString::fromUtf8("label_2"));
        label_2->setEnabled(false);

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

        kcfg_senderOverwriteAddress = new KLineEdit(groupBox_2);
        kcfg_senderOverwriteAddress->setObjectName(QString::fromUtf8("kcfg_senderOverwriteAddress"));
        kcfg_senderOverwriteAddress->setEnabled(false);

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

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

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

        kcfg_precommand = new KLineEdit(groupBox_2);
        kcfg_precommand->setObjectName(QString::fromUtf8("kcfg_precommand"));
        precommandLabel->raise();

        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, none);
        QWidget::setTabOrder(none, ssl);
        QWidget::setTabOrder(ssl, tls);
        QWidget::setTabOrder(tls, 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", 0));
        hostLabel->setText(tr2i18n("Outgoing mail &server:", 0));
        usernameLabel->setText(tr2i18n("&Login:", 0));
        passwordLabel->setText(tr2i18n("P&assword:", 0));
#ifndef UI_QT_NO_WHATSTHIS
        password->setWhatsThis(tr2i18n("The password to send to the server for authorization.", 0));
#endif // QT_NO_WHATSTHIS
        kcfg_storePassword->setText(tr2i18n("&Store SMTP password", 0));
        kcfg_requiresAuthentication->setText(tr2i18n("Server &requires authentication", 0));
        tabWidget->setTabText(tabWidget->indexOf(smptTab), tr2i18n("General", "general smtp settings"));
        kcfg_encryption->setTitle(tr2i18n("Connection Settings", 0));
        checkCapabilities->setText(tr2i18n("Auto Detect", 0));
        noAuthPossible->setText(tr2i18n("This server does not support authentication", 0));
        label->setText(tr2i18n("Encryption:", 0));
        none->setText(tr2i18n("&None", 0));
        ssl->setText(tr2i18n("&SSL", 0));
        tls->setText(tr2i18n("&TLS", 0));
        portLabel->setText(tr2i18n("&Port:", 0));
        authLabel->setText(tr2i18n("Authentication:", 0));
        groupBox_2->setTitle(tr2i18n("SMTP Settings", 0));
        kcfg_specifyHostname->setText(tr2i18n("Sen&d custom hostname to server", 0));
        hostnameLabel->setText(tr2i18n("Hos&tname:", 0));
        kcfg_specifySenderOverwriteAddress->setText(tr2i18n("Use custom sender address", 0));
        label_2->setText(tr2i18n("Sender Address:", 0));
        precommandLabel->setText(tr2i18n("Precommand:", 0));
        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_DESKTOP_H

