/********************************************************************************
** Form generated from reading UI file 'CabrilloTemplateDialog.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_CABRILLOTEMPLATEDIALOG_H
#define UI_CABRILLOTEMPLATEDIALOG_H

#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QTableWidget>
#include <QtWidgets/QVBoxLayout>

QT_BEGIN_NAMESPACE

class Ui_CabrilloTemplateDialog
{
public:
    QHBoxLayout *mainHLayout;
    QVBoxLayout *leftLayout;
    QHBoxLayout *horizontalLayout_2;
    QPushButton *loadTemplateButton;
    QPushButton *exportTemplateButton;
    QListWidget *templateList;
    QHBoxLayout *listButtonLayout;
    QPushButton *newButton;
    QPushButton *copyButton;
    QPushButton *deleteButton;
    QVBoxLayout *rightLayout;
    QFormLayout *editorFormLayout;
    QLabel *nameEditorLabel;
    QLineEdit *nameEdit;
    QLabel *contestEditorLabel;
    QComboBox *contestCombo;
    QLabel *defaultModeEditorLabel;
    QComboBox *defaultModeCombo;
    QLabel *columnsLabel;
    QHBoxLayout *horizontalLayout;
    QTableWidget *columnsTable;
    QVBoxLayout *verticalLayout;
    QSpacerItem *verticalSpacer_2;
    QPushButton *moveUpButton;
    QPushButton *moveDownButton;
    QSpacerItem *verticalSpacer;
    QHBoxLayout *colButtonLayout;
    QSpacerItem *colButtonSpacer;
    QPushButton *addColumnButton;
    QPushButton *removeColumnButton;
    QSpacerItem *horizontalSpacer;
    QDialogButtonBox *buttonBox;

    void setupUi(QDialog *CabrilloTemplateDialog)
    {
        if (CabrilloTemplateDialog->objectName().isEmpty())
            CabrilloTemplateDialog->setObjectName("CabrilloTemplateDialog");
        CabrilloTemplateDialog->resize(850, 550);
        CabrilloTemplateDialog->setModal(true);
        mainHLayout = new QHBoxLayout(CabrilloTemplateDialog);
        mainHLayout->setObjectName("mainHLayout");
        leftLayout = new QVBoxLayout();
        leftLayout->setObjectName("leftLayout");
        horizontalLayout_2 = new QHBoxLayout();
        horizontalLayout_2->setObjectName("horizontalLayout_2");
        loadTemplateButton = new QPushButton(CabrilloTemplateDialog);
        loadTemplateButton->setObjectName("loadTemplateButton");
        QIcon icon(QIcon::fromTheme(QString::fromUtf8("document-open")));
        loadTemplateButton->setIcon(icon);

        horizontalLayout_2->addWidget(loadTemplateButton);

        exportTemplateButton = new QPushButton(CabrilloTemplateDialog);
        exportTemplateButton->setObjectName("exportTemplateButton");
        QIcon icon1(QIcon::fromTheme(QString::fromUtf8("document-save-as")));
        exportTemplateButton->setIcon(icon1);

        horizontalLayout_2->addWidget(exportTemplateButton);


        leftLayout->addLayout(horizontalLayout_2);

        templateList = new QListWidget(CabrilloTemplateDialog);
        templateList->setObjectName("templateList");
        QSizePolicy sizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Expanding);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(templateList->sizePolicy().hasHeightForWidth());
        templateList->setSizePolicy(sizePolicy);

        leftLayout->addWidget(templateList);

        listButtonLayout = new QHBoxLayout();
        listButtonLayout->setObjectName("listButtonLayout");
        newButton = new QPushButton(CabrilloTemplateDialog);
        newButton->setObjectName("newButton");
        QIcon icon2(QIcon::fromTheme(QString::fromUtf8("document-new")));
        newButton->setIcon(icon2);

        listButtonLayout->addWidget(newButton);

        copyButton = new QPushButton(CabrilloTemplateDialog);
        copyButton->setObjectName("copyButton");
        QIcon icon3(QIcon::fromTheme(QString::fromUtf8("edit-copy")));
        copyButton->setIcon(icon3);

        listButtonLayout->addWidget(copyButton);

        deleteButton = new QPushButton(CabrilloTemplateDialog);
        deleteButton->setObjectName("deleteButton");
        QIcon icon4(QIcon::fromTheme(QString::fromUtf8("edit-delete")));
        deleteButton->setIcon(icon4);

        listButtonLayout->addWidget(deleteButton);


        leftLayout->addLayout(listButtonLayout);


        mainHLayout->addLayout(leftLayout);

        rightLayout = new QVBoxLayout();
        rightLayout->setObjectName("rightLayout");
        editorFormLayout = new QFormLayout();
        editorFormLayout->setObjectName("editorFormLayout");
        nameEditorLabel = new QLabel(CabrilloTemplateDialog);
        nameEditorLabel->setObjectName("nameEditorLabel");

        editorFormLayout->setWidget(0, QFormLayout::ItemRole::LabelRole, nameEditorLabel);

        nameEdit = new QLineEdit(CabrilloTemplateDialog);
        nameEdit->setObjectName("nameEdit");

        editorFormLayout->setWidget(0, QFormLayout::ItemRole::FieldRole, nameEdit);

        contestEditorLabel = new QLabel(CabrilloTemplateDialog);
        contestEditorLabel->setObjectName("contestEditorLabel");

        editorFormLayout->setWidget(1, QFormLayout::ItemRole::LabelRole, contestEditorLabel);

        contestCombo = new QComboBox(CabrilloTemplateDialog);
        contestCombo->setObjectName("contestCombo");
        contestCombo->setEditable(true);

        editorFormLayout->setWidget(1, QFormLayout::ItemRole::FieldRole, contestCombo);

        defaultModeEditorLabel = new QLabel(CabrilloTemplateDialog);
        defaultModeEditorLabel->setObjectName("defaultModeEditorLabel");

        editorFormLayout->setWidget(2, QFormLayout::ItemRole::LabelRole, defaultModeEditorLabel);

        defaultModeCombo = new QComboBox(CabrilloTemplateDialog);
        defaultModeCombo->setObjectName("defaultModeCombo");
        QSizePolicy sizePolicy1(QSizePolicy::Policy::Maximum, QSizePolicy::Policy::Fixed);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(defaultModeCombo->sizePolicy().hasHeightForWidth());
        defaultModeCombo->setSizePolicy(sizePolicy1);
        defaultModeCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents);

        editorFormLayout->setWidget(2, QFormLayout::ItemRole::FieldRole, defaultModeCombo);


        rightLayout->addLayout(editorFormLayout);

        columnsLabel = new QLabel(CabrilloTemplateDialog);
        columnsLabel->setObjectName("columnsLabel");

        rightLayout->addWidget(columnsLabel);

        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setObjectName("horizontalLayout");
        horizontalLayout->setContentsMargins(-1, -1, -1, 0);
        columnsTable = new QTableWidget(CabrilloTemplateDialog);
        if (columnsTable->columnCount() < 5)
            columnsTable->setColumnCount(5);
        QTableWidgetItem *__qtablewidgetitem = new QTableWidgetItem();
        columnsTable->setHorizontalHeaderItem(0, __qtablewidgetitem);
        QTableWidgetItem *__qtablewidgetitem1 = new QTableWidgetItem();
        columnsTable->setHorizontalHeaderItem(1, __qtablewidgetitem1);
        QTableWidgetItem *__qtablewidgetitem2 = new QTableWidgetItem();
        columnsTable->setHorizontalHeaderItem(2, __qtablewidgetitem2);
        QTableWidgetItem *__qtablewidgetitem3 = new QTableWidgetItem();
        columnsTable->setHorizontalHeaderItem(3, __qtablewidgetitem3);
        QTableWidgetItem *__qtablewidgetitem4 = new QTableWidgetItem();
        columnsTable->setHorizontalHeaderItem(4, __qtablewidgetitem4);
        columnsTable->setObjectName("columnsTable");
        columnsTable->setSelectionMode(QAbstractItemView::SingleSelection);
        columnsTable->setSelectionBehavior(QAbstractItemView::SelectRows);
        columnsTable->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
        columnsTable->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
        columnsTable->setColumnCount(5);
        columnsTable->verticalHeader()->setVisible(false);

        horizontalLayout->addWidget(columnsTable);

        verticalLayout = new QVBoxLayout();
        verticalLayout->setSpacing(0);
        verticalLayout->setObjectName("verticalLayout");
        verticalLayout->setContentsMargins(0, -1, -1, -1);
        verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);

        verticalLayout->addItem(verticalSpacer_2);

        moveUpButton = new QPushButton(CabrilloTemplateDialog);
        moveUpButton->setObjectName("moveUpButton");
        moveUpButton->setText(QString::fromUtf8(""));
        QIcon icon5;
        icon5.addFile(QString::fromUtf8(":/icons/baseline-play_up-24px.svg"), QSize(), QIcon::Mode::Normal, QIcon::State::Off);
        moveUpButton->setIcon(icon5);

        verticalLayout->addWidget(moveUpButton);

        moveDownButton = new QPushButton(CabrilloTemplateDialog);
        moveDownButton->setObjectName("moveDownButton");
        moveDownButton->setText(QString::fromUtf8(""));
        QIcon icon6;
        icon6.addFile(QString::fromUtf8(":/icons/baseline-play_down-24px.svg"), QSize(), QIcon::Mode::Normal, QIcon::State::Off);
        moveDownButton->setIcon(icon6);

        verticalLayout->addWidget(moveDownButton);

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

        verticalLayout->addItem(verticalSpacer);


        horizontalLayout->addLayout(verticalLayout);


        rightLayout->addLayout(horizontalLayout);

        colButtonLayout = new QHBoxLayout();
        colButtonLayout->setObjectName("colButtonLayout");
        colButtonSpacer = new QSpacerItem(0, 0, QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Minimum);

        colButtonLayout->addItem(colButtonSpacer);

        addColumnButton = new QPushButton(CabrilloTemplateDialog);
        addColumnButton->setObjectName("addColumnButton");
        QSizePolicy sizePolicy2(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Fixed);
        sizePolicy2.setHorizontalStretch(0);
        sizePolicy2.setVerticalStretch(0);
        sizePolicy2.setHeightForWidth(addColumnButton->sizePolicy().hasHeightForWidth());
        addColumnButton->setSizePolicy(sizePolicy2);

        colButtonLayout->addWidget(addColumnButton);

        removeColumnButton = new QPushButton(CabrilloTemplateDialog);
        removeColumnButton->setObjectName("removeColumnButton");

        colButtonLayout->addWidget(removeColumnButton);

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

        colButtonLayout->addItem(horizontalSpacer);


        rightLayout->addLayout(colButtonLayout);

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

        rightLayout->addWidget(buttonBox);


        mainHLayout->addLayout(rightLayout);

        QWidget::setTabOrder(nameEdit, contestCombo);
        QWidget::setTabOrder(contestCombo, defaultModeCombo);
        QWidget::setTabOrder(defaultModeCombo, newButton);
        QWidget::setTabOrder(newButton, copyButton);
        QWidget::setTabOrder(copyButton, deleteButton);
        QWidget::setTabOrder(deleteButton, addColumnButton);
        QWidget::setTabOrder(addColumnButton, removeColumnButton);
        QWidget::setTabOrder(removeColumnButton, templateList);

        retranslateUi(CabrilloTemplateDialog);
        QObject::connect(buttonBox, &QDialogButtonBox::rejected, CabrilloTemplateDialog, qOverload<>(&QDialog::reject));
        QObject::connect(buttonBox, &QDialogButtonBox::accepted, CabrilloTemplateDialog, qOverload<>(&QDialog::accept));
        QObject::connect(templateList, SIGNAL(currentRowChanged(int)), CabrilloTemplateDialog, SLOT(templateSelectionChanged()));
        QObject::connect(newButton, SIGNAL(clicked()), CabrilloTemplateDialog, SLOT(newTemplate()));
        QObject::connect(copyButton, SIGNAL(clicked()), CabrilloTemplateDialog, SLOT(copyTemplate()));
        QObject::connect(deleteButton, SIGNAL(clicked()), CabrilloTemplateDialog, SLOT(deleteTemplate()));
        QObject::connect(addColumnButton, SIGNAL(clicked()), CabrilloTemplateDialog, SLOT(addColumn()));
        QObject::connect(removeColumnButton, SIGNAL(clicked()), CabrilloTemplateDialog, SLOT(removeColumn()));
        QObject::connect(moveUpButton, SIGNAL(clicked()), CabrilloTemplateDialog, SLOT(moveColumnUp()));
        QObject::connect(moveDownButton, SIGNAL(clicked()), CabrilloTemplateDialog, SLOT(moveColumnDown()));
        QObject::connect(loadTemplateButton, SIGNAL(clicked()), CabrilloTemplateDialog, SLOT(loadTemplate()));
        QObject::connect(exportTemplateButton, SIGNAL(clicked()), CabrilloTemplateDialog, SLOT(exportTemplate()));

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

    void retranslateUi(QDialog *CabrilloTemplateDialog)
    {
        CabrilloTemplateDialog->setWindowTitle(QCoreApplication::translate("CabrilloTemplateDialog", "Cabrillo Template Manager", nullptr));
#if QT_CONFIG(tooltip)
        loadTemplateButton->setToolTip(QCoreApplication::translate("CabrilloTemplateDialog", "Import template", nullptr));
#endif // QT_CONFIG(tooltip)
        loadTemplateButton->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Import", nullptr));
#if QT_CONFIG(tooltip)
        exportTemplateButton->setToolTip(QCoreApplication::translate("CabrilloTemplateDialog", "Export template", nullptr));
#endif // QT_CONFIG(tooltip)
        exportTemplateButton->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Export", nullptr));
#if QT_CONFIG(tooltip)
        newButton->setToolTip(QCoreApplication::translate("CabrilloTemplateDialog", "New template", nullptr));
#endif // QT_CONFIG(tooltip)
        newButton->setText(QCoreApplication::translate("CabrilloTemplateDialog", "New", nullptr));
#if QT_CONFIG(tooltip)
        copyButton->setToolTip(QCoreApplication::translate("CabrilloTemplateDialog", "Copy existing template", nullptr));
#endif // QT_CONFIG(tooltip)
        copyButton->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Copy", nullptr));
#if QT_CONFIG(tooltip)
        deleteButton->setToolTip(QCoreApplication::translate("CabrilloTemplateDialog", "Delete template", nullptr));
#endif // QT_CONFIG(tooltip)
        deleteButton->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Delete", nullptr));
        nameEditorLabel->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Template Name:", nullptr));
        contestEditorLabel->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Contest Name:", nullptr));
        defaultModeEditorLabel->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Default Mode:", nullptr));
        columnsLabel->setText(QCoreApplication::translate("CabrilloTemplateDialog", "QSO Line Columns:", nullptr));
        QTableWidgetItem *___qtablewidgetitem = columnsTable->horizontalHeaderItem(0);
        ___qtablewidgetitem->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Seq.", nullptr));
        QTableWidgetItem *___qtablewidgetitem1 = columnsTable->horizontalHeaderItem(1);
        ___qtablewidgetitem1->setText(QCoreApplication::translate("CabrilloTemplateDialog", "QSO Field", nullptr));
        QTableWidgetItem *___qtablewidgetitem2 = columnsTable->horizontalHeaderItem(2);
        ___qtablewidgetitem2->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Formatter", nullptr));
        QTableWidgetItem *___qtablewidgetitem3 = columnsTable->horizontalHeaderItem(3);
        ___qtablewidgetitem3->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Width", nullptr));
        QTableWidgetItem *___qtablewidgetitem4 = columnsTable->horizontalHeaderItem(4);
        ___qtablewidgetitem4->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Label", nullptr));
#if QT_CONFIG(tooltip)
        columnsTable->setToolTip(QCoreApplication::translate("CabrilloTemplateDialog", "Contest name as required by the rules. It is possible to enter a custom string if it is not included in the list.", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(tooltip)
        addColumnButton->setToolTip(QCoreApplication::translate("CabrilloTemplateDialog", "Add line", nullptr));
#endif // QT_CONFIG(tooltip)
        addColumnButton->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Add", nullptr));
#if QT_CONFIG(tooltip)
        removeColumnButton->setToolTip(QCoreApplication::translate("CabrilloTemplateDialog", "Remove selected line", nullptr));
#endif // QT_CONFIG(tooltip)
        removeColumnButton->setText(QCoreApplication::translate("CabrilloTemplateDialog", "Remove", nullptr));
    } // retranslateUi

};

namespace Ui {
    class CabrilloTemplateDialog: public Ui_CabrilloTemplateDialog {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_CABRILLOTEMPLATEDIALOG_H
