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

#ifndef UI_SETTINGSDATABASE_H
#define UI_SETTINGSDATABASE_H

#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QStackedWidget>
#include <QtWidgets/QWidget>
#include "helpspoiler.h"
#include "labelwithstatus.h"
#include "lineeditwithstatus.h"

QT_BEGIN_NAMESPACE

class Ui_SettingsDatabase
{
public:
    QFormLayout *formLayout;
    QLabel *m_lblDatabaseDriver;
    QComboBox *m_cmbDatabaseDriver;
    QStackedWidget *m_stackedDatabaseDriver;
    QWidget *m_pageSqlite;
    QFormLayout *formLayout_15;
    QWidget *m_pageMysql;
    QFormLayout *formLayout_16;
    QLabel *label_2;
    QHBoxLayout *horizontalLayout_6;
    LineEditWithStatus *m_txtMysqlHostname;
    QLabel *label_6;
    QSpinBox *m_spinMysqlPort;
    QLabel *label_11;
    LineEditWithStatus *m_txtMysqlDatabase;
    QLabel *label_4;
    LineEditWithStatus *m_txtMysqlUsername;
    QLabel *label_5;
    LineEditWithStatus *m_txtMysqlPassword;
    QHBoxLayout *horizontalLayout_11;
    QPushButton *m_btnMysqlTestSetup;
    LabelWithStatus *m_lblMysqlTestResult;
    HelpSpoiler *m_lblMysqlInfo;
    QSpacerItem *verticalSpacer;

