|
kwave
18.07.70
|
#include <BandPassDialog.h>


Signals | |
| void | freqChanged (double freq) |
| void | bwChanged (double bw) |
| void | startPreListen () |
| void | stopPreListen () |
Public Member Functions | |
| BandPassDialog (QWidget *parent, double sample_rate) | |
| virtual | ~BandPassDialog () Q_DECL_OVERRIDE |
| virtual QStringList | params () Q_DECL_OVERRIDE |
| virtual void | setParams (QStringList ¶ms) Q_DECL_OVERRIDE |
| virtual QDialog * | dialog () Q_DECL_OVERRIDE |
Public Member Functions inherited from Kwave::PluginSetupDialog | |
| virtual | ~PluginSetupDialog () |
Protected Slots | |
| void | freqValueChanged (int pos) |
| void | bwValueChanged (int pos) |
| void | listenToggled (bool listen) |
| void | listenStopped () |
Protected Member Functions | |
| void | updateDisplay () |
Private Slots | |
| void | invokeHelp () |
Private Attributes | |
| double | m_frequency |
| double | m_bw |
| double | m_sample_rate |
| Kwave::BandPass * | m_filter |
Definition at line 39 of file BandPassDialog.h.
| Kwave::BandPassDialog::BandPassDialog | ( | 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 41 of file BandPassDialog.cpp.
References bwValueChanged(), Kwave::connect(), freqValueChanged(), invokeHelp(), listenToggled(), m_bw, m_filter, m_frequency, Kwave::toInt(), and updateDisplay().

|
virtual |
Destructor
Definition at line 113 of file BandPassDialog.cpp.
References listenToggled(), and m_filter.

|
signal |
emitted whenever the bandwidth setting has changed
| bw | bandwith parameter [0 .. 1.0] |
Referenced by bwValueChanged(), and dialog().

|
protectedslot |
called when the bw spinbox or slider value has changed
Definition at line 133 of file BandPassDialog.cpp.
References bwChanged(), m_bw, Kwave::toInt(), and updateDisplay().
Referenced by BandPassDialog(), and dialog().


|
inlinevirtual |
retruns a pointer to this as a QDialog
Implements Kwave::PluginSetupDialog.
Definition at line 65 of file BandPassDialog.h.
References bwChanged(), bwValueChanged(), freqChanged(), freqValueChanged(), invokeHelp(), listenStopped(), listenToggled(), startPreListen(), stopPreListen(), and updateDisplay().

|
signal |
Emitted whenever the frequency changes
| freq | the frequency parameter in Hz |
Referenced by dialog(), and freqValueChanged().

|
protectedslot |
called when the freq spinbox or slider value has changed
Definition at line 123 of file BandPassDialog.cpp.
References freqChanged(), m_frequency, Kwave::toInt(), and updateDisplay().
Referenced by BandPassDialog(), and dialog().


|
privateslot |
invoke the online help
Definition at line 209 of file BandPassDialog.cpp.
References _.
Referenced by BandPassDialog(), and dialog().

|
protectedslot |
called when the pre-listen mode stopped/aborted
Definition at line 203 of file BandPassDialog.cpp.
Referenced by dialog().

|
protectedslot |
called when the "Listen" button has been toggled, to start or stop the pre-listen mode
Definition at line 186 of file BandPassDialog.cpp.
References startPreListen(), and stopPreListen().
Referenced by BandPassDialog(), dialog(), and ~BandPassDialog().

|
virtual |
Returns the parameters as string list
Implements Kwave::PluginSetupDialog.
Definition at line 143 of file BandPassDialog.cpp.
References m_bw, and m_frequency.
|
virtual |
Sets the from a list of parameters
Implements Kwave::PluginSetupDialog.
Definition at line 152 of file BandPassDialog.cpp.
References m_bw, 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 174 of file BandPassDialog.cpp.
References m_bw, m_filter, m_frequency, m_sample_rate, Kwave::BandPass::setBandwidth(), and Kwave::BandPass::setFrequency().
Referenced by BandPassDialog(), bwValueChanged(), dialog(), freqValueChanged(), and setParams().


|
private |
the bw in Hz
Definition at line 122 of file BandPassDialog.h.
Referenced by BandPassDialog(), bwValueChanged(), params(), setParams(), and updateDisplay().
|
private |
filter function for calculating the frequency response
Definition at line 128 of file BandPassDialog.h.
Referenced by BandPassDialog(), updateDisplay(), and ~BandPassDialog().
|
private |
the cutoff frequency in Hz
Definition at line 119 of file BandPassDialog.h.
Referenced by BandPassDialog(), freqValueChanged(), params(), setParams(), and updateDisplay().
|
private |
sample rate of the signal in samples/sec
Definition at line 125 of file BandPassDialog.h.
Referenced by updateDisplay().