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
15
22class LengthDialog : public QDialog
23{
24 Q_OBJECT
25
26public:
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
42private:
43 Q_DISABLE_COPY(LengthDialog)
44
45 // --- Members ---
46
47 std::unique_ptr<LengthDialogUi> m_ui;
48};
LengthDialogUi: hand-written UI class for the LengthDialog.
LengthDialog(const int currentLength, QWidget *parent=nullptr)
Constructs the dialog.
~LengthDialog() override
int length() const