settingsdialog.h Example File
multimedia/spectrum/app/settingsdialog.h
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
#include "spectrum.h"
#include <QDialog>
#include <QAudioDeviceInfo>
class QComboBox;
class QCheckBox;
class QSlider;
class QSpinBox;
class QGridLayout;
class SettingsDialog : public QDialog
{
Q_OBJECT
public:
SettingsDialog(const QList<QAudioDeviceInfo> &availableInputDevices,
const QList<QAudioDeviceInfo> &availableOutputDevices,
QWidget *parent = 0);
~SettingsDialog();
WindowFunction windowFunction() const { return m_windowFunction; }
const QAudioDeviceInfo &inputDevice() const { return m_inputDevice; }
const QAudioDeviceInfo &outputDevice() const { return m_outputDevice; }
private slots:
void windowFunctionChanged(int index);
void inputDeviceChanged(int index);
void outputDeviceChanged(int index);
private:
WindowFunction m_windowFunction;
QAudioDeviceInfo m_inputDevice;
QAudioDeviceInfo m_outputDevice;
QComboBox *m_inputDeviceComboBox;
QComboBox *m_outputDeviceComboBox;
QComboBox *m_windowFunctionComboBox;
};
#endif // SETTINGSDIALOG_H