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

#ifndef UI_KADDSTRINGDLGS_H
#define UI_KADDSTRINGDLGS_H

#include <qvariant.h>


#include <Qt3Support/Q3ButtonGroup>
#include <Qt3Support/Q3Frame>
#include <Qt3Support/Q3Header>
#include <Qt3Support/Q3ListView>
#include <Qt3Support/Q3MimeSourceFactory>
#include <Qt3Support/Q3TextEdit>
#include <Qt3Support/Q3WidgetStack>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QDialog>
#include <QtGui/QGridLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QPushButton>
#include <QtGui/QRadioButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>

QT_BEGIN_NAMESPACE

class Ui_KAddStringDlgS
{
public:
    QGridLayout *gridLayout;
    QVBoxLayout *vboxLayout;
    Q3ButtonGroup *bgChoose;
    QGridLayout *gridLayout1;
    QRadioButton *m_rbSearchReplace;
    QRadioButton *m_rbSearchOnly;
    Q3Frame *frame4;
    QGridLayout *gridLayout2;
    QVBoxLayout *vboxLayout1;
    QVBoxLayout *vboxLayout2;
    QLabel *m_tlSearch;
    Q3TextEdit *m_edSearch;
    QVBoxLayout *vboxLayout3;
    QLabel *m_tlReplace;
    Q3TextEdit *m_edReplace;
    QVBoxLayout *vboxLayout4;
    QSpacerItem *spacer8;
    QHBoxLayout *hboxLayout;
    QPushButton *m_pbDel;
    QPushButton *m_pbAdd;
    QSpacerItem *spacer9;
    Q3WidgetStack *m_stack;
    QWidget *WStackPage;
    QGridLayout *gridLayout3;
    Q3ListView *m_stringView_2;
    QWidget *WStackPage1;
    QGridLayout *gridLayout4;
    Q3ListView *m_stringView;
    QHBoxLayout *hboxLayout1;
    QPushButton *m_pbHelp;
    QSpacerItem *spacer1;
    QHBoxLayout *hboxLayout2;
    QPushButton *m_pbOK;
    QPushButton *m_pbCancel;

