DlgPrefEQ::DlgPrefEQ(QWidget* pParent, ConfigObject<ConfigValue>* pConfig) : DlgPreferencePage(pParent), m_COTLoFreq(CONFIG_KEY, "LoEQFrequency"), m_COTHiFreq(CONFIG_KEY, "HiEQFrequency"), m_COTLoFi(CONFIG_KEY, "LoFiEQs"), m_COTEnableEq(CONFIG_KEY, ENABLE_INTERNAL_EQ), m_pConfig(pConfig), m_lowEqFreq(0.0), m_highEqFreq(0.0) { setupUi(this); // Connection connect(SliderHiEQ, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateHiEQ())); connect(SliderHiEQ, SIGNAL(sliderMoved(int)), this, SLOT(slotUpdateHiEQ())); connect(SliderHiEQ, SIGNAL(sliderReleased()), this, SLOT(slotUpdateHiEQ())); connect(SliderLoEQ, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateLoEQ())); connect(SliderLoEQ, SIGNAL(sliderMoved(int)), this, SLOT(slotUpdateLoEQ())); connect(SliderLoEQ, SIGNAL(sliderReleased()), this, SLOT(slotUpdateLoEQ())); connect(CheckBoxLoFi, SIGNAL(stateChanged(int)), this, SLOT(slotLoFiChanged())); connect(CheckBoxEnbEQ, SIGNAL(stateChanged(int)), this, SLOT(slotEnaEQChanged())); connect(PushButtonReset, SIGNAL(clicked(bool)), this, SLOT(reset())); loadSettings(); }
void DlgPrefEQ::slotUpdate() { slotUpdateLoEQ(); slotUpdateHiEQ(); slotLoFiChanged(); slotEnaEQChanged(); }
DlgPrefEQ::DlgPrefEQ(QWidget* pParent, ConfigObject<ConfigValue>* pConfig) : DlgPreferencePage(pParent), m_COTLoFreq(CONFIG_KEY, "LoEQFrequency"), m_COTHiFreq(CONFIG_KEY, "HiEQFrequency"), m_COTLoFi(CONFIG_KEY, "LoFiEQs"), m_COTEnableEq(CONFIG_KEY, ENABLE_INTERNAL_EQ), m_pConfig(pConfig), m_lowEqFreq(0.0), m_highEqFreq(0.0) { setupUi(this); // Connection connect(SliderHiEQ, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateHiEQ())); connect(SliderHiEQ, SIGNAL(sliderMoved(int)), this, SLOT(slotUpdateHiEQ())); connect(SliderHiEQ, SIGNAL(sliderReleased()), this, SLOT(slotUpdateHiEQ())); connect(SliderLoEQ, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateLoEQ())); connect(SliderLoEQ, SIGNAL(sliderMoved(int)), this, SLOT(slotUpdateLoEQ())); connect(SliderLoEQ, SIGNAL(sliderReleased()), this, SLOT(slotUpdateLoEQ())); connect(radioButton_bypass, SIGNAL(clicked()), this, SLOT(slotEqChanged())); connect(radioButton_bessel4, SIGNAL(clicked()), this, SLOT(slotEqChanged())); connect(radioButton_butterworth8, SIGNAL(clicked()), this, SLOT(slotEqChanged())); loadSettings(); slotUpdate(); slotApply(); }
DlgPrefEQ::DlgPrefEQ(QWidget* pParent, EffectsManager* pEffectsManager, UserSettingsPointer pConfig) : DlgPreferencePage(pParent), m_COLoFreq(kConfigKey, "LoEQFrequency"), m_COHiFreq(kConfigKey, "HiEQFrequency"), m_pConfig(pConfig), m_lowEqFreq(0.0), m_highEqFreq(0.0), m_pEffectsManager(pEffectsManager), m_firstSelectorLabel(NULL), m_pNumDecks(NULL), m_inSlotPopulateDeckEffectSelectors(false), m_bEqAutoReset(false), m_bGainAutoReset(false) { m_pEQEffectRack = m_pEffectsManager->getEqualizerRack(0); m_pQuickEffectRack = m_pEffectsManager->getQuickEffectRack(0); m_pOutputEffectRack = m_pEffectsManager->getOutputsEffectRack(); setupUi(this); // Connection connect(SliderHiEQ, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateHiEQ())); connect(SliderHiEQ, SIGNAL(sliderMoved(int)), this, SLOT(slotUpdateHiEQ())); connect(SliderHiEQ, SIGNAL(sliderReleased()), this, SLOT(slotUpdateHiEQ())); connect(SliderLoEQ, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateLoEQ())); connect(SliderLoEQ, SIGNAL(sliderMoved(int)), this, SLOT(slotUpdateLoEQ())); connect(SliderLoEQ, SIGNAL(sliderReleased()), this, SLOT(slotUpdateLoEQ())); connect(CheckBoxEqAutoReset, SIGNAL(stateChanged(int)), this, SLOT(slotUpdateEqAutoReset(int))); connect(CheckBoxGainAutoReset, SIGNAL(stateChanged(int)), this, SLOT(slotUpdateGainAutoReset(int))); connect(CheckBoxBypass, SIGNAL(stateChanged(int)), this, SLOT(slotBypass(int))); connect(CheckBoxEqOnly, SIGNAL(stateChanged(int)), this, SLOT(slotPopulateDeckEffectSelectors())); connect(CheckBoxSingleEqEffect, SIGNAL(stateChanged(int)), this, SLOT(slotSingleEqChecked(int))); // Add drop down lists for current decks and connect num_decks control // to slotNumDecksChanged m_pNumDecks = new ControlProxy("[Master]", "num_decks", this); m_pNumDecks->connectValueChanged(this, &DlgPrefEQ::slotNumDecksChanged); slotNumDecksChanged(m_pNumDecks->get()); setUpMasterEQ(); loadSettings(); slotUpdate(); slotApply(); }
void DlgPrefEQ::slotUpdate() { slotUpdateLoEQ(); slotUpdateHiEQ(); slotEqChanged(); }