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

#ifndef UI_QUERYWIDGET_H
#define UI_QUERYWIDGET_H

#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QSlider>
#include <QtWidgets/QTableView>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>

QT_BEGIN_NAMESPACE

class Ui_QueryWidget
{
public:
    QGridLayout *gridLayout;
    QGroupBox *groupBox_fallbackOrder;
    QVBoxLayout *verticalLayout_2;
    QTableView *tableView_fallbackOrder;
    QFormLayout *formLayout;
    QLabel *label_decay;
    QHBoxLayout *horizontalLayout_decay;
    QLabel *label_mru;
    QSlider *slider_decay;
    QLabel *label_mfu;
    QCheckBox *checkBox_prioritizePerfectMatch;
    QLabel *label_prioritizePerfectMatch;
    QGroupBox *groupBox_queryHandlers;
    QVBoxLayout *verticalLayout;
    QTableView *tableView_queryHandlers;

    void setupUi(QWidget *QueryWidget)
    {
        if (QueryWidget->objectName().isEmpty())
            QueryWidget->setObjectName("QueryWidget");
        gridLayout = new QGridLayout(QueryWidget);
        gridLayout->setSpacing(6);
        gridLayout->setObjectName("gridLayout");
        gridLayout->setContentsMargins(6, 6, 6, 6);
        groupBox_fallbackOrder = new QGroupBox(QueryWidget);
        groupBox_fallbackOrder->setObjectName("groupBox_fallbackOrder");
        verticalLayout_2 = new QVBoxLayout(groupBox_fallbackOrder);
        verticalLayout_2->setObjectName("verticalLayout_2");
        verticalLayout_2->setContentsMargins(0, 0, 0, 0);
        tableView_fallbackOrder = new QTableView(groupBox_fallbackOrder);
        tableView_fallbackOrder->setObjectName("tableView_fallbackOrder");
        tableView_fallbackOrder->setDragDropMode(QAbstractItemView::DragDropMode::InternalMove);
        tableView_fallbackOrder->setSelectionMode(QAbstractItemView::SelectionMode::ContiguousSelection);
        tableView_fallbackOrder->setSelectionBehavior(QAbstractItemView::SelectionBehavior::SelectRows);
        tableView_fallbackOrder->setShowGrid(false);
        tableView_fallbackOrder->setWordWrap(false);
        tableView_fallbackOrder->horizontalHeader()->setStretchLastSection(true);
        tableView_fallbackOrder->verticalHeader()->setVisible(false);

        verticalLayout_2->addWidget(tableView_fallbackOrder);


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

        formLayout = new QFormLayout();
        formLayout->setObjectName("formLayout");
        label_decay = new QLabel(QueryWidget);
        label_decay->setObjectName("label_decay");

        formLayout->setWidget(0, QFormLayout::ItemRole::LabelRole, label_decay);

        horizontalLayout_decay = new QHBoxLayout();
        horizontalLayout_decay->setObjectName("horizontalLayout_decay");
        label_mru = new QLabel(QueryWidget);
        label_mru->setObjectName("label_mru");

        horizontalLayout_decay->addWidget(label_mru);

        slider_decay = new QSlider(QueryWidget);
        slider_decay->setObjectName("slider_decay");
        slider_decay->setMinimum(50);
        slider_decay->setMaximum(100);
        slider_decay->setSingleStep(5);
        slider_decay->setPageStep(5);
        slider_decay->setTracking(false);
        slider_decay->setOrientation(Qt::Orientation::Horizontal);
        slider_decay->setTickPosition(QSlider::TickPosition::TicksBelow);
        slider_decay->setTickInterval(5);

        horizontalLayout_decay->addWidget(slider_decay);

        label_mfu = new QLabel(QueryWidget);
        label_mfu->setObjectName("label_mfu");

        horizontalLayout_decay->addWidget(label_mfu);


        formLayout->setLayout(0, QFormLayout::ItemRole::FieldRole, horizontalLayout_decay);

        checkBox_prioritizePerfectMatch = new QCheckBox(QueryWidget);
        checkBox_prioritizePerfectMatch->setObjectName("checkBox_prioritizePerfectMatch");

        formLayout->setWidget(1, QFormLayout::ItemRole::FieldRole, checkBox_prioritizePerfectMatch);

        label_prioritizePerfectMatch = new QLabel(QueryWidget);
        label_prioritizePerfectMatch->setObjectName("label_prioritizePerfectMatch");

        formLayout->setWidget(1, QFormLayout::ItemRole::LabelRole, label_prioritizePerfectMatch);


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

        groupBox_queryHandlers = new QGroupBox(QueryWidget);
        groupBox_queryHandlers->setObjectName("groupBox_queryHandlers");
        verticalLayout = new QVBoxLayout(groupBox_queryHandlers);
        verticalLayout->setObjectName("verticalLayout");
        verticalLayout->setContentsMargins(0, 0, 0, 0);
        tableView_queryHandlers = new QTableView(groupBox_queryHandlers);
        tableView_queryHandlers->setObjectName("tableView_queryHandlers");
        QSizePolicy sizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Expanding);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(tableView_queryHandlers->sizePolicy().hasHeightForWidth());
        tableView_queryHandlers->setSizePolicy(sizePolicy);
        tableView_queryHandlers->setSelectionMode(QAbstractItemView::SelectionMode::SingleSelection);
        tableView_queryHandlers->setShowGrid(false);
        tableView_queryHandlers->setWordWrap(false);
        tableView_queryHandlers->verticalHeader()->setVisible(false);

