File: lengthdialog_ui.cpp

package info (click to toggle)
wiredpanda 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,560 kB
  • sloc: cpp: 16,024; sh: 232; ansic: 52; xml: 8; makefile: 5; javascript: 1
file content (73 lines) | stat: -rw-r--r-- 2,779 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Copyright 2015 - 2025, GIBIS-UNIFESP and the wiRedPanda contributors
// SPDX-License-Identifier: GPL-3.0-or-later

#include "lengthdialog_ui.h"

#include <QtCore/QCoreApplication>
#include <QtCore/QMetaObject>

void LengthDialog_Ui::setupUi(QDialog *LengthDialog)
{
    if (LengthDialog->objectName().isEmpty()) {
        LengthDialog->setObjectName("LengthDialog");
    }

    LengthDialog->resize(184, 116);

    LengthDialog->setWindowIcon(QIcon(":/toolbar/wavyIcon.svg"));

    gridLayout_2 = new QGridLayout(LengthDialog);
    gridLayout_2->setObjectName("gridLayout_2");

    lengthSlider = new QSlider(LengthDialog);
    lengthSlider->setObjectName("lengthSlider");
    lengthSlider->setMinimum(2);
    lengthSlider->setMaximum(2048);
    lengthSlider->setSingleStep(1);
    lengthSlider->setValue(64);
    lengthSlider->setOrientation(Qt::Horizontal);
    gridLayout_2->addWidget(lengthSlider, 3, 0, 1, 2);

    minLabel = new QLabel(LengthDialog);
    minLabel->setObjectName("minLabel");
    minLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
    gridLayout_2->addWidget(minLabel, 4, 0, 1, 1);

    titleLabel = new QLabel(LengthDialog);
    titleLabel->setObjectName("titleLabel");
    gridLayout_2->addWidget(titleLabel, 0, 0, 1, 1);

    maxLabel = new QLabel(LengthDialog);
    maxLabel->setObjectName("maxLabel");
    maxLabel->setAlignment(Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing);
    gridLayout_2->addWidget(maxLabel, 4, 1, 1, 1);

    lengthSpinBox = new QSpinBox(LengthDialog);
    lengthSpinBox->setObjectName("lengthSpinBox");
    lengthSpinBox->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
    lengthSpinBox->setMinimum(2);
    lengthSpinBox->setMaximum(2048);
    lengthSpinBox->setSingleStep(1);
    lengthSpinBox->setValue(64);
    gridLayout_2->addWidget(lengthSpinBox, 0, 1, 1, 1);

    buttonBox = new QDialogButtonBox(LengthDialog);
    buttonBox->setObjectName("buttonBox");
    buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
    gridLayout_2->addWidget(buttonBox, 5, 0, 1, 2);

    retranslateUi(LengthDialog);

    QObject::connect(lengthSlider, &QSlider::valueChanged, lengthSpinBox, &QSpinBox::setValue);
    QObject::connect(lengthSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), lengthSlider, &QSlider::setValue);

    QMetaObject::connectSlotsByName(LengthDialog);
}

void LengthDialog_Ui::retranslateUi(QDialog *LengthDialog)
{
    LengthDialog->setWindowTitle(QCoreApplication::translate("LengthDialog", "Dialog"));
    minLabel->setText(QCoreApplication::translate("LengthDialog", "2"));
    titleLabel->setText(QCoreApplication::translate("LengthDialog", "Simulation Length"));
    maxLabel->setText(QCoreApplication::translate("LengthDialog", "2048"));
}