diff --git a/src/musikbox/app/overlay/PlayQueueOverlays.cpp b/src/musikbox/app/overlay/PlayQueueOverlays.cpp index 6789897ba..d52fb66fb 100644 --- a/src/musikbox/app/overlay/PlayQueueOverlays.cpp +++ b/src/musikbox/app/overlay/PlayQueueOverlays.cpp @@ -315,7 +315,7 @@ static void handleJumpTo( static void showAddCategorySelectionToPlaylistOverlay( IMessageQueue& queue, ILibraryPtr library, - const std::string& categoryType, + const std::string& categoryType, int64_t categoryId) { std::shared_ptr query = queryPlaylists(library); @@ -445,19 +445,20 @@ void PlayQueueOverlays::ShowAddCategoryOverlay( PlaybackService& playback, ILibraryPtr library, const std::string& fieldColumn, + const std::string& fieldValue, int64_t fieldId) { std::shared_ptr adapter(new Adapter()); adapter->AddEntry(_TSTR("playqueue_overlay_add_to_playlist")); - adapter->AddEntry(_TSTR("playqueue_overlay_add_to_start")); - adapter->AddEntry(_TSTR("playqueue_overlay_add_to_end")); - adapter->AddEntry(_TSTR("playqueue_overlay_add_as_next")); + adapter->AddEntry(_TSTR("playqueue_overlay_add_to_start_of_queue")); + adapter->AddEntry(_TSTR("playqueue_overlay_add_to_end_in_queue")); + adapter->AddEntry(_TSTR("playqueue_overlay_add_as_next_in_queue")); adapter->SetSelectable(true); std::shared_ptr dialog(new ListOverlay()); dialog->SetAdapter(adapter) - .SetTitle(_TSTR("playqueue_overlay_add_to_queue_title")) + .SetTitle(_TSTR("playqueue_overlay_add_category_title")) .SetWidth(_DIMEN("playqueue_playlist_add_to_queue_overlay", DEFAULT_OVERLAY_WIDTH)) .SetSelectedIndex(0) .SetItemSelectedCallback( @@ -567,8 +568,8 @@ void PlayQueueOverlays::ShowLoadPlaylistOverlay( void PlayQueueOverlays::ShowSavePlaylistOverlay( IMessageQueue& queue, - PlaybackService& playback, - ILibraryPtr library, + PlaybackService& playback, + ILibraryPtr library, int64_t selectedPlaylistId) { std::shared_ptr query = queryPlaylists(library); diff --git a/src/musikbox/app/overlay/PlayQueueOverlays.h b/src/musikbox/app/overlay/PlayQueueOverlays.h index 5b487f6dc..bf89806aa 100644 --- a/src/musikbox/app/overlay/PlayQueueOverlays.h +++ b/src/musikbox/app/overlay/PlayQueueOverlays.h @@ -57,6 +57,7 @@ namespace musik { musik::core::audio::PlaybackService& playback, musik::core::ILibraryPtr library, const std::string& fieldColumn, + const std::string& fieldValue, int64_t fieldId); static void ShowAlbumDividerOverlay( diff --git a/src/musikbox/app/window/CategoryListView.cpp b/src/musikbox/app/window/CategoryListView.cpp index ff7944288..791a6b39d 100755 --- a/src/musikbox/app/window/CategoryListView.cpp +++ b/src/musikbox/app/window/CategoryListView.cpp @@ -204,6 +204,7 @@ bool CategoryListView::KeyPress(const std::string& key) { this->playback, this->library, this->fieldName, + this->GetSelectedValue(), id); return true; } diff --git a/src/musikbox/data/locales/en_US.json b/src/musikbox/data/locales/en_US.json index 924e08e1c..b3b72acf0 100644 --- a/src/musikbox/data/locales/en_US.json +++ b/src/musikbox/data/locales/en_US.json @@ -73,12 +73,9 @@ "playqueue_title": "play queue", - "playqueue_overlay_add_to_start": "add to beginning", - "playqueue_overlay_add_to_end": "add to end", - "playqueue_overlay_add_as_next": "add as next", "playqueue_overlay_new": "new...", "playqueue_overlay_confirm_overwrite_message": "are you sure you want to overwrite the playlist '%s'?", - "playqueue_overlay_add_to_queue_title": "add to play queue", + "playqueue_overlay_add_category_title": "category actions", "playqueue_overlay_load_playlist_title": "load playlist", "playqueue_overlay_save_playlist_title": "save playlist", "playqueue_overlay_rename_playlist_title": "rename playlist", diff --git a/src/musikbox/musikbox.vcxproj.filters b/src/musikbox/musikbox.vcxproj.filters index 23b144ea2..1e5297f6a 100755 --- a/src/musikbox/musikbox.vcxproj.filters +++ b/src/musikbox/musikbox.vcxproj.filters @@ -82,7 +82,7 @@ app\util - cursespp\widget + cursespp\window cursespp\overlay @@ -97,10 +97,10 @@ cursespp\overlay - cursespp\widget + cursespp\window - cursespp\widget + cursespp\window cursespp\layout @@ -112,16 +112,16 @@ cursespp\adapter - cursespp\widget + cursespp\window - cursespp\widget + cursespp\window - cursespp\widget + cursespp\window - cursespp\widget + cursespp\window cursespp\adapter @@ -272,7 +272,7 @@ app\util - cursespp\widget + cursespp\window cursespp\overlay @@ -287,10 +287,10 @@ cursespp\overlay - cursespp\widget + cursespp\window - cursespp\widget + cursespp\window cursespp\layout @@ -305,16 +305,16 @@ cursespp\adapter - cursespp\widget + cursespp\window - cursespp\widget + cursespp\window - cursespp\widget + cursespp\window - cursespp\widget + cursespp\window cursespp\adapter @@ -360,9 +360,6 @@ {a84f242d-d70b-49e9-975e-63fc73954a2b} - - {adfba99d-6228-438a-9e4b-d3c4daf6202b} - {3e0fdd20-9aa9-430c-b675-43a7906ee79e} @@ -375,6 +372,9 @@ {4a6b94ec-80fd-476a-b924-d7bc0495744a} + + {adfba99d-6228-438a-9e4b-d3c4daf6202b} +