[vlc-commits] qt/macos: add missing addons intf and meta categories

Francois Cartegnie git at videolan.org
Wed Jul 23 04:36:58 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 23 11:34:30 2014 +0900| [f10d3f0435df67b62ebdd318179949429cf77e2b] | committer: Francois Cartegnie

qt/macos: add missing addons intf and meta categories

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f10d3f0435df67b62ebdd318179949429cf77e2b
---

 modules/gui/macosx/AddonManager.m           |    4 ++++
 modules/gui/qt4/dialogs/plugins.cpp         |   12 ++++++++++++
 modules/gui/qt4/managers/addons_manager.cpp |    4 ++++
 3 files changed, 20 insertions(+)

diff --git a/modules/gui/macosx/AddonManager.m b/modules/gui/macosx/AddonManager.m
index 9c1437f..e7a7998 100644
--- a/modules/gui/macosx/AddonManager.m
+++ b/modules/gui/macosx/AddonManager.m
@@ -99,6 +99,10 @@ static VLCAddonManager *_o_sharedInstance = nil;
     [[_typeSwitcher lastItem] setTag:ADDON_PLAYLIST_PARSER];
     [_typeSwitcher addItemWithTitle:_NS("Service Discovery")];
     [[_typeSwitcher lastItem] setTag:ADDON_SERVICE_DISCOVERY];
+    [_typeSwitcher addItemWithTitle:_NS("Interfaces")];
+    [[_typeSwitcher lastItem] setTag:ADDON_INTERFACE];
+    [_typeSwitcher addItemWithTitle:_NS("Art and meta fetchers")];
+    [[_typeSwitcher lastItem] setTag:ADDON_META];
     [_typeSwitcher addItemWithTitle:_NS("Extensions")];
     [[_typeSwitcher lastItem] setTag:ADDON_EXTENSION];
 
diff --git a/modules/gui/qt4/dialogs/plugins.cpp b/modules/gui/qt4/dialogs/plugins.cpp
index 814eb33..ea26029 100644
--- a/modules/gui/qt4/dialogs/plugins.cpp
+++ b/modules/gui/qt4/dialogs/plugins.cpp
@@ -383,6 +383,12 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
                   qtr( "Service discoveries adds new sources to your playlist"
                        " such as web radios, video websites, ..." ),
                   ADDON_SERVICE_DISCOVERY );
+    ADD_CATEGORY( qtr("Interfaces"),
+                  "",
+                  ADDON_INTERFACE );
+    ADD_CATEGORY( qtr("Art and meta fetchers"),
+                  qtr( "Retrieves extra info and art for playlist items" ),
+                  ADDON_META );
     ADD_CATEGORY( qtr("Extensions"),
                   qtr( "Extensions brings various enhancements."
                        " Check descriptions for more details" ),
@@ -931,6 +937,12 @@ QColor AddonsListModel::getColorByAddonType( int i_type )
     case ADDON_SKIN2:
         color = QColor(0x8B, 0xD6, 0xFC);
         break;
+    case ADDON_INTERFACE:
+        color = QColor(0x00, 0x13, 0x85);
+        break;
+    case ADDON_META:
+        color = QColor(0xCD, 0x23, 0xBF);
+        break;
     case ADDON_PLUGIN:
     case ADDON_UNKNOWN:
     case ADDON_OTHER:
diff --git a/modules/gui/qt4/managers/addons_manager.cpp b/modules/gui/qt4/managers/addons_manager.cpp
index 7449acc..6309ca3 100644
--- a/modules/gui/qt4/managers/addons_manager.cpp
+++ b/modules/gui/qt4/managers/addons_manager.cpp
@@ -86,6 +86,10 @@ QString AddonsManager::getAddonType( int i_type )
         return qtr("Playlist parsers");
     case ADDON_SERVICE_DISCOVERY:
         return qtr("Service Discovery");
+    case ADDON_INTERFACE:
+        return qtr("Interfaces");
+    case ADDON_META:
+        return qtr("Art and meta fetchers");
     case ADDON_EXTENSION:
         return qtr("Extensions");
     default:



More information about the vlc-commits mailing list