/********************************************************************************
** Form generated from reading UI file 'formdatabasecleanup.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_FORMDATABASECLEANUP_H
#define UI_FORMDATABASECLEANUP_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/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include "labelwithstatus.h"

QT_BEGIN_NAMESPACE

class Ui_FormDatabaseCleanup
{
public:
    QVBoxLayout *verticalLayout;
    QGroupBox *m_grpCleanupSettings;
    QGridLayout *gridLayout;
    QCheckBox *m_checkShrink;
    QCheckBox *m_checkRemoveReadMessages;
    QSpinBox *m_spinDays;
    QCheckBox *m_checkRemoveRecycleBin;
    QCheckBox *m_checkRemoveOldMessages;
    QSpacerItem *horizontalSpacer;
    QCheckBox *m_checkRemoveStarredMessages;
    QGroupBox *groupBox;
    QFormLayout *formLayout;
    QLabel *m_lblFileSize;
    QLineEdit *m_txtFileSize;
    QLabel *m_lblDatabaseType;
    QLineEdit *m_txtDatabaseType;
    QGroupBox *groupBox_2;
    QVBoxLayout *verticalLayout_2;
    LabelWithStatus *m_lblResult;
    QProgressBar *m_progressBar;
    QSpacerItem *verticalSpacer;
    QDialogButtonBox *m_btnBox;

    void setupUi(QDialog *FormDatabaseCleanup)
    {
        if (FormDatabaseCleanup->objectName().isEmpty())
            FormDatabaseCleanup->setObjectName("FormDatabaseCleanup");
        FormDatabaseCleanup->resize(450, 400);
        verticalLayout = new QVBoxLayout(FormDatabaseCleanup);
        verticalLayout->setObjectName("verticalLayout");
        m_grpCleanupSettings = new QGroupBox(FormDatabaseCleanup);
        m_grpCleanupSettings->setObjectName("m_grpCleanupSettings");
        gridLayout = new QGridLayout(m_grpCleanupSettings);
        gridLayout->setObjectName("gridLayout");
        m_checkShrink = new QCheckBox(m_grpCleanupSettings);
        m_checkShrink->setObjectName("m_checkShrink");
        m_checkShrink->setChecked(true);

        gridLayout->addWidget(m_checkShrink, 4, 0, 1, 3);

        m_checkRemoveReadMessages = new QCheckBox(m_grpCleanupSettings);
        m_checkRemoveReadMessages->setObjectName("m_checkRemoveReadMessages");

        gridLayout->addWidget(m_checkRemoveReadMessages, 0, 0, 1, 3);

        m_spinDays = new QSpinBox(m_grpCleanupSettings);
        m_spinDays->setObjectName("m_spinDays");
        m_spinDays->setMaximum(1000);
        m_spinDays->setSingleStep(1);

        gridLayout->addWidget(m_spinDays, 5, 1, 1, 1);

        m_checkRemoveRecycleBin = new QCheckBox(m_grpCleanupSettings);
        m_checkRemoveRecycleBin->setObjectName("m_checkRemoveRecycleBin");
        m_checkRemoveRecycleBin->setChecked(true);

        gridLayout->addWidget(m_checkRemoveRecycleBin, 2, 0, 1, 3);

        m_checkRemoveOldMessages = new QCheckBox(m_grpCleanupSettings);
        m_checkRemoveOldMessages->setObjectName("m_checkRemoveOldMessages");
        m_checkRemoveOldMessages->setChecked(true);

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

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

        gridLayout->addItem(horizontalSpacer, 5, 2, 1, 1);

        m_checkRemoveStarredMessages = new QCheckBox(m_grpCleanupSettings);
        m_checkRemoveStarredMessages->setObjectName("m_checkRemoveStarredMessages");

        gridLayout->addWidget(m_checkRemoveStarredMessages, 1, 0, 1, 3);


        verticalLayout->addWidget(m_grpCleanupSettings);

        groupBox = new QGroupBox(FormDatabaseCleanup);
        groupBox->setObjectName("groupBox");
        formLayout = new QFormLayout(groupBox);
        formLayout->setObjectName("formLayout");
        m_lblFileSize = new QLabel(groupBox);
        m_lblFileSize->setObjectName("m_lblFileSize");

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

        m_txtFileSize = new QLineEdit(groupBox);
        m_txtFileSize->setObjectName("m_txtFileSize");
        m_txtFileSize->setReadOnly(true);

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

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

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

        m_txtDatabaseType = new QLineEdit(groupBox);
        m_txtDatabaseType->setObjectName("m_txtDatabaseType");
        m_txtDatabaseType->setReadOnly(true);

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


        verticalLayout->addWidget(groupBox);

        groupBox_2 = new QGroupBox(FormDatabaseCleanup);
        groupBox_2->setObjectName("groupBox_2");
        verticalLayout_2 = new QVBoxLayout(groupBox_2);
        verticalLayout_2->setObjectName("verticalLayout_2");
        m_lblResult = new LabelWithStatus(groupBox_2);
        m_lblResult->setObjectName("m_lblResult");
        m_lblResult->setLayoutDirection(Qt::LayoutDirection::RightToLeft);

        verticalLayout_2->addWidget(m_lblResult);

        m_progressBar = new QProgressBar(groupBox_2);
        m_progressBar->setObjectName("m_progressBar");

        verticalLayout_2->addWidget(m_progressBar);


        verticalLayout->addWidget(groupBox_2);

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

        verticalLayout->addItem(verticalSpacer);

        m_btnBox = new QDialogButtonBox(FormDatabaseCleanup);
        m_btnBox->setObjectName("m_btnBox");
        m_btnBox->setOrientation(Qt::Orientation::Horizontal);
        m_btnBox->setStandardButtons(QDialogButtonBox::StandardButton::Close|QDialogButtonBox::StandardButton::Ok);

        verticalLayout->addWidget(m_btnBox);

#if QT_CONFIG(shortcut)
        m_lblFileSize->setBuddy(m_txtFileSize);
        m_lblDatabaseType->setBuddy(m_txtDatabaseType);
#endif // QT_CONFIG(shortcut)
        QWidget::setTabOrder(m_checkRemoveReadMessages, m_checkRemoveRecycleBin);
        QWidget::setTabOrder(m_checkRemoveRecycleBin, m_checkShrink);
        QWidget::setTabOrder(m_checkShrink, m_checkRemoveOldMessages);
        QWidget::setTabOrder(m_checkRemoveOldMessages, m_spinDays);
        QWidget::setTabOrder(m_spinDays, m_txtFileSize);
        QWidget::setTabOrder(m_txtFileSize, m_txtDatabaseType);

        retranslateUi(FormDatabaseCleanup);
        QObject::connect(m_btnBox, &QDialogButtonBox::rejected, FormDatabaseCleanup, qOverload<>(&QDialog::close));
        QObject::connect(m_checkRemoveOldMessages, &QCheckBox::toggled, m_spinDays, &QSpinBox::setEnabled);

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

    void retranslateUi(QDialog *FormDatabaseCleanup)
    {
        FormDatabaseCleanup->setWindowTitle(QCoreApplication::translate("FormDatabaseCleanup", "Cleanup database", nullptr));
        m_grpCleanupSettings->setTitle(QCoreApplication::translate("FormDatabaseCleanup", "Cleanup settings", nullptr));
        m_checkShrink->setText(QCoreApplication::translate("FormDatabaseCleanup", "Optimize and fix database file", nullptr));
        m_checkRemoveReadMessages->setText(QCoreApplication::translate("FormDatabaseCleanup", "Remove all read articles", nullptr));
        m_checkRemoveRecycleBin->setText(QCoreApplication::translate("FormDatabaseCleanup", "Remove all articles from recycle bin", nullptr));
        m_checkRemoveOldMessages->setText(QCoreApplication::translate("FormDatabaseCleanup", "Remove all articles older than", nullptr));
        m_checkRemoveStarredMessages->setText(QCoreApplication::translate("FormDatabaseCleanup", "Remove all starred articles", nullptr));
        groupBox->setTitle(QCoreApplication::translate("FormDatabaseCleanup", "Database information", nullptr));
        m_lblFileSize->setText(QCoreApplication::translate("FormDatabaseCleanup", "Total data size", nullptr));
        m_lblDatabaseType->setText(QCoreApplication::translate("FormDatabaseCleanup", "Database type", nullptr));
        groupBox_2->setTitle(QCoreApplication::translate("FormDatabaseCleanup", "Progress", nullptr));
    } // retranslateUi

};

namespace Ui {
    class FormDatabaseCleanup: public Ui_FormDatabaseCleanup {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_FORMDATABASECLEANUP_H
