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

Modal dialog for setting the BeWavedDolphin simulation length (number of time steps). More...

#include <LengthDialog.h>

Inheritance diagram for LengthDialog:
[legend]

Public Member Functions

int length () const
 LengthDialog (const int currentLength, QWidget *parent=nullptr)
 Constructs the dialog.
 ~LengthDialog () override

Detailed Description

Modal dialog for setting the BeWavedDolphin simulation length (number of time steps).

Provides a slider and spin-box for entering the desired column count.

Definition at line 22 of file LengthDialog.h.

Constructor & Destructor Documentation

◆ LengthDialog()

LengthDialog::LengthDialog ( const int currentLength,
QWidget * parent = nullptr )
explicit

Constructs the dialog.

Parameters
currentLengthThe initial simulation length value.
parentOptional parent widget.

Definition at line 8 of file LengthDialog.cpp.

◆ ~LengthDialog()

LengthDialog::~LengthDialog ( )
override

Definition at line 23 of file LengthDialog.cpp.

Member Function Documentation

◆ length()

int LengthDialog::length ( ) const

Returns the selected simulation length. Pure accessor: the caller runs exec() and reads this only on QDialog::Accepted.

Definition at line 27 of file LengthDialog.cpp.


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