        verticalLayout->addWidget(tableView_queryHandlers);


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

#if QT_CONFIG(shortcut)
        label_decay->setBuddy(slider_decay);
        label_prioritizePerfectMatch->setBuddy(checkBox_prioritizePerfectMatch);
#endif // QT_CONFIG(shortcut)
        QWidget::setTabOrder(tableView_queryHandlers, slider_decay);
        QWidget::setTabOrder(slider_decay, checkBox_prioritizePerfectMatch);
        QWidget::setTabOrder(checkBox_prioritizePerfectMatch, tableView_fallbackOrder);

        retranslateUi(QueryWidget);

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

    void retranslateUi(QWidget *QueryWidget)
    {
        groupBox_fallbackOrder->setTitle(QCoreApplication::translate("QueryWidget", "Fallback order", nullptr));
        label_decay->setText(QCoreApplication::translate("QueryWidget", "Sort preference", nullptr));
#if QT_CONFIG(tooltip)
        label_mru->setToolTip(QCoreApplication::translate("QueryWidget", "Prefer most recently used results.", nullptr));
#endif // QT_CONFIG(tooltip)
        label_mru->setText(QCoreApplication::translate("QueryWidget", "MRU", nullptr));
#if QT_CONFIG(tooltip)
        slider_decay->setToolTip(QCoreApplication::translate("QueryWidget", "This preference determines how past activations influence the ranking of the results of a query.\n"
"Using MFU all activations get the same weight and the cumulated score of a results is the count of its usages.\n"
"Using MRU the sum of weights of past activations can not exceed those of newer ones.\n"
"Recommended is a value in between, such that the results you use often are preferred while still allowing Albert to adapt to changes in your usage habits.", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(tooltip)
        label_mfu->setToolTip(QCoreApplication::translate("QueryWidget", "Prefer most frequently used results.", nullptr));
#endif // QT_CONFIG(tooltip)
        label_mfu->setText(QCoreApplication::translate("QueryWidget", "MFU", nullptr));
#if QT_CONFIG(tooltip)
        checkBox_prioritizePerfectMatch->setToolTip(QCoreApplication::translate("QueryWidget", "Prioritize perfect matches even if they have no usage history and therefore would have a lower rank.", nullptr));
#endif // QT_CONFIG(tooltip)
        checkBox_prioritizePerfectMatch->setText(QString());
        label_prioritizePerfectMatch->setText(QCoreApplication::translate("QueryWidget", "Prioritize perfect matches", nullptr));
        groupBox_queryHandlers->setTitle(QCoreApplication::translate("QueryWidget", "Query handlers", nullptr));
        (void)QueryWidget;
    } // retranslateUi

};

namespace Ui {
    class QueryWidget: public Ui_QueryWidget {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_QUERYWIDGET_H
