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

/********************************************************************************
** Form generated from reading UI file 'keyboardlayouteditor.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_KEYBOARDLAYOUTEDITOR_H
#define UI_KEYBOARDLAYOUTEDITOR_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QFrame>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QSlider>
#include <QtGui/QSpacerItem>
#include <QtGui/QToolButton>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include <kmessagewidget.h>
#include "editor/keyboardlayouteditorview.h"
#include "editor/keyboardlayoutpropertieswidget.h"

QT_BEGIN_NAMESPACE

class Ui_KeyboardLayoutEditor
{
public:
    QVBoxLayout *m_verticalLayout;
    KMessageWidget *m_messageWidget;
    QHBoxLayout *horizontalLayout_2;
    QToolButton *m_newKeyToolButton;
    QToolButton *m_newSpecialKeyToolButton;
    QToolButton *m_deleteKeyToolButton;
    QFrame *line;
    QToolButton *m_zoomOutToolButton;
    QSlider *m_zoomSlider;
    QLabel *m_zoomFactorLabel;
    QToolButton *m_zoomInToolButton;
    QSpacerItem *m_horizontalSpacer;
    KeyboardLayoutEditorView *m_view;
    KeyboardLayoutPropertiesWidget *m_propertiesWidget;

    void setupUi(QWidget *KeyboardLayoutEditor)
    {
        if (KeyboardLayoutEditor->objectName().isEmpty())
            KeyboardLayoutEditor->setObjectName(QString::fromUtf8("KeyboardLayoutEditor"));
        KeyboardLayoutEditor->resize(614, 480);
        m_verticalLayout = new QVBoxLayout(KeyboardLayoutEditor);
        m_verticalLayout->setSpacing(2);
        m_verticalLayout->setObjectName(QString::fromUtf8("m_verticalLayout"));
        m_verticalLayout->setContentsMargins(-1, 0, 0, 0);
        m_messageWidget = new KMessageWidget(KeyboardLayoutEditor);
        m_messageWidget->setObjectName(QString::fromUtf8("m_messageWidget"));

        m_verticalLayout->addWidget(m_messageWidget);

        horizontalLayout_2 = new QHBoxLayout();
        horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
        m_newKeyToolButton = new QToolButton(KeyboardLayoutEditor);
        m_newKeyToolButton->setObjectName(QString::fromUtf8("m_newKeyToolButton"));
        QIcon icon;
        QString iconThemeName = QString::fromUtf8("list-add");
        if (QIcon::hasThemeIcon(iconThemeName)) {
            icon = QIcon::fromTheme(iconThemeName);
        } else {
            icon.addFile(QString::fromUtf8(""), QSize(), QIcon::Normal, QIcon::Off);
        }
        m_newKeyToolButton->setIcon(icon);
        m_newKeyToolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
        m_newKeyToolButton->setAutoRaise(true);

        horizontalLayout_2->addWidget(m_newKeyToolButton);

        m_newSpecialKeyToolButton = new QToolButton(KeyboardLayoutEditor);
        m_newSpecialKeyToolButton->setObjectName(QString::fromUtf8("m_newSpecialKeyToolButton"));
        m_newSpecialKeyToolButton->setIcon(icon);
        m_newSpecialKeyToolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
        m_newSpecialKeyToolButton->setAutoRaise(true);

        horizontalLayout_2->addWidget(m_newSpecialKeyToolButton);

        m_deleteKeyToolButton = new QToolButton(KeyboardLayoutEditor);
        m_deleteKeyToolButton->setObjectName(QString::fromUtf8("m_deleteKeyToolButton"));
        m_deleteKeyToolButton->setEnabled(false);
        QIcon icon1;
        iconThemeName = QString::fromUtf8("edit-delete");
        if (QIcon::hasThemeIcon(iconThemeName)) {
            icon1 = QIcon::fromTheme(iconThemeName);
        } else {
            icon1.addFile(QString::fromUtf8(""), QSize(), QIcon::Normal, QIcon::Off);
        }
        m_deleteKeyToolButton->setIcon(icon1);
        m_deleteKeyToolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
        m_deleteKeyToolButton->setAutoRaise(true);

        horizontalLayout_2->addWidget(m_deleteKeyToolButton);

        line = new QFrame(KeyboardLayoutEditor);
        line->setObjectName(QString::fromUtf8("line"));
        line->setFrameShape(QFrame::VLine);
        line->setFrameShadow(QFrame::Sunken);

        horizontalLayout_2->addWidget(line);

        m_zoomOutToolButton = new QToolButton(KeyboardLayoutEditor);
        m_zoomOutToolButton->setObjectName(QString::fromUtf8("m_zoomOutToolButton"));
        QIcon icon2;
        iconThemeName = QString::fromUtf8("zoom-out");
        if (QIcon::hasThemeIcon(iconThemeName)) {
            icon2 = QIcon::fromTheme(iconThemeName);
        } else {
            icon2.addFile(QString::fromUtf8(""), QSize(), QIcon::Normal, QIcon::Off);
        }
        m_zoomOutToolButton->setIcon(icon2);
        m_zoomOutToolButton->setAutoRaise(true);

        horizontalLayout_2->addWidget(m_zoomOutToolButton);

        m_zoomSlider = new QSlider(KeyboardLayoutEditor);
        m_zoomSlider->setObjectName(QString::fromUtf8("m_zoomSlider"));
        QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(m_zoomSlider->sizePolicy().hasHeightForWidth());
        m_zoomSlider->setSizePolicy(sizePolicy);
        m_zoomSlider->setMinimumSize(QSize(100, 0));
        m_zoomSlider->setMinimum(-4);
        m_zoomSlider->setMaximum(4);
        m_zoomSlider->setPageStep(1);
        m_zoomSlider->setOrientation(Qt::Horizontal);

        horizontalLayout_2->addWidget(m_zoomSlider);

        m_zoomFactorLabel = new QLabel(KeyboardLayoutEditor);
        m_zoomFactorLabel->setObjectName(QString::fromUtf8("m_zoomFactorLabel"));

        horizontalLayout_2->addWidget(m_zoomFactorLabel);

        m_zoomInToolButton = new QToolButton(KeyboardLayoutEditor);
        m_zoomInToolButton->setObjectName(QString::fromUtf8("m_zoomInToolButton"));
        QIcon icon3;
        iconThemeName = QString::fromUtf8("zoom-in");
        if (QIcon::hasThemeIcon(iconThemeName)) {
            icon3 = QIcon::fromTheme(iconThemeName);
        } else {
            icon3.addFile(QString::fromUtf8(""), QSize(), QIcon::Normal, QIcon::Off);
        }
        m_zoomInToolButton->setIcon(icon3);
        m_zoomInToolButton->setAutoRaise(true);

        horizontalLayout_2->addWidget(m_zoomInToolButton);

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

        horizontalLayout_2->addItem(m_horizontalSpacer);


        m_verticalLayout->addLayout(horizontalLayout_2);

        m_view = new KeyboardLayoutEditorView(KeyboardLayoutEditor);
        m_view->setObjectName(QString::fromUtf8("m_view"));
        QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Expanding);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(m_view->sizePolicy().hasHeightForWidth());
        m_view->setSizePolicy(sizePolicy1);
        m_view->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
        m_view->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
        QBrush brush(QColor(88, 88, 88, 255));
        brush.setStyle(Qt::SolidPattern);
        m_view->setBackgroundBrush(brush);

        m_verticalLayout->addWidget(m_view);

        m_propertiesWidget = new KeyboardLayoutPropertiesWidget(KeyboardLayoutEditor);
        m_propertiesWidget->setObjectName(QString::fromUtf8("m_propertiesWidget"));
        QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Fixed);
        sizePolicy2.setHorizontalStretch(0);
        sizePolicy2.setVerticalStretch(0);
        sizePolicy2.setHeightForWidth(m_propertiesWidget->sizePolicy().hasHeightForWidth());
        m_propertiesWidget->setSizePolicy(sizePolicy2);

        m_verticalLayout->addWidget(m_propertiesWidget);

        QWidget::setTabOrder(m_view, m_newKeyToolButton);
        QWidget::setTabOrder(m_newKeyToolButton, m_newSpecialKeyToolButton);
        QWidget::setTabOrder(m_newSpecialKeyToolButton, m_deleteKeyToolButton);
        QWidget::setTabOrder(m_deleteKeyToolButton, m_zoomOutToolButton);
        QWidget::setTabOrder(m_zoomOutToolButton, m_zoomSlider);
        QWidget::setTabOrder(m_zoomSlider, m_zoomInToolButton);

        retranslateUi(KeyboardLayoutEditor);
        QObject::connect(m_zoomOutToolButton, SIGNAL(clicked()), m_zoomSlider, SLOT(subtractStep()));
        QObject::connect(m_zoomInToolButton, SIGNAL(clicked()), m_zoomSlider, SLOT(addStep()));

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

    void retranslateUi(QWidget *KeyboardLayoutEditor)
    {
#ifndef UI_QT_NO_TOOLTIP
        m_newKeyToolButton->setToolTip(tr2i18n("Create new normal key", 0));
#endif // QT_NO_TOOLTIP
        m_newKeyToolButton->setText(tr2i18n("Normal Key", 0));
#ifndef UI_QT_NO_TOOLTIP
        m_newSpecialKeyToolButton->setToolTip(tr2i18n("Create new special key", 0));
#endif // QT_NO_TOOLTIP
        m_newSpecialKeyToolButton->setText(tr2i18n("Special Key", 0));
#ifndef UI_QT_NO_TOOLTIP
        m_deleteKeyToolButton->setToolTip(tr2i18n("Delete selected key", 0));
#endif // QT_NO_TOOLTIP
        m_deleteKeyToolButton->setText(tr2i18n("Delete", 0));
        m_zoomFactorLabel->setText(tr2i18n("100%", 0));
        Q_UNUSED(KeyboardLayoutEditor);
    } // retranslateUi

};

namespace Ui {
    class KeyboardLayoutEditor: public Ui_KeyboardLayoutEditor {};
} // namespace Ui

QT_END_NAMESPACE

#endif // KEYBOARDLAYOUTEDITOR_H

