diff options
author | Sascha Montellese <sascha.montellese@gmail.com> | 2013-02-06 12:25:06 -0800 |
---|---|---|
committer | Sascha Montellese <sascha.montellese@gmail.com> | 2013-02-06 12:25:06 -0800 |
commit | e008bada2d11eec8631e08dd9a623f69bb4dc1e3 (patch) | |
tree | 5a18dd226804e910e5f3a974914a69ec5fc09619 | |
parent | 07361ee5fe1a9e4edd4832f3b9f795460c654b12 (diff) | |
parent | 2726cb1284320d2b008046622f9aa52ddda296c9 (diff) |
Merge pull request #2163 from Montellese/artwork_add
add "Add art" button to video artwork selection dialog
-rw-r--r-- | language/English/strings.po | 7 | ||||
-rw-r--r-- | xbmc/video/dialogs/GUIDialogVideoInfo.cpp | 12 |
2 files changed, 18 insertions, 1 deletions
diff --git a/language/English/strings.po b/language/English/strings.po index 68c26a54d6..c145250ea9 100644 --- a/language/English/strings.po +++ b/language/English/strings.po @@ -5383,7 +5383,12 @@ msgctxt "#13515" msgid "No art" msgstr "" -#empty strings from id 13516 to 13549 +#: xbmc/video/dialogs/GUIDialogVideoInfo.cpp +msgctxt "#13516" +msgid "Add art" +msgstr "" + +#empty strings from id 13517 to 13549 #: xbmc/settings/GUISettings.cpp msgctxt "#13550" diff --git a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp index 35d2923786..aa829a767f 100644 --- a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp +++ b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp @@ -29,6 +29,7 @@ #include "video/VideoInfoScanner.h" #include "ApplicationMessenger.h" #include "video/VideoInfoTag.h" +#include "guilib/GUIKeyboardFactory.h" #include "guilib/GUIWindowManager.h" #include "dialogs/GUIDialogOK.h" #include "dialogs/GUIDialogYesNo.h" @@ -604,6 +605,7 @@ string CGUIDialogVideoInfo::ChooseArtType(const CFileItem &videoItem, map<string dialog->SetHeading(13511); dialog->Reset(); dialog->SetUseDetails(true); + dialog->EnableButton(true, 13516); CVideoDatabase db; db.Open(); @@ -631,6 +633,16 @@ string CGUIDialogVideoInfo::ChooseArtType(const CFileItem &videoItem, map<string dialog->SetItems(&items); dialog->DoModal(); + if (dialog->IsButtonPressed()) + { + // Get the new artwork name + CStdString strArtworkName; + if (!CGUIKeyboardFactory::ShowAndGetInput(strArtworkName, g_localizeStrings.Get(13516), false)) + return ""; + + return strArtworkName; + } + return dialog->GetSelectedItem()->GetLabel(); } |