tonegeneratordialog.h Example File
multimedia/spectrum/app/tonegeneratordialog.h
#ifndef TONEGENERATORDIALOG_H
#define TONEGENERATORDIALOG_H
#include "spectrum.h"
#include <QAudioDeviceInfo>
#include <QDialog>
class QCheckBox;
class QSlider;
class QSpinBox;
class QGridLayout;
class ToneGeneratorDialog : public QDialog
{
Q_OBJECT
public:
explicit ToneGeneratorDialog(QWidget *parent = 0);
~ToneGeneratorDialog();
bool isFrequencySweepEnabled() const;
qreal frequency() const;
qreal amplitude() const;
private slots:
void frequencySweepEnabled(bool enabled);
private:
QCheckBox *m_toneGeneratorSweepCheckBox;
bool m_frequencySweepEnabled;
QWidget *m_toneGeneratorControl;
QWidget *m_toneGeneratorFrequencyControl;
QSlider *m_frequencySlider;
QSpinBox *m_frequencySpinBox;
qreal m_frequency;
QSlider *m_amplitudeSlider;
};
#endif // TONEGENERATORDIALOG_H