#include <klocalizedstring.h>

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

#ifndef UI_PLAYBACKDLG_H
#define UI_PLAYBACKDLG_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSlider>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include "KComboBox"
#include "libgui/TreeWidgetWrapper.h"

QT_BEGIN_NAMESPACE

class Ui_PlayBackDlg
{
public:
    QVBoxLayout *vboxLayout;
    QGroupBox *groupBox2;
    QGridLayout *gridLayout;
    QHBoxLayout *hboxLayout;
    KComboBox *cbDevice;
    QPushButton *btSelectDevice;
    QHBoxLayout *hboxLayout1;
    KComboBox *cbMethod;
    QLabel *textLabel1;
    QLabel *textLabel2;
    QHBoxLayout *hboxLayout2;
    QLabel *txtBufferSize;
    QSlider *slBufferSize;
    QLabel *textLabel5;
    QFrame *frame4_2;
    QLabel *textLabel4;
    QLabel *textLabel3;
    QHBoxLayout *hboxLayout3;
    KComboBox *cbBitsPerSample;
    QSpacerItem *spacerItem;
    QHBoxLayout *hboxLayout4;
    QSpinBox *sbChannels;
    QLabel *lblChannels;
    QFrame *frame4_2_2;
    Kwave::TreeWidgetWrapper *listDevices;
    QFrame *frame4;
    QHBoxLayout *hboxLayout5;
    QDialogButtonBox *btHelp;
    QSpacerItem *spacerItem1;
    QPushButton *btTest;
    QSpacerItem *spacerItem2;
    QDialogButtonBox *buttonBox;

    void setupUi(QDialog *PlayBackDlg)
    {
        if (PlayBackDlg->objectName().isEmpty())
            PlayBackDlg->setObjectName(QStringLiteral("PlayBackDlg"));
        PlayBackDlg->resize(641, 568);
        QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(PlayBackDlg->sizePolicy().hasHeightForWidth());
        PlayBackDlg->setSizePolicy(sizePolicy);
        vboxLayout = new QVBoxLayout(PlayBackDlg);
        vboxLayout->setSpacing(10);
        vboxLayout->setContentsMargins(10, 10, 10, 10);
        vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
        groupBox2 = new QGroupBox(PlayBackDlg);
        groupBox2->setObjectName(QStringLiteral("groupBox2"));
        QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(100);
        sizePolicy1.setHeightForWidth(groupBox2->sizePolicy().hasHeightForWidth());
        groupBox2->setSizePolicy(sizePolicy1);
        gridLayout = new QGridLayout(groupBox2);
        gridLayout->setSpacing(10);
        gridLayout->setContentsMargins(10, 10, 10, 10);
        gridLayout->setObjectName(QStringLiteral("gridLayout"));
        hboxLayout = new QHBoxLayout();
        hboxLayout->setSpacing(10);
        hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
        cbDevice = new KComboBox(groupBox2);
        cbDevice->setObjectName(QStringLiteral("cbDevice"));
        QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Preferred);
        sizePolicy2.setHorizontalStretch(0);
        sizePolicy2.setVerticalStretch(0);
        sizePolicy2.setHeightForWidth(cbDevice->sizePolicy().hasHeightForWidth());
        cbDevice->setSizePolicy(sizePolicy2);
        cbDevice->setMinimumSize(QSize(130, 0));
        cbDevice->setEditable(true);
        cbDevice->setDuplicatesEnabled(false);

        hboxLayout->addWidget(cbDevice);

        btSelectDevice = new QPushButton(groupBox2);
        btSelectDevice->setObjectName(QStringLiteral("btSelectDevice"));
        QSizePolicy sizePolicy3(QSizePolicy::Minimum, QSizePolicy::Preferred);
        sizePolicy3.setHorizontalStretch(0);
        sizePolicy3.setVerticalStretch(0);
        sizePolicy3.setHeightForWidth(btSelectDevice->sizePolicy().hasHeightForWidth());
        btSelectDevice->setSizePolicy(sizePolicy3);
        btSelectDevice->setMinimumSize(QSize(0, 30));

