X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fgui%2Fmacosx%2Fintf.h;h=9e4e060dae3cfe6de957d716855d38b6e9543633;hb=aa2280f6500682c68c28196acb31aefce7f633c8;hp=328f81053710931c2728ca9f78d4d82ecd09a718;hpb=21575d49b6ccd57e9997c3fddfda0e633052f780;p=vlc diff --git a/modules/gui/macosx/intf.h b/modules/gui/macosx/intf.h index 328f810537..9e4e060dae 100644 --- a/modules/gui/macosx/intf.h +++ b/modules/gui/macosx/intf.h @@ -2,7 +2,7 @@ * intf.h: MacOS X interface plugin ***************************************************************************** * Copyright (C) 2002 VideoLAN - * $Id: intf.h,v 1.16 2003/01/23 22:25:32 hartman Exp $ + * $Id: intf.h,v 1.21 2003/02/05 01:36:00 hartman Exp $ * * Authors: Jon Lech Johansen * Christophe Massiot @@ -26,6 +26,7 @@ #include #include #include +#include #include @@ -48,6 +49,8 @@ #define _NS(s) [NSApp localizedString: _(s)] +int ExecuteOnMainThread( id target, SEL sel, void * p_arg ); + /***************************************************************************** * intf_sys_t: description and status of the interface *****************************************************************************/ @@ -57,11 +60,13 @@ struct intf_sys_t NSPort * o_sendport; /* special actions */ - vlc_bool_t b_loop; vlc_bool_t b_playing; - vlc_bool_t b_stopping; vlc_bool_t b_mute; + /* interface update */ + vlc_bool_t b_intf_update; + vlc_bool_t b_play_status; + /* menus handlers */ vlc_bool_t b_chapter_update; vlc_bool_t b_program_update; @@ -71,9 +76,6 @@ struct intf_sys_t vlc_bool_t b_aout_update; vlc_bool_t b_vout_update; - /* The input thread */ - input_thread_t * p_input; - /* The messages window */ msg_subscription_t * p_sub; @@ -97,19 +99,24 @@ struct intf_sys_t IBOutlet id o_btn_playlist; /* btn playlist */ IBOutlet id o_btn_prev; /* btn previous */ - IBOutlet id o_btn_slowmotion; /* btn slowmotion */ + IBOutlet id o_btn_slower; /* btn slower */ IBOutlet id o_btn_play; /* btn play */ IBOutlet id o_btn_stop; /* btn stop */ - IBOutlet id o_btn_fastforward; /* btn fastforward */ + IBOutlet id o_btn_faster; /* btn faster */ IBOutlet id o_btn_next; /* btn next */ IBOutlet id o_btn_prefs; /* btn prefs */ + NSImage * o_img_play; /* btn play img */ + NSImage * o_img_pause; /* btn pause img */ + IBOutlet id o_controls; /* VLCControls */ IBOutlet id o_playlist; /* VLCPlaylist */ IBOutlet id o_messages; /* messages tv */ IBOutlet id o_msgs_panel; /* messages panel */ IBOutlet id o_msgs_btn_ok; /* messages btn */ + NSMutableArray * o_msg_arr; /* messages array */ + NSLock * o_msg_lock; /* messages lock */ IBOutlet id o_error; /* error panel */ IBOutlet id o_err_msg; /* NSTextView */ @@ -175,20 +182,35 @@ struct intf_sys_t IBOutlet id o_mi_playlist; IBOutlet id o_mi_messages; IBOutlet id o_mi_bring_atf; + + IBOutlet id o_mu_help; + IBOutlet id o_mi_readme; + IBOutlet id o_mi_reportabug; + IBOutlet id o_mi_website; + IBOutlet id o_mi_license; /* dock menu */ IBOutlet id o_dmi_play; IBOutlet id o_dmi_stop; + IBOutlet id o_dmi_next; + IBOutlet id o_dmi_previous; } - (void)terminate; - (void)manage; -- (void)manageMode; -- (void)setControlItems; - -- (void)setupMenus; -- (void)setupLangMenu:(NSMenuItem *)o_mi +- (void)manage:(playlist_t *)p_playlist; +- (void)manageMode:(playlist_t *)p_playlist; +- (void)manageIntf:(NSTimer *)o_timer; + +- (void)updateMessageArray; +- (void)playStatusUpdated:(BOOL)b_pause; +- (void)setSubmenusEnabled:(BOOL)b_enabled; +- (void)manageVolumeSlider; + +- (void)setupMenus:(input_thread_t *)p_input; +- (void)setupLangMenu:(input_thread_t *)p_input + mi:(NSMenuItem *)o_mi es:(es_descriptor_t *)p_es category:(int)i_cat selector:(SEL)pf_callback; @@ -203,10 +225,16 @@ struct intf_sys_t - (IBAction)viewPreferences:(id)sender; - (IBAction)timesliderUpdate:(id)sender; -- (void)displayTime; - (IBAction)closeError:(id)sender; +- (IBAction)openReadMe:(id)sender; +- (IBAction)reportABug:(id)sender; +- (IBAction)openWebsite:(id)sender; +- (IBAction)openLicense:(id)sender; + +- (void)windowDidBecomeKey:(NSNotification *)o_notification; + @end @interface VLCMain (Internal)