view ui_Settings.h @ 3:4ace58a7c03c

Send disconnect command before closing the connection The old BT module transmitted a notification in case a connection were closed which cause the ostc to exit the uart loop. The new one doesn't do this => send disconnect command to avoid waiting in the installation loop till timeout or button press.
author Ideenmodellierer
date Fri, 28 Nov 2025 20:00:02 +0100
parents 0b3630a29ad8
children
line wrap: on
line source

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

#ifndef UI_SETTINGS_H
#define UI_SETTINGS_H

#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QToolButton>

QT_BEGIN_NAMESPACE

class Ui_Settings
{
public:
    QGridLayout *gridLayout;
    QFrame *line_3;
    QCheckBox *forceFirmwareUpdate;
    QComboBox *portMenu;
    QCheckBox *autoSetDateTimeCB;
    QCheckBox *forceFontlibUpdate;
    QLabel *noPortLabel;
    QComboBox *languageMenu;
    QToolButton *updatePorts;
    QHBoxLayout *horizontalLayout;
    QPushButton *resetB;
    QSpacerItem *horizontalSpacer_2;
    QPushButton *okB;
    QPushButton *cancelB;
    QLabel *label;
    QCheckBox *forceRTEUpdate;
    QFrame *line_4;
    QLabel *label_2;
    QSpacerItem *horizontalSpacer;
    QFrame *line;
    QCheckBox *useFastMode;

    void setupUi(QDialog *Settings)
    {
        if (Settings->objectName().isEmpty())
            Settings->setObjectName(QString::fromUtf8("Settings"));
        Settings->resize(341, 293);
        gridLayout = new QGridLayout(Settings);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        line_3 = new QFrame(Settings);
        line_3->setObjectName(QString::fromUtf8("line_3"));
        line_3->setFrameShape(QFrame::HLine);
        line_3->setFrameShadow(QFrame::Sunken);

        gridLayout->addWidget(line_3, 10, 0, 1, 3);

        forceFirmwareUpdate = new QCheckBox(Settings);
        forceFirmwareUpdate->setObjectName(QString::fromUtf8("forceFirmwareUpdate"));

        gridLayout->addWidget(forceFirmwareUpdate, 6, 0, 1, 2);

        portMenu = new QComboBox(Settings);
        portMenu->setObjectName(QString::fromUtf8("portMenu"));
        portMenu->setEditable(true);

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

        autoSetDateTimeCB = new QCheckBox(Settings);
        autoSetDateTimeCB->setObjectName(QString::fromUtf8("autoSetDateTimeCB"));

        gridLayout->addWidget(autoSetDateTimeCB, 11, 0, 1, 3);

        forceFontlibUpdate = new QCheckBox(Settings);
        forceFontlibUpdate->setObjectName(QString::fromUtf8("forceFontlibUpdate"));

        gridLayout->addWidget(forceFontlibUpdate, 8, 0, 1, 2);

        noPortLabel = new QLabel(Settings);
        noPortLabel->setObjectName(QString::fromUtf8("noPortLabel"));
        QSizePolicy sizePolicy(QSizePolicy::Ignored, QSizePolicy::Preferred);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(noPortLabel->sizePolicy().hasHeightForWidth());
        noPortLabel->setSizePolicy(sizePolicy);
        noPortLabel->setTextFormat(Qt::RichText);
        noPortLabel->setAlignment(Qt::AlignCenter);
        noPortLabel->setOpenExternalLinks(true);

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

        languageMenu = new QComboBox(Settings);
        QIcon icon;
        icon.addFile(QString::fromUtf8(":/icons/Icons/german.png"), QSize(), QIcon::Normal, QIcon::Off);
        languageMenu->addItem(icon, QString::fromUtf8("Deutsch"));
        QIcon icon1;
        icon1.addFile(QString::fromUtf8(":/icons/Icons/english.png"), QSize(), QIcon::Normal, QIcon::Off);
        languageMenu->addItem(icon1, QString::fromUtf8("English"));
        QIcon icon2;
        icon2.addFile(QString::fromUtf8(":/icons/Icons/spanish.png"), QSize(), QIcon::Normal, QIcon::Off);
        languageMenu->addItem(icon2, QString::fromUtf8("Espa\303\261ol"));
        QIcon icon3;
        icon3.addFile(QString::fromUtf8(":/icons/Icons/french.png"), QSize(), QIcon::Normal, QIcon::Off);
        languageMenu->addItem(icon3, QString::fromUtf8("Fran\303\247ais"));
        QIcon icon4;
        icon4.addFile(QString::fromUtf8(":/icons/Icons/italian.png"), QSize(), QIcon::Normal, QIcon::Off);
        languageMenu->addItem(icon4, QString::fromUtf8("Italiano"));
        QIcon icon5;
        icon5.addFile(QString::fromUtf8(":/icons/Icons/russian.png"), QSize(), QIcon::Normal, QIcon::Off);
        languageMenu->addItem(icon5, QString::fromUtf8("\320\240\321\203\321\201\321\201\320\272\320\270\320\271"));
        languageMenu->setObjectName(QString::fromUtf8("languageMenu"));
        languageMenu->setInsertPolicy(QComboBox::NoInsert);

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

        updatePorts = new QToolButton(Settings);
        updatePorts->setObjectName(QString::fromUtf8("updatePorts"));
        updatePorts->setText(QString::fromUtf8("..."));

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

        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setSpacing(0);
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        resetB = new QPushButton(Settings);
        resetB->setObjectName(QString::fromUtf8("resetB"));

        horizontalLayout->addWidget(resetB);

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

        horizontalLayout->addItem(horizontalSpacer_2);

        okB = new QPushButton(Settings);
        okB->setObjectName(QString::fromUtf8("okB"));
        okB->setAutoDefault(false);

        horizontalLayout->addWidget(okB);

        cancelB = new QPushButton(Settings);
        cancelB->setObjectName(QString::fromUtf8("cancelB"));

        horizontalLayout->addWidget(cancelB);


        gridLayout->addLayout(horizontalLayout, 15, 0, 1, 3);

        label = new QLabel(Settings);
        label->setObjectName(QString::fromUtf8("label"));
        label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

        forceRTEUpdate = new QCheckBox(Settings);
        forceRTEUpdate->setObjectName(QString::fromUtf8("forceRTEUpdate"));

        gridLayout->addWidget(forceRTEUpdate, 7, 0, 1, 2);

        line_4 = new QFrame(Settings);
        line_4->setObjectName(QString::fromUtf8("line_4"));
        line_4->setFrameShape(QFrame::HLine);
        line_4->setFrameShadow(QFrame::Sunken);

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

        label_2 = new QLabel(Settings);
        label_2->setObjectName(QString::fromUtf8("label_2"));
        QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Preferred);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
        label_2->setSizePolicy(sizePolicy1);
        label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);

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

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

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

        line = new QFrame(Settings);
        line->setObjectName(QString::fromUtf8("line"));
        line->setFrameShape(QFrame::HLine);
        line->setFrameShadow(QFrame::Sunken);

        gridLayout->addWidget(line, 14, 0, 1, 3);

        useFastMode = new QCheckBox(Settings);
        useFastMode->setObjectName(QString::fromUtf8("useFastMode"));

        gridLayout->addWidget(useFastMode, 13, 0, 1, 3);


        retranslateUi(Settings);
        QObject::connect(okB, SIGNAL(clicked()), Settings, SLOT(accept()));
        QObject::connect(cancelB, SIGNAL(clicked()), Settings, SLOT(reject()));
        QObject::connect(languageMenu, SIGNAL(activated(int)), Settings, SLOT(languageSlot(int)));
        QObject::connect(updatePorts, SIGNAL(clicked()), Settings, SLOT(updatePortsSlot()));
        QObject::connect(resetB, SIGNAL(clicked()), Settings, SLOT(resetSettingsSlot()));

        languageMenu->setCurrentIndex(0);
        okB->setDefault(true);


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

    void retranslateUi(QDialog *Settings)
    {
        Settings->setWindowTitle(QCoreApplication::translate("Settings", "OSTC Companion settings", nullptr));
        forceFirmwareUpdate->setText(QCoreApplication::translate("Settings", "Force Firmware update", nullptr));
#if QT_CONFIG(tooltip)
        autoSetDateTimeCB->setToolTip(QCoreApplication::translate("Settings", "If checked, any configuration upload will also setup date and time.", nullptr));
#endif // QT_CONFIG(tooltip)
        autoSetDateTimeCB->setText(QCoreApplication::translate("Settings", "Auto setup of date && time", nullptr));
        forceFontlibUpdate->setText(QCoreApplication::translate("Settings", "Force FontLib update", nullptr));

#if QT_CONFIG(tooltip)
        updatePorts->setToolTip(QCoreApplication::translate("Settings", "Update port list with currently connected USB or Bluetooth devices.", nullptr));
#endif // QT_CONFIG(tooltip)
        resetB->setText(QCoreApplication::translate("Settings", "Restore Defaults", nullptr));
        okB->setText(QCoreApplication::translate("Settings", "OK", nullptr));
#if QT_CONFIG(shortcut)
        okB->setShortcut(QCoreApplication::translate("Settings", "Return", nullptr));
#endif // QT_CONFIG(shortcut)
        cancelB->setText(QCoreApplication::translate("Settings", "Cancel", nullptr));
#if QT_CONFIG(shortcut)
        cancelB->setShortcut(QCoreApplication::translate("Settings", "Ctrl+W", nullptr));
#endif // QT_CONFIG(shortcut)
        label->setText(QCoreApplication::translate("Settings", "Language:", nullptr));
        forceRTEUpdate->setText(QCoreApplication::translate("Settings", "Force RTE update", nullptr));
        label_2->setText(QCoreApplication::translate("Settings", "Communication port:", nullptr));
        useFastMode->setText(QCoreApplication::translate("Settings", "Enable fast mode if supported", nullptr));
    } // retranslateUi

};

namespace Ui {
    class Settings: public Ui_Settings {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_SETTINGS_H