        hboxLayout->addWidget(btSelectDevice);


        gridLayout->addLayout(hboxLayout, 1, 2, 1, 2);

        hboxLayout1 = new QHBoxLayout();
        hboxLayout1->setSpacing(10);
        hboxLayout1->setObjectName(QStringLiteral("hboxLayout1"));
        cbMethod = new KComboBox(groupBox2);
        cbMethod->setObjectName(QStringLiteral("cbMethod"));
        sizePolicy2.setHeightForWidth(cbMethod->sizePolicy().hasHeightForWidth());
        cbMethod->setSizePolicy(sizePolicy2);
        cbMethod->setMinimumSize(QSize(130, 30));

        hboxLayout1->addWidget(cbMethod);


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

        textLabel1 = new QLabel(groupBox2);
        textLabel1->setObjectName(QStringLiteral("textLabel1"));
        textLabel1->setWordWrap(false);

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

        textLabel2 = new QLabel(groupBox2);
        textLabel2->setObjectName(QStringLiteral("textLabel2"));
        textLabel2->setWordWrap(false);

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

        hboxLayout2 = new QHBoxLayout();
        hboxLayout2->setSpacing(10);
        hboxLayout2->setObjectName(QStringLiteral("hboxLayout2"));
        txtBufferSize = new QLabel(groupBox2);
        txtBufferSize->setObjectName(QStringLiteral("txtBufferSize"));
        txtBufferSize->setMinimumSize(QSize(130, 0));
        txtBufferSize->setWordWrap(false);

        hboxLayout2->addWidget(txtBufferSize);

        slBufferSize = new QSlider(groupBox2);
        slBufferSize->setObjectName(QStringLiteral("slBufferSize"));
        QSizePolicy sizePolicy4(QSizePolicy::Expanding, QSizePolicy::Minimum);
        sizePolicy4.setHorizontalStretch(0);
        sizePolicy4.setVerticalStretch(0);
        sizePolicy4.setHeightForWidth(slBufferSize->sizePolicy().hasHeightForWidth());
        slBufferSize->setSizePolicy(sizePolicy4);
        slBufferSize->setMinimumSize(QSize(0, 30));
        slBufferSize->setMinimum(8);
        slBufferSize->setMaximum(18);
        slBufferSize->setSingleStep(1);
        slBufferSize->setPageStep(1);
        slBufferSize->setValue(11);
        slBufferSize->setOrientation(Qt::Horizontal);
        slBufferSize->setTickInterval(1);

        hboxLayout2->addWidget(slBufferSize);


        gridLayout->addLayout(hboxLayout2, 7, 2, 1, 1);

        textLabel5 = new QLabel(groupBox2);
        textLabel5->setObjectName(QStringLiteral("textLabel5"));
        textLabel5->setWordWrap(false);

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

        frame4_2 = new QFrame(groupBox2);
        frame4_2->setObjectName(QStringLiteral("frame4_2"));
        QSizePolicy sizePolicy5(QSizePolicy::Minimum, QSizePolicy::Fixed);
        sizePolicy5.setHorizontalStretch(0);
        sizePolicy5.setVerticalStretch(100);
        sizePolicy5.setHeightForWidth(frame4_2->sizePolicy().hasHeightForWidth());
        frame4_2->setSizePolicy(sizePolicy5);
        frame4_2->setFrameShape(QFrame::NoFrame);
        frame4_2->setFrameShadow(QFrame::Plain);

        gridLayout->addWidget(frame4_2, 6, 0, 1, 4);

        textLabel4 = new QLabel(groupBox2);
        textLabel4->setObjectName(QStringLiteral("textLabel4"));
        textLabel4->setWordWrap(false);

