/********************************************************************************
** Form generated from reading UI file 'qgsmssqlnewconnectionbase.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_QGSMSSQLNEWCONNECTIONBASE_H
#define UI_QGSMSSQLNEWCONNECTIONBASE_H

#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QListView>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QVBoxLayout>
#include <qgscollapsiblegroupbox.h>
#include "qgsmessagebar.h"
#include "qgspasswordlineedit.h"

QT_BEGIN_NAMESPACE

class Ui_QgsMssqlNewConnectionBase
{
public:
    QGridLayout *gridLayout;
    QgsMessageBar *bar;
    QGroupBox *GroupBox1;
    QFormLayout *formLayout;
    QLabel *TextLabel1_2;
    QLineEdit *txtName;
    QLabel *label;
    QLineEdit *txtService;
    QLabel *TextLabel1;
    QLineEdit *txtHost;
    QLabel *label_2;
    QGroupBox *groupBox;
    QFormLayout *formLayout_2;
    QCheckBox *cb_trustedConnection;
    QLabel *TextLabel3;
    QHBoxLayout *horizontalLayout;
    QLineEdit *txtUsername;
    QCheckBox *chkStoreUsername;
    QLabel *TextLabel3_2;
    QHBoxLayout *horizontalLayout_2;
    QgsPasswordLineEdit *txtPassword;
    QCheckBox *chkStorePassword;
    QLabel *lblWarning;
    QGroupBox *groupBox_2;
    QFormLayout *formLayout_3;
    QLabel *TextLabel2;
    QPushButton *btnListDatabase;
    QListWidget *listDatabase;
    QGroupBox *groupBoxGeometryColumns;
    QVBoxLayout *verticalLayout_2;
    QCheckBox *checkBoxExtentFromGeometryColumns;
    QCheckBox *checkBoxPKFromGeometryColumns;
    QCheckBox *cb_allowGeometrylessTables;
    QCheckBox *cb_useEstimatedMetadata;
    QCheckBox *mCheckNoInvalidGeometryHandling;
    QgsCollapsibleGroupBoxBasic *groupBoxSchemasFilter;
    QVBoxLayout *verticalLayout;
    QListView *schemaView;
    QPushButton *btnConnect;
    QDialogButtonBox *buttonBox;

    void setupUi(QDialog *QgsMssqlNewConnectionBase)
    {
        if (QgsMssqlNewConnectionBase->objectName().isEmpty())
            QgsMssqlNewConnectionBase->setObjectName("QgsMssqlNewConnectionBase");
        QgsMssqlNewConnectionBase->resize(800, 755);
        QSizePolicy sizePolicy(QSizePolicy::Policy::MinimumExpanding, QSizePolicy::Policy::MinimumExpanding);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(QgsMssqlNewConnectionBase->sizePolicy().hasHeightForWidth());
        QgsMssqlNewConnectionBase->setSizePolicy(sizePolicy);
        QgsMssqlNewConnectionBase->setSizeGripEnabled(true);
        QgsMssqlNewConnectionBase->setModal(true);
        gridLayout = new QGridLayout(QgsMssqlNewConnectionBase);
        gridLayout->setSpacing(6);
        gridLayout->setContentsMargins(11, 11, 11, 11);
        gridLayout->setObjectName("gridLayout");
        gridLayout->setContentsMargins(9, 0, 9, 9);
        bar = new QgsMessageBar(QgsMssqlNewConnectionBase);
        bar->setObjectName("bar");

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

        GroupBox1 = new QGroupBox(QgsMssqlNewConnectionBase);
        GroupBox1->setObjectName("GroupBox1");
        formLayout = new QFormLayout(GroupBox1);
        formLayout->setSpacing(6);
        formLayout->setContentsMargins(11, 11, 11, 11);
        formLayout->setObjectName("formLayout");
        TextLabel1_2 = new QLabel(GroupBox1);
        TextLabel1_2->setObjectName("TextLabel1_2");

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

        txtName = new QLineEdit(GroupBox1);
        txtName->setObjectName("txtName");

        formLayout->setWidget(0, QFormLayout::ItemRole::FieldRole, txtName);

        label = new QLabel(GroupBox1);
        label->setObjectName("label");

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

        txtService = new QLineEdit(GroupBox1);
        txtService->setObjectName("txtService");

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

        TextLabel1 = new QLabel(GroupBox1);
        TextLabel1->setObjectName("TextLabel1");

        formLayout->setWidget(2, QFormLayout::ItemRole::LabelRole, TextLabel1);

        txtHost = new QLineEdit(GroupBox1);
        txtHost->setObjectName("txtHost");

        formLayout->setWidget(2, QFormLayout::ItemRole::FieldRole, txtHost);

        label_2 = new QLabel(GroupBox1);
        label_2->setObjectName("label_2");

        formLayout->setWidget(4, QFormLayout::ItemRole::LabelRole, label_2);

        groupBox = new QGroupBox(GroupBox1);
        groupBox->setObjectName("groupBox");
        groupBox->setFlat(true);
        formLayout_2 = new QFormLayout(groupBox);
        formLayout_2->setSpacing(6);
        formLayout_2->setContentsMargins(11, 11, 11, 11);
        formLayout_2->setObjectName("formLayout_2");
        cb_trustedConnection = new QCheckBox(groupBox);
        cb_trustedConnection->setObjectName("cb_trustedConnection");
        cb_trustedConnection->setChecked(true);

        formLayout_2->setWidget(0, QFormLayout::ItemRole::FieldRole, cb_trustedConnection);

        TextLabel3 = new QLabel(groupBox);
        TextLabel3->setObjectName("TextLabel3");

        formLayout_2->setWidget(1, QFormLayout::ItemRole::LabelRole, TextLabel3);

        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setSpacing(6);
        horizontalLayout->setObjectName("horizontalLayout");
        horizontalLayout->setContentsMargins(-1, 0, -1, -1);
        txtUsername = new QLineEdit(groupBox);
        txtUsername->setObjectName("txtUsername");
        txtUsername->setEnabled(false);

        horizontalLayout->addWidget(txtUsername);

        chkStoreUsername = new QCheckBox(groupBox);
        chkStoreUsername->setObjectName("chkStoreUsername");
        chkStoreUsername->setEnabled(false);

        horizontalLayout->addWidget(chkStoreUsername);


        formLayout_2->setLayout(1, QFormLayout::ItemRole::FieldRole, horizontalLayout);

        TextLabel3_2 = new QLabel(groupBox);
        TextLabel3_2->setObjectName("TextLabel3_2");

        formLayout_2->setWidget(2, QFormLayout::ItemRole::LabelRole, TextLabel3_2);

        horizontalLayout_2 = new QHBoxLayout();
        horizontalLayout_2->setSpacing(6);
        horizontalLayout_2->setObjectName("horizontalLayout_2");
        horizontalLayout_2->setContentsMargins(-1, 0, -1, -1);
        txtPassword = new QgsPasswordLineEdit(groupBox);
        txtPassword->setObjectName("txtPassword");
        txtPassword->setEnabled(false);
        txtPassword->setEchoMode(QLineEdit::Password);

        horizontalLayout_2->addWidget(txtPassword);

        chkStorePassword = new QCheckBox(groupBox);
        chkStorePassword->setObjectName("chkStorePassword");
        chkStorePassword->setEnabled(false);

        horizontalLayout_2->addWidget(chkStorePassword);


        formLayout_2->setLayout(2, QFormLayout::ItemRole::FieldRole, horizontalLayout_2);

        lblWarning = new QLabel(groupBox);
        lblWarning->setObjectName("lblWarning");
        QSizePolicy sizePolicy1(QSizePolicy::Policy::Ignored, QSizePolicy::Policy::Ignored);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(lblWarning->sizePolicy().hasHeightForWidth());
        lblWarning->setSizePolicy(sizePolicy1);
        lblWarning->setWordWrap(true);

        formLayout_2->setWidget(3, QFormLayout::ItemRole::FieldRole, lblWarning);


        formLayout->setWidget(3, QFormLayout::ItemRole::SpanningRole, groupBox);


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

        groupBox_2 = new QGroupBox(QgsMssqlNewConnectionBase);
        groupBox_2->setObjectName("groupBox_2");
        formLayout_3 = new QFormLayout(groupBox_2);
        formLayout_3->setSpacing(6);
        formLayout_3->setContentsMargins(11, 11, 11, 11);
        formLayout_3->setObjectName("formLayout_3");
        TextLabel2 = new QLabel(groupBox_2);
        TextLabel2->setObjectName("TextLabel2");

        formLayout_3->setWidget(0, QFormLayout::ItemRole::LabelRole, TextLabel2);

        btnListDatabase = new QPushButton(groupBox_2);
        btnListDatabase->setObjectName("btnListDatabase");

        formLayout_3->setWidget(0, QFormLayout::ItemRole::FieldRole, btnListDatabase);

        listDatabase = new QListWidget(groupBox_2);
        listDatabase->setObjectName("listDatabase");

        formLayout_3->setWidget(1, QFormLayout::ItemRole::FieldRole, listDatabase);

        groupBoxGeometryColumns = new QGroupBox(groupBox_2);
        groupBoxGeometryColumns->setObjectName("groupBoxGeometryColumns");
        groupBoxGeometryColumns->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
        groupBoxGeometryColumns->setFlat(false);
        groupBoxGeometryColumns->setCheckable(true);
        groupBoxGeometryColumns->setChecked(true);
        verticalLayout_2 = new QVBoxLayout(groupBoxGeometryColumns);
        verticalLayout_2->setSpacing(0);
        verticalLayout_2->setContentsMargins(11, 11, 11, 11);
        verticalLayout_2->setObjectName("verticalLayout_2");
        verticalLayout_2->setContentsMargins(8, 0, 0, 0);
        checkBoxExtentFromGeometryColumns = new QCheckBox(groupBoxGeometryColumns);
        checkBoxExtentFromGeometryColumns->setObjectName("checkBoxExtentFromGeometryColumns");

        verticalLayout_2->addWidget(checkBoxExtentFromGeometryColumns);


        formLayout_3->setWidget(2, QFormLayout::ItemRole::SpanningRole, groupBoxGeometryColumns);

        checkBoxPKFromGeometryColumns = new QCheckBox(groupBox_2);
        checkBoxPKFromGeometryColumns->setObjectName("checkBoxPKFromGeometryColumns");

        formLayout_3->setWidget(3, QFormLayout::ItemRole::SpanningRole, checkBoxPKFromGeometryColumns);

        cb_allowGeometrylessTables = new QCheckBox(groupBox_2);
        cb_allowGeometrylessTables->setObjectName("cb_allowGeometrylessTables");

        formLayout_3->setWidget(4, QFormLayout::ItemRole::SpanningRole, cb_allowGeometrylessTables);

        cb_useEstimatedMetadata = new QCheckBox(groupBox_2);
        cb_useEstimatedMetadata->setObjectName("cb_useEstimatedMetadata");
        cb_useEstimatedMetadata->setChecked(true);

        formLayout_3->setWidget(5, QFormLayout::ItemRole::SpanningRole, cb_useEstimatedMetadata);

        mCheckNoInvalidGeometryHandling = new QCheckBox(groupBox_2);
        mCheckNoInvalidGeometryHandling->setObjectName("mCheckNoInvalidGeometryHandling");
        mCheckNoInvalidGeometryHandling->setChecked(false);

        formLayout_3->setWidget(6, QFormLayout::ItemRole::SpanningRole, mCheckNoInvalidGeometryHandling);

        groupBoxSchemasFilter = new QgsCollapsibleGroupBoxBasic(groupBox_2);
        groupBoxSchemasFilter->setObjectName("groupBoxSchemasFilter");
        groupBoxSchemasFilter->setFlat(false);
        groupBoxSchemasFilter->setCheckable(true);
        verticalLayout = new QVBoxLayout(groupBoxSchemasFilter);
        verticalLayout->setSpacing(0);
        verticalLayout->setContentsMargins(11, 11, 11, 11);
        verticalLayout->setObjectName("verticalLayout");
        verticalLayout->setContentsMargins(0, 0, 0, 0);
        schemaView = new QListView(groupBoxSchemasFilter);
        schemaView->setObjectName("schemaView");

        verticalLayout->addWidget(schemaView);


        formLayout_3->setWidget(8, QFormLayout::ItemRole::SpanningRole, groupBoxSchemasFilter);

        btnConnect = new QPushButton(groupBox_2);
        btnConnect->setObjectName("btnConnect");

        formLayout_3->setWidget(9, QFormLayout::ItemRole::SpanningRole, btnConnect);


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

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

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

        QWidget::setTabOrder(txtName, txtService);
        QWidget::setTabOrder(txtService, txtHost);
        QWidget::setTabOrder(txtHost, cb_trustedConnection);
        QWidget::setTabOrder(cb_trustedConnection, txtUsername);
        QWidget::setTabOrder(txtUsername, chkStoreUsername);
        QWidget::setTabOrder(chkStoreUsername, txtPassword);
        QWidget::setTabOrder(txtPassword, chkStorePassword);
        QWidget::setTabOrder(chkStorePassword, btnListDatabase);
        QWidget::setTabOrder(btnListDatabase, listDatabase);
        QWidget::setTabOrder(listDatabase, groupBoxGeometryColumns);
        QWidget::setTabOrder(groupBoxGeometryColumns, checkBoxExtentFromGeometryColumns);
        QWidget::setTabOrder(checkBoxExtentFromGeometryColumns, checkBoxPKFromGeometryColumns);
        QWidget::setTabOrder(checkBoxPKFromGeometryColumns, cb_allowGeometrylessTables);
        QWidget::setTabOrder(cb_allowGeometrylessTables, cb_useEstimatedMetadata);
        QWidget::setTabOrder(cb_useEstimatedMetadata, mCheckNoInvalidGeometryHandling);
        QWidget::setTabOrder(mCheckNoInvalidGeometryHandling, groupBoxSchemasFilter);
        QWidget::setTabOrder(groupBoxSchemasFilter, schemaView);
        QWidget::setTabOrder(schemaView, btnConnect);

        retranslateUi(QgsMssqlNewConnectionBase);
        QObject::connect(buttonBox, &QDialogButtonBox::rejected, QgsMssqlNewConnectionBase, qOverload<>(&QDialog::reject));
        QObject::connect(buttonBox, &QDialogButtonBox::accepted, QgsMssqlNewConnectionBase, qOverload<>(&QDialog::accept));
        QObject::connect(cb_trustedConnection, &QCheckBox::toggled, chkStoreUsername, &QCheckBox::setDisabled);
        QObject::connect(cb_trustedConnection, &QCheckBox::toggled, chkStorePassword, &QCheckBox::setDisabled);
        QObject::connect(cb_trustedConnection, &QCheckBox::toggled, txtUsername, &QLineEdit::setDisabled);
        QObject::connect(cb_trustedConnection, SIGNAL(toggled(bool)), txtPassword, SLOT(setDisabled(bool)));
        QObject::connect(chkStorePassword, &QCheckBox::toggled, lblWarning, &QLabel::setVisible);

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

    void retranslateUi(QDialog *QgsMssqlNewConnectionBase)
    {
        QgsMssqlNewConnectionBase->setWindowTitle(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Create a New MS SQL Server Connection", nullptr));
        GroupBox1->setTitle(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Connection Details", nullptr));
        TextLabel1_2->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Connection name", nullptr));
#if QT_CONFIG(tooltip)
        txtName->setToolTip(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Name of the new connection", nullptr));
#endif // QT_CONFIG(tooltip)
        label->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Provider/DSN", nullptr));
        TextLabel1->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Host", nullptr));
        label_2->setText(QString());
        groupBox->setTitle(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Login", nullptr));
        cb_trustedConnection->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Trusted connection", nullptr));
        TextLabel3->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Username", nullptr));
        chkStoreUsername->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Save", nullptr));
        TextLabel3_2->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Password", nullptr));
        chkStorePassword->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Save", nullptr));
        lblWarning->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "HEADS UP: You have opted to save your password. It will be stored in plain text in your project files and in your home directory on Unix-like systems, or in your user profile on Windows\n"
"\n"
"Untick save if you don't wish to be the case.", nullptr));
        groupBox_2->setTitle(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Database Details", nullptr));
        TextLabel2->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Database", nullptr));
        btnListDatabase->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "List Databases", nullptr));
        groupBoxGeometryColumns->setTitle(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Only look in the geometry_columns metadata table", nullptr));
#if QT_CONFIG(tooltip)
        checkBoxExtentFromGeometryColumns->setToolTip(QCoreApplication::translate("QgsMssqlNewConnectionBase", "If checked, QGIS will skip extent calculation when loading layers and thus speeds up loading time. This requires manually setting the extent in dedicated columns (qgis_xmin, qgis_xmax, qgis_ymin, qgis_ymax) in the geometry_columns metadata table.", nullptr));
#endif // QT_CONFIG(tooltip)
        checkBoxExtentFromGeometryColumns->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Use layer extent from geometry_columns table", nullptr));
#if QT_CONFIG(tooltip)
        checkBoxPKFromGeometryColumns->setToolTip(QCoreApplication::translate("QgsMssqlNewConnectionBase", "If checked, QGIS will skip primary key calculation when loading views and thus speeds up loading time. This requires manually setting the primary key(s) name in a dedicated qgis_pkey column in the geometry_columns metadata table.", nullptr));
#endif // QT_CONFIG(tooltip)
        checkBoxPKFromGeometryColumns->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Use primary key from geometry_columns table", nullptr));
#if QT_CONFIG(tooltip)
        cb_allowGeometrylessTables->setToolTip(QCoreApplication::translate("QgsMssqlNewConnectionBase", "If checked, tables without a geometry column attached will also be shown in the available table lists.", nullptr));
#endif // QT_CONFIG(tooltip)
        cb_allowGeometrylessTables->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Also list tables with no geometry", nullptr));
#if QT_CONFIG(tooltip)
        cb_useEstimatedMetadata->setToolTip(QCoreApplication::translate("QgsMssqlNewConnectionBase", "If checked, only estimated table metadata will be used. This avoids a slow table scan, but may result in incorrect layer properties such as layer extent.", nullptr));
#endif // QT_CONFIG(tooltip)
        cb_useEstimatedMetadata->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Use estimated table parameters", nullptr));
#if QT_CONFIG(tooltip)
        mCheckNoInvalidGeometryHandling->setToolTip(QCoreApplication::translate("QgsMssqlNewConnectionBase", "If checked, all handling of records with invalid geometry will be disabled. This speeds up the provider, however, if any invalid geometries are present in a table then the result is unpredictable and may include missing records. Only check this option if you are certain that all geometries present in the database are valid, and any newly added geometries or tables will also be valid.", nullptr));
#endif // QT_CONFIG(tooltip)
        mCheckNoInvalidGeometryHandling->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Skip invalid geometry handling", nullptr));
        groupBoxSchemasFilter->setTitle(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Use Only a Subset of Schemas", nullptr));
        btnConnect->setText(QCoreApplication::translate("QgsMssqlNewConnectionBase", "Test Connection", nullptr));
    } // retranslateUi

};

namespace Ui {
    class QgsMssqlNewConnectionBase: public Ui_QgsMssqlNewConnectionBase {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_QGSMSSQLNEWCONNECTIONBASE_H
