void PreferencesWidget::on_bandComboBox_currentIndexChanged(int index) { m_filterManager.setCurrentBand(index); m_currentBand = static_cast<uint32_t>(index); qDebug()<<Q_FUNC_INFO<<"band>"<<m_currentBand; updateCurrentFilterUi(); updateResponsesSum(index); updateCurrentFilter(); // Toggle current responses to cyan, the other ones to "Mid". for (int i = 0; i < defaultFilterCount; ++i) { if (index == i) { ui->magnitudePlot->graph(i)->setPen(QPen(Qt::cyan, 1.5)); ui->phasePlot->graph(i)->setPen(QPen(Qt::cyan, 1.5)); } else { ui->magnitudePlot->graph(i)->setPen(QPen(palette().color(QPalette::Mid), 1.0)); ui->phasePlot->graph(i)->setPen(QPen(palette().color(QPalette::Mid), 1.0)); } } // Replot ui->magnitudePlot->replot(); ui->phasePlot->replot(); }
void MainWindow::on_bandwidthSpinBox_valueChanged(double value) { cr_filter_set_bandwidth(m_cornrow, value); updateCurrentFilter(); ui->magnitudePlot->replot(); ui->phasePlot->replot(); }
void MainWindow::on_typeComboBox_currentIndexChanged(int index) { cr_filter_set_type(m_cornrow, static_cast<FilterType>(index)); updateCurrentFilter(); ui->magnitudePlot->replot(); ui->phasePlot->replot(); }
void PreferencesWidget::on_bandwidthSpinBox_valueChanged(double value) { m_filterManager.setCurrentBandwidth(value); updateCurrentFilter(); ui->magnitudePlot->replot(); ui->phasePlot->replot(); m_audioGraph.setParameterForBand(kAUNBandEQParam_Bandwidth, m_currentBand, value); qDebug()<<Q_FUNC_INFO<<"bandwidth>"<<value; }
void PreferencesWidget::on_typeComboBox_currentIndexChanged(int index) { m_filterManager.setCurrentFilterType(static_cast<FilterType>(index)); updateCurrentFilter(); ui->magnitudePlot->replot(); ui->phasePlot->replot(); m_audioGraph.setParameterForBand(kAUNBandEQParam_FilterType, m_currentBand, convert(static_cast<FilterType>(index))); qDebug()<<Q_FUNC_INFO<<"type>"<<index; }
void MainWindow::on_frequencySpinBox_valueChanged(double value) { cr_filter_set_frequency(m_cornrow, value); if (value < 100.0) { ui->frequencySpinBox->setDecimals(1); } else { ui->frequencySpinBox->setDecimals(0); } updateCurrentFilter(); ui->magnitudePlot->replot(); ui->phasePlot->replot(); }
void PreferencesWidget::on_frequencySpinBox_valueChanged(double value) { m_filterManager.setCurrentFrequency(value); if (value < 100.0) { ui->frequencySpinBox->setDecimals(1); } else { ui->frequencySpinBox->setDecimals(0); } updateCurrentFilter(); ui->magnitudePlot->replot(); ui->phasePlot->replot(); m_audioGraph.setParameterForBand(kAUNBandEQParam_Frequency, m_currentBand, value); qDebug()<<Q_FUNC_INFO<<"frequency>"<<value; }
void MainWindow::on_filterComboBox_currentIndexChanged(int index) { cr_filter_set_current(m_cornrow, index); updateCurrentFilterUi(); updateSumResponses(index); updateCurrentFilter(); // Toggle current responses to cyan, the other ones to "Mid". for (int i = 0; i < defaultFilterCount; ++i) { if (index == i) { ui->magnitudePlot->graph(i)->setPen(QPen(Qt::cyan, 1.5)); ui->phasePlot->graph(i)->setPen(QPen(Qt::cyan, 1.5)); } else { ui->magnitudePlot->graph(i)->setPen(QPen(palette().color(QPalette::Mid), 1.0)); ui->phasePlot->graph(i)->setPen(QPen(palette().color(QPalette::Mid), 1.0)); } } // Replot ui->magnitudePlot->replot(); ui->phasePlot->replot(); }
//-------------------------------------------------------------------------- void BaseFileDialog::frameStarted(const FrameEvent& _evt) { if(!ResourceGroupManager::getSingleton().resourceGroupExists(mResourceGroup) || !getNumFilters() || !getMainWidget()) return; if(mNeedUpdateCaption) { if(updateCaption()) mNeedUpdateCaption = false; } if(mNeedUpdateOkText) { if(updateOkText()) mNeedUpdateOkText = false; } if(mNeedUpdateCancelText) { if(updateCancelText()) mNeedUpdateCancelText = false; } if(mNeedUpdateFilters) { if(updateFilters()) mNeedUpdateFilters = false; } if(mNeedUpdateCurrentFilter) { if(updateCurrentFilter()) mNeedUpdateCurrentFilter = false; } if(mNeedUpdateAlphabeticList) { if(updateAlphabeticList()) mNeedUpdateAlphabeticList = false; } if(mNeedUpdateFolders) { if(updateFolders()) mNeedUpdateFolders = false; } if(mNeedUpdateCurrentFolder) { if(updateCurrentFolder()) mNeedUpdateCurrentFolder = false; } if(mNeedUpdateCurrentPath) { if(updateCurrentPath()) mNeedUpdateCurrentPath = false; } if(mNeedUpdateFilesInFolder) { if(updateFilesInFolder()) mNeedUpdateFilesInFolder = false; } if(mNeedUpdateBasenameInAlphabeticList) { if(updateBasenameInAlphabeticList()) mNeedUpdateBasenameInAlphabeticList = false; } if(mNeedUpdateBasenameInFilesInFolder) { if(updateBasenameInFilesInFolder()) mNeedUpdateBasenameInFilesInFolder = false; } if(mNeedUpdateBasenameInEdit) { if(updateBasenameInEdit()) mNeedUpdateBasenameInEdit = false; } if(mNeedUpdateFoldersAndFilesCoord) { if(updateFoldersAndFilesCoord()) mNeedUpdateFoldersAndFilesCoord = false; } if(mNeedUpdateAlphabeticListCoord) { if(updateAlphabeticListCoord()) mNeedUpdateAlphabeticListCoord = false; } unregisterFrameListener(); }