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

/*
This file is part of the KDE project
Copyright (C) 2006 The KSpread Team <calligra-devel@kde.org>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public
License along with this library; see the file COPYING.LIB.  If not,
write to the Free Software Foundation, Inc., 51 Franklin Street,
Fifth Floor, Boston, MA 02110-1301, USA.
*/

/********************************************************************************
** Form generated from reading UI file 'FontWidget.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_FONTWIDGET_H
#define UI_FONTWIDGET_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QListWidget>
#include <QtGui/QSpacerItem>
#include <QtGui/QWidget>
#include <kdialog.h>
#include "kcolorbutton.h"
#include "kcombobox.h"
#include "klineedit.h"

QT_BEGIN_NAMESPACE

class Ui_FontWidget
{
public:
    QGridLayout *gridLayout;
    QGridLayout *gridLayout1;
    KComboBox *style_combo;
    KComboBox *weight_combo;
    QLabel *textLabel4;
    QCheckBox *underline;
    QLabel *textLabel2;
    QLabel *textLabel3;
    QLabel *textLabel1;
    KColorButton *textColorButton;
    QCheckBox *strike;
    KComboBox *size_combo;
    QSpacerItem *spacerItem;
    QListWidget *family_combo;
    QGroupBox *groupBox1;
    QHBoxLayout *hboxLayout;
    KLineEdit *example_label;

    void setupUi(QWidget *FontWidget)
    {
        if (FontWidget->objectName().isEmpty())
            FontWidget->setObjectName(QString::fromUtf8("FontWidget"));
        FontWidget->resize(600, 486);
        gridLayout = new QGridLayout(FontWidget);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        gridLayout1 = new QGridLayout();
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        style_combo = new KComboBox(FontWidget);
        style_combo->setObjectName(QString::fromUtf8("style_combo"));
        style_combo->setInsertPolicy(QComboBox::InsertAtBottom);

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

        weight_combo = new KComboBox(FontWidget);
        weight_combo->setObjectName(QString::fromUtf8("weight_combo"));
        weight_combo->setInsertPolicy(QComboBox::InsertAtBottom);

        gridLayout1->addWidget(weight_combo, 2, 1, 1, 1);

        textLabel4 = new QLabel(FontWidget);
        textLabel4->setObjectName(QString::fromUtf8("textLabel4"));

        gridLayout1->addWidget(textLabel4, 3, 0, 1, 1);

        underline = new QCheckBox(FontWidget);
        underline->setObjectName(QString::fromUtf8("underline"));

        gridLayout1->addWidget(underline, 4, 0, 1, 2);

        textLabel2 = new QLabel(FontWidget);
        textLabel2->setObjectName(QString::fromUtf8("textLabel2"));

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

        textLabel3 = new QLabel(FontWidget);
        textLabel3->setObjectName(QString::fromUtf8("textLabel3"));

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

        textLabel1 = new QLabel(FontWidget);
        textLabel1->setObjectName(QString::fromUtf8("textLabel1"));

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

        textColorButton = new KColorButton(FontWidget);
        textColorButton->setObjectName(QString::fromUtf8("textColorButton"));

        gridLayout1->addWidget(textColorButton, 3, 1, 1, 1);

        strike = new QCheckBox(FontWidget);
        strike->setObjectName(QString::fromUtf8("strike"));

        gridLayout1->addWidget(strike, 5, 0, 1, 2);

        size_combo = new KComboBox(FontWidget);
        size_combo->setObjectName(QString::fromUtf8("size_combo"));
        size_combo->setEditable(true);

        gridLayout1->addWidget(size_combo, 1, 1, 1, 1);


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

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

        gridLayout->addItem(spacerItem, 1, 1, 1, 1);

        family_combo = new QListWidget(FontWidget);
        family_combo->setObjectName(QString::fromUtf8("family_combo"));

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

        groupBox1 = new QGroupBox(FontWidget);
        groupBox1->setObjectName(QString::fromUtf8("groupBox1"));
        hboxLayout = new QHBoxLayout(groupBox1);
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        example_label = new KLineEdit(groupBox1);
        example_label->setObjectName(QString::fromUtf8("example_label"));
        QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(example_label->sizePolicy().hasHeightForWidth());
        example_label->setSizePolicy(sizePolicy);
        example_label->setAlignment(Qt::AlignHCenter);

        hboxLayout->addWidget(example_label);


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

        QWidget::setTabOrder(family_combo, style_combo);
        QWidget::setTabOrder(style_combo, size_combo);
        QWidget::setTabOrder(size_combo, weight_combo);
        QWidget::setTabOrder(weight_combo, textColorButton);
        QWidget::setTabOrder(textColorButton, underline);
        QWidget::setTabOrder(underline, strike);
        QWidget::setTabOrder(strike, example_label);

        retranslateUi(FontWidget);

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

    void retranslateUi(QWidget *FontWidget)
    {
#ifndef UI_QT_NO_WHATSTHIS
        FontWidget->setWhatsThis(tr2i18n("You can select here the font style, size and color, including some additional options like underlined or stroke out text for the current cell text. The lower part of the page gives a preview of the selected text format.\n"
"The default font is set for all cells in the Format -> Style Manager menu with the currently used style.", 0));
#endif // QT_NO_WHATSTHIS
        style_combo->clear();
        style_combo->insertItems(0, QStringList()
         << tr2i18n("Varying (No Change)", 0)
         << tr2i18n("Roman", 0)
         << tr2i18n("Italic", 0)
        );
#ifndef UI_QT_NO_WHATSTHIS
        style_combo->setWhatsThis(tr2i18n("Choose the style for your font for the currently selected cells. When you select several cells with different styles, the displayed style is set to Varying (No Change) and leaving it that way will keep all your current style settings for each cell. Changing to Roman for example will change all the selected cells style text to Roman.", 0));
#endif // QT_NO_WHATSTHIS
        weight_combo->clear();
        weight_combo->insertItems(0, QStringList()
         << tr2i18n("Varying (No Change)", 0)
         << tr2i18n("Normal", 0)
         << tr2i18n("Bold", 0)
        );
#ifndef UI_QT_NO_WHATSTHIS
        weight_combo->setWhatsThis(tr2i18n("Choose the weight for your font for the currently selected cells. When you select several cells with different font weight, the displayed weight is set to Varying (No Change) and leaving it that way will keep all your current weight settings for each cell. Changing to Bold for example will change all the selected cells font weight to Bold.", 0));
#endif // QT_NO_WHATSTHIS
        textLabel4->setText(tr2i18n("Color:", 0));
#ifndef UI_QT_NO_WHATSTHIS
        underline->setWhatsThis(tr2i18n("If this is checked, the current cell text will be underlined.", 0));
#endif // QT_NO_WHATSTHIS
        underline->setText(tr2i18n("Underline", 0));
        textLabel2->setText(tr2i18n("Size:", 0));
        textLabel3->setText(tr2i18n("Weight:", 0));
        textLabel1->setText(tr2i18n("Style:", 0));
#ifndef UI_QT_NO_WHATSTHIS
        textColorButton->setWhatsThis(tr2i18n("Choose the color for the current cell text. Clicking on the color bar will bring you the standard KDE Select Color dialog where you will be able to choose the new color.", 0));
#endif // QT_NO_WHATSTHIS
        textColorButton->setText(QString());
#ifndef UI_QT_NO_WHATSTHIS
        strike->setWhatsThis(tr2i18n("This will strike out the current cell text if this is checked.", 0));
#endif // QT_NO_WHATSTHIS
        strike->setText(tr2i18n("Strike out", 0));
#ifndef UI_QT_NO_WHATSTHIS
        size_combo->setWhatsThis(tr2i18n("Choose the style for your font for the currently selected cells. When you select several cells with different styles, the displayed style is set to Varying (No Change) and leaving it that way will keep all your current style settings for each cell. Changing to Roman for example will change all the selected cells style text to Roman.", 0));
#endif // QT_NO_WHATSTHIS
#ifndef UI_QT_NO_WHATSTHIS
        family_combo->setWhatsThis(tr2i18n("This box lists all your available font families. Click on one family to set it in the current cell.", 0));
#endif // QT_NO_WHATSTHIS
        groupBox1->setTitle(tr2i18n("Preview", 0));
#ifndef UI_QT_NO_WHATSTHIS
        example_label->setWhatsThis(tr2i18n("You can see a preview of the font you are choosing for the current cell.", 0));
#endif // QT_NO_WHATSTHIS
    } // retranslateUi

};

namespace Ui {
    class FontWidget: public Ui_FontWidget {};
} // namespace Ui

QT_END_NAMESPACE

#endif // FONTWIDGET_H