        gridLayout->addWidget(textLabel4, 5, 0, 1, 1);

        textLabel3 = new QLabel(groupBox2);
        textLabel3->setObjectName(QStringLiteral("textLabel3"));
        textLabel3->setWordWrap(false);

        gridLayout->addWidget(textLabel3, 4, 0, 1, 1);

        hboxLayout3 = new QHBoxLayout();
        hboxLayout3->setSpacing(10);
        hboxLayout3->setObjectName(QStringLiteral("hboxLayout3"));
        cbBitsPerSample = new KComboBox(groupBox2);
        cbBitsPerSample->setObjectName(QStringLiteral("cbBitsPerSample"));
        sizePolicy3.setHeightForWidth(cbBitsPerSample->sizePolicy().hasHeightForWidth());
        cbBitsPerSample->setSizePolicy(sizePolicy3);
        cbBitsPerSample->setMinimumSize(QSize(130, 30));
        cbBitsPerSample->setDuplicatesEnabled(false);

        hboxLayout3->addWidget(cbBitsPerSample);

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

        hboxLayout3->addItem(spacerItem);


        gridLayout->addLayout(hboxLayout3, 4, 2, 1, 1);

        hboxLayout4 = new QHBoxLayout();
        hboxLayout4->setSpacing(10);
        hboxLayout4->setObjectName(QStringLiteral("hboxLayout4"));
        sbChannels = new QSpinBox(groupBox2);
        sbChannels->setObjectName(QStringLiteral("sbChannels"));
        sizePolicy3.setHeightForWidth(sbChannels->sizePolicy().hasHeightForWidth());
        sbChannels->setSizePolicy(sizePolicy3);
        sbChannels->setMinimumSize(QSize(130, 30));
        sbChannels->setValue(0);
        sbChannels->setProperty("maxValue", QVariant(0));
        sbChannels->setProperty("minValue", QVariant(0));

        hboxLayout4->addWidget(sbChannels);

        lblChannels = new QLabel(groupBox2);
        lblChannels->setObjectName(QStringLiteral("lblChannels"));
        sizePolicy2.setHeightForWidth(lblChannels->sizePolicy().hasHeightForWidth());
        lblChannels->setSizePolicy(sizePolicy2);
        lblChannels->setWordWrap(false);

        hboxLayout4->addWidget(lblChannels);


        gridLayout->addLayout(hboxLayout4, 5, 2, 1, 1);

        frame4_2_2 = new QFrame(groupBox2);
        frame4_2_2->setObjectName(QStringLiteral("frame4_2_2"));
        sizePolicy5.setHeightForWidth(frame4_2_2->sizePolicy().hasHeightForWidth());
        frame4_2_2->setSizePolicy(sizePolicy5);
        frame4_2_2->setFrameShape(QFrame::NoFrame);
        frame4_2_2->setFrameShadow(QFrame::Plain);

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

        listDevices = new Kwave::TreeWidgetWrapper(groupBox2);
        listDevices->setObjectName(QStringLiteral("listDevices"));
        QSizePolicy sizePolicy6(QSizePolicy::Expanding, QSizePolicy::Expanding);
        sizePolicy6.setHorizontalStretch(0);
        sizePolicy6.setVerticalStretch(100);
        sizePolicy6.setHeightForWidth(listDevices->sizePolicy().hasHeightForWidth());
        listDevices->setSizePolicy(sizePolicy6);
        listDevices->setProperty("itemMargin", QVariant(0));

        gridLayout->addWidget(listDevices, 2, 0, 1, 4);


        vboxLayout->addWidget(groupBox2);

