changed: Re-add the "Addon Settings" option to the context menu both on and within...
authorjmarshallnz <jmarshallnz@svn>
Sun, 29 Aug 2010 05:34:05 +0000 (05:34 +0000)
committerjmarshallnz <jmarshallnz@svn>
Sun, 29 Aug 2010 05:34:05 +0000 (05:34 +0000)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@33294 568bbfeb-2a22-0410-94d2-cc84cf5bfa90

language/English/strings.xml
xbmc/GUIWindowMusicNav.cpp
xbmc/GUIWindowMusicSongs.cpp
xbmc/GUIWindowPictures.cpp
xbmc/GUIWindowPrograms.cpp
xbmc/GUIWindowVideoFiles.cpp
xbmc/GUIWindowVideoNav.cpp

index 64eef59..02a52dc 100644 (file)
   <string id="1042">Retrieved %i of %i items</string>
   <string id="1043">Program Add-ons</string>
   <string id="1044">Set plugin thumb</string>
-  <string id="1045">Plugin settings</string>
+  <string id="1045">Addon settings</string>
   <string id="1046">Access points</string>
   <string id="1047">Other...</string>
   <string id="1048">- Username</string>
index c852e8d..4a0391a 100644 (file)
@@ -528,6 +528,9 @@ void CGUIWindowMusicNav::GetContextButtons(int itemNumber, CContextButtons &butt
     if (inPlaylists && !CUtil::GetFileName(item->m_strPath).Equals("PartyMode.xsp")
                     && (item->IsPlayList() || item->IsSmartPlayList()))
       buttons.Add(CONTEXT_BUTTON_DELETE, 117);
+
+    if (item->IsPlugin() || item->m_strPath.Left(9).Equals("script://") || m_vecItems->IsPlugin())
+      buttons.Add(CONTEXT_BUTTON_PLUGIN_SETTINGS, 1045);
   }
   // noncontextual buttons
 
index a9e7c77..2161eb4 100644 (file)
@@ -372,6 +372,8 @@ void CGUIWindowMusicSongs::GetContextButtons(int itemNumber, CContextButtons &bu
         buttons.Add(CONTEXT_BUTTON_SCAN, 13352);
       }
     }
+    if (item->IsPlugin() || item->m_strPath.Left(9).Equals("script://") || m_vecItems->IsPlugin())
+      buttons.Add(CONTEXT_BUTTON_PLUGIN_SETTINGS, 1045);
   }
   if (!m_vecItems->IsVirtualDirectoryRoot())
     buttons.Add(CONTEXT_BUTTON_SWITCH_MEDIA, 523);
index 5e84409..6598ff6 100644 (file)
@@ -405,6 +405,10 @@ void CGUIWindowPictures::GetContextButtons(int itemNumber, CContextButtons &butt
           buttons.Add(CONTEXT_BUTTON_RENAME, 118);
         }
       }
+
+      if (item->IsPlugin() || item->m_strPath.Left(9).Equals("script://") || m_vecItems->IsPlugin())
+        buttons.Add(CONTEXT_BUTTON_PLUGIN_SETTINGS, 1045);
+
       buttons.Add(CONTEXT_BUTTON_GOTO_ROOT, 20128);
       buttons.Add(CONTEXT_BUTTON_SWITCH_MEDIA, 523);
     }
index 1fe8dcc..e2bfdca 100644 (file)
@@ -150,6 +150,10 @@ void CGUIWindowPrograms::GetContextButtons(int itemNumber, CContextButtons &butt
             buttons.Add(CONTEXT_BUTTON_RENAME, 520); // edit xbe title
         }
       }
+
+      if (item->IsPlugin() || item->m_strPath.Left(9).Equals("script://") || m_vecItems->IsPlugin())
+        buttons.Add(CONTEXT_BUTTON_PLUGIN_SETTINGS, 1045);
+
       buttons.Add(CONTEXT_BUTTON_GOTO_ROOT, 20128); // Go to Root
     }
   }
index d8d5775..0931b3d 100644 (file)
@@ -489,6 +489,8 @@ void CGUIWindowVideoFiles::GetContextButtons(int itemNumber, CContextButtons &bu
         else
           buttons.Add(CONTEXT_BUTTON_MARK_WATCHED, 16103);   //Mark as Watched
       }
+      if (item->IsPlugin() || item->m_strPath.Left(9).Equals("script://") || m_vecItems->IsPlugin())
+        buttons.Add(CONTEXT_BUTTON_PLUGIN_SETTINGS, 1045);
     }
   }
   else
index f179021..32d6b30 100644 (file)
@@ -974,6 +974,8 @@ void CGUIWindowVideoNav::GetContextButtons(int itemNumber, CContextButtons &butt
           buttons.Add(CONTEXT_BUTTON_RENAME, 118);
         }
       }
+      if (item->IsPlugin() || item->m_strPath.Left(9).Equals("script://") || m_vecItems->IsPlugin())
+        buttons.Add(CONTEXT_BUTTON_PLUGIN_SETTINGS, 1045);
     }
   }
   CGUIWindowVideoBase::GetNonContextButtons(itemNumber, buttons);