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

/********************************************************************************
** Form generated from reading UI file 'settings.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_SETTINGS_H
#define UI_SETTINGS_H

#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/QSlider>
#include <QtGui/QSpacerItem>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "config/configdialog_p.h"
#include "kcolorbutton.h"
#include "kcombobox.h"

QT_BEGIN_NAMESPACE

class Ui_Settings
{
public:
    QVBoxLayout *verticalLayout_2;
    QGroupBox *groupBox_2;
    QGridLayout *gridLayout;
    QHBoxLayout *horizontalLayout_2;
    QLabel *label_3;
    Palapeli::TriggerComboBox *kcfg_ViewBackground;
    KColorButton *kcfg_ViewBackgroundColor;
    QLabel *label_7;
    KColorButton *kcfg_ViewHighlightColor;
    QHBoxLayout *horizontalLayout_3;
    QLabel *label_5;
    QComboBox *kcfg_SolutionArea;
    QLabel *label_6;
    QHBoxLayout *horizontalLayout_4;
    QLabel *label_8;
    QSpacerItem *horizontalSpacer_2;
    QSlider *kcfg_PieceSpacing;
    QGroupBox *groupBox;
    QVBoxLayout *verticalLayout;
    QCheckBox *kcfg_PieceBevelsEnabled;
    QCheckBox *kcfg_PieceShadowsEnabled;
    QLabel *label_4;
    QGroupBox *groupBox_3;
    QGridLayout *gridLayout_3;
    QLabel *label_1;
    QSlider *kcfg_SnappingPrecision;
    QHBoxLayout *horizontalLayout;
    QLabel *label;
    QSpacerItem *horizontalSpacer;
    QLabel *label_2;
    QSpacerItem *verticalSpacer;

    void setupUi(QWidget *Settings)
    {
        if (Settings->objectName().isEmpty())
            Settings->setObjectName(QString::fromUtf8("Settings"));
        Settings->resize(551, 519);
        verticalLayout_2 = new QVBoxLayout(Settings);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
        groupBox_2 = new QGroupBox(Settings);
        groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
        gridLayout = new QGridLayout(groupBox_2);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        horizontalLayout_2 = new QHBoxLayout();
        horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
        label_3 = new QLabel(groupBox_2);
        label_3->setObjectName(QString::fromUtf8("label_3"));

        horizontalLayout_2->addWidget(label_3);

        kcfg_ViewBackground = new Palapeli::TriggerComboBox(groupBox_2);
        kcfg_ViewBackground->setObjectName(QString::fromUtf8("kcfg_ViewBackground"));
        QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(kcfg_ViewBackground->sizePolicy().hasHeightForWidth());
        kcfg_ViewBackground->setSizePolicy(sizePolicy);

        horizontalLayout_2->addWidget(kcfg_ViewBackground);


        gridLayout->addLayout(horizontalLayout_2, 0, 0, 1, 1);

        kcfg_ViewBackgroundColor = new KColorButton(groupBox_2);
        kcfg_ViewBackgroundColor->setObjectName(QString::fromUtf8("kcfg_ViewBackgroundColor"));
        kcfg_ViewBackgroundColor->setProperty("defaultColor", QVariant(QColor(255, 255, 255)));

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

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

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

        kcfg_ViewHighlightColor = new KColorButton(groupBox_2);
        kcfg_ViewHighlightColor->setObjectName(QString::fromUtf8("kcfg_ViewHighlightColor"));
        kcfg_ViewHighlightColor->setProperty("defaultColor", QVariant(QColor(255, 255, 255)));

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

        horizontalLayout_3 = new QHBoxLayout();
        horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
        label_5 = new QLabel(groupBox_2);
        label_5->setObjectName(QString::fromUtf8("label_5"));

        horizontalLayout_3->addWidget(label_5);

        kcfg_SolutionArea = new QComboBox(groupBox_2);
        kcfg_SolutionArea->setObjectName(QString::fromUtf8("kcfg_SolutionArea"));
        sizePolicy.setHeightForWidth(kcfg_SolutionArea->sizePolicy().hasHeightForWidth());
        kcfg_SolutionArea->setSizePolicy(sizePolicy);

        horizontalLayout_3->addWidget(kcfg_SolutionArea);


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

        label_6 = new QLabel(groupBox_2);
        label_6->setObjectName(QString::fromUtf8("label_6"));
        label_6->setWordWrap(true);

        gridLayout->addWidget(label_6, 3, 0, 1, 2);

        horizontalLayout_4 = new QHBoxLayout();
        horizontalLayout_4->setObjectName(QString::fromUtf8("horizontalLayout_4"));
        label_8 = new QLabel(groupBox_2);
        label_8->setObjectName(QString::fromUtf8("label_8"));

        horizontalLayout_4->addWidget(label_8);

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

        horizontalLayout_4->addItem(horizontalSpacer_2);

        kcfg_PieceSpacing = new QSlider(groupBox_2);
        kcfg_PieceSpacing->setObjectName(QString::fromUtf8("kcfg_PieceSpacing"));
        kcfg_PieceSpacing->setMinimum(0);
        kcfg_PieceSpacing->setMaximum(10);
        kcfg_PieceSpacing->setPageStep(1);
        kcfg_PieceSpacing->setValue(6);
        kcfg_PieceSpacing->setOrientation(Qt::Horizontal);
        kcfg_PieceSpacing->setTickPosition(QSlider::TicksBelow);
        kcfg_PieceSpacing->setTickInterval(2);

        horizontalLayout_4->addWidget(kcfg_PieceSpacing);


        gridLayout->addLayout(horizontalLayout_4, 4, 0, 1, 2);


        verticalLayout_2->addWidget(groupBox_2);

        groupBox = new QGroupBox(Settings);
        groupBox->setObjectName(QString::fromUtf8("groupBox"));
        verticalLayout = new QVBoxLayout(groupBox);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        kcfg_PieceBevelsEnabled = new QCheckBox(groupBox);
        kcfg_PieceBevelsEnabled->setObjectName(QString::fromUtf8("kcfg_PieceBevelsEnabled"));
        kcfg_PieceBevelsEnabled->setChecked(true);

        verticalLayout->addWidget(kcfg_PieceBevelsEnabled);

        kcfg_PieceShadowsEnabled = new QCheckBox(groupBox);
        kcfg_PieceShadowsEnabled->setObjectName(QString::fromUtf8("kcfg_PieceShadowsEnabled"));
        kcfg_PieceShadowsEnabled->setChecked(true);

        verticalLayout->addWidget(kcfg_PieceShadowsEnabled);

        label_4 = new QLabel(groupBox);
        label_4->setObjectName(QString::fromUtf8("label_4"));
        label_4->setWordWrap(true);

        verticalLayout->addWidget(label_4);


        verticalLayout_2->addWidget(groupBox);

        groupBox_3 = new QGroupBox(Settings);
        groupBox_3->setObjectName(QString::fromUtf8("groupBox_3"));
        gridLayout_3 = new QGridLayout(groupBox_3);
        gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
        label_1 = new QLabel(groupBox_3);
        label_1->setObjectName(QString::fromUtf8("label_1"));

        gridLayout_3->addWidget(label_1, 0, 0, 1, 1);

        kcfg_SnappingPrecision = new QSlider(groupBox_3);
        kcfg_SnappingPrecision->setObjectName(QString::fromUtf8("kcfg_SnappingPrecision"));
        kcfg_SnappingPrecision->setMinimum(10);
        kcfg_SnappingPrecision->setMaximum(30);
        kcfg_SnappingPrecision->setPageStep(5);
        kcfg_SnappingPrecision->setValue(20);
        kcfg_SnappingPrecision->setOrientation(Qt::Horizontal);
        kcfg_SnappingPrecision->setTickPosition(QSlider::TicksBelow);
        kcfg_SnappingPrecision->setTickInterval(0);

        gridLayout_3->addWidget(kcfg_SnappingPrecision, 0, 1, 1, 1);

        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        label = new QLabel(groupBox_3);
        label->setObjectName(QString::fromUtf8("label"));
        QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Preferred);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
        label->setSizePolicy(sizePolicy1);

        horizontalLayout->addWidget(label);

        horizontalSpacer = new QSpacerItem(40, 0, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);

        horizontalLayout->addItem(horizontalSpacer);

        label_2 = new QLabel(groupBox_3);
        label_2->setObjectName(QString::fromUtf8("label_2"));
        sizePolicy1.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
        label_2->setSizePolicy(sizePolicy1);

        horizontalLayout->addWidget(label_2);


        gridLayout_3->addLayout(horizontalLayout, 1, 1, 1, 1);


        verticalLayout_2->addWidget(groupBox_3);

        verticalSpacer = new QSpacerItem(20, 34, QSizePolicy::Minimum, QSizePolicy::Expanding);

        verticalLayout_2->addItem(verticalSpacer);


        retranslateUi(Settings);
        QObject::connect(kcfg_ViewBackground, SIGNAL(itemTypeChanged(bool)), kcfg_ViewBackgroundColor, SLOT(setEnabled(bool)));

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

    void retranslateUi(QWidget *Settings)
    {
        groupBox_2->setTitle(tr2i18n("Puzzle table", "@title:group"));
        label_3->setText(tr2i18n("Background:", "@label:chooser for different types of background textures"));
        label_7->setText(tr2i18n("Color for highlighting selected pieces:", 0));
        label_5->setText(tr2i18n("Space for solution:", 0));
        label_6->setText(tr2i18n("No space is provided with puzzles of less than 20 pieces. Changes will take effect when a puzzle is created or re-started.", 0));
        label_8->setText(tr2i18n("Spacing of pieces in puzzle grids (1.0-1.5):", 0));
        groupBox->setTitle(tr2i18n("Piece appearance", 0));
        kcfg_PieceBevelsEnabled->setText(tr2i18n("Draw bevels to create a 3-dimensional appearance", 0));
        kcfg_PieceShadowsEnabled->setText(tr2i18n("Draw shadows below pieces", 0));
        label_4->setText(tr2i18n("These options can be disabled when Palapeli is running very slowly. Changes will take effect only when a new puzzle is started.", 0));
        groupBox_3->setTitle(tr2i18n("Piece behavior", "@title:group"));
        label_1->setText(tr2i18n("Snapping precision:", "@label:slider"));
        label->setText(tr2i18n("Very precise (harder)", "@item:inrange description for the \"snapping precision\" setting"));
        label_2->setText(tr2i18n("Unprecise (easier)", "@item:inrange description for the \"snapping precision\" setting"));
        Q_UNUSED(Settings);
    } // retranslateUi

};

namespace Ui {
    class Settings: public Ui_Settings {};
} // namespace Ui

QT_END_NAMESPACE

#endif // SETTINGS_H

