/*
Query builder for vector layers
*/

/********************************************************************************
** Form generated from reading UI file 'qgsquerybuilderbase.ui'
**
** Created by: Qt User Interface Compiler version 6.10.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UI_QGSQUERYBUILDERBASE_H
#define UI_QGSQUERYBUILDERBASE_H

#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QListView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSplitter>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "qgscodeeditorsql.h"
#include "qgscollapsiblegroupbox.h"
#include "qgsfilterlineedit.h"

QT_BEGIN_NAMESPACE

class Ui_QgsQueryBuilderBase
{
public:
    QGridLayout *gridLayout;
    QLabel *lblDataUri;
    QSplitter *splitter_2;
    QSplitter *splitter;
    QGroupBox *groupBox1;
    QGridLayout *gridLayout1;
    QListView *lstFields;
    QGroupBox *groupBox2;
    QGridLayout *gridLayout2;
    QCheckBox *mUseUnfilteredLayer;
    QPushButton *btnGetAllValues;
    QPushButton *btnSampleValues;
    QListView *lstValues;
    QgsFilterLineEdit *mFilterLineEdit;
    QWidget *verticalLayoutWidget;
    QVBoxLayout *verticalLayout;
    QgsCollapsibleGroupBox *groupBox4;
    QGridLayout *gridLayout3;
    QPushButton *btnLike;
    QPushButton *btnIn;
    QPushButton *btnLessEqual;
    QPushButton *btnLessThan;
    QPushButton *btnNotIn;
    QPushButton *btnGreaterThan;
    QPushButton *btnEqual;
    QPushButton *btnILike;
    QPushButton *btnOr;
    QPushButton *btnPct;
    QPushButton *btnNotEqual;
    QPushButton *btnGreaterEqual;
    QPushButton *btnAnd;
    QPushButton *btnNot;
    QSpacerItem *horizontalSpacer;
    QGroupBox *groupBox3;
    QGridLayout *gridLayout4;
    QgsCodeEditorSQL *mTxtSql;
    QLabel *lblProviderFilterInfo;
    QDialogButtonBox *buttonBox;

    void setupUi(QDialog *QgsQueryBuilderBase)
    {
        if (QgsQueryBuilderBase->objectName().isEmpty())
            QgsQueryBuilderBase->setObjectName("QgsQueryBuilderBase");
        QgsQueryBuilderBase->resize(710, 707);
        QSizePolicy sizePolicy(QSizePolicy::Policy::Fixed, QSizePolicy::Policy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(QgsQueryBuilderBase->sizePolicy().hasHeightForWidth());
        QgsQueryBuilderBase->setSizePolicy(sizePolicy);
        QIcon icon;
        icon.addFile(QString::fromUtf8("."), QSize(), QIcon::Mode::Normal, QIcon::State::Off);
        QgsQueryBuilderBase->setWindowIcon(icon);
        QgsQueryBuilderBase->setModal(true);
        gridLayout = new QGridLayout(QgsQueryBuilderBase);
        gridLayout->setSpacing(6);
        gridLayout->setContentsMargins(11, 11, 11, 11);
        gridLayout->setObjectName("gridLayout");
        lblDataUri = new QLabel(QgsQueryBuilderBase);
        lblDataUri->setObjectName("lblDataUri");

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

        splitter_2 = new QSplitter(QgsQueryBuilderBase);
        splitter_2->setObjectName("splitter_2");
        splitter_2->setMaximumSize(QSize(16777215, 16777215));
        splitter_2->setOrientation(Qt::Orientation::Vertical);
        splitter_2->setChildrenCollapsible(false);
        splitter = new QSplitter(splitter_2);
        splitter->setObjectName("splitter");
        splitter->setOrientation(Qt::Orientation::Horizontal);
        splitter->setChildrenCollapsible(false);
        groupBox1 = new QGroupBox(splitter);
        groupBox1->setObjectName("groupBox1");
        QSizePolicy sizePolicy1(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Expanding);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(groupBox1->sizePolicy().hasHeightForWidth());
        groupBox1->setSizePolicy(sizePolicy1);
        gridLayout1 = new QGridLayout(groupBox1);
        gridLayout1->setSpacing(6);
        gridLayout1->setContentsMargins(11, 11, 11, 11);
        gridLayout1->setObjectName("gridLayout1");
        gridLayout1->setContentsMargins(11, 11, 11, 11);
        lstFields = new QListView(groupBox1);
        lstFields->setObjectName("lstFields");

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

        splitter->addWidget(groupBox1);
        groupBox2 = new QGroupBox(splitter);
        groupBox2->setObjectName("groupBox2");
        sizePolicy1.setHeightForWidth(groupBox2->sizePolicy().hasHeightForWidth());
        groupBox2->setSizePolicy(sizePolicy1);
        gridLayout2 = new QGridLayout(groupBox2);
        gridLayout2->setSpacing(6);
        gridLayout2->setContentsMargins(11, 11, 11, 11);
        gridLayout2->setObjectName("gridLayout2");
        gridLayout2->setContentsMargins(11, 11, 11, 11);
        mUseUnfilteredLayer = new QCheckBox(groupBox2);
        mUseUnfilteredLayer->setObjectName("mUseUnfilteredLayer");
        mUseUnfilteredLayer->setEnabled(false);
        QSizePolicy sizePolicy2(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Fixed);
        sizePolicy2.setHorizontalStretch(0);
        sizePolicy2.setVerticalStretch(0);
        sizePolicy2.setHeightForWidth(mUseUnfilteredLayer->sizePolicy().hasHeightForWidth());
        mUseUnfilteredLayer->setSizePolicy(sizePolicy2);

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

        btnGetAllValues = new QPushButton(groupBox2);
        btnGetAllValues->setObjectName("btnGetAllValues");

        gridLayout2->addWidget(btnGetAllValues, 2, 1, 1, 1);

        btnSampleValues = new QPushButton(groupBox2);
        btnSampleValues->setObjectName("btnSampleValues");

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

        lstValues = new QListView(groupBox2);
        lstValues->setObjectName("lstValues");
        lstValues->setAutoFillBackground(true);
        lstValues->setSelectionBehavior(QAbstractItemView::SelectionBehavior::SelectRows);
        lstValues->setUniformItemSizes(true);

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

        mFilterLineEdit = new QgsFilterLineEdit(groupBox2);
        mFilterLineEdit->setObjectName("mFilterLineEdit");

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

        splitter->addWidget(groupBox2);
        splitter_2->addWidget(splitter);
        verticalLayoutWidget = new QWidget(splitter_2);
        verticalLayoutWidget->setObjectName("verticalLayoutWidget");
        verticalLayout = new QVBoxLayout(verticalLayoutWidget);
        verticalLayout->setSpacing(6);
        verticalLayout->setContentsMargins(11, 11, 11, 11);
        verticalLayout->setObjectName("verticalLayout");
        verticalLayout->setContentsMargins(0, 0, 0, 0);
        groupBox4 = new QgsCollapsibleGroupBox(verticalLayoutWidget);
        groupBox4->setObjectName("groupBox4");
        gridLayout3 = new QGridLayout(groupBox4);
        gridLayout3->setSpacing(6);
        gridLayout3->setContentsMargins(11, 11, 11, 11);
        gridLayout3->setObjectName("gridLayout3");
        gridLayout3->setContentsMargins(11, 11, 11, 11);
        btnLike = new QPushButton(groupBox4);
        btnLike->setObjectName("btnLike");

        gridLayout3->addWidget(btnLike, 0, 3, 1, 1);

        btnIn = new QPushButton(groupBox4);
        btnIn->setObjectName("btnIn");

        gridLayout3->addWidget(btnIn, 0, 5, 1, 1);

        btnLessEqual = new QPushButton(groupBox4);
        btnLessEqual->setObjectName("btnLessEqual");

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

        btnLessThan = new QPushButton(groupBox4);
        btnLessThan->setObjectName("btnLessThan");

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

        btnNotIn = new QPushButton(groupBox4);
        btnNotIn->setObjectName("btnNotIn");

        gridLayout3->addWidget(btnNotIn, 0, 6, 1, 1);

        btnGreaterThan = new QPushButton(groupBox4);
        btnGreaterThan->setObjectName("btnGreaterThan");

        gridLayout3->addWidget(btnGreaterThan, 0, 2, 1, 1);

        btnEqual = new QPushButton(groupBox4);
        btnEqual->setObjectName("btnEqual");

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

        btnILike = new QPushButton(groupBox4);
        btnILike->setObjectName("btnILike");

        gridLayout3->addWidget(btnILike, 1, 3, 1, 1);

        btnOr = new QPushButton(groupBox4);
        btnOr->setObjectName("btnOr");

        gridLayout3->addWidget(btnOr, 1, 5, 1, 1);

        btnPct = new QPushButton(groupBox4);
        btnPct->setObjectName("btnPct");

        gridLayout3->addWidget(btnPct, 0, 4, 1, 1);

        btnNotEqual = new QPushButton(groupBox4);
        btnNotEqual->setObjectName("btnNotEqual");

        gridLayout3->addWidget(btnNotEqual, 1, 2, 1, 1);

        btnGreaterEqual = new QPushButton(groupBox4);
        btnGreaterEqual->setObjectName("btnGreaterEqual");

        gridLayout3->addWidget(btnGreaterEqual, 1, 1, 1, 1);

        btnAnd = new QPushButton(groupBox4);
        btnAnd->setObjectName("btnAnd");

        gridLayout3->addWidget(btnAnd, 1, 4, 1, 1);

        btnNot = new QPushButton(groupBox4);
        btnNot->setObjectName("btnNot");

        gridLayout3->addWidget(btnNot, 1, 6, 1, 1);

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

        gridLayout3->addItem(horizontalSpacer, 0, 7, 1, 1);


        verticalLayout->addWidget(groupBox4);

        groupBox3 = new QGroupBox(verticalLayoutWidget);
        groupBox3->setObjectName("groupBox3");
        sizePolicy1.setHeightForWidth(groupBox3->sizePolicy().hasHeightForWidth());
        groupBox3->setSizePolicy(sizePolicy1);
        gridLayout4 = new QGridLayout(groupBox3);
        gridLayout4->setSpacing(6);
        gridLayout4->setContentsMargins(11, 11, 11, 11);
        gridLayout4->setObjectName("gridLayout4");
        gridLayout4->setContentsMargins(11, 11, 11, 11);
        mTxtSql = new QgsCodeEditorSQL(groupBox3);
        mTxtSql->setObjectName("mTxtSql");

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

        lblProviderFilterInfo = new QLabel(groupBox3);
        lblProviderFilterInfo->setObjectName("lblProviderFilterInfo");

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


        verticalLayout->addWidget(groupBox3);

        splitter_2->addWidget(verticalLayoutWidget);

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

        buttonBox = new QDialogButtonBox(QgsQueryBuilderBase);
        buttonBox->setObjectName("buttonBox");
        buttonBox->setStandardButtons(QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Help|QDialogButtonBox::StandardButton::Ok);

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

        splitter_2->raise();
        lblDataUri->raise();
        buttonBox->raise();
        QWidget::setTabOrder(lstFields, mFilterLineEdit);
        QWidget::setTabOrder(mFilterLineEdit, lstValues);
        QWidget::setTabOrder(lstValues, btnSampleValues);
        QWidget::setTabOrder(btnSampleValues, btnGetAllValues);
        QWidget::setTabOrder(btnGetAllValues, mUseUnfilteredLayer);
        QWidget::setTabOrder(mUseUnfilteredLayer, btnEqual);
        QWidget::setTabOrder(btnEqual, btnLessThan);
        QWidget::setTabOrder(btnLessThan, btnGreaterThan);
        QWidget::setTabOrder(btnGreaterThan, btnLike);
        QWidget::setTabOrder(btnLike, btnPct);
        QWidget::setTabOrder(btnPct, btnIn);
        QWidget::setTabOrder(btnIn, btnNotIn);
        QWidget::setTabOrder(btnNotIn, btnLessEqual);
        QWidget::setTabOrder(btnLessEqual, btnGreaterEqual);
        QWidget::setTabOrder(btnGreaterEqual, btnNotEqual);
        QWidget::setTabOrder(btnNotEqual, btnILike);
        QWidget::setTabOrder(btnILike, btnAnd);
        QWidget::setTabOrder(btnAnd, btnOr);
        QWidget::setTabOrder(btnOr, btnNot);

        retranslateUi(QgsQueryBuilderBase);
        QObject::connect(buttonBox, &QDialogButtonBox::rejected, QgsQueryBuilderBase, qOverload<>(&QDialog::reject));
        QObject::connect(buttonBox, &QDialogButtonBox::accepted, QgsQueryBuilderBase, qOverload<>(&QDialog::accept));

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

    void retranslateUi(QDialog *QgsQueryBuilderBase)
    {
        QgsQueryBuilderBase->setWindowTitle(QCoreApplication::translate("QgsQueryBuilderBase", "Query Builder", nullptr));
        lblDataUri->setText(QCoreApplication::translate("QgsQueryBuilderBase", "Datasource", nullptr));
        groupBox1->setTitle(QCoreApplication::translate("QgsQueryBuilderBase", "Fields", nullptr));
#if QT_CONFIG(tooltip)
        lstFields->setToolTip(QCoreApplication::translate("QgsQueryBuilderBase", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">List of fields in this vector file</p></body></html>", nullptr));
#endif // QT_CONFIG(tooltip)
        groupBox2->setTitle(QCoreApplication::translate("QgsQueryBuilderBase", "Values", nullptr));
        mUseUnfilteredLayer->setText(QCoreApplication::translate("QgsQueryBuilderBase", "Use unfiltered layer", nullptr));
#if QT_CONFIG(tooltip)
        btnGetAllValues->setToolTip(QCoreApplication::translate("QgsQueryBuilderBase", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Retrieve <span style=\" font-weight:600;\">all</span> the record in the vector file (<span style=\" font-style:italic;\">if the table is big, the operation can consume some time</span>)</p></body></html>", nullptr));
#endif // QT_CONFIG(tooltip)
        btnGetAllValues->setText(QCoreApplication::translate("QgsQueryBuilderBase", "All", nullptr));
#if QT_CONFIG(tooltip)
        btnSampleValues->setToolTip(QCoreApplication::translate("QgsQueryBuilderBase", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Take a <span style=\" font-weight:600;\">sample</span> of records in the vector file</p></body></html>", nullptr));
#endif // QT_CONFIG(tooltip)
        btnSampleValues->setText(QCoreApplication::translate("QgsQueryBuilderBase", "Sample", nullptr));
#if QT_CONFIG(tooltip)
        lstValues->setToolTip(QCoreApplication::translate("QgsQueryBuilderBase", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">List of values for the current field.</p></body></html>", nullptr));
#endif // QT_CONFIG(tooltip)
        groupBox4->setTitle(QCoreApplication::translate("QgsQueryBuilderBase", "Operators", nullptr));
        btnLike->setText(QCoreApplication::translate("QgsQueryBuilderBase", "LIKE", nullptr));
        btnIn->setText(QCoreApplication::translate("QgsQueryBuilderBase", "IN", nullptr));
        btnLessEqual->setText(QCoreApplication::translate("QgsQueryBuilderBase", "<=", nullptr));
        btnLessThan->setText(QCoreApplication::translate("QgsQueryBuilderBase", "<", nullptr));
        btnNotIn->setText(QCoreApplication::translate("QgsQueryBuilderBase", "NOT IN", nullptr));
        btnGreaterThan->setText(QCoreApplication::translate("QgsQueryBuilderBase", ">", nullptr));
        btnEqual->setText(QCoreApplication::translate("QgsQueryBuilderBase", "=", nullptr));
        btnILike->setText(QCoreApplication::translate("QgsQueryBuilderBase", "ILIKE", nullptr));
        btnOr->setText(QCoreApplication::translate("QgsQueryBuilderBase", "OR", nullptr));
        btnPct->setText(QCoreApplication::translate("QgsQueryBuilderBase", "%", nullptr));
        btnNotEqual->setText(QCoreApplication::translate("QgsQueryBuilderBase", "!=", nullptr));
        btnGreaterEqual->setText(QCoreApplication::translate("QgsQueryBuilderBase", ">=", nullptr));
        btnAnd->setText(QCoreApplication::translate("QgsQueryBuilderBase", "AND", nullptr));
        btnNot->setText(QCoreApplication::translate("QgsQueryBuilderBase", "NOT", nullptr));
        groupBox3->setTitle(QCoreApplication::translate("QgsQueryBuilderBase", "Provider Specific Filter Expression", nullptr));
        lblProviderFilterInfo->setText(QCoreApplication::translate("QgsQueryBuilderBase", "Provider expression dialect", nullptr));
    } // retranslateUi

};

namespace Ui {
    class QgsQueryBuilderBase: public Ui_QgsQueryBuilderBase {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_QGSQUERYBUILDERBASE_H
