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

/********************************************************************************
** Form generated from reading UI file 'webinterfaceprefwidget.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_WEBINTERFACEPREFWIDGET_H
#define UI_WEBINTERFACEPREFWIDGET_H

#include <Qt3Support/Q3MimeSourceFactory>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QSpacerItem>
#include <QtGui/QSpinBox>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "kled.h"
#include "klineedit.h"
#include "kpushbutton.h"
#include "kurlrequester.h"

QT_BEGIN_NAMESPACE

class Ui_WebInterfacePrefWidget
{
public:
    QVBoxLayout *verticalLayout_3;
    QGroupBox *groupBox_2;
    QVBoxLayout *verticalLayout_2;
    QHBoxLayout *horizontalLayout_3;
    QLabel *textLabel1_2;
    QComboBox *kcfg_skin;
    QSpacerItem *spacerItem;
    QGridLayout *gridLayout;
    QCheckBox *kcfg_authentication;
    QLabel *textLabel5;
    QLineEdit *kcfg_username;
    QLabel *label;
    QLineEdit *kcfg_password;
    QGroupBox *groupBox;
    QVBoxLayout *verticalLayout;
    QGridLayout *gridLayout1;
    QLabel *textLabel1;
    QSpinBox *kcfg_port;
    QCheckBox *kcfg_forward;
    QLabel *textLabel4;
    QSpinBox *kcfg_sessionTTL;
    QSpacerItem *horizontalSpacer;
    QSpacerItem *spacerItem1;

    void setupUi(QWidget *WebInterfacePrefWidget)
    {
        if (WebInterfacePrefWidget->objectName().isEmpty())
            WebInterfacePrefWidget->setObjectName(QString::fromUtf8("WebInterfacePrefWidget"));
        WebInterfacePrefWidget->resize(470, 317);
        QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(WebInterfacePrefWidget->sizePolicy().hasHeightForWidth());
        WebInterfacePrefWidget->setSizePolicy(sizePolicy);
        WebInterfacePrefWidget->setMinimumSize(QSize(0, 0));
        verticalLayout_3 = new QVBoxLayout(WebInterfacePrefWidget);
        verticalLayout_3->setSpacing(6);
        verticalLayout_3->setContentsMargins(11, 11, 11, 11);
        verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
        groupBox_2 = new QGroupBox(WebInterfacePrefWidget);
        groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
        verticalLayout_2 = new QVBoxLayout(groupBox_2);
        verticalLayout_2->setSpacing(6);
        verticalLayout_2->setContentsMargins(11, 11, 11, 11);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
        horizontalLayout_3 = new QHBoxLayout();
        horizontalLayout_3->setSpacing(6);
        horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
        textLabel1_2 = new QLabel(groupBox_2);
        textLabel1_2->setObjectName(QString::fromUtf8("textLabel1_2"));
        textLabel1_2->setWordWrap(false);

        horizontalLayout_3->addWidget(textLabel1_2);

        kcfg_skin = new QComboBox(groupBox_2);
        kcfg_skin->setObjectName(QString::fromUtf8("kcfg_skin"));
        kcfg_skin->setMinimumSize(QSize(100, 0));
        kcfg_skin->setMaximumSize(QSize(16777215, 16777215));

        horizontalLayout_3->addWidget(kcfg_skin);

        spacerItem = new QSpacerItem(204, 21, QSizePolicy::Expanding, QSizePolicy::Minimum);

        horizontalLayout_3->addItem(spacerItem);


        verticalLayout_2->addLayout(horizontalLayout_3);

        gridLayout = new QGridLayout();
        gridLayout->setSpacing(6);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        kcfg_authentication = new QCheckBox(groupBox_2);
        kcfg_authentication->setObjectName(QString::fromUtf8("kcfg_authentication"));

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

        textLabel5 = new QLabel(groupBox_2);
        textLabel5->setObjectName(QString::fromUtf8("textLabel5"));
        textLabel5->setWordWrap(false);

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

        kcfg_username = new QLineEdit(groupBox_2);
        kcfg_username->setObjectName(QString::fromUtf8("kcfg_username"));

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

        label = new QLabel(groupBox_2);
        label->setObjectName(QString::fromUtf8("label"));

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

        kcfg_password = new QLineEdit(groupBox_2);
        kcfg_password->setObjectName(QString::fromUtf8("kcfg_password"));
        kcfg_password->setEchoMode(QLineEdit::Password);

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


        verticalLayout_2->addLayout(gridLayout);


        verticalLayout_3->addWidget(groupBox_2);

        groupBox = new QGroupBox(WebInterfacePrefWidget);
        groupBox->setObjectName(QString::fromUtf8("groupBox"));
        verticalLayout = new QVBoxLayout(groupBox);
        verticalLayout->setSpacing(6);
        verticalLayout->setContentsMargins(11, 11, 11, 11);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        gridLayout1 = new QGridLayout();
        gridLayout1->setSpacing(6);
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        textLabel1 = new QLabel(groupBox);
        textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
        textLabel1->setWordWrap(false);

        gridLayout1->addWidget(textLabel1, 0, 0, 1, 1);

        kcfg_port = new QSpinBox(groupBox);
        kcfg_port->setObjectName(QString::fromUtf8("kcfg_port"));
        kcfg_port->setMinimumSize(QSize(75, 0));
        kcfg_port->setMinimum(1);
        kcfg_port->setMaximum(65535);
        kcfg_port->setValue(99);
        kcfg_port->setProperty("maxValue", QVariant(65535));
        kcfg_port->setProperty("minValue", QVariant(1));

        gridLayout1->addWidget(kcfg_port, 0, 1, 1, 1);

        kcfg_forward = new QCheckBox(groupBox);
        kcfg_forward->setObjectName(QString::fromUtf8("kcfg_forward"));

        gridLayout1->addWidget(kcfg_forward, 0, 2, 1, 1);

        textLabel4 = new QLabel(groupBox);
        textLabel4->setObjectName(QString::fromUtf8("textLabel4"));
        textLabel4->setWordWrap(false);

        gridLayout1->addWidget(textLabel4, 1, 0, 1, 1);

        kcfg_sessionTTL = new QSpinBox(groupBox);
        kcfg_sessionTTL->setObjectName(QString::fromUtf8("kcfg_sessionTTL"));
        QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(kcfg_sessionTTL->sizePolicy().hasHeightForWidth());
        kcfg_sessionTTL->setSizePolicy(sizePolicy1);
        kcfg_sessionTTL->setValue(99);
        kcfg_sessionTTL->setProperty("maxValue", QVariant(100000));
        kcfg_sessionTTL->setProperty("minValue", QVariant(1));
        kcfg_sessionTTL->setProperty("lineStep", QVariant(100));

        gridLayout1->addWidget(kcfg_sessionTTL, 1, 1, 1, 1);

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

        gridLayout1->addItem(horizontalSpacer, 1, 2, 1, 1);


        verticalLayout->addLayout(gridLayout1);


        verticalLayout_3->addWidget(groupBox);

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

        verticalLayout_3->addItem(spacerItem1);


        retranslateUi(WebInterfacePrefWidget);

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

    void retranslateUi(QWidget *WebInterfacePrefWidget)
    {
        WebInterfacePrefWidget->setWindowTitle(tr2i18n("Search Preferences", 0));
        groupBox_2->setTitle(tr2i18n("Web Interface", 0));
        textLabel1_2->setText(tr2i18n("Web interface skin:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_skin->setToolTip(tr2i18n("Which interface to use.", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_TOOLTIP
        kcfg_authentication->setToolTip(tr2i18n("If login required is enabled, you need to enter a username and a password.\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Attention: </span>You should not disable this when the webinterface is accessible from the internet. It will allow anybody access to it.</p>", 0));
#endif // QT_NO_TOOLTIP
        kcfg_authentication->setText(tr2i18n("Login required", 0));
        textLabel5->setText(tr2i18n("Username:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_username->setToolTip(tr2i18n("Username you need to use in the login page of the webinterface.", 0));
#endif // QT_NO_TOOLTIP
        label->setText(tr2i18n("Password:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_password->setToolTip(tr2i18n("The password for the webinterface login page. By default this is set to ktorrent.", 0));
#endif // QT_NO_TOOLTIP
        groupBox->setTitle(tr2i18n("Web Server", 0));
        textLabel1->setText(tr2i18n("Port:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_port->setToolTip(tr2i18n("The port the webinterface listens on.", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_TOOLTIP
        kcfg_forward->setToolTip(tr2i18n("<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">If you are behind a router and you want to access the webinterface from somewhere on the Internet you need to forward the correct port.</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">This checkbox will ensure that the UPnP plugin automatically forwards the port. The UPnP plugin needs to be loaded for this to work.</p>", 0));
#endif // QT_NO_TOOLTIP
        kcfg_forward->setText(tr2i18n("Forward port", 0));
        textLabel4->setText(tr2i18n("Session TTL:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kcfg_sessionTTL->setToolTip(tr2i18n("How long a session is valid (in seconds).", 0));
#endif // QT_NO_TOOLTIP
        kcfg_sessionTTL->setSuffix(tr2i18n(" secs", 0));
    } // retranslateUi

};

namespace Ui {
    class WebInterfacePrefWidget: public Ui_WebInterfacePrefWidget {};
} // namespace Ui

QT_END_NAMESPACE

#endif // WEBINTERFACEPREFWIDGET_H

