#include <klocalizedstring.h>

/*
Setup of virtual memory and physical memory usage.
*/

/********************************************************************************
** Form generated from reading UI file 'MemDlg.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_MEMDLG_H
#define UI_MEMDLG_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSlider>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>

QT_BEGIN_NAMESPACE

class Ui_MemDlg
{
public:
    QVBoxLayout *verticalLayout;
    QGroupBox *GroupBox9;
    QHBoxLayout *hboxLayout;
    QCheckBox *chkLimitPhysical;
    QSlider *slPhysical;
    QSpinBox *sbPhysical;
    QGroupBox *MemDlg1;
    QGridLayout *gridLayout;
    QCheckBox *chkEnableVirtual;
    QLabel *txtDirectory;
    QLineEdit *edDirectory;
    QPushButton *btSearch;
    QCheckBox *chkLimitVirtual;
    QSlider *slVirtual;
    QSpinBox *sbVirtual;
    QGroupBox *GroupBox9_2;
    QHBoxLayout *horizontalLayout;
    QLabel *label;
    QSlider *slUndo;
    QSpinBox *sbUndo;
    QSpacerItem *spacerItem;
    QHBoxLayout *hboxLayout1;
    QDialogButtonBox *buttonBox;

    void setupUi(QDialog *MemDlg)
    {
        if (MemDlg->objectName().isEmpty())
            MemDlg->setObjectName(QStringLiteral("MemDlg"));
        MemDlg->resize(460, 393);
        MemDlg->setSizeGripEnabled(false);
        verticalLayout = new QVBoxLayout(MemDlg);
        verticalLayout->setSpacing(10);
        verticalLayout->setContentsMargins(10, 10, 10, 10);
        verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
        GroupBox9 = new QGroupBox(MemDlg);
        GroupBox9->setObjectName(QStringLiteral("GroupBox9"));
        hboxLayout = new QHBoxLayout(GroupBox9);
        hboxLayout->setSpacing(10);
        hboxLayout->setContentsMargins(10, 10, 10, 10);
        hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
        chkLimitPhysical = new QCheckBox(GroupBox9);
        chkLimitPhysical->setObjectName(QStringLiteral("chkLimitPhysical"));

        hboxLayout->addWidget(chkLimitPhysical);

        slPhysical = new QSlider(GroupBox9);
        slPhysical->setObjectName(QStringLiteral("slPhysical"));
        slPhysical->setEnabled(false);
        slPhysical->setMinimum(1);
        slPhysical->setMaximum(4096);
        slPhysical->setPageStep(16);
        slPhysical->setValue(1);
        slPhysical->setOrientation(Qt::Horizontal);
        slPhysical->setTickInterval(64);

        hboxLayout->addWidget(slPhysical);

        sbPhysical = new QSpinBox(GroupBox9);
        sbPhysical->setObjectName(QStringLiteral("sbPhysical"));
        sbPhysical->setEnabled(false);
        sbPhysical->setMinimum(1);
        sbPhysical->setMaximum(4096);
        sbPhysical->setValue(4096);

        hboxLayout->addWidget(sbPhysical);


        verticalLayout->addWidget(GroupBox9);

        MemDlg1 = new QGroupBox(MemDlg);
        MemDlg1->setObjectName(QStringLiteral("MemDlg1"));
        gridLayout = new QGridLayout(MemDlg1);
        gridLayout->setSpacing(10);
        gridLayout->setContentsMargins(10, 10, 10, 10);
        gridLayout->setObjectName(QStringLiteral("gridLayout"));
        chkEnableVirtual = new QCheckBox(MemDlg1);
        chkEnableVirtual->setObjectName(QStringLiteral("chkEnableVirtual"));
        chkEnableVirtual->setChecked(true);

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

        txtDirectory = new QLabel(MemDlg1);
        txtDirectory->setObjectName(QStringLiteral("txtDirectory"));
        txtDirectory->setWordWrap(false);

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

        edDirectory = new QLineEdit(MemDlg1);
        edDirectory->setObjectName(QStringLiteral("edDirectory"));

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

        btSearch = new QPushButton(MemDlg1);
        btSearch->setObjectName(QStringLiteral("btSearch"));

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

        chkLimitVirtual = new QCheckBox(MemDlg1);
        chkLimitVirtual->setObjectName(QStringLiteral("chkLimitVirtual"));

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

        slVirtual = new QSlider(MemDlg1);
        slVirtual->setObjectName(QStringLiteral("slVirtual"));
        slVirtual->setEnabled(false);
        slVirtual->setMinimumSize(QSize(200, 20));
        slVirtual->setMaximum(4096);
        slVirtual->setSingleStep(10);
        slVirtual->setPageStep(16);
        slVirtual->setOrientation(Qt::Horizontal);
        slVirtual->setTickInterval(500);

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

        sbVirtual = new QSpinBox(MemDlg1);
        sbVirtual->setObjectName(QStringLiteral("sbVirtual"));
        sbVirtual->setEnabled(false);
        sbVirtual->setMinimum(10);
        sbVirtual->setMaximum(4096);
        sbVirtual->setSingleStep(10);
        sbVirtual->setValue(4096);

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


        verticalLayout->addWidget(MemDlg1);

        GroupBox9_2 = new QGroupBox(MemDlg);
        GroupBox9_2->setObjectName(QStringLiteral("GroupBox9_2"));
        horizontalLayout = new QHBoxLayout(GroupBox9_2);
        horizontalLayout->setSpacing(10);
        horizontalLayout->setContentsMargins(10, 10, 10, 10);
        horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
        label = new QLabel(GroupBox9_2);
        label->setObjectName(QStringLiteral("label"));

        horizontalLayout->addWidget(label);

        slUndo = new QSlider(GroupBox9_2);
        slUndo->setObjectName(QStringLiteral("slUndo"));
        slUndo->setEnabled(true);
        slUndo->setMinimum(16);
        slUndo->setMaximum(2048);
        slUndo->setPageStep(16);
        slUndo->setValue(512);
        slUndo->setOrientation(Qt::Horizontal);
        slUndo->setTickInterval(64);

        horizontalLayout->addWidget(slUndo);

        sbUndo = new QSpinBox(GroupBox9_2);
        sbUndo->setObjectName(QStringLiteral("sbUndo"));
        sbUndo->setEnabled(true);
        sbUndo->setMinimum(16);
        sbUndo->setMaximum(2048);
        sbUndo->setValue(512);

        horizontalLayout->addWidget(sbUndo);


        verticalLayout->addWidget(GroupBox9_2);

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

        verticalLayout->addItem(spacerItem);

        hboxLayout1 = new QHBoxLayout();
        hboxLayout1->setSpacing(10);
        hboxLayout1->setContentsMargins(0, 0, 0, 0);
        hboxLayout1->setObjectName(QStringLiteral("hboxLayout1"));
        buttonBox = new QDialogButtonBox(MemDlg);
        buttonBox->setObjectName(QStringLiteral("buttonBox"));
        buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok);

        hboxLayout1->addWidget(buttonBox);


        verticalLayout->addLayout(hboxLayout1);

        QWidget::setTabOrder(chkLimitPhysical, slPhysical);
        QWidget::setTabOrder(slPhysical, sbPhysical);
        QWidget::setTabOrder(sbPhysical, chkEnableVirtual);
        QWidget::setTabOrder(chkEnableVirtual, chkLimitVirtual);
        QWidget::setTabOrder(chkLimitVirtual, slVirtual);
        QWidget::setTabOrder(slVirtual, sbVirtual);
        QWidget::setTabOrder(sbVirtual, edDirectory);
        QWidget::setTabOrder(edDirectory, btSearch);
        QWidget::setTabOrder(btSearch, slUndo);
        QWidget::setTabOrder(slUndo, sbUndo);

        retranslateUi(MemDlg);
        QObject::connect(slVirtual, SIGNAL(valueChanged(int)), sbVirtual, SLOT(setValue(int)));
        QObject::connect(sbVirtual, SIGNAL(valueChanged(int)), slVirtual, SLOT(setValue(int)));
        QObject::connect(chkLimitPhysical, SIGNAL(toggled(bool)), sbPhysical, SLOT(setEnabled(bool)));
        QObject::connect(chkLimitPhysical, SIGNAL(toggled(bool)), slPhysical, SLOT(setEnabled(bool)));
        QObject::connect(chkLimitVirtual, SIGNAL(toggled(bool)), slVirtual, SLOT(setEnabled(bool)));
        QObject::connect(chkLimitVirtual, SIGNAL(toggled(bool)), sbVirtual, SLOT(setEnabled(bool)));
        QObject::connect(slPhysical, SIGNAL(valueChanged(int)), sbPhysical, SLOT(setValue(int)));
        QObject::connect(sbPhysical, SIGNAL(valueChanged(int)), slPhysical, SLOT(setValue(int)));
        QObject::connect(slUndo, SIGNAL(valueChanged(int)), sbUndo, SLOT(setValue(int)));
        QObject::connect(sbUndo, SIGNAL(valueChanged(int)), slUndo, SLOT(setValue(int)));
        QObject::connect(buttonBox, SIGNAL(rejected()), MemDlg, SLOT(reject()));
        QObject::connect(buttonBox, SIGNAL(accepted()), MemDlg, SLOT(accept()));

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

    void retranslateUi(QDialog *MemDlg)
    {
        MemDlg->setWindowTitle(tr2i18n("Memory Settings", 0));
#ifndef UI_QT_NO_WHATSTHIS
        GroupBox9->setWhatsThis(tr2i18n("<b>Limit the usage of physical memory (RAM).</b><br>\n"
"\n"
"If you do not set a limit, the size of the physically installed memory in your computer will be determined and used as limit. You cannot set a limit higher than the totally installed amount of memory.", 0));
#endif // QT_NO_WHATSTHIS
        GroupBox9->setTitle(tr2i18n("&Physical Memory", 0));
        chkLimitPhysical->setText(tr2i18n("Limit &to", 0));
#ifndef UI_QT_NO_TOOLTIP
        sbPhysical->setToolTip(tr2i18n("Megabytes of physical memory", 0));
#endif // QT_NO_TOOLTIP
        sbPhysical->setSuffix(tr2i18n(" MB", 0));
#ifndef UI_QT_NO_WHATSTHIS
        MemDlg1->setWhatsThis(tr2i18n("<b>Configure the usage of virtual memory (swap files).</b><br>\n"
"\n"
"If you enable the use of virtual memory, you can specify a directory where Kwave creates temporary files that it can use as an extension to the physical memory. This enables you to process files that are much larger than your physical memory.\n"
"<br>\n"
"    Of course you can also set a limit for the total size of the page files.", 0));
#endif // QT_NO_WHATSTHIS
        MemDlg1->setTitle(tr2i18n("&Virtual Memory", 0));
        chkEnableVirtual->setText(tr2i18n("&Enable usage of virtual memory", 0));
        txtDirectory->setText(tr2i18n("Directory:", 0));
#ifndef UI_QT_NO_TOOLTIP
        edDirectory->setToolTip(tr2i18n("Directory for storing swap files", 0));
#endif // QT_NO_TOOLTIP
        edDirectory->setText(tr2i18n("/tmp", 0));
#ifndef UI_QT_NO_TOOLTIP
        btSearch->setToolTip(tr2i18n("Browse for a directory to hold page files", 0));
#endif // QT_NO_TOOLTIP
        btSearch->setText(tr2i18n("&Browse...", 0));
        chkLimitVirtual->setText(tr2i18n("&Limit to", 0));
#ifndef UI_QT_NO_TOOLTIP
        sbVirtual->setToolTip(tr2i18n("Megabytes of virtual memory", 0));
#endif // QT_NO_TOOLTIP
        sbVirtual->setSuffix(tr2i18n(" MB", 0));
#ifndef UI_QT_NO_WHATSTHIS
        GroupBox9_2->setWhatsThis(tr2i18n("<b>Limit the usage of physical memory (RAM).</b><br>\n"
"\n"
"If you do not set a limit, the size of the physically installed memory in your computer will be determined and used as limit. You cannot set a limit higher than the totally installed amount of memory.", 0));
#endif // QT_NO_WHATSTHIS
        GroupBox9_2->setTitle(tr2i18n("Memory for &Undo/Redo", 0));
        label->setText(tr2i18n("Limit to", 0));
#ifndef UI_QT_NO_TOOLTIP
        sbUndo->setToolTip(tr2i18n("Megabytes of memory to be used for undo/redo", 0));
#endif // QT_NO_TOOLTIP
        sbUndo->setSuffix(tr2i18n(" MB", 0));
    } // retranslateUi

};

namespace Ui {
    class MemDlg: public Ui_MemDlg {};
} // namespace Ui

QT_END_NAMESPACE

#endif // MEMDLG_H

