/********************************************************************************
** Form generated from reading UI file 'qgsattributesforminitcode.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_QGSATTRIBUTESFORMINITCODE_H
#define UI_QGSATTRIBUTESFORMINITCODE_H

#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QWidget>
#include "qgscodeeditorpython.h"
#include "qgsfilewidget.h"

QT_BEGIN_NAMESPACE

class Ui_QgsAttributesFormInitCode
{
public:
    QGridLayout *gridLayout_2;
    QLabel *label_3;
    QComboBox *mInitCodeSourceComboBox;
    QWidget *mInitFunctionContainer;
    QGridLayout *gridLayout;
    QLabel *mInitFilePathLabel;
    QgsFileWidget *mInitFileWidget;
    QLabel *mInitFunctionLabel;
    QLineEdit *mInitFunctionLineEdit;
    QDialogButtonBox *buttonBox;
    QgsCodeEditorPython *mInitCodeEditorPython;
    QSpacerItem *verticalSpacer;

    void setupUi(QDialog *QgsAttributesFormInitCode)
    {
        if (QgsAttributesFormInitCode->objectName().isEmpty())
            QgsAttributesFormInitCode->setObjectName("QgsAttributesFormInitCode");
        QgsAttributesFormInitCode->resize(400, 283);
        gridLayout_2 = new QGridLayout(QgsAttributesFormInitCode);
        gridLayout_2->setObjectName("gridLayout_2");
        label_3 = new QLabel(QgsAttributesFormInitCode);
        label_3->setObjectName("label_3");

        gridLayout_2->addWidget(label_3, 0, 0, 1, 1);

        mInitCodeSourceComboBox = new QComboBox(QgsAttributesFormInitCode);
        mInitCodeSourceComboBox->setObjectName("mInitCodeSourceComboBox");

        gridLayout_2->addWidget(mInitCodeSourceComboBox, 0, 1, 1, 2);

        mInitFunctionContainer = new QWidget(QgsAttributesFormInitCode);
        mInitFunctionContainer->setObjectName("mInitFunctionContainer");
        gridLayout = new QGridLayout(mInitFunctionContainer);
        gridLayout->setObjectName("gridLayout");
        gridLayout->setContentsMargins(0, -1, 0, -1);
        mInitFilePathLabel = new QLabel(mInitFunctionContainer);
        mInitFilePathLabel->setObjectName("mInitFilePathLabel");

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

        mInitFileWidget = new QgsFileWidget(mInitFunctionContainer);
        mInitFileWidget->setObjectName("mInitFileWidget");

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

        mInitFunctionLabel = new QLabel(mInitFunctionContainer);
        mInitFunctionLabel->setObjectName("mInitFunctionLabel");

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

        mInitFunctionLineEdit = new QLineEdit(mInitFunctionContainer);
        mInitFunctionLineEdit->setObjectName("mInitFunctionLineEdit");

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


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

        buttonBox = new QDialogButtonBox(QgsAttributesFormInitCode);
        buttonBox->setObjectName("buttonBox");
        buttonBox->setOrientation(Qt::Horizontal);
        buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok);

        gridLayout_2->addWidget(buttonBox, 5, 0, 1, 3);

        mInitCodeEditorPython = new QgsCodeEditorPython(QgsAttributesFormInitCode);
        mInitCodeEditorPython->setObjectName("mInitCodeEditorPython");
        QSizePolicy sizePolicy(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Expanding);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(1);
        sizePolicy.setHeightForWidth(mInitCodeEditorPython->sizePolicy().hasHeightForWidth());
        mInitCodeEditorPython->setSizePolicy(sizePolicy);

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

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

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

        QWidget::setTabOrder(mInitCodeSourceComboBox, mInitFunctionLineEdit);

        retranslateUi(QgsAttributesFormInitCode);
        QObject::connect(buttonBox, &QDialogButtonBox::accepted, QgsAttributesFormInitCode, qOverload<>(&QDialog::accept));
        QObject::connect(buttonBox, &QDialogButtonBox::rejected, QgsAttributesFormInitCode, qOverload<>(&QDialog::reject));

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

    void retranslateUi(QDialog *QgsAttributesFormInitCode)
    {
        QgsAttributesFormInitCode->setWindowTitle(QCoreApplication::translate("QgsAttributesFormInitCode", "Python Init Code Configuration", nullptr));
#if QT_CONFIG(tooltip)
        label_3->setToolTip(QCoreApplication::translate("QgsAttributesFormInitCode", "The function code of the function can be loaded from the source code entered \n"
"in this dialog, from an external python file or from the environment (for example \n"
"from a plugin or from startup.py).\n"
"\n"
"An example is:\n"
"\n"
"          from qgis.PyQt.QtWidgets import QWidget\n"
"\n"
"          def my_form_open(dialog, layer, feature):\n"
"	geom = feature.geometry()\n"
"	control = dialog.findChild(QWidget,\"MyLineEdit\")\n"
"\n"
"Reference in function name: my_form_open\n"
"\n"
"", nullptr));
#endif // QT_CONFIG(tooltip)
        label_3->setText(QCoreApplication::translate("QgsAttributesFormInitCode", "Python Init function", nullptr));
#if QT_CONFIG(tooltip)
        mInitCodeSourceComboBox->setToolTip(QCoreApplication::translate("QgsAttributesFormInitCode", "The function code of the function can be loaded from the source code entered \n"
"in this dialog,  from an external python file or from the environment (for example \n"
"from a plugin or from startup.py).\n"
"\n"
"An example is:\n"
"\n"
"          from qgis.PyQt.QtWidgets import QWidget\n"
"\n"
"          def my_form_open(dialog, layer, feature):\n"
"	geom = feature.geometry()\n"
"	control = dialog.findChild(QWidget,\"MyLineEdit\")\n"
"\n"
"Reference in function name: my_form_open\n"
"\n"
"", nullptr));
#endif // QT_CONFIG(tooltip)
        mInitFilePathLabel->setText(QCoreApplication::translate("QgsAttributesFormInitCode", "External file", nullptr));
        mInitFunctionLabel->setText(QCoreApplication::translate("QgsAttributesFormInitCode", "Function name", nullptr));
#if QT_CONFIG(tooltip)
        mInitFunctionLineEdit->setToolTip(QCoreApplication::translate("QgsAttributesFormInitCode", "Enter the name of the form init function.", nullptr));
#endif // QT_CONFIG(tooltip)
    } // retranslateUi

};

namespace Ui {
    class QgsAttributesFormInitCode: public Ui_QgsAttributesFormInitCode {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_QGSATTRIBUTESFORMINITCODE_H
