]> git.sesse.net Git - vlc/commitdiff
Also update the wizard playlist on item addition and deletion. This prevent VLC to...
authorBenjamin Pracht <bigben@videolan.org>
Sun, 24 Jul 2005 12:54:08 +0000 (12:54 +0000)
committerBenjamin Pracht <bigben@videolan.org>
Sun, 24 Jul 2005 12:54:08 +0000 (12:54 +0000)
modules/gui/macosx/intf.h
modules/gui/macosx/intf.m
modules/gui/macosx/playlist.h
modules/gui/macosx/playlist.m
modules/gui/macosx/wizard.h
modules/gui/macosx/wizard.m

index 3ef39f1faf9ce0e3a31fe0d04485ef2d63a09c8d..a0dcff6d887daf5eff37db3518b35047c2be248c 100644 (file)
@@ -261,6 +261,7 @@ struct intf_sys_t
 - (id)getControls;
 - (id)getPlaylist;
 - (id)getInfo;
+- (id)getWizard;
 - (void)terminate;
 - (NSString *)localizedString:(char *)psz;
 - (char *)delocalizeString:(NSString *)psz;
index fa33b2283dda1f656cb87b94fce32d79dbc769e6..7257f74c9676e1567d86d197a381f5f3a4d1a718 100644 (file)
@@ -764,7 +764,16 @@ static VLCMain *_o_sharedMainInstance = nil;
     {
         return o_info;
     }
-    return  nil;
+    return nil;
+}
+
+- (id)getWizard
+{
+    if ( o_wizard )
+    {
+        return o_wizard;
+    }
+    return nil;
 }
 
 - (void)manage
index 33896febfa98d06debcbd572ac95a833d225d7cc..768c22a92fc7363d1e8f0ac7a522ae081ae4ed2d 100644 (file)
@@ -67,6 +67,7 @@
 @interface VLCPlaylist : VLCPlaylistCommon
 {
     IBOutlet id o_controller;
+    IBOutlet id o_playlist_wizard;
 
     IBOutlet id o_btn_playlist;
     IBOutlet id o_playlist_view;
index d0629203bb1176a1b086a7ea2fde2c2e52156db6..2711930d0d2fb3d96c9fdb9994a24eeaf104985f 100644 (file)
 
 - (IBAction)reloadOutlineView
 {
-    [o_outline_view reloadData];
+    /* Only reload the outlineview if the wizard window is open since this can
+       be quite long on big playlists */
+    if( [[o_outline_view window] isVisible] )
+    {
+        [o_outline_view reloadData];
+    }
 }
 
 @end
@@ -512,6 +517,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
     // TODO Find a way to keep the dict size to a minimum
     //[o_outline_dict removeAllObjects];
     [o_outline_view reloadData];
+    [[[[VLCMain sharedInstance] getWizard] getPlaylistWizard] reloadOutlineView];
 }
 
 - (void)playModeUpdated
index 0f5db0ced7ed4baf6bd6ee7e4bcec0d1e22627af..c2e794956d8e377c1bd5e0e4c7c373a23cbd07fa 100644 (file)
 - (void)showSummary;
 - (void)resetWizard;
 - (void)createOpts;
+- (id)getPlaylistWizard;
+
 @end
index 745853457d3eec05d1e9fa21625dee4ef7e9130b..6e4ed9e4f7acdd9fbe1e64d602e07f34f4df47b6 100644 (file)
@@ -470,6 +470,11 @@ static VLCWizard *_o_sharedInstance = nil;
     [o_wizard_window close];
 }
 
+- (id)getPlaylistWizard
+{
+    return o_playlist_wizard;
+}
+
 - (IBAction)nextTab:(id)sender
 {
     if ([[[o_tab_pageHolder selectedTabViewItem] label] isEqualToString: @"Hello"])