    void setupUi(QDialog *KAddStringDlgS)
    {
        if (KAddStringDlgS->objectName().isEmpty())
            KAddStringDlgS->setObjectName(QString::fromUtf8("KAddStringDlgS"));
        KAddStringDlgS->resize(586, 347);
        KAddStringDlgS->setSizeGripEnabled(true);
        gridLayout = new QGridLayout(KAddStringDlgS);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        vboxLayout = new QVBoxLayout();
        vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
        bgChoose = new Q3ButtonGroup(KAddStringDlgS);
        bgChoose->setObjectName(QString::fromUtf8("bgChoose"));
        bgChoose->setExclusive(true);
        bgChoose->setColumnLayout(0, Qt::Vertical);
        gridLayout1 = new QGridLayout();
        QBoxLayout *boxlayout = qobject_cast<QBoxLayout *>(bgChoose->layout());
        if (boxlayout)
            boxlayout->addLayout(gridLayout1);
        gridLayout1->setAlignment(Qt::AlignTop);
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        m_rbSearchReplace = new QRadioButton(bgChoose);
        m_rbSearchReplace->setObjectName(QString::fromUtf8("m_rbSearchReplace"));

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

        m_rbSearchOnly = new QRadioButton(bgChoose);
        m_rbSearchOnly->setObjectName(QString::fromUtf8("m_rbSearchOnly"));
        m_rbSearchOnly->setChecked(true);

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


        vboxLayout->addWidget(bgChoose);

        frame4 = new Q3Frame(KAddStringDlgS);
        frame4->setObjectName(QString::fromUtf8("frame4"));
        frame4->setFrameShape(QFrame::StyledPanel);
        frame4->setFrameShadow(QFrame::Raised);
        gridLayout2 = new QGridLayout(frame4);
        gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
        vboxLayout1 = new QVBoxLayout();
        vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
        vboxLayout2 = new QVBoxLayout();
        vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2"));
        m_tlSearch = new QLabel(frame4);
        m_tlSearch->setObjectName(QString::fromUtf8("m_tlSearch"));
        m_tlSearch->setWordWrap(false);

        vboxLayout2->addWidget(m_tlSearch);

        m_edSearch = new Q3TextEdit(frame4);
        m_edSearch->setObjectName(QString::fromUtf8("m_edSearch"));
        m_edSearch->setTextFormat(Qt::PlainText);

        vboxLayout2->addWidget(m_edSearch);


        vboxLayout1->addLayout(vboxLayout2);

        vboxLayout3 = new QVBoxLayout();
        vboxLayout3->setObjectName(QString::fromUtf8("vboxLayout3"));
        m_tlReplace = new QLabel(frame4);
        m_tlReplace->setObjectName(QString::fromUtf8("m_tlReplace"));
        m_tlReplace->setEnabled(false);
        m_tlReplace->setWordWrap(false);

        vboxLayout3->addWidget(m_tlReplace);

        m_edReplace = new Q3TextEdit(frame4);
        m_edReplace->setObjectName(QString::fromUtf8("m_edReplace"));
        m_edReplace->setEnabled(false);
        m_edReplace->setTextFormat(Qt::PlainText);

        vboxLayout3->addWidget(m_edReplace);


        vboxLayout1->addLayout(vboxLayout3);


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

        vboxLayout4 = new QVBoxLayout();
        vboxLayout4->setObjectName(QString::fromUtf8("vboxLayout4"));
        spacer8 = new QSpacerItem(20, 90, QSizePolicy::Expanding, QSizePolicy::Minimum);

        vboxLayout4->addItem(spacer8);

        hboxLayout = new QHBoxLayout();
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        m_pbDel = new QPushButton(frame4);
        m_pbDel->setObjectName(QString::fromUtf8("m_pbDel"));
        m_pbDel->setMaximumSize(QSize(30, 32767));

        hboxLayout->addWidget(m_pbDel);

        m_pbAdd = new QPushButton(frame4);
        m_pbAdd->setObjectName(QString::fromUtf8("m_pbAdd"));
        m_pbAdd->setMaximumSize(QSize(30, 32767));
        m_pbAdd->setFlat(false);

        hboxLayout->addWidget(m_pbAdd);


        vboxLayout4->addLayout(hboxLayout);

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

        vboxLayout4->addItem(spacer9);


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

        m_stack = new Q3WidgetStack(frame4);
        m_stack->setObjectName(QString::fromUtf8("m_stack"));
        QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(m_stack->sizePolicy().hasHeightForWidth());
        m_stack->setSizePolicy(sizePolicy);
        WStackPage = new QWidget(m_stack);
        WStackPage->setObjectName(QString::fromUtf8("WStackPage"));
        gridLayout3 = new QGridLayout(WStackPage);
        gridLayout3->setContentsMargins(0, 0, 0, 0);
        gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
        gridLayout3->setContentsMargins(0, 0, 0, 0);
        m_stringView_2 = new Q3ListView(WStackPage);
        m_stringView_2->addColumn(tr2i18n("Search For", 0));
        m_stringView_2->header()->setClickEnabled(true, m_stringView_2->header()->count() - 1);
        m_stringView_2->header()->setResizeEnabled(true, m_stringView_2->header()->count() - 1);
        m_stringView_2->setObjectName(QString::fromUtf8("m_stringView_2"));
        m_stringView_2->setAllColumnsShowFocus(true);
        m_stringView_2->setShowSortIndicator(false);
        m_stringView_2->setResizeMode(Q3ListView::AllColumns);

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

        m_stack->addWidget(WStackPage, 0);
        WStackPage1 = new QWidget(m_stack);
        WStackPage1->setObjectName(QString::fromUtf8("WStackPage1"));
        gridLayout4 = new QGridLayout(WStackPage1);
        gridLayout4->setContentsMargins(0, 0, 0, 0);
        gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
        gridLayout4->setContentsMargins(0, 0, 0, 0);
        m_stringView = new Q3ListView(WStackPage1);
        m_stringView->addColumn(tr2i18n("Search For", 0));
        m_stringView->header()->setClickEnabled(true, m_stringView->header()->count() - 1);
        m_stringView->header()->setResizeEnabled(true, m_stringView->header()->count() - 1);
        m_stringView->addColumn(tr2i18n("Replace With", 0));
        m_stringView->header()->setClickEnabled(true, m_stringView->header()->count() - 1);
        m_stringView->header()->setResizeEnabled(true, m_stringView->header()->count() - 1);
        m_stringView->setObjectName(QString::fromUtf8("m_stringView"));
        m_stringView->setAllColumnsShowFocus(true);
        m_stringView->setShowSortIndicator(false);
        m_stringView->setResizeMode(Q3ListView::AllColumns);

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

        m_stack->addWidget(WStackPage1, 1);

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


        vboxLayout->addWidget(frame4);

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

        hboxLayout1->addWidget(m_pbHelp);

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

        hboxLayout1->addItem(spacer1);

        hboxLayout2 = new QHBoxLayout();
        hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
        m_pbOK = new QPushButton(KAddStringDlgS);
        m_pbOK->setObjectName(QString::fromUtf8("m_pbOK"));

        hboxLayout2->addWidget(m_pbOK);

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

        hboxLayout2->addWidget(m_pbCancel);


        hboxLayout1->addLayout(hboxLayout2);


        vboxLayout->addLayout(hboxLayout1);


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


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

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

    void retranslateUi(QDialog *KAddStringDlgS)
    {
        KAddStringDlgS->setWindowTitle(tr2i18n("Insert Searching/Replacing Strings", 0));
        bgChoose->setTitle(tr2i18n("Choose String Adding Mode", 0));
        m_rbSearchReplace->setText(tr2i18n("Search and replace mode", 0));
        m_rbSearchReplace->setShortcut(QString());
        m_rbSearchOnly->setText(tr2i18n("Search only mode", 0));
        m_tlSearch->setText(tr2i18n("Search for:", 0));
        m_tlReplace->setText(tr2i18n("Replace with:", 0));
        m_pbDel->setText(QString());
        m_pbAdd->setText(QString());
        m_stringView_2->header()->setLabel(0, tr2i18n("Search For", 0));
        m_stringView->header()->setLabel(0, tr2i18n("Search For", 0));
        m_stringView->header()->setLabel(1, tr2i18n("Replace With", 0));
        m_pbHelp->setText(tr2i18n("&Help", 0));
        m_pbOK->setText(tr2i18n("&OK", 0));
        m_pbCancel->setText(tr2i18n("&Cancel", 0));
    } // retranslateUi

};

namespace Ui {
    class KAddStringDlgS: public Ui_KAddStringDlgS {};
} // namespace Ui

QT_END_NAMESPACE

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

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

protected slots:
    virtual void languageChange();

};

#endif // KADDSTRINGDLGS_H

