qt/macos: add missing addons intf and meta categories
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 23 Jul 2014 02:34:30 +0000 (11:34 +0900)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 23 Jul 2014 02:34:30 +0000 (11:34 +0900)
modules/gui/macosx/AddonManager.m
modules/gui/qt4/dialogs/plugins.cpp
modules/gui/qt4/managers/addons_manager.cpp

index 9c1437f..e7a7998 100644 (file)
@@ -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 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];
 
     [_typeSwitcher addItemWithTitle:_NS("Extensions")];
     [[_typeSwitcher lastItem] setTag:ADDON_EXTENSION];
 
index 814eb33..ea26029 100644 (file)
@@ -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 );
                   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" ),
     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_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:
     case ADDON_PLUGIN:
     case ADDON_UNKNOWN:
     case ADDON_OTHER:
index 7449acc..6309ca3 100644 (file)
@@ -86,6 +86,10 @@ QString AddonsManager::getAddonType( int i_type )
         return qtr("Playlist parsers");
     case ADDON_SERVICE_DISCOVERY:
         return qtr("Service Discovery");
         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:
     case ADDON_EXTENSION:
         return qtr("Extensions");
     default: