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

#ifndef UI_KOPTIONSDLGS_H
#define UI_KOPTIONSDLGS_H

#include <qvariant.h>


#include <Qt3Support/Q3GroupBox>
#include <Qt3Support/Q3MimeSourceFactory>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QDialog>
#include <QtGui/QGridLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QTabWidget>
#include <QtGui/QWidget>
#include <kcombobox.h>

QT_BEGIN_NAMESPACE

class Ui_KOptionsDlgS
{
public:
    QGridLayout *gridLayout;
    QTabWidget *tabWidget2;
    QWidget *tab1;
    QGridLayout *gridLayout1;
    Q3GroupBox *groupBox7;
    QGridLayout *gridLayout2;
    QCheckBox *m_chbVariables;
    QLabel *m_tlBackup;
    QLineEdit *m_leBackup;
    QCheckBox *m_chbNotifyOnErrors;
    QCheckBox *m_chbCaseSensitive;
    QCheckBox *m_chbRecursive;
    QCheckBox *m_chbRegularExpressions;
    QCheckBox *m_chbBackup;
    QLabel *textLabel1;
    KComboBox *m_cbEncoding;
    QWidget *Tab3;
    QGridLayout *gridLayout3;
    Q3GroupBox *gbxConfirm;
    QGridLayout *gridLayout4;
    QCheckBox *m_chbIgnoreHidden;
    QCheckBox *m_chbFollowSymLinks;
    QCheckBox *m_chbHaltOnFirstOccurrence;
    QCheckBox *m_chbIgnoreFiles;
    QHBoxLayout *hboxLayout;
    QSpacerItem *spacer2;
    QCheckBox *m_chbShowConfirmDialog;
    QCheckBox *m_chbConfirmStrings;
    QPushButton *m_pbHelp;
    QSpacerItem *spacer1;
    QPushButton *m_pbDefault;
    QPushButton *m_pbOK;
    QPushButton *m_pbCancel;

    void setupUi(QDialog *KOptionsDlgS)
    {
        if (KOptionsDlgS->objectName().isEmpty())
            KOptionsDlgS->setObjectName(QString::fromUtf8("KOptionsDlgS"));
        KOptionsDlgS->resize(572, 420);
        KOptionsDlgS->setSizeGripEnabled(true);
        gridLayout = new QGridLayout(KOptionsDlgS);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        tabWidget2 = new QTabWidget(KOptionsDlgS);
        tabWidget2->setObjectName(QString::fromUtf8("tabWidget2"));
        tab1 = new QWidget();
        tab1->setObjectName(QString::fromUtf8("tab1"));
        gridLayout1 = new QGridLayout(tab1);
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        groupBox7 = new Q3GroupBox(tab1);
        groupBox7->setObjectName(QString::fromUtf8("groupBox7"));
        groupBox7->setColumnLayout(0, Qt::Vertical);
        gridLayout2 = new QGridLayout();
        QBoxLayout *boxlayout = qobject_cast<QBoxLayout *>(groupBox7->layout());
        if (boxlayout)
            boxlayout->addLayout(gridLayout2);
        gridLayout2->setAlignment(Qt::AlignTop);
        gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
        m_chbVariables = new QCheckBox(groupBox7);
        m_chbVariables->setObjectName(QString::fromUtf8("m_chbVariables"));

        gridLayout2->addWidget(m_chbVariables, 4, 0, 1, 3);

        m_tlBackup = new QLabel(groupBox7);
        m_tlBackup->setObjectName(QString::fromUtf8("m_tlBackup"));
        m_tlBackup->setWordWrap(false);

        gridLayout2->addWidget(m_tlBackup, 7, 0, 1, 1);

        m_leBackup = new QLineEdit(groupBox7);
        m_leBackup->setObjectName(QString::fromUtf8("m_leBackup"));

        gridLayout2->addWidget(m_leBackup, 7, 1, 1, 2);

        m_chbNotifyOnErrors = new QCheckBox(groupBox7);
        m_chbNotifyOnErrors->setObjectName(QString::fromUtf8("m_chbNotifyOnErrors"));

        gridLayout2->addWidget(m_chbNotifyOnErrors, 5, 0, 1, 3);

        m_chbCaseSensitive = new QCheckBox(groupBox7);
        m_chbCaseSensitive->setObjectName(QString::fromUtf8("m_chbCaseSensitive"));

        gridLayout2->addWidget(m_chbCaseSensitive, 1, 0, 1, 3);

        m_chbRecursive = new QCheckBox(groupBox7);
        m_chbRecursive->setObjectName(QString::fromUtf8("m_chbRecursive"));

        gridLayout2->addWidget(m_chbRecursive, 2, 0, 1, 3);

        m_chbRegularExpressions = new QCheckBox(groupBox7);
        m_chbRegularExpressions->setObjectName(QString::fromUtf8("m_chbRegularExpressions"));
        m_chbRegularExpressions->setEnabled(true);

        gridLayout2->addWidget(m_chbRegularExpressions, 3, 0, 1, 3);

        m_chbBackup = new QCheckBox(groupBox7);
        m_chbBackup->setObjectName(QString::fromUtf8("m_chbBackup"));

        gridLayout2->addWidget(m_chbBackup, 6, 0, 1, 3);

        textLabel1 = new QLabel(groupBox7);
        textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
        textLabel1->setWordWrap(false);

        gridLayout2->addWidget(textLabel1, 0, 0, 1, 2);

        m_cbEncoding = new KComboBox(groupBox7);
        m_cbEncoding->setObjectName(QString::fromUtf8("m_cbEncoding"));
        QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(3), static_cast<QSizePolicy::Policy>(0));
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(m_cbEncoding->sizePolicy().hasHeightForWidth());
        m_cbEncoding->setSizePolicy(sizePolicy);