    void setupUi(QWidget *SettingsDatabase)
    {
        if (SettingsDatabase->objectName().isEmpty())
            SettingsDatabase->setObjectName("SettingsDatabase");
        SettingsDatabase->resize(547, 356);
        formLayout = new QFormLayout(SettingsDatabase);
        formLayout->setObjectName("formLayout");
        m_lblDatabaseDriver = new QLabel(SettingsDatabase);
        m_lblDatabaseDriver->setObjectName("m_lblDatabaseDriver");

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

        m_cmbDatabaseDriver = new QComboBox(SettingsDatabase);
        m_cmbDatabaseDriver->setObjectName("m_cmbDatabaseDriver");

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

        m_stackedDatabaseDriver = new QStackedWidget(SettingsDatabase);
        m_stackedDatabaseDriver->setObjectName("m_stackedDatabaseDriver");
        m_pageSqlite = new QWidget();
        m_pageSqlite->setObjectName("m_pageSqlite");
        formLayout_15 = new QFormLayout(m_pageSqlite);
        formLayout_15->setObjectName("formLayout_15");
        formLayout_15->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
        formLayout_15->setContentsMargins(0, 0, 0, 0);
        m_stackedDatabaseDriver->addWidget(m_pageSqlite);
        m_pageMysql = new QWidget();
        m_pageMysql->setObjectName("m_pageMysql");
        formLayout_16 = new QFormLayout(m_pageMysql);
        formLayout_16->setObjectName("formLayout_16");
        formLayout_16->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
        formLayout_16->setContentsMargins(0, 0, 0, 0);
        label_2 = new QLabel(m_pageMysql);
        label_2->setObjectName("label_2");

        formLayout_16->setWidget(0, QFormLayout::ItemRole::LabelRole, label_2);

        horizontalLayout_6 = new QHBoxLayout();
        horizontalLayout_6->setObjectName("horizontalLayout_6");
        m_txtMysqlHostname = new LineEditWithStatus(m_pageMysql);
        m_txtMysqlHostname->setObjectName("m_txtMysqlHostname");

        horizontalLayout_6->addWidget(m_txtMysqlHostname);

        label_6 = new QLabel(m_pageMysql);
        label_6->setObjectName("label_6");

        horizontalLayout_6->addWidget(label_6);

        m_spinMysqlPort = new QSpinBox(m_pageMysql);
        m_spinMysqlPort->setObjectName("m_spinMysqlPort");
        m_spinMysqlPort->setMinimumSize(QSize(100, 0));
        m_spinMysqlPort->setMinimum(1);
        m_spinMysqlPort->setMaximum(65536);
        m_spinMysqlPort->setValue(3306);

        horizontalLayout_6->addWidget(m_spinMysqlPort);


        formLayout_16->setLayout(0, QFormLayout::ItemRole::FieldRole, horizontalLayout_6);

        label_11 = new QLabel(m_pageMysql);
        label_11->setObjectName("label_11");

        formLayout_16->setWidget(1, QFormLayout::ItemRole::LabelRole, label_11);

        m_txtMysqlDatabase = new LineEditWithStatus(m_pageMysql);
        m_txtMysqlDatabase->setObjectName("m_txtMysqlDatabase");

        formLayout_16->setWidget(1, QFormLayout::ItemRole::FieldRole, m_txtMysqlDatabase);

        label_4 = new QLabel(m_pageMysql);
        label_4->setObjectName("label_4");

        formLayout_16->setWidget(2, QFormLayout::ItemRole::LabelRole, label_4);

        m_txtMysqlUsername = new LineEditWithStatus(m_pageMysql);
        m_txtMysqlUsername->setObjectName("m_txtMysqlUsername");

        formLayout_16->setWidget(2, QFormLayout::ItemRole::FieldRole, m_txtMysqlUsername);

        label_5 = new QLabel(m_pageMysql);
        label_5->setObjectName("label_5");

        formLayout_16->setWidget(3, QFormLayout::ItemRole::LabelRole, label_5);

        m_txtMysqlPassword = new LineEditWithStatus(m_pageMysql);
        m_txtMysqlPassword->setObjectName("m_txtMysqlPassword");

        formLayout_16->setWidget(3, QFormLayout::ItemRole::FieldRole, m_txtMysqlPassword);

        horizontalLayout_11 = new QHBoxLayout();
        horizontalLayout_11->setObjectName("horizontalLayout_11");
        m_btnMysqlTestSetup = new QPushButton(m_pageMysql);
        m_btnMysqlTestSetup->setObjectName("m_btnMysqlTestSetup");
        m_btnMysqlTestSetup->setFlat(false);

        horizontalLayout_11->addWidget(m_btnMysqlTestSetup);

        m_lblMysqlTestResult = new LabelWithStatus(m_pageMysql);
        m_lblMysqlTestResult->setObjectName("m_lblMysqlTestResult");
        QSizePolicy sizePolicy(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Preferred);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(m_lblMysqlTestResult->sizePolicy().hasHeightForWidth());
        m_lblMysqlTestResult->setSizePolicy(sizePolicy);
        m_lblMysqlTestResult->setLayoutDirection(Qt::RightToLeft);

        horizontalLayout_11->addWidget(m_lblMysqlTestResult);


        formLayout_16->setLayout(4, QFormLayout::ItemRole::FieldRole, horizontalLayout_11);

        m_lblMysqlInfo = new HelpSpoiler(m_pageMysql);
        m_lblMysqlInfo->setObjectName("m_lblMysqlInfo");

        formLayout_16->setWidget(5, QFormLayout::ItemRole::SpanningRole, m_lblMysqlInfo);

        m_stackedDatabaseDriver->addWidget(m_pageMysql);

        formLayout->setWidget(1, QFormLayout::ItemRole::SpanningRole, m_stackedDatabaseDriver);

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

        formLayout->setItem(2, QFormLayout::ItemRole::SpanningRole, verticalSpacer);

#if QT_CONFIG(shortcut)
        m_lblDatabaseDriver->setBuddy(m_cmbDatabaseDriver);
        label_2->setBuddy(m_txtMysqlHostname);
        label_6->setBuddy(m_spinMysqlPort);
        label_4->setBuddy(m_txtMysqlUsername);
        label_5->setBuddy(m_txtMysqlPassword);
#endif // QT_CONFIG(shortcut)

        retranslateUi(SettingsDatabase);

        m_stackedDatabaseDriver->setCurrentIndex(0);


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

    void retranslateUi(QWidget *SettingsDatabase)
    {
        m_lblDatabaseDriver->setText(QCoreApplication::translate("SettingsDatabase", "Database driver", nullptr));
        label_2->setText(QCoreApplication::translate("SettingsDatabase", "Hostname", nullptr));
        label_6->setText(QCoreApplication::translate("SettingsDatabase", "Port", nullptr));
        label_11->setText(QCoreApplication::translate("SettingsDatabase", "Working database", nullptr));
        label_4->setText(QCoreApplication::translate("SettingsDatabase", "Username", nullptr));
        label_5->setText(QCoreApplication::translate("SettingsDatabase", "Password", nullptr));
        m_btnMysqlTestSetup->setText(QCoreApplication::translate("SettingsDatabase", "Test setup", nullptr));
        (void)SettingsDatabase;
    } // retranslateUi

};

namespace Ui {
    class SettingsDatabase: public Ui_SettingsDatabase {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_SETTINGSDATABASE_H
