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

/********************************************************************************
** Form generated from reading UI file 'skgsearchpluginwidget_base.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_SKGSEARCHPLUGINWIDGET_BASE_H
#define UI_SKGSEARCHPLUGINWIDGET_BASE_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QFrame>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QSpacerItem>
#include <QtGui/QToolButton>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>
#include "kcombobox.h"
#include "klineedit.h"
#include "kpushbutton.h"
#include "skgcalculatoredit.h"
#include "skgcombobox.h"
#include "skgfilteredtableview.h"
#include "skgquerycreator.h"
#include "skgwidgetselector.h"

QT_BEGIN_NAMESPACE

class Ui_skgsearchplugin_base
{
public:
    QVBoxLayout *verticalLayout;
    QHBoxLayout *horizontalLayout_5;
    SKGFilteredTableView *kView;
    QVBoxLayout *verticalLayout_3;
    QToolButton *kTopBtn;
    QToolButton *kUpBtn;
    QToolButton *kDownBtn;
    QToolButton *kBottomBtn;
    QSpacerItem *verticalSpacer_3;
    QHBoxLayout *horizontalLayout_2;
    QLabel *kQueryInfo;
    QToolButton *kApply;
    QGroupBox *kQueryGrp;
    QVBoxLayout *verticalLayout_4;
    SKGQueryCreator *kQueryCreator;
    QGroupBox *kAlarmFrm;
    QGridLayout *gridLayout;
    QLabel *kAlarmLbl;
    QLabel *kAlarmMessageLbl;
    KLineEdit *kAlarmMessage;
    QLabel *kAlarmUnit;
    SKGCalculatorEdit *kAlarmAmount;
    QSpacerItem *horizontalSpacer;
    QGroupBox *kTemplateFrm;
    QGridLayout *gridLayout_2;
    QSpacerItem *horizontalSpacer_2;
    SKGComboBox *kTemplate;
    QLabel *kAlarmLbl_2;
    QGroupBox *kActionGrp;
    QVBoxLayout *verticalLayout_6;
    SKGQueryCreator *kActionCreator;
    QHBoxLayout *horizontalLayout_12;
    SKGWidgetSelector *kWidgetSelector;
    QFrame *kBtnFrm;
    QHBoxLayout *_2;
    QSpacerItem *verticalSpacer;
    KPushButton *kAdd;
    KPushButton *kUpdate;
    QSpacerItem *horizontalSpacer_3;
    KPushButton *kSearch;
    KPushButton *kOpenReport;

    void setupUi(QWidget *skgsearchplugin_base)
    {
        if (skgsearchplugin_base->objectName().isEmpty())
            skgsearchplugin_base->setObjectName(QString::fromUtf8("skgsearchplugin_base"));
        skgsearchplugin_base->resize(750, 575);
        verticalLayout = new QVBoxLayout(skgsearchplugin_base);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        horizontalLayout_5 = new QHBoxLayout();
        horizontalLayout_5->setSpacing(2);
        horizontalLayout_5->setObjectName(QString::fromUtf8("horizontalLayout_5"));
        kView = new SKGFilteredTableView(skgsearchplugin_base);
        kView->setObjectName(QString::fromUtf8("kView"));

        horizontalLayout_5->addWidget(kView);

        verticalLayout_3 = new QVBoxLayout();
        verticalLayout_3->setSpacing(2);
        verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
        kTopBtn = new QToolButton(skgsearchplugin_base);
        kTopBtn->setObjectName(QString::fromUtf8("kTopBtn"));
        kTopBtn->setAutoRaise(true);

        verticalLayout_3->addWidget(kTopBtn);

        kUpBtn = new QToolButton(skgsearchplugin_base);
        kUpBtn->setObjectName(QString::fromUtf8("kUpBtn"));
        kUpBtn->setAutoRaise(true);

        verticalLayout_3->addWidget(kUpBtn);

        kDownBtn = new QToolButton(skgsearchplugin_base);
        kDownBtn->setObjectName(QString::fromUtf8("kDownBtn"));
        kDownBtn->setAutoRaise(true);

        verticalLayout_3->addWidget(kDownBtn);

        kBottomBtn = new QToolButton(skgsearchplugin_base);
        kBottomBtn->setObjectName(QString::fromUtf8("kBottomBtn"));
        kBottomBtn->setAutoRaise(true);

        verticalLayout_3->addWidget(kBottomBtn);

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

        verticalLayout_3->addItem(verticalSpacer_3);


        horizontalLayout_5->addLayout(verticalLayout_3);


        verticalLayout->addLayout(horizontalLayout_5);

        horizontalLayout_2 = new QHBoxLayout();
        horizontalLayout_2->setSpacing(2);
        horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
        kQueryInfo = new QLabel(skgsearchplugin_base);
        kQueryInfo->setObjectName(QString::fromUtf8("kQueryInfo"));
        kQueryInfo->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        horizontalLayout_2->addWidget(kQueryInfo);

        kApply = new QToolButton(skgsearchplugin_base);
        kApply->setObjectName(QString::fromUtf8("kApply"));
        QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(kApply->sizePolicy().hasHeightForWidth());
        kApply->setSizePolicy(sizePolicy);
        kApply->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);

        horizontalLayout_2->addWidget(kApply);


        verticalLayout->addLayout(horizontalLayout_2);

        kQueryGrp = new QGroupBox(skgsearchplugin_base);
        kQueryGrp->setObjectName(QString::fromUtf8("kQueryGrp"));
        verticalLayout_4 = new QVBoxLayout(kQueryGrp);
        verticalLayout_4->setObjectName(QString::fromUtf8("verticalLayout_4"));
        kQueryCreator = new SKGQueryCreator(kQueryGrp);
        kQueryCreator->setObjectName(QString::fromUtf8("kQueryCreator"));

        verticalLayout_4->addWidget(kQueryCreator);


        verticalLayout->addWidget(kQueryGrp);

        kAlarmFrm = new QGroupBox(skgsearchplugin_base);
        kAlarmFrm->setObjectName(QString::fromUtf8("kAlarmFrm"));
        gridLayout = new QGridLayout(kAlarmFrm);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        kAlarmLbl = new QLabel(kAlarmFrm);
        kAlarmLbl->setObjectName(QString::fromUtf8("kAlarmLbl"));
        QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Preferred);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(kAlarmLbl->sizePolicy().hasHeightForWidth());
        kAlarmLbl->setSizePolicy(sizePolicy1);
        kAlarmLbl->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        kAlarmMessageLbl = new QLabel(kAlarmFrm);
        kAlarmMessageLbl->setObjectName(QString::fromUtf8("kAlarmMessageLbl"));
        kAlarmMessageLbl->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout->addWidget(kAlarmMessageLbl, 3, 0, 1, 1);

        kAlarmMessage = new KLineEdit(kAlarmFrm);
        kAlarmMessage->setObjectName(QString::fromUtf8("kAlarmMessage"));

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

        kAlarmUnit = new QLabel(kAlarmFrm);
        kAlarmUnit->setObjectName(QString::fromUtf8("kAlarmUnit"));
        sizePolicy1.setHeightForWidth(kAlarmUnit->sizePolicy().hasHeightForWidth());
        kAlarmUnit->setSizePolicy(sizePolicy1);
        QFont font;
        font.setBold(true);
        font.setWeight(75);
        kAlarmUnit->setFont(font);

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

        kAlarmAmount = new SKGCalculatorEdit(kAlarmFrm);
        kAlarmAmount->setObjectName(QString::fromUtf8("kAlarmAmount"));
        kAlarmAmount->setMinimumSize(QSize(50, 0));
        kAlarmAmount->setMaximumSize(QSize(100, 16777215));
        kAlarmAmount->setMode(SKGCalculatorEdit::EXPRESSION);

        gridLayout->addWidget(kAlarmAmount, 1, 1, 1, 1);

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

        gridLayout->addItem(horizontalSpacer, 1, 3, 1, 1);


        verticalLayout->addWidget(kAlarmFrm);

        kTemplateFrm = new QGroupBox(skgsearchplugin_base);
        kTemplateFrm->setObjectName(QString::fromUtf8("kTemplateFrm"));
        gridLayout_2 = new QGridLayout(kTemplateFrm);
        gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
        horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

        gridLayout_2->addItem(horizontalSpacer_2, 1, 2, 1, 1);

        kTemplate = new SKGComboBox(kTemplateFrm);
        kTemplate->setObjectName(QString::fromUtf8("kTemplate"));
        kTemplate->setSizeAdjustPolicy(QComboBox::AdjustToContents);

        gridLayout_2->addWidget(kTemplate, 1, 1, 1, 1);

        kAlarmLbl_2 = new QLabel(kTemplateFrm);
        kAlarmLbl_2->setObjectName(QString::fromUtf8("kAlarmLbl_2"));
        sizePolicy1.setHeightForWidth(kAlarmLbl_2->sizePolicy().hasHeightForWidth());
        kAlarmLbl_2->setSizePolicy(sizePolicy1);
        kAlarmLbl_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

        gridLayout_2->addWidget(kAlarmLbl_2, 1, 0, 1, 1);


        verticalLayout->addWidget(kTemplateFrm);

        kActionGrp = new QGroupBox(skgsearchplugin_base);
        kActionGrp->setObjectName(QString::fromUtf8("kActionGrp"));
        verticalLayout_6 = new QVBoxLayout(kActionGrp);
        verticalLayout_6->setObjectName(QString::fromUtf8("verticalLayout_6"));
        kActionCreator = new SKGQueryCreator(kActionGrp);
        kActionCreator->setObjectName(QString::fromUtf8("kActionCreator"));

        verticalLayout_6->addWidget(kActionCreator);


        verticalLayout->addWidget(kActionGrp);

        horizontalLayout_12 = new QHBoxLayout();
        horizontalLayout_12->setSpacing(2);
        horizontalLayout_12->setObjectName(QString::fromUtf8("horizontalLayout_12"));
        kWidgetSelector = new SKGWidgetSelector(skgsearchplugin_base);
        kWidgetSelector->setObjectName(QString::fromUtf8("kWidgetSelector"));

        horizontalLayout_12->addWidget(kWidgetSelector);

        kBtnFrm = new QFrame(skgsearchplugin_base);
        kBtnFrm->setObjectName(QString::fromUtf8("kBtnFrm"));
        kBtnFrm->setFrameShadow(QFrame::Raised);
        _2 = new QHBoxLayout(kBtnFrm);
        _2->setSpacing(2);
        _2->setContentsMargins(0, 0, 0, 0);
        _2->setObjectName(QString::fromUtf8("_2"));
        verticalSpacer = new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Maximum);

        _2->addItem(verticalSpacer);

        kAdd = new KPushButton(kBtnFrm);
        kAdd->setObjectName(QString::fromUtf8("kAdd"));
        kAdd->setAutoDefault(true);
        kAdd->setDefault(true);

        _2->addWidget(kAdd);

        kUpdate = new KPushButton(kBtnFrm);
        kUpdate->setObjectName(QString::fromUtf8("kUpdate"));
        kUpdate->setEnabled(false);

        _2->addWidget(kUpdate);

        horizontalSpacer_3 = new QSpacerItem(20, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);

        _2->addItem(horizontalSpacer_3);

        kSearch = new KPushButton(kBtnFrm);
        kSearch->setObjectName(QString::fromUtf8("kSearch"));

        _2->addWidget(kSearch);

        kOpenReport = new KPushButton(kBtnFrm);
        kOpenReport->setObjectName(QString::fromUtf8("kOpenReport"));

        _2->addWidget(kOpenReport);


        horizontalLayout_12->addWidget(kBtnFrm);


        verticalLayout->addLayout(horizontalLayout_12);

#ifndef UI_QT_NO_SHORTCUT
        kAlarmLbl->setBuddy(kAlarmAmount);
        kAlarmMessageLbl->setBuddy(kAlarmMessage);
        kAlarmLbl_2->setBuddy(kTemplate);
#endif // QT_NO_SHORTCUT
        QWidget::setTabOrder(kTopBtn, kUpBtn);
        QWidget::setTabOrder(kUpBtn, kDownBtn);
        QWidget::setTabOrder(kDownBtn, kBottomBtn);
        QWidget::setTabOrder(kBottomBtn, kApply);
        QWidget::setTabOrder(kApply, kAlarmAmount);
        QWidget::setTabOrder(kAlarmAmount, kAlarmMessage);
        QWidget::setTabOrder(kAlarmMessage, kTemplate);
        QWidget::setTabOrder(kTemplate, kAdd);
        QWidget::setTabOrder(kAdd, kUpdate);
        QWidget::setTabOrder(kUpdate, kSearch);
        QWidget::setTabOrder(kSearch, kOpenReport);

        retranslateUi(skgsearchplugin_base);
        QObject::connect(kAdd, SIGNAL(clicked()), skgsearchplugin_base, SLOT(onAddRule()));
        QObject::connect(kUpdate, SIGNAL(clicked()), skgsearchplugin_base, SLOT(onModifyRule()));
        QObject::connect(kTopBtn, SIGNAL(clicked()), skgsearchplugin_base, SLOT(onTop()));
        QObject::connect(kUpBtn, SIGNAL(clicked()), skgsearchplugin_base, SLOT(onUp()));
        QObject::connect(kDownBtn, SIGNAL(clicked()), skgsearchplugin_base, SLOT(onDown()));
        QObject::connect(kBottomBtn, SIGNAL(clicked()), skgsearchplugin_base, SLOT(onBottom()));
        QObject::connect(kOpenReport, SIGNAL(clicked()), skgsearchplugin_base, SLOT(onOpen()));
        QObject::connect(kSearch, SIGNAL(clicked()), skgsearchplugin_base, SLOT(onOpen()));

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

    void retranslateUi(QWidget *skgsearchplugin_base)
    {
        kQueryInfo->setText(QString());
#ifndef UI_QT_NO_TOOLTIP
        kApply->setToolTip(tr2i18n("Apply processes", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kApply->setStatusTip(tr2i18n("Apply processes", 0));
#endif // QT_NO_STATUSTIP
        kApply->setText(tr2i18n("Execute", 0));
        kQueryGrp->setTitle(tr2i18n("Search", 0));
#ifndef UI_QT_NO_STATUSTIP
        kQueryCreator->setStatusTip(tr2i18n("Allow search definition", 0));
#endif // QT_NO_STATUSTIP
        kAlarmFrm->setTitle(tr2i18n("Alarm", 0));
        kAlarmLbl->setText(tr2i18n("Alarm amount:", 0));
        kAlarmMessageLbl->setText(tr2i18n("Alarm message:", 0));
#ifndef UI_QT_NO_TOOLTIP
        kAlarmMessage->setToolTip(tr2i18n("Message to display when alarm is triggered (%1 is the total amount, %2 is the alarm amount, %3 the difference)", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kAlarmMessage->setStatusTip(tr2i18n("Message to display when alarm is triggered (%1 is the total amount, %2 is the alarm amount, %3 the difference)", 0));
#endif // QT_NO_STATUSTIP
        kAlarmUnit->setText(tr2i18n("$", 0));
#ifndef UI_QT_NO_TOOLTIP
        kAlarmAmount->setToolTip(tr2i18n("Amount triggering the alarm", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kAlarmAmount->setStatusTip(tr2i18n("Amount triggering the alarm", 0));
#endif // QT_NO_STATUSTIP
        kTemplateFrm->setTitle(tr2i18n("Template", 0));
#ifndef UI_QT_NO_TOOLTIP
        kTemplate->setToolTip(tr2i18n("The template to apply on all operations matching the condition", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kTemplate->setStatusTip(tr2i18n("The template to apply on all operations matching the condition", 0));
#endif // QT_NO_STATUSTIP
        kAlarmLbl_2->setText(tr2i18n("Template to apply:", 0));
        kActionGrp->setTitle(tr2i18n("Process", 0));
#ifndef UI_QT_NO_STATUSTIP
        kActionCreator->setStatusTip(tr2i18n("Allow process definition", 0));
#endif // QT_NO_STATUSTIP
#ifndef UI_QT_NO_TOOLTIP
        kAdd->setToolTip(tr2i18n("Add a search or a process (Ctrl+Enter)", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kAdd->setStatusTip(tr2i18n("Add a search or a process (Ctrl+Enter)", 0));
#endif // QT_NO_STATUSTIP
        kAdd->setText(tr2i18n("Add", 0));
#ifndef UI_QT_NO_TOOLTIP
        kUpdate->setToolTip(tr2i18n("Update selected search or process (Shift+Enter)", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kUpdate->setStatusTip(tr2i18n("Update selected search or process (Shift+Enter)", 0));
#endif // QT_NO_STATUSTIP
        kUpdate->setText(tr2i18n("Modify", 0));
#ifndef UI_QT_NO_TOOLTIP
        kSearch->setToolTip(tr2i18n("Search without creating rule", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kSearch->setStatusTip(tr2i18n("Search without creating rule", 0));
#endif // QT_NO_STATUSTIP
        kSearch->setText(tr2i18n("Search", 0));
#ifndef UI_QT_NO_TOOLTIP
        kOpenReport->setToolTip(tr2i18n("Open report without creating rule", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_STATUSTIP
        kOpenReport->setStatusTip(tr2i18n("Open report without creating rule", 0));
#endif // QT_NO_STATUSTIP
        kOpenReport->setText(tr2i18n("Open report", 0));
        Q_UNUSED(skgsearchplugin_base);
    } // retranslateUi

};

namespace Ui {
    class skgsearchplugin_base: public Ui_skgsearchplugin_base {};
} // namespace Ui

QT_END_NAMESPACE

#endif // SKGSEARCHPLUGINWIDGET_BASE_H

