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

/********************************************************************************
** Form generated from reading UI file 'skgquerycreator.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_SKGQUERYCREATOR_H
#define UI_SKGQUERYCREATOR_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QFrame>
#include <QtGui/QGridLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QListWidget>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QToolButton>
#include <QtGui/QWidget>
#include "klineedit.h"
#include "skgtablewidget.h"

QT_BEGIN_NAMESPACE

class Ui_skgquerycreator_base
{
public:
    QGridLayout *gridLayout;
    QSpacerItem *horizontalSpacer;
    KLineEdit *kFilterEdit;
    QFrame *kFrmAdvanced;
    QHBoxLayout *horizontalLayout;
    QListWidget *kListAtt;
    SKGTableWidget *kList;
    QToolButton *kToolHelp;
    QPushButton *kCheckMode;

    void setupUi(QWidget *skgquerycreator_base)
    {
        if (skgquerycreator_base->objectName().isEmpty())
            skgquerycreator_base->setObjectName(QString::fromUtf8("skgquerycreator_base"));
        skgquerycreator_base->resize(440, 270);
        gridLayout = new QGridLayout(skgquerycreator_base);
        gridLayout->setSpacing(2);
        gridLayout->setContentsMargins(0, 0, 0, 0);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

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

        kFilterEdit = new KLineEdit(skgquerycreator_base);
        kFilterEdit->setObjectName(QString::fromUtf8("kFilterEdit"));

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

        kFrmAdvanced = new QFrame(skgquerycreator_base);
        kFrmAdvanced->setObjectName(QString::fromUtf8("kFrmAdvanced"));
        kFrmAdvanced->setFrameShape(QFrame::NoFrame);
        kFrmAdvanced->setFrameShadow(QFrame::Plain);
        horizontalLayout = new QHBoxLayout(kFrmAdvanced);
        horizontalLayout->setSpacing(2);
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        horizontalLayout->setContentsMargins(0, 0, 0, 2);
        kListAtt = new QListWidget(kFrmAdvanced);
        kListAtt->setObjectName(QString::fromUtf8("kListAtt"));
        kListAtt->setMaximumSize(QSize(150, 16777215));

        horizontalLayout->addWidget(kListAtt);

        kList = new SKGTableWidget(kFrmAdvanced);
        kList->setObjectName(QString::fromUtf8("kList"));
        kList->setAcceptDrops(true);
        kList->setEditTriggers(QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked);
        kList->horizontalHeader()->setMinimumSectionSize(50);
        kList->horizontalHeader()->setStretchLastSection(true);

        horizontalLayout->addWidget(kList);


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

        kToolHelp = new QToolButton(skgquerycreator_base);
        kToolHelp->setObjectName(QString::fromUtf8("kToolHelp"));
        kToolHelp->setMaximumSize(QSize(28, 28));
        kToolHelp->setPopupMode(QToolButton::InstantPopup);
        kToolHelp->setAutoRaise(true);

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

        kCheckMode = new QPushButton(skgquerycreator_base);
        kCheckMode->setObjectName(QString::fromUtf8("kCheckMode"));
        kCheckMode->setMaximumSize(QSize(28, 28));
        kCheckMode->setFlat(true);

        gridLayout->addWidget(kCheckMode, 0, 2, 1, 1);

        QWidget::setTabOrder(kFilterEdit, kListAtt);
        QWidget::setTabOrder(kListAtt, kList);

        retranslateUi(skgquerycreator_base);
        QObject::connect(kListAtt, SIGNAL(doubleClicked(QModelIndex)), skgquerycreator_base, SLOT(onAddColumn()));

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

    void retranslateUi(QWidget *skgquerycreator_base)
    {
#ifndef UI_QT_NO_TOOLTIP
        kFilterEdit->setToolTip(tr2i18n("<html><head/><body><p>Searching is case-insensitive. So table, Table, and TABLE are all the same.<br/>If you just put a word or series of words in the search box, the application will filter the table to keep all lines having these words (logical operator AND). <br/>If you want to add (logical operator OR) some lines, you must prefix your word by &quot;+&quot;.<br/>If you want to remove (logical operator NOT) some lines, you must prefix your word by &quot;-&quot;.<br/>If you want to search only on one column, you must prefix your word by the column name like: col1:word.<br/>If you want to use the character &quot;:&quot; in value, you must specify the column name like this: col1:value:rest.<br/>If you want to search for a phrase or something that contains spaces, you must put it in quotes, like: &quot;yes, this is a phrase&quot;.</p><p>You can also use operator &quot;&lt;&quot; and &quot;&gt;&quot;.</p><p><span style=\" font-weight:600; text-decoration: underline;\">Examples:</span><br/>+val1 +val2 =&gt; Keep l"
                        "ines containing val1 OR val2<br/>+val1 -val2 =&gt; Keep lines containing val1 but NOT val2<br/>&quot;abc def&quot; =&gt; Keep lines containing the sentence &quot;abc def&quot; <br/>&quot;-att:abc def&quot; =&gt; Remove lines having a column name starting by abc and containing &quot;abc def&quot; <br/>abc:def =&gt; Keep lines having a column name starting by abc and containing def<br/>:abc:def =&gt; Keep lines containing &quot;abc:def&quot;<br/>Date&gt;2015-03-01 =&gt; Keep lines where Date attribute is greater than 2015-03-01<br/>Amount&lt;10 =&gt;Keep lines where Amount attribute is less than 10</p></body></html>", 0));
#endif // QT_NO_TOOLTIP
        kFilterEdit->setText(QString());
        kFilterEdit->setPlaceholderText(tr2i18n("Search", 0));
#ifndef UI_QT_NO_TOOLTIP
        kList->setToolTip(tr2i18n("Double click on items in the list on the left to add them to the query definition", 0));
#endif // QT_NO_TOOLTIP
#ifndef UI_QT_NO_WHATSTHIS
        kList->setWhatsThis(tr2i18n("Define your query here. Double click on items in the list on the left to add them to the query as defined in the table.\n"
"\n"
"There is a \"And\" relationship between columns, and a \"Or\" relationship between lines.\n"
"\n"
"Read the Skrooge documentation for more details.", 0));
#endif // QT_NO_WHATSTHIS
#ifndef UI_QT_NO_TOOLTIP
        kToolHelp->setToolTip(tr2i18n("This menu can help you to build your query", 0));
#endif // QT_NO_TOOLTIP
        Q_UNUSED(skgquerycreator_base);
    } // retranslateUi

};

namespace Ui {
    class skgquerycreator_base: public Ui_skgquerycreator_base {};
} // namespace Ui

QT_END_NAMESPACE

#endif // SKGQUERYCREATOR_H

