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

/********************************************************************************
** Form generated from reading UI file 'devicepreference.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_DEVICEPREFERENCE_H
#define UI_DEVICEPREFERENCE_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QGridLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QToolButton>
#include <QtGui/QTreeView>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include <kdialog.h>

QT_BEGIN_NAMESPACE

class Ui_DevicePreference
{
public:
    QGridLayout *gridLayout;
    QVBoxLayout *vboxLayout;
    QTreeView *categoryTree;
    QHBoxLayout *showAdvancedDevicesContainer;
    QCheckBox *showAdvancedDevicesCheckBox;
    QSpacerItem *showAdvancedDevicesSpacer;
    QHBoxLayout *hboxLayout;
    QPushButton *applyPreferencesButton;
    QSpacerItem *spacerItem;
    QTreeView *deviceList;
    QHBoxLayout *hboxLayout1;
    QSpacerItem *spacerItem1;
    QToolButton *testPlaybackButton;
    QToolButton *preferButton;
    QToolButton *deferButton;

    void setupUi(QWidget *DevicePreference)
    {
        if (DevicePreference->objectName().isEmpty())
            DevicePreference->setObjectName(QString::fromUtf8("DevicePreference"));
        DevicePreference->resize(600, 400);
        gridLayout = new QGridLayout(DevicePreference);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        vboxLayout = new QVBoxLayout();
        vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
        categoryTree = new QTreeView(DevicePreference);
        categoryTree->setObjectName(QString::fromUtf8("categoryTree"));
        QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(categoryTree->sizePolicy().hasHeightForWidth());
        categoryTree->setSizePolicy(sizePolicy);
        categoryTree->setContextMenuPolicy(Qt::CustomContextMenu);
        categoryTree->setItemsExpandable(false);

        vboxLayout->addWidget(categoryTree);

        showAdvancedDevicesContainer = new QHBoxLayout();
        showAdvancedDevicesContainer->setSpacing(0);
        showAdvancedDevicesContainer->setObjectName(QString::fromUtf8("showAdvancedDevicesContainer"));
        showAdvancedDevicesCheckBox = new QCheckBox(DevicePreference);
        showAdvancedDevicesCheckBox->setObjectName(QString::fromUtf8("showAdvancedDevicesCheckBox"));

        showAdvancedDevicesContainer->addWidget(showAdvancedDevicesCheckBox);

        showAdvancedDevicesSpacer = new QSpacerItem(0, 20, QSizePolicy::Preferred, QSizePolicy::Minimum);

        showAdvancedDevicesContainer->addItem(showAdvancedDevicesSpacer);


        vboxLayout->addLayout(showAdvancedDevicesContainer);

        hboxLayout = new QHBoxLayout();
        hboxLayout->setSpacing(0);
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        applyPreferencesButton = new QPushButton(DevicePreference);
        applyPreferencesButton->setObjectName(QString::fromUtf8("applyPreferencesButton"));

        hboxLayout->addWidget(applyPreferencesButton);

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

        hboxLayout->addItem(spacerItem);


        vboxLayout->addLayout(hboxLayout);


        gridLayout->addLayout(vboxLayout, 0, 0, 2, 1);

        deviceList = new QTreeView(DevicePreference);
        deviceList->setObjectName(QString::fromUtf8("deviceList"));
        deviceList->setAcceptDrops(true);
        deviceList->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
        deviceList->setDragEnabled(true);
        deviceList->setDragDropMode(QAbstractItemView::InternalMove);
        deviceList->setSelectionBehavior(QAbstractItemView::SelectRows);
        deviceList->setIconSize(QSize(32, 32));
        deviceList->setTextElideMode(Qt::ElideNone);
        deviceList->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
        deviceList->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
        deviceList->setRootIsDecorated(false);
        deviceList->setItemsExpandable(false);

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

        hboxLayout1 = new QHBoxLayout();
        hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
        spacerItem1 = new QSpacerItem(16, 29, QSizePolicy::Expanding, QSizePolicy::Minimum);

        hboxLayout1->addItem(spacerItem1);

        testPlaybackButton = new QToolButton(DevicePreference);
        testPlaybackButton->setObjectName(QString::fromUtf8("testPlaybackButton"));
        testPlaybackButton->setCheckable(true);
        testPlaybackButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);

        hboxLayout1->addWidget(testPlaybackButton);

        preferButton = new QToolButton(DevicePreference);
        preferButton->setObjectName(QString::fromUtf8("preferButton"));
        preferButton->setEnabled(false);
        preferButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);

        hboxLayout1->addWidget(preferButton);

        deferButton = new QToolButton(DevicePreference);
        deferButton->setObjectName(QString::fromUtf8("deferButton"));
        deferButton->setEnabled(false);
        deferButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);

        hboxLayout1->addWidget(deferButton);


        gridLayout->addLayout(hboxLayout1, 1, 1, 1, 1);


        retranslateUi(DevicePreference);

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

    void retranslateUi(QWidget *DevicePreference)
    {
#ifndef UI_QT_NO_TOOLTIP
        categoryTree->setToolTip(tr2i18n("Various categories of media use cases.  For each category, you may choose what device you prefer to be used by the Phonon applications.", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        categoryTree->setWhatsThis(tr2i18n("Various categories of media use cases.  For each category, you may choose what device you prefer to be used by the Phonon applications.", 0));
#endif // QT_NO_WHATSTHIS
        showAdvancedDevicesCheckBox->setText(tr2i18n("Show advanced devices", 0));
#ifndef UI_QT_NO_TOOLTIP
        applyPreferencesButton->setToolTip(tr2i18n("Use the currently shown device list for more categories.", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        applyPreferencesButton->setWhatsThis(tr2i18n("Use the currently shown device list for more categories.", 0));
#endif // QT_NO_WHATSTHIS
        applyPreferencesButton->setText(tr2i18n("Apply Device List To...", 0));
#ifndef UI_QT_NO_TOOLTIP
        deviceList->setToolTip(tr2i18n("Devices found on your system, suitable for the selected category.  Choose the device that you wish to be used by the applications.", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        deviceList->setWhatsThis(tr2i18n("The order determines the preference of the devices. If for some reason the first device cannot be used Phonon will try to use the second, and so on.", 0));
#endif // QT_NO_WHATSTHIS
        testPlaybackButton->setText(tr2i18n("Test", 0));
#ifndef UI_QT_NO_TOOLTIP
        preferButton->setToolTip(tr2i18n("prefer the selected device", 0));
#endif // QT_NO_TOOLTIP
        preferButton->setText(tr2i18n("Prefer", 0));
#ifndef UI_QT_NO_TOOLTIP
        deferButton->setToolTip(tr2i18n("no preference for the selected device", 0));
#endif // QT_NO_TOOLTIP
        deferButton->setText(tr2i18n("Defer", 0));
        Q_UNUSED(DevicePreference);
    } // retranslateUi

};

namespace Ui {
    class DevicePreference: public Ui_DevicePreference {};
} // namespace Ui

QT_END_NAMESPACE

#endif // DEVICEPREFERENCE_H

