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

#ifndef UI_ADDPRESET_H
#define UI_ADDPRESET_H

#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <klocalizedstring.h>

QT_BEGIN_NAMESPACE

class Ui_AddPreset
{
public:
    QGridLayout *gridLayout_2;
    QGroupBox *groupBox_2;
    QHBoxLayout *horizontalLayout;
    QLabel *label_2;
    QPushButton *importButton;
    QSpacerItem *horizontalSpacer;
    QPushButton *pushButton;
    QGroupBox *groupBox;
    QGridLayout *gridLayout;
    QDialogButtonBox *buttonBox;
    QLineEdit *presetName;
    QLabel *label;
    QSpacerItem *verticalSpacer;

    void setupUi(QDialog *AddPreset)
    {
        if (AddPreset->objectName().isEmpty())
            AddPreset->setObjectName("AddPreset");
        AddPreset->resize(400, 283);
        gridLayout_2 = new QGridLayout(AddPreset);
        gridLayout_2->setObjectName("gridLayout_2");
        groupBox_2 = new QGroupBox(AddPreset);
        groupBox_2->setObjectName("groupBox_2");
        horizontalLayout = new QHBoxLayout(groupBox_2);
        horizontalLayout->setObjectName("horizontalLayout");
        label_2 = new QLabel(groupBox_2);
        label_2->setObjectName("label_2");
        label_2->setTextFormat(Qt::AutoText);
        label_2->setOpenExternalLinks(true);

        horizontalLayout->addWidget(label_2);

        importButton = new QPushButton(groupBox_2);
        importButton->setObjectName("importButton");
        QSizePolicy sizePolicy(QSizePolicy::Policy::Fixed, QSizePolicy::Policy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(importButton->sizePolicy().hasHeightForWidth());
        importButton->setSizePolicy(sizePolicy);
        QIcon icon;
        QString iconThemeName = QString::fromUtf8("document-import");
        if (QIcon::hasThemeIcon(iconThemeName)) {
            icon = QIcon::fromTheme(iconThemeName);
        } else {
            icon.addFile(QString::fromUtf8("."), QSize(), QIcon::Mode::Normal, QIcon::State::Off);
        }
        importButton->setIcon(icon);

        horizontalLayout->addWidget(importButton);


        gridLayout_2->addWidget(groupBox_2, 2, 0, 1, 3);

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

        gridLayout_2->addItem(horizontalSpacer, 3, 0, 1, 1);

        pushButton = new QPushButton(AddPreset);
        pushButton->setObjectName("pushButton");
        sizePolicy.setHeightForWidth(pushButton->sizePolicy().hasHeightForWidth());
        pushButton->setSizePolicy(sizePolicy);
        QIcon icon1(QIcon::fromTheme(QString::fromUtf8("dialog-cancel")));
        pushButton->setIcon(icon1);

        gridLayout_2->addWidget(pushButton, 3, 1, 1, 1);

        groupBox = new QGroupBox(AddPreset);
        groupBox->setObjectName("groupBox");
        gridLayout = new QGridLayout(groupBox);
        gridLayout->setObjectName("gridLayout");
        buttonBox = new QDialogButtonBox(groupBox);
        buttonBox->setObjectName("buttonBox");
        buttonBox->setOrientation(Qt::Horizontal);
        buttonBox->setStandardButtons(QDialogButtonBox::Save);

        gridLayout->addWidget(buttonBox, 3, 1, 1, 1);

        presetName = new QLineEdit(groupBox);
        presetName->setObjectName("presetName");

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

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

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


        gridLayout_2->addWidget(groupBox, 0, 0, 1, 3);

        verticalSpacer = new QSpacerItem(20, 5, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Fixed);

        gridLayout_2->addItem(verticalSpacer, 1, 0, 1, 1);

#if QT_CONFIG(shortcut)
        label->setBuddy(presetName);
#endif // QT_CONFIG(shortcut)
        QWidget::setTabOrder(presetName, importButton);
        QWidget::setTabOrder(importButton, pushButton);

        retranslateUi(AddPreset);
        QObject::connect(buttonBox, &QDialogButtonBox::accepted, AddPreset, qOverload<>(&QDialog::accept));
        QObject::connect(buttonBox, &QDialogButtonBox::rejected, AddPreset, qOverload<>(&QDialog::reject));
        QObject::connect(pushButton, &QPushButton::clicked, AddPreset, qOverload<>(&QDialog::reject));

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

    void retranslateUi(QDialog *AddPreset)
    {
        AddPreset->setWindowTitle(tr2i18n("Dialog", nullptr));
        groupBox_2->setTitle(tr2i18n("Import a new Preset from a Preset file", nullptr));
        label_2->setText(tr2i18n("<html><head/><body><p><a href=\"https://github.com/paulmcauley/klassy/discussions/102\"><span style=\" text-decoration: underline; color:#2980b9;\">Download Klassy Preset files</span></a></p></body></html>", nullptr));
        importButton->setText(tr2i18n("Import From File...", nullptr));
        pushButton->setText(tr2i18n("Cancel", nullptr));
        groupBox->setTitle(tr2i18n("Save current settings as a new Preset", nullptr));
        label->setText(tr2i18n("Name of new Preset:", nullptr));
    } // retranslateUi

};

namespace Ui {
    class AddPreset: public Ui_AddPreset {};
} // namespace Ui

QT_END_NAMESPACE

#endif // ADDPRESET_H

