1 /*****************************************************************************
2 * embeddedwindow.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2005-2007 the VideoLAN team
7 * Authors: Benjamin Pracht <bigben at videolan dot org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 /*****************************************************************************
25 * VLCEmbeddedWindow interface
26 *****************************************************************************/
30 @interface VLCEmbeddedWindow : NSWindow
32 IBOutlet id o_btn_backward;
33 IBOutlet id o_btn_forward;
34 IBOutlet id o_btn_fullscreen;
35 IBOutlet id o_btn_equalizer;
36 IBOutlet id o_btn_playlist;
37 IBOutlet id o_btn_play;
38 IBOutlet id o_btn_prev;
39 IBOutlet id o_btn_stop;
40 IBOutlet id o_btn_next;
41 IBOutlet id o_btn_volume_down;
42 IBOutlet id o_volumeslider;
43 IBOutlet id o_btn_volume_up;
44 IBOutlet id o_timeslider;
45 IBOutlet id o_main_pgbar;
47 IBOutlet id o_scrollfield;
48 IBOutlet id o_horizontal_split;
49 IBOutlet id o_vertical_split;
50 IBOutlet id o_videosubview;
51 IBOutlet id o_sidebar_list;
53 IBOutlet id o_background_view;
54 IBOutlet id o_searchfield;
56 IBOutlet id o_playlist;
57 IBOutlet id o_playlist_view;
58 IBOutlet id o_playlist_table;
59 IBOutlet id o_vlc_main;
62 NSImage * o_img_play_pressed;
63 NSImage * o_img_pause;
64 NSImage * o_img_pause_pressed;
66 VLCWindow * o_fullscreen_window;
67 NSViewAnimation * o_fullscreen_anim1;
68 NSViewAnimation * o_fullscreen_anim2;
70 /* set to yes if we are fullscreen and all animations are over */
72 NSRecursiveLock * o_animation_lock;
74 BOOL b_window_is_invisible;
77 NSInteger originalLevel;
80 - (void)controlTintChanged;
82 - (void)setTime: (NSString *)o_arg_ime position: (float)f_position;
84 - (void)playStatusUpdated: (int)i_status;
85 - (void)setSeekable: (BOOL)b_seekable;
86 - (void)setStop:(BOOL)b_input;
87 - (void)setPrev:(BOOL)b_input;
88 - (void)setNext:(BOOL)b_input;
89 - (void)setVolumeEnabled:(BOOL)b_input;
91 - (void)setScrollString:(NSString *)o_string;
93 - (void)setVolumeSlider:(float)f_level;
95 - (void)setVideoRatio:(NSSize)ratio;
99 - (IBAction)togglePlaylist:(id)sender;
101 - (BOOL)isFullscreen;
103 - (void)lockFullscreenAnimation;
104 - (void)unlockFullscreenAnimation;
106 - (void)enterFullscreen;
107 - (void)leaveFullscreen;
108 /* Allows to leave fullscreen by simply fading out the display */
109 - (void)leaveFullscreenAndFadeOut: (BOOL)fadeout;
112 - (void)hasEndedFullscreen;
113 - (void)hasBecomeFullscreen;
115 - (void)setFrameOnMainThread:(NSData*)packedargs;
118 /*****************************************************************************
120 *****************************************************************************/
123 @interface embeddedbackground : NSView
125 IBOutlet id o_window;
126 IBOutlet id o_timeslider;
127 IBOutlet id o_main_pgbar;
129 IBOutlet id o_scrollfield;
130 IBOutlet id o_searchfield;
131 IBOutlet id o_btn_backward;
132 IBOutlet id o_btn_forward;
133 IBOutlet id o_btn_fullscreen;
134 IBOutlet id o_btn_equalizer;
135 IBOutlet id o_btn_playlist;
136 IBOutlet id o_btn_play;
137 IBOutlet id o_btn_prev;
138 IBOutlet id o_btn_stop;
139 IBOutlet id o_btn_next;
140 IBOutlet id o_btn_volume_down;
141 IBOutlet id o_volumeslider;
142 IBOutlet id o_btn_volume_up;
149 /*****************************************************************************
151 *****************************************************************************/
154 @interface statusbar : NSView