        gridLayout2->addWidget(m_cbEncoding, 0, 2, 1, 1);


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

        tabWidget2->addTab(tab1, QString());
        Tab3 = new QWidget();
        Tab3->setObjectName(QString::fromUtf8("Tab3"));
        gridLayout3 = new QGridLayout(Tab3);
        gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
        gbxConfirm = new Q3GroupBox(Tab3);
        gbxConfirm->setObjectName(QString::fromUtf8("gbxConfirm"));
        gbxConfirm->setColumnLayout(0, Qt::Vertical);
        gridLayout4 = new QGridLayout();
        QBoxLayout *boxlayout1 = qobject_cast<QBoxLayout *>(gbxConfirm->layout());
        if (boxlayout1)
            boxlayout1->addLayout(gridLayout4);
        gridLayout4->setAlignment(Qt::AlignTop);
        gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
        m_chbIgnoreHidden = new QCheckBox(gbxConfirm);
        m_chbIgnoreHidden->setObjectName(QString::fromUtf8("m_chbIgnoreHidden"));

        gridLayout4->addWidget(m_chbIgnoreHidden, 5, 0, 1, 1);

        m_chbFollowSymLinks = new QCheckBox(gbxConfirm);
        m_chbFollowSymLinks->setObjectName(QString::fromUtf8("m_chbFollowSymLinks"));

        gridLayout4->addWidget(m_chbFollowSymLinks, 4, 0, 1, 1);

        m_chbHaltOnFirstOccurrence = new QCheckBox(gbxConfirm);
        m_chbHaltOnFirstOccurrence->setObjectName(QString::fromUtf8("m_chbHaltOnFirstOccurrence"));

        gridLayout4->addWidget(m_chbHaltOnFirstOccurrence, 3, 0, 1, 1);

        m_chbIgnoreFiles = new QCheckBox(gbxConfirm);
        m_chbIgnoreFiles->setObjectName(QString::fromUtf8("m_chbIgnoreFiles"));
        m_chbIgnoreFiles->setEnabled(true);

        gridLayout4->addWidget(m_chbIgnoreFiles, 2, 0, 1, 1);

        hboxLayout = new QHBoxLayout();
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        spacer2 = new QSpacerItem(16, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);

        hboxLayout->addItem(spacer2);

        m_chbShowConfirmDialog = new QCheckBox(gbxConfirm);
        m_chbShowConfirmDialog->setObjectName(QString::fromUtf8("m_chbShowConfirmDialog"));
        m_chbShowConfirmDialog->setEnabled(false);

        hboxLayout->addWidget(m_chbShowConfirmDialog);


        gridLayout4->addLayout(hboxLayout, 1, 0, 1, 1);

        m_chbConfirmStrings = new QCheckBox(gbxConfirm);
        m_chbConfirmStrings->setObjectName(QString::fromUtf8("m_chbConfirmStrings"));
        m_chbConfirmStrings->setEnabled(false);

        gridLayout4->addWidget(m_chbConfirmStrings, 0, 0, 1, 1);


        gridLayout3->addWidget(gbxConfirm, 0, 0, 1, 1);

        tabWidget2->addTab(Tab3, QString());

        gridLayout->addWidget(tabWidget2, 0, 0, 1, 5);

        m_pbHelp = new QPushButton(KOptionsDlgS);
        m_pbHelp->setObjectName(QString::fromUtf8("m_pbHelp"));
        m_pbHelp->setEnabled(true);

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

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

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

        m_pbDefault = new QPushButton(KOptionsDlgS);
        m_pbDefault->setObjectName(QString::fromUtf8("m_pbDefault"));

        gridLayout->addWidget(m_pbDefault, 1, 2, 1, 1);

        m_pbOK = new QPushButton(KOptionsDlgS);
        m_pbOK->setObjectName(QString::fromUtf8("m_pbOK"));

        gridLayout->addWidget(m_pbOK, 1, 3, 1, 1);

