Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/dlgprefeq.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           dlgprefeq.h  -  description
00003                              -------------------
00004     begin                : Thu Jun 7 2007
00005     copyright            : (C) 2007 by John Sully
00006     email                : jsully@scs.ryerson.ca
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef DLGPREFEQ_H
00019 #define DLGPREFEQ_H
00020 
00021 #include "ui_dlgprefeqdlg.h"
00022 #include "configobject.h"
00023 #include "engine/enginefilterblock.h"
00024 #include "controlobject.h"
00025 
00026 class QWidget;
00031 class DlgPrefEQ : public QWidget, public Ui::DlgPrefEQDlg  {
00032     Q_OBJECT
00033 public:
00034     DlgPrefEQ(QWidget *parent, ConfigObject<ConfigValue> *_config);
00035     ~DlgPrefEQ();
00036 public slots:
00037     void slotLoFiChanged();
00039     void slotUpdateHiEQ();
00041     void slotUpdateLoEQ();
00043     void slotApply();
00044     void slotUpdate();
00045 signals:
00046     void apply(const QString &);
00047 private slots:
00048     void reset();
00049 private:
00050     void loadSettings();
00051     void setDefaultShelves();
00052     double getEqFreq(int value, int minimum, int maximum);
00053     int getSliderPosition(double eqFreq, int minimum, int maximum);
00054     void validate_levels();
00055 
00056     double m_lowEqFreq, m_highEqFreq;
00058     ConfigObject<ConfigValue> *m_pConfig;
00059 #ifndef __LOFI__
00060     ControlObjectThread m_COTLoFreq;
00061     ControlObjectThread m_COTHiFreq;
00062     ControlObjectThread m_COTLoFi;
00063 #endif
00064 
00065 };
00066 
00067 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines