wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ClockDialog.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
24class ClockDialog : public QDialog
25{
26 Q_OBJECT
27
28public:
29 // --- Lifecycle ---
30
32 explicit ClockDialog(const int currentPeriod, QWidget *parent = nullptr);
33 ~ClockDialog() override;
34
35 // --- Result Access ---
36
38 int period() const;
39
40private:
41 Q_DISABLE_COPY(ClockDialog)
42
43 // --- Members ---
44
45 std::unique_ptr<ClockDialogUi> m_ui;
46};
ClockDialogUi: hand-written UI class for the ClockDialog.
ClockDialog(const int currentPeriod, QWidget *parent=nullptr)
Constructs the dialog with currentPeriod (in time-step columns) as the initial value.
~ClockDialog() override
int period() const
Returns the selected clock period, in waveform time-step columns.