#include <UnitConverter.h>

Inheritance diagram for UnitConverter:
Inheritance graph
Collaboration diagram for UnitConverter:
Collaboration graph

Public Member Functions

 UnitConverter (QWidget *parent=0)
 
virtual ~UnitConverter ()
 

Private Slots

void freqChanged ()
 
void midiChanged ()
 
void noteChanged ()
 
void octaveChanged ()
 
void centsChanged ()
 
void samplesChanged ()
 
void periodChanged ()
 
void bpmChanged ()
 
void tempofreqChanged ()
 
void samplerateChanged ()
 
void preferenceChanged (PropertyContainer::PropertyName)
 

Private Member Functions

void updatePitchesFromFreq ()
 
void updatePitchPrefsLabel ()
 
void updateTempiFromSamples ()
 
double getSampleRate ()
 
void setTo (QSpinBox *, int)
 
void setTo (QDoubleSpinBox *, double)
 

Private Attributes

QDoubleSpinBox * m_freq
 
QSpinBox * m_midi
 
QComboBox * m_note
 
QSpinBox * m_octave
 
QDoubleSpinBox * m_cents
 
QLabel * m_pitchPrefsLabel
 
QDoubleSpinBox * m_samples
 
QDoubleSpinBox * m_period
 
QDoubleSpinBox * m_bpm
 
QDoubleSpinBox * m_tempofreq
 
QComboBox * m_samplerate
 

Detailed Description

Definition at line 27 of file UnitConverter.h.

Constructor & Destructor Documentation

UnitConverter::~UnitConverter ( )
virtual

Definition at line 230 of file UnitConverter.cpp.

Member Function Documentation

void UnitConverter::freqChanged ( )
privateslot

Definition at line 283 of file UnitConverter.cpp.

References updatePitchesFromFreq().

Referenced by UnitConverter().

void UnitConverter::midiChanged ( )
privateslot

Definition at line 289 of file UnitConverter.cpp.

References m_cents, m_freq, and m_midi.

Referenced by UnitConverter().

void UnitConverter::noteChanged ( )
privateslot

Definition at line 296 of file UnitConverter.cpp.

References m_cents, m_freq, m_note, and m_octave.

Referenced by UnitConverter().

void UnitConverter::octaveChanged ( )
privateslot

Definition at line 305 of file UnitConverter.cpp.

References m_cents, m_freq, m_note, and m_octave.

Referenced by UnitConverter().

void UnitConverter::centsChanged ( )
privateslot

Definition at line 314 of file UnitConverter.cpp.

References m_cents, m_freq, and m_midi.

Referenced by UnitConverter().

void UnitConverter::samplesChanged ( )
privateslot

Definition at line 340 of file UnitConverter.cpp.

References updateTempiFromSamples().

Referenced by UnitConverter().

void UnitConverter::periodChanged ( )
privateslot

Definition at line 346 of file UnitConverter.cpp.

References getSampleRate(), m_period, and m_samples.

Referenced by samplerateChanged(), and UnitConverter().

void UnitConverter::bpmChanged ( )
privateslot

Definition at line 355 of file UnitConverter.cpp.

References getSampleRate(), m_bpm, and m_samples.

Referenced by UnitConverter().

void UnitConverter::tempofreqChanged ( )
privateslot

Definition at line 364 of file UnitConverter.cpp.

References getSampleRate(), m_samples, and m_tempofreq.

Referenced by UnitConverter().

void UnitConverter::samplerateChanged ( )
privateslot

Definition at line 372 of file UnitConverter.cpp.

References periodChanged().

Referenced by UnitConverter().

void UnitConverter::preferenceChanged ( PropertyContainer::PropertyName  )
privateslot

Definition at line 265 of file UnitConverter.cpp.

References updatePitchesFromFreq(), and updatePitchPrefsLabel().

Referenced by UnitConverter().

void UnitConverter::updatePitchesFromFreq ( )
private

Definition at line 321 of file UnitConverter.cpp.

References m_cents, m_freq, m_midi, m_note, m_octave, and setTo().

Referenced by freqChanged(), preferenceChanged(), and UnitConverter().

void UnitConverter::updatePitchPrefsLabel ( )
private

Definition at line 272 of file UnitConverter.cpp.

References m_pitchPrefsLabel.

Referenced by preferenceChanged(), and UnitConverter().

void UnitConverter::updateTempiFromSamples ( )
private

Definition at line 385 of file UnitConverter.cpp.

References getSampleRate(), m_bpm, m_period, m_samples, m_tempofreq, and setTo().

Referenced by samplesChanged(), and UnitConverter().

double UnitConverter::getSampleRate ( )
private

Definition at line 379 of file UnitConverter.cpp.

References m_samplerate.

Referenced by bpmChanged(), periodChanged(), tempofreqChanged(), and updateTempiFromSamples().

void UnitConverter::setTo ( QSpinBox *  box,
int  value 
)
private

Definition at line 235 of file UnitConverter.cpp.

Referenced by updatePitchesFromFreq(), and updateTempiFromSamples().

void UnitConverter::setTo ( QDoubleSpinBox *  box,
double  value 
)
private

Definition at line 250 of file UnitConverter.cpp.

Member Data Documentation

QDoubleSpinBox* UnitConverter::m_freq
private
QSpinBox* UnitConverter::m_midi
private

Definition at line 52 of file UnitConverter.h.

Referenced by centsChanged(), midiChanged(), UnitConverter(), and updatePitchesFromFreq().

QComboBox* UnitConverter::m_note
private

Definition at line 53 of file UnitConverter.h.

Referenced by noteChanged(), octaveChanged(), UnitConverter(), and updatePitchesFromFreq().

QSpinBox* UnitConverter::m_octave
private

Definition at line 54 of file UnitConverter.h.

Referenced by noteChanged(), octaveChanged(), UnitConverter(), and updatePitchesFromFreq().

QDoubleSpinBox* UnitConverter::m_cents
private
QLabel* UnitConverter::m_pitchPrefsLabel
private

Definition at line 56 of file UnitConverter.h.

Referenced by UnitConverter(), and updatePitchPrefsLabel().

QDoubleSpinBox* UnitConverter::m_samples
private
QDoubleSpinBox* UnitConverter::m_period
private

Definition at line 61 of file UnitConverter.h.

Referenced by periodChanged(), UnitConverter(), and updateTempiFromSamples().

QDoubleSpinBox* UnitConverter::m_bpm
private

Definition at line 62 of file UnitConverter.h.

Referenced by bpmChanged(), UnitConverter(), and updateTempiFromSamples().

QDoubleSpinBox* UnitConverter::m_tempofreq
private

Definition at line 63 of file UnitConverter.h.

Referenced by tempofreqChanged(), UnitConverter(), and updateTempiFromSamples().

QComboBox* UnitConverter::m_samplerate
private

Definition at line 64 of file UnitConverter.h.

Referenced by getSampleRate(), and UnitConverter().


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