]> git.sesse.net Git - vlc/blob - modules/gui/macosx/embeddedwindow.h
macosx: removed 'erase logo' from the video effects panel and moved 'add logo' to...
[vlc] / modules / gui / macosx / embeddedwindow.h
1 /*****************************************************************************
2  * embeddedwindow.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2005-2007 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Benjamin Pracht <bigben at videolan dot org>
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24 /*****************************************************************************
25  * VLCEmbeddedWindow interface
26  *****************************************************************************/
27
28 #import "CompatibilityFixes.h"
29 #import "misc.h"
30
31 @interface VLCEmbeddedWindow : NSWindow <NSWindowDelegate, NSAnimationDelegate>
32 {
33     IBOutlet id o_btn_backward;
34     IBOutlet id o_btn_forward;
35     IBOutlet id o_btn_fullscreen;
36     IBOutlet id o_btn_equalizer;
37     IBOutlet id o_btn_playlist;
38     IBOutlet id o_btn_play;
39     IBOutlet id o_btn_prev;
40     IBOutlet id o_btn_stop;
41     IBOutlet id o_btn_next;
42     IBOutlet id o_btn_volume_down;
43     IBOutlet id o_volumeslider;
44     IBOutlet id o_btn_volume_up;
45     IBOutlet id o_backgroundimg_right;
46     IBOutlet id o_backgroundimg_middle;
47     IBOutlet id o_timeslider;
48     IBOutlet id o_main_pgbar;
49     IBOutlet id o_time;
50     IBOutlet id o_scrollfield;
51     IBOutlet id o_horizontal_split;
52     IBOutlet id o_vertical_split;
53     IBOutlet id o_videosubview;
54     IBOutlet id o_view;
55     IBOutlet id o_background_view;
56         IBOutlet id o_searchfield;
57         IBOutlet id o_status;
58         IBOutlet id o_playlist;
59         IBOutlet id o_playlist_view;
60         IBOutlet id o_playlist_table;
61         IBOutlet id o_vlc_main;
62     IBOutlet id o_video_view;
63
64     NSImage * o_img_play;
65     NSImage * o_img_play_pressed;
66     NSImage * o_img_pause;
67     NSImage * o_img_pause_pressed;
68
69     VLCWindow       * o_fullscreen_window;
70     NSViewAnimation * o_fullscreen_anim1;
71     NSViewAnimation * o_fullscreen_anim2;
72     NSViewAnimation * o_makekey_anim;
73     NSView          * o_temp_view;
74     /* set to yes if we are fullscreen and all animations are over */
75     BOOL              b_fullscreen;
76     NSRecursiveLock * o_animation_lock;
77
78     BOOL              b_window_is_invisible;
79
80     NSSize videoRatio;
81     NSInteger originalLevel;
82 }
83
84 - (void)controlTintChanged;
85
86 - (id)videoView;
87
88 - (void)setTime: (NSString *)o_arg_ime position: (float)f_position;
89 - (id)getPgbar;
90 - (void)playStatusUpdated: (int)i_status;
91 - (void)setSeekable: (BOOL)b_seekable;
92 - (void)setStop:(BOOL)b_input;
93 - (void)setPrev:(BOOL)b_input;
94 - (void)setNext:(BOOL)b_input;
95 - (void)setVolumeEnabled:(BOOL)b_input;
96
97 - (void)setScrollString:(NSString *)o_string;
98
99 - (void)setVolumeSlider:(float)f_level;
100
101 - (void)setVideoRatio:(NSSize)ratio;
102
103 - (NSView *)mainView;
104
105 - (IBAction)togglePlaylist:(id)sender;
106
107 - (BOOL)isFullscreen;
108
109 - (void)lockFullscreenAnimation;
110 - (void)unlockFullscreenAnimation;
111
112 - (void)enterFullscreen;
113 - (void)leaveFullscreen;
114 /* Allows leaving fullscreen by simply fading out the display */
115 - (void)leaveFullscreenAndFadeOut: (BOOL)fadeout;
116
117 /* private */
118 - (void)hasEndedFullscreen;
119 - (void)hasBecomeFullscreen;
120
121 - (void)setFrameOnMainThread:(NSData*)packedargs;
122 @end
123
124 /*****************************************************************************
125  * embeddedbackground
126  *****************************************************************************/
127
128
129 @interface embeddedbackground : NSView
130 {
131     IBOutlet id o_window;
132     IBOutlet id o_timeslider;
133     IBOutlet id o_main_pgbar;
134     IBOutlet id o_time;
135     IBOutlet id o_scrollfield;
136     IBOutlet id o_searchfield;
137     IBOutlet id o_btn_backward;
138     IBOutlet id o_btn_forward;
139     IBOutlet id o_btn_fullscreen;
140     IBOutlet id o_btn_equalizer;
141     IBOutlet id o_btn_playlist;
142     IBOutlet id o_btn_play;
143     IBOutlet id o_btn_prev;
144     IBOutlet id o_btn_stop;
145     IBOutlet id o_btn_next;
146     IBOutlet id o_btn_volume_down;
147     IBOutlet id o_volumeslider;
148     IBOutlet id o_btn_volume_up;
149     
150     NSPoint dragStart;
151 }
152
153 @end
154
155 /*****************************************************************************
156  * statusbar
157  *****************************************************************************/
158
159
160 @interface statusbar : NSView
161 {
162     IBOutlet id o_text;
163         
164         BOOL mainwindow;
165 }
166
167 @end