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

#ifndef UI_KFILEREPLACEVIEWWDG_H
#define UI_KFILEREPLACEVIEWWDG_H

#include <qvariant.h>


#include <Qt3Support/Q3Header>
#include <Qt3Support/Q3MimeSourceFactory>
#include <Qt3Support/Q3WidgetStack>
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGridLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLCDNumber>
#include <QtGui/QLabel>
#include <QtGui/QSpacerItem>
#include <QtGui/QSplitter>
#include <QtGui/QWidget>
#include <k3listview.h>
#include "k3listview.h"
#include "kled.h"

QT_BEGIN_NAMESPACE

class Ui_KFileReplaceViewWdg
{
public:
    QGridLayout *gridLayout;
    QSplitter *splitter3;
    Q3WidgetStack *m_stackResults;
    QWidget *WStackPage;
    QGridLayout *gridLayout1;
    K3ListView *m_lvResults;
    QWidget *WStackPage1;
    QGridLayout *gridLayout2;
    K3ListView *m_lvResults_2;
    Q3WidgetStack *m_stackStrings;
    QWidget *WStackPage2;
    QGridLayout *gridLayout3;
    K3ListView *m_lvStrings;
    QWidget *WStackPage3;
    QGridLayout *gridLayout4;
    K3ListView *m_lvStrings_2;
    QHBoxLayout *hboxLayout;
    QHBoxLayout *hboxLayout1;
    KLed *m_ledGo;
    KLed *m_ledWait;
    KLed *m_ledStop;
    QSpacerItem *spacer1;
    QHBoxLayout *hboxLayout2;
    QLabel *m_tlFilesNumber;
    QLCDNumber *m_lcdFilesNumber;

