wiRedPanda
Home
About
Download
Try out
API Docs
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
14
#include "
App/UI/ClockDialogUI.h
"
15
24
class
ClockDialog
:
public
QDialog
25
{
26
Q_OBJECT
27
28
public
:
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
40
private
:
41
Q_DISABLE_COPY(
ClockDialog
)
42
43
// --- Members ---
44
45
std::unique_ptr<ClockDialogUi> m_ui;
46
};
ClockDialogUI.h
ClockDialogUi: hand-written UI class for the ClockDialog.
ClockDialog::ClockDialog
ClockDialog(const int currentPeriod, QWidget *parent=nullptr)
Constructs the dialog with currentPeriod (in time-step columns) as the initial value.
Definition
ClockDialog.cpp:8
ClockDialog::~ClockDialog
~ClockDialog() override
Definition
ClockDialog.cpp:23
ClockDialog::period
int period() const
Returns the selected clock period, in waveform time-step columns.
Definition
ClockDialog.cpp:27
App
UI
ClockDialog.h
Generated by
1.16.1