wiRedPanda
Home
About
Download
Try out
API Docs
wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
LengthDialog.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
#include <memory>
11
12
#include <QDialog>
13
14
#include "
App/UI/LengthDialogUI.h
"
15
22
class
LengthDialog
:
public
QDialog
23
{
24
Q_OBJECT
25
26
public
:
27
// --- Lifecycle ---
28
33
explicit
LengthDialog
(
const
int
currentLength, QWidget *parent =
nullptr
);
34
~LengthDialog
()
override
;
35
36
// --- Result Access ---
37
40
int
length
()
const
;
41
42
private
:
43
Q_DISABLE_COPY(
LengthDialog
)
44
45
// --- Members ---
46
47
std::unique_ptr<LengthDialogUi> m_ui;
48
};
LengthDialogUI.h
LengthDialogUi: hand-written UI class for the LengthDialog.
LengthDialog::LengthDialog
LengthDialog(const int currentLength, QWidget *parent=nullptr)
Constructs the dialog.
Definition
LengthDialog.cpp:8
LengthDialog::~LengthDialog
~LengthDialog() override
Definition
LengthDialog.cpp:23
LengthDialog::length
int length() const
Definition
LengthDialog.cpp:27
App
UI
LengthDialog.h
Generated by
1.16.1