        frame4 = new QFrame(PlayBackDlg);
        frame4->setObjectName(QStringLiteral("frame4"));
        QSizePolicy sizePolicy7(QSizePolicy::Expanding, QSizePolicy::Expanding);
        sizePolicy7.setHorizontalStretch(100);
        sizePolicy7.setVerticalStretch(0);
        sizePolicy7.setHeightForWidth(frame4->sizePolicy().hasHeightForWidth());
        frame4->setSizePolicy(sizePolicy7);
        frame4->setMinimumSize(QSize(0, 10));
        frame4->setFrameShape(QFrame::NoFrame);
        frame4->setFrameShadow(QFrame::Plain);

        vboxLayout->addWidget(frame4);

        hboxLayout5 = new QHBoxLayout();
        hboxLayout5->setSpacing(10);
        hboxLayout5->setObjectName(QStringLiteral("hboxLayout5"));
        btHelp = new QDialogButtonBox(PlayBackDlg);
        btHelp->setObjectName(QStringLiteral("btHelp"));
        btHelp->setStandardButtons(QDialogButtonBox::Help);

        hboxLayout5->addWidget(btHelp);

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

        hboxLayout5->addItem(spacerItem1);

        btTest = new QPushButton(PlayBackDlg);
        btTest->setObjectName(QStringLiteral("btTest"));
        QSizePolicy sizePolicy8(QSizePolicy::Preferred, QSizePolicy::Preferred);
        sizePolicy8.setHorizontalStretch(0);
        sizePolicy8.setVerticalStretch(0);
        sizePolicy8.setHeightForWidth(btTest->sizePolicy().hasHeightForWidth());
        btTest->setSizePolicy(sizePolicy8);
        btTest->setMinimumSize(QSize(60, 20));

        hboxLayout5->addWidget(btTest);

        spacerItem2 = new QSpacerItem(40, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);

        hboxLayout5->addItem(spacerItem2);

