macosx: fixed playlist/video toggling and some memory leaks
[vlc.git] / modules / gui / macosx / MainWindow.h
index 90f30d3..4831aa2 100644 (file)
@@ -43,6 +43,7 @@
     IBOutlet id o_volume_down_btn;
     IBOutlet id o_volume_up_btn;
     IBOutlet id o_time_sld;
+    IBOutlet id o_time_sld_fancygradient_view;
     IBOutlet id o_time_fld;
     IBOutlet id o_progress_bar;
     IBOutlet id o_bottombar_view;
     // TODO Playlist table, additional ui stuff at the top of the window
     IBOutlet id o_playlist_table;
     IBOutlet id o_video_view;
+    IBOutlet id o_split_view;
+    IBOutlet id o_sidebar_view;
+    IBOutlet id o_chosen_category_lbl;
 
     BOOL b_dark_interface;
     BOOL b_video_playback_enabled;
-    BOOL b_time_remaining;
     int i_lastShownVolume;
     BOOL b_mute;
     input_state_e cachedInputState;
     NSImage * o_shuffle_pressed_img;
     NSImage * o_shuffle_on_img;
     NSImage * o_shuffle_on_pressed_img;
+
+    NSTimeInterval last_fwd_event;
+    NSTimeInterval last_bwd_event;
+    BOOL just_triggered_next;
+    BOOL just_triggered_previous;
 }
 + (VLCMainWindow *)sharedInstance;
 
 - (IBAction)repeat:(id)sender;
 - (IBAction)shuffle:(id)sender;
 - (IBAction)timeSliderAction:(id)sender;
-- (IBAction)timeFieldWasClicked:(id)sender;
 - (IBAction)volumeAction:(id)sender;
 - (IBAction)effects:(id)sender;
 - (IBAction)fullscreen:(id)sender;
 
 - (id)videoView;
-- (void)setVideoplayEnabled:(BOOL)b_value;
+- (void)setVideoplayEnabled;
 - (void)updateTimeSlider;
 - (void)updateVolumeSlider;
 - (void)updateWindow;
-- (void)updateTitle;
+- (void)updateName;
 - (void)setPause;
 - (void)setPlay;
 - (void)setRepeatOne;
 - (void)setRepeatOff;
 - (void)setShuffle;
 
+- (void)drawFancyGradientEffectForTimeSlider;
+
+@end
+
+@interface VLCProgressBarGradientEffect : NSView {
+    NSImage * o_time_sld_gradient_left_img;
+    NSImage * o_time_sld_gradient_middle_img;
+    NSImage * o_time_sld_gradient_right_img;
+}
+- (void)loadImagesInDarkStyle:(BOOL)b_value;
 @end
\ No newline at end of file