wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ClockDialog Class Reference

Modal dialog for selecting the period of a beWavedDolphin clock wave. More...

#include <ClockDialog.h>

Inheritance diagram for ClockDialog:
[legend]

Public Member Functions

 ClockDialog (const int currentPeriod, QWidget *parent=nullptr)
 Constructs the dialog with currentPeriod (in time-step columns) as the initial value.
int period () const
 Returns the selected clock period, in waveform time-step columns.
 ~ClockDialog () override

Detailed Description

Modal dialog for selecting the period of a beWavedDolphin clock wave.

Presents a slider and spin-box linked to the same period value (measured in waveform time-step columns). Run the dialog with exec() and, on QDialog::Accepted, read the chosen value via period().

Definition at line 24 of file ClockDialog.h.

Constructor & Destructor Documentation

◆ ClockDialog()

ClockDialog::ClockDialog ( const int currentPeriod,
QWidget * parent = nullptr )
explicit

Constructs the dialog with currentPeriod (in time-step columns) as the initial value.

Definition at line 8 of file ClockDialog.cpp.

◆ ~ClockDialog()

ClockDialog::~ClockDialog ( )
override

Definition at line 23 of file ClockDialog.cpp.

Member Function Documentation

◆ period()

int ClockDialog::period ( ) const

Returns the selected clock period, in waveform time-step columns.

Definition at line 27 of file ClockDialog.cpp.


The documentation for this class was generated from the following files: