wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
LengthDialogUI.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8#pragma once
9
10// Specific Qt includes instead of monolithic QtWidgets
11#include <QDialog>
12#include <QDialogButtonBox>
13#include <QGridLayout>
14#include <QLabel>
15#include <QSlider>
16#include <QSpinBox>
17
19{
20public:
21 // --- Lifecycle ---
22
23 LengthDialogUi() = default;
24
27
28 // --- Setup ---
29
34 void setupUi(QDialog *LengthDialog);
35
40 void retranslateUi(QDialog *LengthDialog);
41
42 // --- Widgets ---
43
44 // Layout
45 QGridLayout *gridLayout_2 = nullptr;
46
47 // Controls
48 QSlider *lengthSlider = nullptr;
49 QSpinBox *lengthSpinBox = nullptr;
50
51 // Labels
52 QLabel *titleLabel = nullptr;
53 QLabel *minLabel = nullptr;
54 QLabel *maxLabel = nullptr;
55
56 // Buttons
57 QDialogButtonBox *buttonBox = nullptr;
58};
LengthDialogUi & operator=(const LengthDialogUi &)=delete
LengthDialogUi(const LengthDialogUi &)=delete
QGridLayout * gridLayout_2
LengthDialogUi()=default
QSlider * lengthSlider
QLabel * titleLabel
QDialogButtonBox * buttonBox
QSpinBox * lengthSpinBox
void setupUi(QDialog *LengthDialog)
Creates and lays out all child widgets inside LengthDialog.
void retranslateUi(QDialog *LengthDialog)
Updates all translatable strings in the dialog.
Modal dialog for setting the BeWavedDolphin simulation length (number of time steps).