#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 'ProtectionWidget.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_PROTECTIONWIDGET_H
#define UI_PROTECTIONWIDGET_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/QSpacerItem>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include <kdialog.h>

QT_BEGIN_NAMESPACE

class Ui_ProtectionWidget
{
public:
    QGridLayout *gridLayout;
    QGroupBox *groupBox2;
    QGridLayout *gridLayout1;
    QCheckBox *m_bDontPrint;
    QGroupBox *groupBox1;
    QGridLayout *gridLayout2;
    QVBoxLayout *vboxLayout;
    QCheckBox *m_bHideAll;
    QHBoxLayout *hboxLayout;
    QSpacerItem *spacerItem;
    QCheckBox *m_bIsProtected;
    QHBoxLayout *hboxLayout1;
    QSpacerItem *spacerItem1;
    QCheckBox *m_bHideFormula;
    QSpacerItem *spacerItem2;

    void setupUi(QWidget *ProtectionWidget)
    {
        if (ProtectionWidget->objectName().isEmpty())
            ProtectionWidget->setObjectName(QString::fromUtf8("ProtectionWidget"));
        ProtectionWidget->resize(250, 203);
        gridLayout = new QGridLayout(ProtectionWidget);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        groupBox2 = new QGroupBox(ProtectionWidget);
        groupBox2->setObjectName(QString::fromUtf8("groupBox2"));
        gridLayout1 = new QGridLayout(groupBox2);
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        m_bDontPrint = new QCheckBox(groupBox2);
        m_bDontPrint->setObjectName(QString::fromUtf8("m_bDontPrint"));

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


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

        groupBox1 = new QGroupBox(ProtectionWidget);
        groupBox1->setObjectName(QString::fromUtf8("groupBox1"));
        gridLayout2 = new QGridLayout(groupBox1);
        gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
        vboxLayout = new QVBoxLayout();
        vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
        m_bHideAll = new QCheckBox(groupBox1);
        m_bHideAll->setObjectName(QString::fromUtf8("m_bHideAll"));

        vboxLayout->addWidget(m_bHideAll);

        hboxLayout = new QHBoxLayout();
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        spacerItem = new QSpacerItem(30, 21, QSizePolicy::Expanding, QSizePolicy::Minimum);

        hboxLayout->addItem(spacerItem);

        m_bIsProtected = new QCheckBox(groupBox1);
        m_bIsProtected->setObjectName(QString::fromUtf8("m_bIsProtected"));
        m_bIsProtected->setChecked(true);

        hboxLayout->addWidget(m_bIsProtected);


        vboxLayout->addLayout(hboxLayout);

        hboxLayout1 = new QHBoxLayout();
        hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
        spacerItem1 = new QSpacerItem(30, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

        hboxLayout1->addItem(spacerItem1);

        m_bHideFormula = new QCheckBox(groupBox1);
        m_bHideFormula->setObjectName(QString::fromUtf8("m_bHideFormula"));

        hboxLayout1->addWidget(m_bHideFormula);


        vboxLayout->addLayout(hboxLayout1);


        gridLayout2->addLayout(vboxLayout, 0, 0, 1, 1);


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

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

        gridLayout->addItem(spacerItem2, 2, 0, 1, 1);

        QWidget::setTabOrder(m_bHideAll, m_bIsProtected);
        QWidget::setTabOrder(m_bIsProtected, m_bHideFormula);
        QWidget::setTabOrder(m_bHideFormula, m_bDontPrint);

        retranslateUi(ProtectionWidget);

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

    void retranslateUi(QWidget *ProtectionWidget)
    {
#ifndef UI_QT_NO_WHATSTHIS
        ProtectionWidget->setWhatsThis(tr2i18n("This tab enables you to set Cell Protection. All cells are protected by default (that means cell content cannot be changed) and for the cell protection to be active you also need to protect the sheet using the Tools -> Protect Sheet... menu and to provide a password.\n"
"You can also hide the cell formula in order to protect the way you calculate the formula. This also needs to enable sheet protection to work.\n"
"You can hide the cell content with Hide all and again this needs sheet protection.\n"
"You can learn more about all these settings in the User Manual in the Advanced Calligra Sheets chapter.", 0));
#endif // QT_NO_WHATSTHIS
        groupBox2->setTitle(tr2i18n("Printing", 0));
#ifndef UI_QT_NO_WHATSTHIS
        m_bDontPrint->setWhatsThis(tr2i18n("If checked, the content of the cell will not be printed. If this is not checked (default), the cell content will be printed.\n"
"Note that you can print it even if the cell is protected", 0));
#endif // QT_NO_WHATSTHIS
        m_bDontPrint->setText(tr2i18n("&Do not print text", 0));
        groupBox1->setTitle(tr2i18n("Protection", 0));
#ifndef UI_QT_NO_WHATSTHIS
        m_bHideAll->setWhatsThis(tr2i18n("This hides the cell content and works only when the sheet is protected. Whether the cell itself is protected or not does not matter.", 0));
#endif // QT_NO_WHATSTHIS
        m_bHideAll->setText(tr2i18n("Hide &all", 0));
#ifndef UI_QT_NO_WHATSTHIS
        m_bIsProtected->setWhatsThis(tr2i18n("If checked, the cell content will be protected. This is the default behavior. You need to protect the whole sheet using the Tools -> Protect Sheet... menu option for this individual cell protection to work. See the manual for more details in the Advanced Calligra Sheets chapter. When a cell is protected, its content cannot be changed.", 0));
#endif // QT_NO_WHATSTHIS
        m_bIsProtected->setText(tr2i18n("&Protected", 0));
#ifndef UI_QT_NO_WHATSTHIS
        m_bHideFormula->setWhatsThis(tr2i18n("When this is checked, the cell is still visible. However, its contents do not appear in the Formula bar. Hiding formula is only working for cells that contain formulae so the user cannot view the formula. And the sheet must be protected for this to work.", 0));
#endif // QT_NO_WHATSTHIS
        m_bHideFormula->setText(tr2i18n("&Hide formula", 0));
    } // retranslateUi

};

namespace Ui {
    class ProtectionWidget: public Ui_ProtectionWidget {};
} // namespace Ui

QT_END_NAMESPACE

#endif // PROTECTIONWIDGET_H