    void setupUi(QWidget *KFileReplaceViewWdg)
    {
        if (KFileReplaceViewWdg->objectName().isEmpty())
            KFileReplaceViewWdg->setObjectName(QString::fromUtf8("KFileReplaceViewWdg"));
        KFileReplaceViewWdg->resize(635, 370);
        gridLayout = new QGridLayout(KFileReplaceViewWdg);
        gridLayout->setContentsMargins(0, 0, 0, 0);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        splitter3 = new QSplitter(KFileReplaceViewWdg);
        splitter3->setObjectName(QString::fromUtf8("splitter3"));
        splitter3->setOrientation(Qt::Vertical);
        m_stackResults = new Q3WidgetStack(splitter3);
        m_stackResults->setObjectName(QString::fromUtf8("m_stackResults"));
        QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(m_stackResults->sizePolicy().hasHeightForWidth());
        m_stackResults->setSizePolicy(sizePolicy);
        WStackPage = new QWidget(m_stackResults);
        WStackPage->setObjectName(QString::fromUtf8("WStackPage"));
        gridLayout1 = new QGridLayout(WStackPage);
        gridLayout1->setContentsMargins(0, 0, 0, 0);
        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
        gridLayout1->setContentsMargins(0, 0, 0, 0);
        m_lvResults = new K3ListView(WStackPage);
        m_lvResults->addColumn(tr2i18n("Name", 0));
        m_lvResults->header()->setClickEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->header()->setResizeEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->addColumn(tr2i18n("Folder", 0));
        m_lvResults->header()->setClickEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->header()->setResizeEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->addColumn(tr2i18n("Old Size", 0));
        m_lvResults->header()->setClickEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->header()->setResizeEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->addColumn(tr2i18n("New Size", 0));
        m_lvResults->header()->setClickEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->header()->setResizeEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->addColumn(tr2i18n("Replaced Strings", 0));
        m_lvResults->header()->setClickEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->header()->setResizeEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->addColumn(tr2i18n("Owner User", 0));
        m_lvResults->header()->setClickEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->header()->setResizeEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->addColumn(tr2i18n("Owner Group", 0));
        m_lvResults->header()->setClickEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->header()->setResizeEnabled(true, m_lvResults->header()->count() - 1);
        m_lvResults->setObjectName(QString::fromUtf8("m_lvResults"));
        m_lvResults->setProperty("selectionMode", QVariant(K3ListView::Extended));
        m_lvResults->setAllColumnsShowFocus(true);
        m_lvResults->setShowSortIndicator(true);
        m_lvResults->setRootIsDecorated(true);
        m_lvResults->setResizeMode(K3ListView::LastColumn);
        m_lvResults->setItemsMovable(false);
        m_lvResults->setAlternateBackground(QColor(238, 246, 255));

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

        m_stackResults->addWidget(WStackPage, 0);
        WStackPage1 = new QWidget(m_stackResults);
        WStackPage1->setObjectName(QString::fromUtf8("WStackPage1"));
        gridLayout2 = new QGridLayout(WStackPage1);
        gridLayout2->setContentsMargins(0, 0, 0, 0);
        gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
        gridLayout2->setContentsMargins(0, 0, 0, 0);
        m_lvResults_2 = new K3ListView(WStackPage1);
        m_lvResults_2->addColumn(tr2i18n("Name", 0));
        m_lvResults_2->header()->setClickEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->header()->setResizeEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->addColumn(tr2i18n("Folder", 0));
        m_lvResults_2->header()->setClickEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->header()->setResizeEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->addColumn(tr2i18n("Size", 0));
        m_lvResults_2->header()->setClickEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->header()->setResizeEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->addColumn(tr2i18n("Found Strings", 0));
        m_lvResults_2->header()->setClickEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->header()->setResizeEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->addColumn(tr2i18n("Owner User", 0));
        m_lvResults_2->header()->setClickEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->header()->setResizeEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->addColumn(tr2i18n("Owner Group", 0));
        m_lvResults_2->header()->setClickEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->header()->setResizeEnabled(true, m_lvResults_2->header()->count() - 1);
        m_lvResults_2->setObjectName(QString::fromUtf8("m_lvResults_2"));
        m_lvResults_2->setProperty("selectionMode", QVariant(K3ListView::Extended));
        m_lvResults_2->setAllColumnsShowFocus(true);
        m_lvResults_2->setShowSortIndicator(true);
        m_lvResults_2->setRootIsDecorated(true);
        m_lvResults_2->setResizeMode(K3ListView::LastColumn);
        m_lvResults_2->setItemsMovable(false);
        m_lvResults_2->setAlternateBackground(QColor(238, 246, 255));

        gridLayout2->addWidget(m_lvResults_2, 0, 0, 1, 1);

        m_stackResults->addWidget(WStackPage1, 1);
        splitter3->addWidget(m_stackResults);
        m_stackStrings = new Q3WidgetStack(splitter3);
        m_stackStrings->setObjectName(QString::fromUtf8("m_stackStrings"));
        sizePolicy.setHeightForWidth(m_stackStrings->sizePolicy().hasHeightForWidth());
        m_stackStrings->setSizePolicy(sizePolicy);
        WStackPage2 = new QWidget(m_stackStrings);
        WStackPage2->setObjectName(QString::fromUtf8("WStackPage2"));
        gridLayout3 = new QGridLayout(WStackPage2);
        gridLayout3->setContentsMargins(0, 0, 0, 0);
        gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
        gridLayout3->setContentsMargins(0, 0, 0, 0);
        m_lvStrings = new K3ListView(WStackPage2);
        m_lvStrings->addColumn(tr2i18n("Search For", 0));
        m_lvStrings->header()->setClickEnabled(true, m_lvStrings->header()->count() - 1);
        m_lvStrings->header()->setResizeEnabled(true, m_lvStrings->header()->count() - 1);
        m_lvStrings->addColumn(tr2i18n("Replace With", 0));
        m_lvStrings->header()->setClickEnabled(true, m_lvStrings->header()->count() - 1);
        m_lvStrings->header()->setResizeEnabled(true, m_lvStrings->header()->count() - 1);
        m_lvStrings->setObjectName(QString::fromUtf8("m_lvStrings"));
        m_lvStrings->setAllColumnsShowFocus(true);
        m_lvStrings->setRootIsDecorated(false);
        m_lvStrings->setResizeMode(K3ListView::AllColumns);
        m_lvStrings->setItemsMovable(false);

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

        m_stackStrings->addWidget(WStackPage2, 0);
        WStackPage3 = new QWidget(m_stackStrings);
        WStackPage3->setObjectName(QString::fromUtf8("WStackPage3"));
        gridLayout4 = new QGridLayout(WStackPage3);
        gridLayout4->setContentsMargins(0, 0, 0, 0);
        gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
        gridLayout4->setContentsMargins(0, 0, 0, 0);
        m_lvStrings_2 = new K3ListView(WStackPage3);
        m_lvStrings_2->addColumn(tr2i18n("Search For", 0));
        m_lvStrings_2->header()->setClickEnabled(true, m_lvStrings_2->header()->count() - 1);
        m_lvStrings_2->header()->setResizeEnabled(true, m_lvStrings_2->header()->count() - 1);
        m_lvStrings_2->setObjectName(QString::fromUtf8("m_lvStrings_2"));
        m_lvStrings_2->setAllColumnsShowFocus(true);
        m_lvStrings_2->setRootIsDecorated(false);
        m_lvStrings_2->setResizeMode(K3ListView::AllColumns);
        m_lvStrings_2->setItemsMovable(false);

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

        m_stackStrings->addWidget(WStackPage3, 1);
        splitter3->addWidget(m_stackStrings);

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

        hboxLayout = new QHBoxLayout();
        hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
        hboxLayout1 = new QHBoxLayout();
        hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
        m_ledGo = new KLed(KFileReplaceViewWdg);
        m_ledGo->setObjectName(QString::fromUtf8("m_ledGo"));
        m_ledGo->setMinimumSize(QSize(20, 20));
        m_ledGo->setState(KLed::On);
        m_ledGo->setColor(QColor(170, 255, 0));

        hboxLayout1->addWidget(m_ledGo);

        m_ledWait = new KLed(KFileReplaceViewWdg);
        m_ledWait->setObjectName(QString::fromUtf8("m_ledWait"));
        m_ledWait->setMinimumSize(QSize(20, 20));
        m_ledWait->setState(KLed::On);
        m_ledWait->setColor(QColor(255, 255, 0));

        hboxLayout1->addWidget(m_ledWait);

        m_ledStop = new KLed(KFileReplaceViewWdg);
        m_ledStop->setObjectName(QString::fromUtf8("m_ledStop"));
        m_ledStop->setMinimumSize(QSize(20, 20));
        m_ledStop->setColor(QColor(255, 0, 0));

        hboxLayout1->addWidget(m_ledStop);


        hboxLayout->addLayout(hboxLayout1);

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

        hboxLayout->addItem(spacer1);

        hboxLayout2 = new QHBoxLayout();
        hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
        m_tlFilesNumber = new QLabel(KFileReplaceViewWdg);
        m_tlFilesNumber->setObjectName(QString::fromUtf8("m_tlFilesNumber"));
        m_tlFilesNumber->setWordWrap(false);

        hboxLayout2->addWidget(m_tlFilesNumber);

        m_lcdFilesNumber = new QLCDNumber(KFileReplaceViewWdg);
        m_lcdFilesNumber->setObjectName(QString::fromUtf8("m_lcdFilesNumber"));
        m_lcdFilesNumber->setFrameShape(QFrame::StyledPanel);
        m_lcdFilesNumber->setFrameShadow(QFrame::Raised);
        m_lcdFilesNumber->setNumDigits(7);
        m_lcdFilesNumber->setMode(QLCDNumber::Dec);
        m_lcdFilesNumber->setSegmentStyle(QLCDNumber::Flat);
        m_lcdFilesNumber->setProperty("intValue", QVariant(0));

        hboxLayout2->addWidget(m_lcdFilesNumber);


        hboxLayout->addLayout(hboxLayout2);


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


        retranslateUi(KFileReplaceViewWdg);

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

    void retranslateUi(QWidget *KFileReplaceViewWdg)
    {
        m_lvResults->header()->setLabel(0, tr2i18n("Name", 0));
        m_lvResults->header()->setLabel(1, tr2i18n("Folder", 0));
        m_lvResults->header()->setLabel(2, tr2i18n("Old Size", 0));
        m_lvResults->header()->setLabel(3, tr2i18n("New Size", 0));
        m_lvResults->header()->setLabel(4, tr2i18n("Replaced Strings", 0));
        m_lvResults->header()->setLabel(5, tr2i18n("Owner User", 0));
        m_lvResults->header()->setLabel(6, tr2i18n("Owner Group", 0));
        m_lvResults_2->header()->setLabel(0, tr2i18n("Name", 0));
        m_lvResults_2->header()->setLabel(1, tr2i18n("Folder", 0));
        m_lvResults_2->header()->setLabel(2, tr2i18n("Size", 0));
        m_lvResults_2->header()->setLabel(3, tr2i18n("Found Strings", 0));
        m_lvResults_2->header()->setLabel(4, tr2i18n("Owner User", 0));
        m_lvResults_2->header()->setLabel(5, tr2i18n("Owner Group", 0));
        m_lvStrings->header()->setLabel(0, tr2i18n("Search For", 0));
        m_lvStrings->header()->setLabel(1, tr2i18n("Replace With", 0));
        m_lvStrings_2->header()->setLabel(0, tr2i18n("Search For", 0));
#ifndef UI_QT_NO_TOOLTIP
        m_ledGo->setProperty("toolTip", QVariant(tr2i18n("Green means ready", 0)));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        m_ledGo->setProperty("whatsThis", QVariant(tr2i18n("Ready", 0)));
#endif // QT_NO_WHATSTHIS
#ifndef UI_QT_NO_TOOLTIP
        m_ledWait->setProperty("toolTip", QVariant(tr2i18n("Yellow means wait while sorting list", 0)));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        m_ledWait->setProperty("whatsThis", QVariant(tr2i18n("Please wait while sorting list", 0)));
#endif // QT_NO_WHATSTHIS
#ifndef UI_QT_NO_TOOLTIP
        m_ledStop->setProperty("toolTip", QVariant(tr2i18n("Red means scanning files", 0)));
#endif // QT_NO_TOOLTIP
        m_tlFilesNumber->setText(tr2i18n("Scanned files:", 0));
        Q_UNUSED(KFileReplaceViewWdg);
    } // retranslateUi

};

namespace Ui {
    class KFileReplaceViewWdg: public Ui_KFileReplaceViewWdg {};
} // namespace Ui

QT_END_NAMESPACE

class KFileReplaceViewWdg : public QWidget, public Ui::KFileReplaceViewWdg
{
    Q_OBJECT

public:
    KFileReplaceViewWdg(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
    ~KFileReplaceViewWdg();

protected slots:
    virtual void languageChange();

};

#endif // KFILEREPLACEVIEWWDG_H

