kwave
18.07.70
|
#include <LowPassDialog.h>
Signals | |
void | changed (double freq) |
void | startPreListen () |
void | stopPreListen () |
Public Member Functions | |
LowPassDialog (QWidget *parent, double sample_rate) | |
virtual | ~LowPassDialog () Q_DECL_OVERRIDE |
virtual QStringList | params () Q_DECL_OVERRIDE |
virtual void | setParams (QStringList ¶ms) Q_DECL_OVERRIDE |
virtual QDialog * | dialog () Q_DECL_OVERRIDE |
![]() | |
virtual | ~PluginSetupDialog () |
Protected Slots | |
void | valueChanged (int pos) |
void | listenToggled (bool listen) |
void | listenStopped () |
Protected Member Functions | |
void | updateDisplay () |
Private Slots | |
void | invokeHelp () |
Private Attributes | |
double | m_frequency |
double | m_sample_rate |
Kwave::LowPassFilter * | m_filter |
Definition at line 38 of file LowPassDialog.h.
Kwave::LowPassDialog::LowPassDialog | ( | QWidget * | parent, |
double | sample_rate | ||
) |
Constructor.
parent | parent widget |
sample_rate | sample rate of the audio data to be processed, needed for determining the allowed range of the cutoff frequency |
Definition at line 42 of file LowPassDialog.cpp.
References Kwave::connect(), invokeHelp(), listenToggled(), m_filter, m_frequency, Kwave::toInt(), updateDisplay(), and valueChanged().
|
virtual |
Destructor
Definition at line 107 of file LowPassDialog.cpp.
References listenToggled(), and m_filter.
|
signal |
Emitted whenever the frequency changes
freq | the frequency parameter in Hz |
Referenced by dialog(), and valueChanged().
|
inlinevirtual |
retruns a pointer to this as a QDialog
Implements Kwave::PluginSetupDialog.
Definition at line 64 of file LowPassDialog.h.
References changed(), invokeHelp(), listenStopped(), listenToggled(), startPreListen(), stopPreListen(), updateDisplay(), and valueChanged().
|
privateslot |
invoke the online help
Definition at line 185 of file LowPassDialog.cpp.
References _.
Referenced by dialog(), and LowPassDialog().
|
protectedslot |
called when the pre-listen mode stopped/aborted
Definition at line 179 of file LowPassDialog.cpp.
Referenced by dialog().
|
protectedslot |
called when the "Listen" button has been toggled, to start or stop the pre-listen mode
Definition at line 162 of file LowPassDialog.cpp.
References startPreListen(), and stopPreListen().
Referenced by dialog(), LowPassDialog(), and ~LowPassDialog().
|
virtual |
Returns the parameters as string list
Implements Kwave::PluginSetupDialog.
Definition at line 128 of file LowPassDialog.cpp.
References m_frequency.
|
virtual |
Sets the from a list of parameters
Implements Kwave::PluginSetupDialog.
Definition at line 136 of file LowPassDialog.cpp.
References m_frequency, Kwave::toInt(), and updateDisplay().
|
signal |
Pre-listen mode has been started
Referenced by dialog(), and listenToggled().
|
signal |
Pre-listen mode has been stopped
Referenced by dialog(), and listenToggled().
|
protected |
Update the graphic display
Definition at line 151 of file LowPassDialog.cpp.
References m_filter, m_frequency, m_sample_rate, and Kwave::LowPassFilter::setFrequency().
Referenced by dialog(), LowPassDialog(), setParams(), and valueChanged().
|
protectedslot |
called when the spinbox or spinbox value has changed
Definition at line 117 of file LowPassDialog.cpp.
References changed(), m_frequency, Kwave::toInt(), and updateDisplay().
Referenced by dialog(), and LowPassDialog().
|
private |
filter function for calculating the frequency response
Definition at line 115 of file LowPassDialog.h.
Referenced by LowPassDialog(), updateDisplay(), and ~LowPassDialog().
|
private |
the cutoff frequency in Hz
Definition at line 109 of file LowPassDialog.h.
Referenced by LowPassDialog(), params(), setParams(), updateDisplay(), and valueChanged().
|
private |
sample rate of the signal in samples/sec
Definition at line 112 of file LowPassDialog.h.
Referenced by updateDisplay().