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

#ifndef UI_TRIGGERDIALOG_H
#define UI_TRIGGERDIALOG_H

#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "sqleditor.h"
#include "sqlview.h"

QT_BEGIN_NAMESPACE

class Ui_TriggerDialog
{
public:
    QVBoxLayout *verticalLayout;
    QTabWidget *tabWidget;
    QWidget *triggerTab;
    QGridLayout *gridLayout;
    QLabel *onLabel;
    QComboBox *whenCombo;
    QLabel *actionLabel;
    QComboBox *actionCombo;
    QComboBox *onCombo;
    QLineEdit *nameEdit;
    QCheckBox *preconditionCheck;
    QComboBox *scopeCombo;
    QLabel *nameLabel;
    QLabel *whenLabel;
    QToolButton *actionColumns;
    QLabel *scopeLabel;
    QLabel *codeLabel;
    SqlEditor *codeEdit;
    SqlEditor *preconditionEdit;
    QWidget *ddlTab;
    QVBoxLayout *verticalLayout_2;
    SqlView *ddlEdit;
    QDialogButtonBox *buttonBox;

    void setupUi(QDialog *TriggerDialog)
    {
        if (TriggerDialog->objectName().isEmpty())
            TriggerDialog->setObjectName(QString::fromUtf8("TriggerDialog"));
        TriggerDialog->resize(490, 480);
        verticalLayout = new QVBoxLayout(TriggerDialog);
        verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
        tabWidget = new QTabWidget(TriggerDialog);
        tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
        triggerTab = new QWidget();
        triggerTab->setObjectName(QString::fromUtf8("triggerTab"));
        gridLayout = new QGridLayout(triggerTab);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        onLabel = new QLabel(triggerTab);
        onLabel->setObjectName(QString::fromUtf8("onLabel"));

        gridLayout->addWidget(onLabel, 2, 2, 1, 1);

        whenCombo = new QComboBox(triggerTab);
        whenCombo->setObjectName(QString::fromUtf8("whenCombo"));

        gridLayout->addWidget(whenCombo, 1, 2, 1, 1);

        actionLabel = new QLabel(triggerTab);
        actionLabel->setObjectName(QString::fromUtf8("actionLabel"));

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

        actionCombo = new QComboBox(triggerTab);
        actionCombo->setObjectName(QString::fromUtf8("actionCombo"));

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

        onCombo = new QComboBox(triggerTab);
        onCombo->setObjectName(QString::fromUtf8("onCombo"));

        gridLayout->addWidget(onCombo, 3, 2, 1, 1);

        nameEdit = new QLineEdit(triggerTab);
        nameEdit->setObjectName(QString::fromUtf8("nameEdit"));

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

        preconditionCheck = new QCheckBox(triggerTab);
        preconditionCheck->setObjectName(QString::fromUtf8("preconditionCheck"));

        gridLayout->addWidget(preconditionCheck, 6, 0, 1, 3);

        scopeCombo = new QComboBox(triggerTab);
        scopeCombo->setObjectName(QString::fromUtf8("scopeCombo"));

        gridLayout->addWidget(scopeCombo, 5, 0, 1, 3);

        nameLabel = new QLabel(triggerTab);
        nameLabel->setObjectName(QString::fromUtf8("nameLabel"));

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

        whenLabel = new QLabel(triggerTab);
        whenLabel->setObjectName(QString::fromUtf8("whenLabel"));

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

        actionColumns = new QToolButton(triggerTab);
        actionColumns->setObjectName(QString::fromUtf8("actionColumns"));
        actionColumns->setText(QString::fromUtf8("..."));

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

        scopeLabel = new QLabel(triggerTab);
        scopeLabel->setObjectName(QString::fromUtf8("scopeLabel"));

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

        codeLabel = new QLabel(triggerTab);
        codeLabel->setObjectName(QString::fromUtf8("codeLabel"));

        gridLayout->addWidget(codeLabel, 8, 0, 1, 1);

        codeEdit = new SqlEditor(triggerTab);
        codeEdit->setObjectName(QString::fromUtf8("codeEdit"));
        codeEdit->setLineWrapMode(QPlainTextEdit::NoWrap);

        gridLayout->addWidget(codeEdit, 9, 0, 1, 3);

        preconditionEdit = new SqlEditor(triggerTab);
        preconditionEdit->setObjectName(QString::fromUtf8("preconditionEdit"));
        preconditionEdit->setMaximumSize(QSize(16777215, 80));
        preconditionEdit->setLineWrapMode(QPlainTextEdit::NoWrap);

        gridLayout->addWidget(preconditionEdit, 7, 0, 1, 3);

        tabWidget->addTab(triggerTab, QString());
        ddlTab = new QWidget();
        ddlTab->setObjectName(QString::fromUtf8("ddlTab"));
        verticalLayout_2 = new QVBoxLayout(ddlTab);
        verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
        ddlEdit = new SqlView(ddlTab);
        ddlEdit->setObjectName(QString::fromUtf8("ddlEdit"));

        verticalLayout_2->addWidget(ddlEdit);

        tabWidget->addTab(ddlTab, QString());

        verticalLayout->addWidget(tabWidget);

        buttonBox = new QDialogButtonBox(TriggerDialog);
        buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
        buttonBox->setOrientation(Qt::Horizontal);
        buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);

        verticalLayout->addWidget(buttonBox);

        QWidget::setTabOrder(tabWidget, nameEdit);
        QWidget::setTabOrder(nameEdit, whenCombo);
        QWidget::setTabOrder(whenCombo, actionCombo);
        QWidget::setTabOrder(actionCombo, actionColumns);
        QWidget::setTabOrder(actionColumns, onCombo);
        QWidget::setTabOrder(onCombo, scopeCombo);
        QWidget::setTabOrder(scopeCombo, preconditionCheck);
        QWidget::setTabOrder(preconditionCheck, preconditionEdit);
        QWidget::setTabOrder(preconditionEdit, codeEdit);
        QWidget::setTabOrder(codeEdit, buttonBox);
        QWidget::setTabOrder(buttonBox, ddlEdit);

        retranslateUi(TriggerDialog);
        QObject::connect(buttonBox, SIGNAL(accepted()), TriggerDialog, SLOT(accept()));
        QObject::connect(buttonBox, SIGNAL(rejected()), TriggerDialog, SLOT(reject()));

        tabWidget->setCurrentIndex(0);


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

    void retranslateUi(QDialog *TriggerDialog)
    {
        TriggerDialog->setWindowTitle(QCoreApplication::translate("TriggerDialog", "Trigger", nullptr));
        onLabel->setText(QCoreApplication::translate("TriggerDialog", "On table:", nullptr));
        actionLabel->setText(QCoreApplication::translate("TriggerDialog", "Action:", nullptr));
#if QT_CONFIG(tooltip)
        preconditionCheck->setToolTip(QCoreApplication::translate("TriggerDialog", "<p>SQL condition that will be evaluated before the actual trigger code. In case the condition returns false, the trigger will not be fired for that row.</p>", nullptr));
#endif // QT_CONFIG(tooltip)
        preconditionCheck->setText(QCoreApplication::translate("TriggerDialog", "Pre-condition:", nullptr));
#if QT_CONFIG(tooltip)
        scopeCombo->setToolTip(QCoreApplication::translate("TriggerDialog", "The scope is still not fully supported by the SQLite database.", nullptr));
#endif // QT_CONFIG(tooltip)
        nameLabel->setText(QCoreApplication::translate("TriggerDialog", "Trigger name:", nullptr));
        whenLabel->setText(QCoreApplication::translate("TriggerDialog", "When:", nullptr));
#if QT_CONFIG(tooltip)
        actionColumns->setToolTip(QCoreApplication::translate("TriggerDialog", "List of columns for UPDATE OF action.", nullptr));
#endif // QT_CONFIG(tooltip)
        scopeLabel->setText(QCoreApplication::translate("TriggerDialog", "Scope:", nullptr));
        codeLabel->setText(QCoreApplication::translate("TriggerDialog", "Code:", nullptr));
#if QT_CONFIG(tooltip)
        codeEdit->setToolTip(QCoreApplication::translate("TriggerDialog", "Trigger statements to be executed.", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(tooltip)
        preconditionEdit->setToolTip(QCoreApplication::translate("TriggerDialog", "<p>SQL condition that will be evaluated before the actual trigger code. In case the condition returns false, the trigger will not be fired for that row.</p>", nullptr));
#endif // QT_CONFIG(tooltip)
        tabWidget->setTabText(tabWidget->indexOf(triggerTab), QCoreApplication::translate("TriggerDialog", "Trigger", nullptr));
        tabWidget->setTabText(tabWidget->indexOf(ddlTab), QCoreApplication::translate("TriggerDialog", "DDL", nullptr));
    } // retranslateUi

};

namespace Ui {
    class TriggerDialog: public Ui_TriggerDialog {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_TRIGGERDIALOG_H