        buttonBox = new QDialogButtonBox(PlayBackDlg);
        buttonBox->setObjectName(QStringLiteral("buttonBox"));
        buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);

        hboxLayout5->addWidget(buttonBox);


        vboxLayout->addLayout(hboxLayout5);

        QWidget::setTabOrder(cbMethod, cbDevice);
        QWidget::setTabOrder(cbDevice, btSelectDevice);
        QWidget::setTabOrder(btSelectDevice, listDevices);
        QWidget::setTabOrder(listDevices, cbBitsPerSample);
        QWidget::setTabOrder(cbBitsPerSample, sbChannels);
        QWidget::setTabOrder(sbChannels, slBufferSize);
        QWidget::setTabOrder(slBufferSize, btTest);

        retranslateUi(PlayBackDlg);
        QObject::connect(buttonBox, SIGNAL(rejected()), PlayBackDlg, SLOT(reject()));
        QObject::connect(buttonBox, SIGNAL(accepted()), PlayBackDlg, SLOT(accept()));

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

    void retranslateUi(QDialog *PlayBackDlg)
    {
        PlayBackDlg->setWindowTitle(tr2i18n("Playback", 0));
        groupBox2->setTitle(tr2i18n("Playback Settings", 0));
#ifndef UI_QT_NO_TOOLTIP
        cbDevice->setToolTip(tr2i18n("Playback device", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        cbDevice->setWhatsThis(tr2i18n("<b>Device:</b><p>This list shows a selection of some known playback devices suitable for the chosen playback method. If your device is not listed here, you can enter a device name on your own or search through the filesystem.</p>", 0));
#endif // QT_NO_WHATSTHIS
#ifndef UI_QT_NO_TOOLTIP
        btSelectDevice->setToolTip(tr2i18n("Search on the filesystem for a device", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        btSelectDevice->setWhatsThis(tr2i18n("<b>Select...</b><p>Choose a device name on the harddisk, if your device is not already listed in the list of devices.</p>", 0));
#endif // QT_NO_WHATSTHIS
        btSelectDevice->setText(tr2i18n("&Select...", 0));
#ifndef UI_QT_NO_TOOLTIP
        cbMethod->setToolTip(tr2i18n("Method or system used for playback", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        cbMethod->setWhatsThis(tr2i18n("<b>Playback Method:</b><p>Choose a method or system used for\n"
"playback. Depending on the compilation options you can select one of the following methods:</p>\n"
"<p><b><i>OSS (Open Sound System)</i></b>: The oldest linux implementation, capable of mono and stereo output. Deprecated since linux kernel 2.6, but still wide spread. Might collide with PulseAudio or other sound applications, only one application at a time can use OSS playback !</p>\n"
"<p><b><i>ALSA (Advanced Linux Sound Architecture)</i></b>: Supercedes OSS, supports more features and more hardware. Might collide with other applications like OSS does, but has a plugin called <i>dmix</i> as a way out.</p>\n"
"<p><b><i>PulseAudio</i></b>: The preferred way of doing playback in KDE. Multiple applications can play at the same time.</p>", 0));
#endif // QT_NO_WHATSTHIS
        textLabel1->setText(tr2i18n("Playback method:", 0));
        textLabel2->setText(tr2i18n("Device:", 0));
        txtBufferSize->setText(tr2i18n("256 Bytes", 0));
#ifndef UI_QT_NO_TOOLTIP
        slBufferSize->setToolTip(tr2i18n("Size of the playback buffer in bytes", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        slBufferSize->setWhatsThis(tr2i18n("<b>Buffer size:</b><p>Select a buffer size for the playback. You should set this number as small as possible to reduce the playback latency. The latency is the delay between user interface actions like starting/stopping playback, update of the playback position and the real sound output. If you encounter dropouts you should increase this setting a bit.</p>", 0));
#endif // QT_NO_WHATSTHIS
        textLabel5->setText(tr2i18n("Buffer size:", 0));
        textLabel4->setText(tr2i18n("Channels:", 0));
        textLabel3->setText(tr2i18n("Bits per sample:", 0));
#ifndef UI_QT_NO_TOOLTIP
        cbBitsPerSample->setToolTip(tr2i18n("Playback resolution in bits per sample", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        cbBitsPerSample->setWhatsThis(tr2i18n("<b>Bits per sample:</b><p>Here you can select one of the bit resolutions your playback device supports. This is not necessarily the same resolution as in your audio file, Kwave dithers automatically from its internal resolution (24 bit) to the setting you specify. Higher resolutions mean better audio quality.</p>", 0));
#endif // QT_NO_WHATSTHIS
#ifndef UI_QT_NO_TOOLTIP
        sbChannels->setToolTip(tr2i18n("Number of channels: mono, stereo...", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        sbChannels->setWhatsThis(tr2i18n("<b>Channels:</b><p>Number of channels used for playback. This does not necessarily have to be the same as the number of tracks in your current file. Kwave automatically mixes the tracks of your file to the channels you specify here. </p><p><i>For example:</i> If you have three tracks and set the playback to \"stereo\", the left channel will contain the first track + 50% of the second track, the right channel will also contain 50% of the second track and the third track.</p>", 0));
#endif // QT_NO_WHATSTHIS
        lblChannels->setText(tr2i18n("(stereo)", 0));
        QTreeWidgetItem *___qtreewidgetitem = listDevices->headerItem();
        ___qtreewidgetitem->setText(0, tr2i18n("1", 0));
#ifndef UI_QT_NO_TOOLTIP
        btTest->setToolTip(tr2i18n("Play a short test sound", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        btTest->setWhatsThis(tr2i18n("<b>Test</b><p>Try to play a short sound using the current settings.</p><p><i>(Sorry, not implemented yet!)</i></p>", 0));
#endif // QT_NO_WHATSTHIS
        btTest->setText(tr2i18n("&Test...", 0));
    } // retranslateUi

};

namespace Ui {
    class PlayBackDlg: public Ui_PlayBackDlg {};
} // namespace Ui

QT_END_NAMESPACE

#endif // PLAYBACKDLG_H

