void Ripper::showEditMetadataDialog(MythUIButtonListItem *item) { if (!item || m_tracks->isEmpty()) return; RipTrack *track = item->GetData().value<RipTrack *>(); if (!track) return; MusicMetadata *editMeta = track->metadata; MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); EditMetadataDialog *editDialog = new EditMetadataDialog(mainStack, editMeta); editDialog->setSaveMetadataOnly(); if (!editDialog->Create()) { delete editDialog; return; } connect(editDialog, SIGNAL(metadataChanged()), this, SLOT(metadataChanged())); mainStack->AddScreen(editDialog); }
void EditAlbumartDialog::switchToMetadata(void) { MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); EditMetadataDialog *editDialog = new EditMetadataDialog(mainStack); if (!editDialog->Create()) { delete editDialog; return; } mainStack->AddScreen(editDialog); Close(); }
void MythBurn::editDetails() { MythUIButtonListItem *item = m_archiveButtonList->GetItemCurrent(); ArchiveItem *curItem = qVariantValue<ArchiveItem *>(item->GetData()); if (!curItem) return; MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); EditMetadataDialog *editor = new EditMetadataDialog(mainStack, curItem); connect(editor, SIGNAL(haveResult(bool, ArchiveItem *)), this, SLOT(editorClosed(bool, ArchiveItem *))); if (editor->Create()) mainStack->AddScreen(editor); }
void ImportMusicDialog::showEditMetadataDialog() { if (m_tracks->size() == 0) return; Metadata *editMeta = m_tracks->at(m_currentTrack)->metadata; MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); EditMetadataDialog *editDialog = new EditMetadataDialog(mainStack, editMeta); editDialog->setSaveMetadataOnly(); if (!editDialog->Create()) { delete editDialog; return; } connect(editDialog, SIGNAL(metadataChanged()), this, SLOT(metadataChanged())); mainStack->AddScreen(editDialog); }
void Ripper::showEditMetadataDialog(MythUIButtonListItem *item) { if (!item || m_tracks->size() == 0) return; Metadata *editMeta = qVariantValue<Metadata *>(item->GetData()); MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); EditMetadataDialog *editDialog = new EditMetadataDialog(mainStack, editMeta); editDialog->setSaveMetadataOnly(); if (!editDialog->Create()) { delete editDialog; return; } connect(editDialog, SIGNAL(metadataChanged()), this, SLOT(metadataChanged())); mainStack->AddScreen(editDialog); }