void AnalysisFeature::activate() { //qDebug() << "AnalysisFeature::activate()"; emit(switchToView(m_sAnalysisViewName)); if (m_pAnalysisView) { emit(restoreSearch(m_pAnalysisView->currentSearch())); } }
void Library::slotShowTrackModel(QAbstractItemModel* model) { //qDebug() << "Library::slotShowTrackModel" << model; TrackModel* trackModel = dynamic_cast<TrackModel*>(model); Q_ASSERT(trackModel); emit(showTrackModel(model)); emit(switchToView(m_sTrackViewName)); emit(restoreSearch(trackModel->currentSearch())); }
void RecordingFeature::bindWidget(WLibrary *libraryWidget, MixxxKeyboard *keyboard) { //The view will be deleted by LibraryWidget DlgRecording* pRecordingView = new DlgRecording(libraryWidget, m_pConfig, m_pTrackCollection, m_pRecordingManager, keyboard); pRecordingView->installEventFilter(keyboard); libraryWidget->registerView(m_sRecordingViewName, pRecordingView); connect(pRecordingView, SIGNAL(loadTrack(TrackPointer)), this, SIGNAL(loadTrack(TrackPointer))); connect(pRecordingView, SIGNAL(loadTrackToPlayer(TrackPointer, QString, bool)), this, SIGNAL(loadTrackToPlayer(TrackPointer, QString, bool))); connect(this, SIGNAL(refreshBrowseModel()), pRecordingView, SLOT(refreshBrowseModel())); connect(this, SIGNAL(requestRestoreSearch()), pRecordingView, SLOT(slotRestoreSearch())); connect(pRecordingView, SIGNAL(restoreSearch(QString)), this, SIGNAL(restoreSearch(QString))); }
void AutoDJFeature::activate() { //qDebug() << "AutoDJFeature::activate()"; emit(switchToView(m_sAutoDJViewName)); emit(restoreSearch(QString())); //Null String disables search box }
void CrateFeature::activate() { emit(switchToView("CRATEHOME")); emit(restoreSearch(QString())); //disable search on crate home emit(enableCoverArtDisplay(true)); }
void BasePlaylistFeature::activate() { emit(switchToView(m_rootViewName)); emit(restoreSearch(QString())); // Null String disables search box }
void Library::slotRestoreSearch(const QString& text) { emit(restoreSearch(text)); }