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

/********************************************************************************
** Form generated from reading UI file 'kcm_keyboard.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_KCM_KEYBOARD_H
#define UI_KCM_KEYBOARD_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
#include <QtGui/QFormLayout>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QRadioButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QSpinBox>
#include <QtGui/QTabWidget>
#include <QtGui/QTableView>
#include <QtGui/QToolButton>
#include <QtGui/QTreeView>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "kbuttongroup.h"
#include "kkeysequencewidget.h"

QT_BEGIN_NAMESPACE

class Ui_TabWidget
{
public:
    QWidget *tabHardware;
    QFormLayout *formLayout;
    QLabel *label_4;
    QComboBox *keyboardModelComboBox;
    QWidget *lowerHardwareWidget;
    QVBoxLayout *verticalLayout_2;
    QWidget *tabLayouts;
    QGridLayout *gridLayout_2;
    QHBoxLayout *horizontalLayout_3;
    KButtonGroup *kbuttongroup;
    QGridLayout *gridLayout_3;
    QCheckBox *showIndicatorChk;
    QCheckBox *showSingleChk;
    QRadioButton *showFlagRadioBtn;
    QRadioButton *showLabelRadioBtn;
    QRadioButton *showLabelOnFlagRadioBtn;
    KButtonGroup *switchingPolicyButtonGroup;
    QGridLayout *gridLayout;
    QRadioButton *switchByGlobalRadioBtn;
    QRadioButton *switchByDesktopRadioBtn;
    QRadioButton *switchByApplicationRadioBtn;
    QRadioButton *switchByWindowRadioBtn;
    QGroupBox *shortcutsGroupBox;
    QGridLayout *_2;
    QLabel *label;
    QPushButton *xkbGrpShortcutBtn;
    QToolButton *xkbGrpClearBtn;
    QLabel *label_3;
    QPushButton *xkb3rdLevelShortcutBtn;
    QToolButton *xkb3rdLevelClearBtn;
    QLabel *label_2;
    KKeySequenceWidget *kdeKeySequence;
    QGroupBox *layoutsGroupBox;
    QGridLayout *gridLayout_5;
    QHBoxLayout *horizontalLayout;
    QPushButton *addLayoutBtn;
    QPushButton *removeLayoutBtn;
    QPushButton *moveUpBtn;
    QPushButton *moveDownBtn;
    QPushButton *previewbutton;
    QSpacerItem *horizontalSpacer;
    QTableView *layoutsTableView;
    QCheckBox *layoutLoopingCheckBox;
    QSpacerItem *horizontalSpacer_2;
    QGroupBox *layoutLoopingGroupBox;
    QGridLayout *gridLayout_4;
    QLabel *label_5;
    QSpinBox *layoutLoopCountSpinBox;
    QSpacerItem *horizontalSpacer_3;
    QWidget *tabAdvanced;
    QGridLayout *gridLayout1;
    QCheckBox *configureKeyboardOptionsChk;
    QTreeView *xkbOptionsTreeView;

    void setupUi(QTabWidget *TabWidget)
    {
        if (TabWidget->objectName().isEmpty())
            TabWidget->setObjectName(QString::fromUtf8("TabWidget"));
        TabWidget->resize(677, 485);
        tabHardware = new QWidget();
        tabHardware->setObjectName(QString::fromUtf8("tabHardware"));
        formLayout = new QFormLayout(tabHardware);
        formLayout->setObjectName(QString::fromUtf8("formLayout"));
        label_4 = new QLabel(tabHardware);
        label_4->setObjectName(QString::fromUtf8("label_4"));
        QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
        sizePolicy.setHorizontalStretch(1);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(label_4->sizePolicy().hasHeightForWidth());
        label_4->setSizePolicy(sizePolicy);
        label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        formLayout->setWidget(0, QFormLayout::LabelRole, label_4);

        keyboardModelComboBox = new QComboBox(tabHardware);
        keyboardModelComboBox->setObjectName(QString::fromUtf8("keyboardModelComboBox"));
        QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
        sizePolicy1.setHorizontalStretch(2);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(keyboardModelComboBox->sizePolicy().hasHeightForWidth());
        keyboardModelComboBox->setSizePolicy(sizePolicy1);
        keyboardModelComboBox->setMaxVisibleItems(15);
        keyboardModelComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContentsOnFirstShow);

        formLayout->setWidget(0, QFormLayout::FieldRole, keyboardModelComboBox);

        lowerHardwareWidget = new QWidget(tabHardware);
        lowerHardwareWidget->setObjectName(QString::fromUtf8("lowerHardwareWidget"));
        QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Expanding);
        sizePolicy2.setHorizontalStretch(1);
        sizePolicy2.setVerticalStretch(1);
        sizePolicy2.setHeightForWidth(lowerHardwareWidget->sizePolicy().hasHeightForWidth());
        lowerHardwareWidget->setSizePolicy(sizePolicy2);
        lowerHardwareWidget->setMinimumSize(QSize(0, 100));
        lowerHardwareWidget->setBaseSize(QSize(0, 0));
        verticalLayout_2 = new QVBoxLayout(lowerHardwareWidget);
        verticalLayout_2->setContentsMargins(0, 0, 0, 0);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));

        formLayout->setWidget(1, QFormLayout::SpanningRole, lowerHardwareWidget);

        TabWidget->addTab(tabHardware, QString());
        tabLayouts = new QWidget();
        tabLayouts->setObjectName(QString::fromUtf8("tabLayouts"));
        gridLayout_2 = new QGridLayout(tabLayouts);
        gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
        horizontalLayout_3 = new QHBoxLayout();
        horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
        kbuttongroup = new KButtonGroup(tabLayouts);
        kbuttongroup->setObjectName(QString::fromUtf8("kbuttongroup"));
        gridLayout_3 = new QGridLayout(kbuttongroup);
        gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
        showIndicatorChk = new QCheckBox(kbuttongroup);
        showIndicatorChk->setObjectName(QString::fromUtf8("showIndicatorChk"));

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

        showSingleChk = new QCheckBox(kbuttongroup);
        showSingleChk->setObjectName(QString::fromUtf8("showSingleChk"));

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

        showFlagRadioBtn = new QRadioButton(kbuttongroup);
        showFlagRadioBtn->setObjectName(QString::fromUtf8("showFlagRadioBtn"));

        gridLayout_3->addWidget(showFlagRadioBtn, 2, 0, 1, 1);

        showLabelRadioBtn = new QRadioButton(kbuttongroup);
        showLabelRadioBtn->setObjectName(QString::fromUtf8("showLabelRadioBtn"));

        gridLayout_3->addWidget(showLabelRadioBtn, 3, 0, 1, 1);

        showLabelOnFlagRadioBtn = new QRadioButton(kbuttongroup);
        showLabelOnFlagRadioBtn->setObjectName(QString::fromUtf8("showLabelOnFlagRadioBtn"));

        gridLayout_3->addWidget(showLabelOnFlagRadioBtn, 4, 0, 1, 1);


        horizontalLayout_3->addWidget(kbuttongroup);

        switchingPolicyButtonGroup = new KButtonGroup(tabLayouts);
        switchingPolicyButtonGroup->setObjectName(QString::fromUtf8("switchingPolicyButtonGroup"));
        gridLayout = new QGridLayout(switchingPolicyButtonGroup);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        switchByGlobalRadioBtn = new QRadioButton(switchingPolicyButtonGroup);
        switchByGlobalRadioBtn->setObjectName(QString::fromUtf8("switchByGlobalRadioBtn"));
        switchByGlobalRadioBtn->setChecked(true);

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

        switchByDesktopRadioBtn = new QRadioButton(switchingPolicyButtonGroup);
        switchByDesktopRadioBtn->setObjectName(QString::fromUtf8("switchByDesktopRadioBtn"));

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

        switchByApplicationRadioBtn = new QRadioButton(switchingPolicyButtonGroup);
        switchByApplicationRadioBtn->setObjectName(QString::fromUtf8("switchByApplicationRadioBtn"));

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

        switchByWindowRadioBtn = new QRadioButton(switchingPolicyButtonGroup);
        switchByWindowRadioBtn->setObjectName(QString::fromUtf8("switchByWindowRadioBtn"));

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


        horizontalLayout_3->addWidget(switchingPolicyButtonGroup);

        shortcutsGroupBox = new QGroupBox(tabLayouts);
        shortcutsGroupBox->setObjectName(QString::fromUtf8("shortcutsGroupBox"));
        _2 = new QGridLayout(shortcutsGroupBox);
        _2->setObjectName(QString::fromUtf8("_2"));
        label = new QLabel(shortcutsGroupBox);
        label->setObjectName(QString::fromUtf8("label"));
        label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        _2->addWidget(label, 0, 0, 1, 1);

        xkbGrpShortcutBtn = new QPushButton(shortcutsGroupBox);
        xkbGrpShortcutBtn->setObjectName(QString::fromUtf8("xkbGrpShortcutBtn"));

        _2->addWidget(xkbGrpShortcutBtn, 0, 1, 1, 1);

        xkbGrpClearBtn = new QToolButton(shortcutsGroupBox);
        xkbGrpClearBtn->setObjectName(QString::fromUtf8("xkbGrpClearBtn"));

        _2->addWidget(xkbGrpClearBtn, 0, 2, 1, 1);

        label_3 = new QLabel(shortcutsGroupBox);
        label_3->setObjectName(QString::fromUtf8("label_3"));
        label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        _2->addWidget(label_3, 1, 0, 1, 1);

        xkb3rdLevelShortcutBtn = new QPushButton(shortcutsGroupBox);
        xkb3rdLevelShortcutBtn->setObjectName(QString::fromUtf8("xkb3rdLevelShortcutBtn"));

        _2->addWidget(xkb3rdLevelShortcutBtn, 1, 1, 1, 1);

        xkb3rdLevelClearBtn = new QToolButton(shortcutsGroupBox);
        xkb3rdLevelClearBtn->setObjectName(QString::fromUtf8("xkb3rdLevelClearBtn"));

        _2->addWidget(xkb3rdLevelClearBtn, 1, 2, 1, 1);

        label_2 = new QLabel(shortcutsGroupBox);
        label_2->setObjectName(QString::fromUtf8("label_2"));
        label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        _2->addWidget(label_2, 2, 0, 1, 1);

        kdeKeySequence = new KKeySequenceWidget(shortcutsGroupBox);
        kdeKeySequence->setObjectName(QString::fromUtf8("kdeKeySequence"));
        kdeKeySequence->setMultiKeyShortcutsAllowed(false);

        _2->addWidget(kdeKeySequence, 2, 1, 1, 2);


        horizontalLayout_3->addWidget(shortcutsGroupBox);


        gridLayout_2->addLayout(horizontalLayout_3, 0, 0, 1, 1);

        layoutsGroupBox = new QGroupBox(tabLayouts);
        layoutsGroupBox->setObjectName(QString::fromUtf8("layoutsGroupBox"));
        layoutsGroupBox->setEnabled(true);
        layoutsGroupBox->setFlat(false);
        layoutsGroupBox->setCheckable(true);
        gridLayout_5 = new QGridLayout(layoutsGroupBox);
        gridLayout_5->setObjectName(QString::fromUtf8("gridLayout_5"));
        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        addLayoutBtn = new QPushButton(layoutsGroupBox);
        addLayoutBtn->setObjectName(QString::fromUtf8("addLayoutBtn"));

        horizontalLayout->addWidget(addLayoutBtn);

        removeLayoutBtn = new QPushButton(layoutsGroupBox);
        removeLayoutBtn->setObjectName(QString::fromUtf8("removeLayoutBtn"));
        removeLayoutBtn->setEnabled(false);

        horizontalLayout->addWidget(removeLayoutBtn);

        moveUpBtn = new QPushButton(layoutsGroupBox);
        moveUpBtn->setObjectName(QString::fromUtf8("moveUpBtn"));
        moveUpBtn->setEnabled(false);

        horizontalLayout->addWidget(moveUpBtn);

        moveDownBtn = new QPushButton(layoutsGroupBox);
        moveDownBtn->setObjectName(QString::fromUtf8("moveDownBtn"));
        moveDownBtn->setEnabled(false);

        horizontalLayout->addWidget(moveDownBtn);

        previewbutton = new QPushButton(layoutsGroupBox);
        previewbutton->setObjectName(QString::fromUtf8("previewbutton"));
        previewbutton->setEnabled(false);

        horizontalLayout->addWidget(previewbutton);

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

        horizontalLayout->addItem(horizontalSpacer);


        gridLayout_5->addLayout(horizontalLayout, 0, 0, 1, 2);

        layoutsTableView = new QTableView(layoutsGroupBox);
        layoutsTableView->setObjectName(QString::fromUtf8("layoutsTableView"));
        layoutsTableView->setSelectionBehavior(QAbstractItemView::SelectRows);
        layoutsTableView->setShowGrid(false);
        layoutsTableView->verticalHeader()->setVisible(false);

        gridLayout_5->addWidget(layoutsTableView, 1, 0, 1, 2);

        layoutLoopingCheckBox = new QCheckBox(layoutsGroupBox);
        layoutLoopingCheckBox->setObjectName(QString::fromUtf8("layoutLoopingCheckBox"));

        gridLayout_5->addWidget(layoutLoopingCheckBox, 2, 0, 1, 2);

        horizontalSpacer_2 = new QSpacerItem(15, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);

        gridLayout_5->addItem(horizontalSpacer_2, 3, 0, 1, 1);

        layoutLoopingGroupBox = new QGroupBox(layoutsGroupBox);
        layoutLoopingGroupBox->setObjectName(QString::fromUtf8("layoutLoopingGroupBox"));
        layoutLoopingGroupBox->setFlat(true);
        gridLayout_4 = new QGridLayout(layoutLoopingGroupBox);
        gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
        label_5 = new QLabel(layoutLoopingGroupBox);
        label_5->setObjectName(QString::fromUtf8("label_5"));

        gridLayout_4->addWidget(label_5, 0, 0, 1, 1);

        layoutLoopCountSpinBox = new QSpinBox(layoutLoopingGroupBox);
        layoutLoopCountSpinBox->setObjectName(QString::fromUtf8("layoutLoopCountSpinBox"));

        gridLayout_4->addWidget(layoutLoopCountSpinBox, 0, 1, 1, 1);

        horizontalSpacer_3 = new QSpacerItem(431, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

        gridLayout_4->addItem(horizontalSpacer_3, 0, 2, 1, 1);


        gridLayout_5->addWidget(layoutLoopingGroupBox, 3, 1, 1, 1);


        gridLayout_2->addWidget(layoutsGroupBox, 1, 0, 1, 1);

        TabWidget->addTab(tabLayouts, QString());
        tabAdvanced = new QWidget();
        tabAdvanced->setObjectName(QString::fromUtf8("tabAdvanced"));
        gridLayout1 = new QGridLayout(tabAdvanced);
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        configureKeyboardOptionsChk = new QCheckBox(tabAdvanced);
        configureKeyboardOptionsChk->setObjectName(QString::fromUtf8("configureKeyboardOptionsChk"));

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

        xkbOptionsTreeView = new QTreeView(tabAdvanced);
        xkbOptionsTreeView->setObjectName(QString::fromUtf8("xkbOptionsTreeView"));
        xkbOptionsTreeView->setEnabled(false);
        xkbOptionsTreeView->setSelectionMode(QAbstractItemView::NoSelection);
        xkbOptionsTreeView->setHeaderHidden(true);

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

        TabWidget->addTab(tabAdvanced, QString());
#ifndef UI_QT_NO_SHORTCUT
        label_4->setBuddy(keyboardModelComboBox);
        label->setBuddy(xkbGrpShortcutBtn);
        label_3->setBuddy(xkb3rdLevelShortcutBtn);
        label_2->setBuddy(kdeKeySequence);
#endif // QT_NO_SHORTCUT

        retranslateUi(TabWidget);

        TabWidget->setCurrentIndex(1);


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

    void retranslateUi(QTabWidget *TabWidget)
    {
        label_4->setText(tr2i18n("Keyboard &model:", 0));
#ifndef UI_QT_NO_WHATSTHIS
        keyboardModelComboBox->setWhatsThis(tr2i18n("Here you can choose a keyboard model. This setting is independent of your keyboard layout and refers to the \"hardware\" model, i.e. the way your keyboard is manufactured. Modern keyboards that come with your computer usually have two extra keys and are referred to as \"104-key\" models, which is probably what you want if you do not know what kind of keyboard you have.\n"
"", 0));
#endif // QT_NO_WHATSTHIS
        TabWidget->setTabText(TabWidget->indexOf(tabHardware), tr2i18n("Hardware", 0));
        kbuttongroup->setTitle(tr2i18n("Layout Indicator", 0));
        showIndicatorChk->setText(tr2i18n("Show layout indicator", 0));
        showSingleChk->setText(tr2i18n("Show for single layout", 0));
        showFlagRadioBtn->setText(tr2i18n("Show flag", 0));
        showLabelRadioBtn->setText(tr2i18n("Show label", 0));
        showLabelOnFlagRadioBtn->setText(tr2i18n("Show label on flag", 0));
#ifndef UI_QT_NO_WHATSTHIS
        switchingPolicyButtonGroup->setWhatsThis(tr2i18n("If you select \"Application\" or \"Window\" switching policy, changing the keyboard layout will only affect the current application or window.", 0));
#endif // QT_NO_WHATSTHIS
        switchingPolicyButtonGroup->setTitle(tr2i18n("Switching Policy", 0));
        switchByGlobalRadioBtn->setText(tr2i18n("&Global", 0));
        switchByDesktopRadioBtn->setText(tr2i18n("&Desktop", 0));
        switchByApplicationRadioBtn->setText(tr2i18n("&Application", 0));
        switchByWindowRadioBtn->setText(tr2i18n("&Window", 0));
        shortcutsGroupBox->setTitle(tr2i18n("Shortcuts for Switching Layout", 0));
        label->setText(tr2i18n("Main shortcuts:", 0));
#ifndef UI_QT_NO_WHATSTHIS
        xkbGrpShortcutBtn->setWhatsThis(tr2i18n("This is a shortcut for switching layouts which is handled by X.org. It allows modifier-only shortcuts.", 0));
#endif // QT_NO_WHATSTHIS
        xkbGrpShortcutBtn->setText(tr2i18n("None", "no shortcut defined"));
        xkbGrpClearBtn->setText(tr2i18n("...", 0));
        label_3->setText(tr2i18n("3rd level shortcuts:", 0));
#ifndef UI_QT_NO_WHATSTHIS
        xkb3rdLevelShortcutBtn->setWhatsThis(tr2i18n("This is a shortcut for switching to a third level of the active layout (if it has one) which is handled by X.org. It allows modifier-only shortcuts.", 0));
#endif // QT_NO_WHATSTHIS
        xkb3rdLevelShortcutBtn->setText(tr2i18n("None", "no shortcut defined"));
        xkb3rdLevelClearBtn->setText(tr2i18n("...", 0));
        label_2->setText(tr2i18n("Alternative shortcut:", 0));
#ifndef UI_QT_NO_WHATSTHIS
        kdeKeySequence->setWhatsThis(tr2i18n("This is a shortcut for switching layouts which is handled by KDE. It does not support modifier-only shortcuts and also may not work in some situations (e.g. if popup is active or from screensaver).", 0));
#endif // QT_NO_WHATSTHIS
        layoutsGroupBox->setTitle(tr2i18n("Configure layouts", 0));
        addLayoutBtn->setText(tr2i18n("Add", 0));
        removeLayoutBtn->setText(tr2i18n("Remove", 0));
        moveUpBtn->setText(tr2i18n("Move Up", 0));
        moveDownBtn->setText(tr2i18n("Move Down", 0));
        previewbutton->setText(tr2i18n("Preview", 0));
        layoutLoopingCheckBox->setText(tr2i18n("Spare layouts", 0));
        layoutLoopingGroupBox->setTitle(QString());
        label_5->setText(tr2i18n("Main layout count:", 0));
        TabWidget->setTabText(TabWidget->indexOf(tabLayouts), tr2i18n("Layouts", 0));
        configureKeyboardOptionsChk->setText(tr2i18n("&Configure keyboard options", 0));
        TabWidget->setTabText(TabWidget->indexOf(tabAdvanced), tr2i18n("Advanced", 0));
        Q_UNUSED(TabWidget);
    } // retranslateUi

};

namespace Ui {
    class TabWidget: public Ui_TabWidget {};
} // namespace Ui

QT_END_NAMESPACE

#endif // KCM_KEYBOARD_H