        m_pbCancel = new QPushButton(KOptionsDlgS);
        m_pbCancel->setObjectName(QString::fromUtf8("m_pbCancel"));

        gridLayout->addWidget(m_pbCancel, 1, 4, 1, 1);

        QWidget::setTabOrder(tabWidget2, m_cbEncoding);
        QWidget::setTabOrder(m_cbEncoding, m_chbCaseSensitive);
        QWidget::setTabOrder(m_chbCaseSensitive, m_chbRecursive);
        QWidget::setTabOrder(m_chbRecursive, m_chbRegularExpressions);
        QWidget::setTabOrder(m_chbRegularExpressions, m_chbVariables);
        QWidget::setTabOrder(m_chbVariables, m_chbNotifyOnErrors);
        QWidget::setTabOrder(m_chbNotifyOnErrors, m_chbBackup);
        QWidget::setTabOrder(m_chbBackup, m_leBackup);
        QWidget::setTabOrder(m_leBackup, m_pbDefault);
        QWidget::setTabOrder(m_pbDefault, m_pbOK);
        QWidget::setTabOrder(m_pbOK, m_pbCancel);
        QWidget::setTabOrder(m_pbCancel, m_pbHelp);
        QWidget::setTabOrder(m_pbHelp, m_chbConfirmStrings);
        QWidget::setTabOrder(m_chbConfirmStrings, m_chbShowConfirmDialog);
        QWidget::setTabOrder(m_chbShowConfirmDialog, m_chbIgnoreFiles);
        QWidget::setTabOrder(m_chbIgnoreFiles, m_chbHaltOnFirstOccurrence);
        QWidget::setTabOrder(m_chbHaltOnFirstOccurrence, m_chbFollowSymLinks);
        QWidget::setTabOrder(m_chbFollowSymLinks, m_chbIgnoreHidden);

        retranslateUi(KOptionsDlgS);
        QObject::connect(m_pbCancel, SIGNAL(clicked()), KOptionsDlgS, SLOT(reject()));

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

    void retranslateUi(QDialog *KOptionsDlgS)
    {
        KOptionsDlgS->setWindowTitle(tr2i18n("Options", 0));
        groupBox7->setTitle(tr2i18n("General Options", 0));
        m_chbVariables->setText(tr2i18n("Enable commands in replace strings", 0));
        m_chbVariables->setShortcut(QString());
        m_tlBackup->setText(tr2i18n("Backup copy suffix:", 0));
        m_leBackup->setText(QString());
        m_chbNotifyOnErrors->setText(tr2i18n("Notif&y on errors", 0));
        m_chbCaseSensitive->setText(tr2i18n("Case sensitive", 0));
        m_chbCaseSensitive->setShortcut(QString());
        m_chbRecursive->setText(tr2i18n("Recursive (search/replace in all sub folders)", 0));
        m_chbRecursive->setShortcut(QString());
        m_chbRegularExpressions->setText(tr2i18n("Enable regular e&xpressions", 0));
        m_chbBackup->setText(tr2i18n("Do &backup copy", 0));
        textLabel1->setText(tr2i18n("Encoding of the files:", 0));
        tabWidget2->setTabText(tabWidget2->indexOf(tab1), tr2i18n("General", 0));
        gbxConfirm->setTitle(tr2i18n("Advanced Options", 0));
        m_chbIgnoreHidden->setText(tr2i18n("Ignore hidden files and folders", 0));
        m_chbFollowSymLinks->setText(tr2i18n("Follow s&ymbolic links", 0));
        m_chbHaltOnFirstOccurrence->setText(tr2i18n("When searching, stop on first string found (faster but no details)", 0));
        m_chbIgnoreFiles->setText(tr2i18n("Do not show file if no strings are found or replaced", 0));
        m_chbShowConfirmDialog->setText(tr2i18n("Show confirmation dialog", 0));
        m_chbConfirmStrings->setText(tr2i18n("Confirm before replace each string", 0));
        tabWidget2->setTabText(tabWidget2->indexOf(Tab3), tr2i18n("&Advanced", 0));
        m_pbHelp->setText(tr2i18n("&Help", 0));
        m_pbDefault->setText(tr2i18n("&Default Values", 0));
        m_pbOK->setText(tr2i18n("&OK", 0));
        m_pbCancel->setText(tr2i18n("&Cancel", 0));
    } // retranslateUi

};

namespace Ui {
    class KOptionsDlgS: public Ui_KOptionsDlgS {};
} // namespace Ui

QT_END_NAMESPACE

class KOptionsDlgS : public QDialog, public Ui::KOptionsDlgS
{
    Q_OBJECT

public:
    KOptionsDlgS(QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WindowFlags fl = 0);
    ~KOptionsDlgS();

protected slots:
    virtual void languageChange();

};

#endif // KOPTIONSDLGS_H

