embeddedwindow.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * embeddedwindow.h: MacOS X interface module
00003  *****************************************************************************
00004  * Copyright (C) 2005-2007 the VideoLAN team
00005  * $Id: 695ce6014283611c5480b0676ea20e63c864eeba $
00006  *
00007  * Authors: Benjamin Pracht <bigben at videolan dot org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 /*****************************************************************************
00025  * VLCEmbeddedWindow interface
00026  *****************************************************************************/
00027 
00028 #import "misc.h"
00029 
00030 @interface VLCEmbeddedWindow : NSWindow
00031 {
00032     IBOutlet id o_btn_backward;
00033     IBOutlet id o_btn_forward;
00034     IBOutlet id o_btn_fullscreen;
00035     IBOutlet id o_btn_equalizer;
00036     IBOutlet id o_btn_playlist;
00037     IBOutlet id o_btn_play;
00038     IBOutlet id o_btn_prev;
00039     IBOutlet id o_btn_stop;
00040     IBOutlet id o_btn_next;
00041     IBOutlet id o_btn_volume_down;
00042     IBOutlet id o_volumeslider;
00043     IBOutlet id o_btn_volume_up;
00044     IBOutlet id o_timeslider;
00045     IBOutlet id o_main_pgbar;
00046     IBOutlet id o_time;
00047     IBOutlet id o_scrollfield;
00048     IBOutlet id o_horizontal_split;
00049     IBOutlet id o_vertical_split;
00050     IBOutlet id o_videosubview;
00051     IBOutlet id o_sidebar_list;
00052     IBOutlet id o_view;
00053     IBOutlet id o_background_view;
00054     IBOutlet id o_searchfield;
00055     IBOutlet id o_status;
00056     IBOutlet id o_playlist;
00057     IBOutlet id o_playlist_view;
00058     IBOutlet id o_playlist_table;
00059     IBOutlet id o_vlc_main;
00060 
00061     NSImage * o_img_play;
00062     NSImage * o_img_play_pressed;
00063     NSImage * o_img_pause;
00064     NSImage * o_img_pause_pressed;
00065 
00066     VLCWindow       * o_fullscreen_window;
00067     NSViewAnimation * o_fullscreen_anim1;
00068     NSViewAnimation * o_fullscreen_anim2;
00069     NSViewAnimation * o_makekey_anim;
00070     NSView          * o_temp_view;
00071     /* set to yes if we are fullscreen and all animations are over */
00072     BOOL              b_fullscreen;
00073     NSRecursiveLock * o_animation_lock;
00074 
00075     BOOL              b_window_is_invisible;
00076 
00077     NSSize videoRatio;
00078     NSInteger originalLevel;
00079 }
00080 
00081 - (void)controlTintChanged;
00082 
00083 - (void)setTime: (NSString *)o_arg_ime position: (float)f_position;
00084 - (id)getPgbar;
00085 - (void)playStatusUpdated: (int)i_status;
00086 - (void)setSeekable: (BOOL)b_seekable;
00087 - (void)setStop:(BOOL)b_input;
00088 - (void)setPrev:(BOOL)b_input;
00089 - (void)setNext:(BOOL)b_input;
00090 - (void)setVolumeEnabled:(BOOL)b_input;
00091 
00092 - (void)setScrollString:(NSString *)o_string;
00093 
00094 - (void)setVolumeSlider:(float)f_level;
00095 
00096 - (void)setVideoRatio:(NSSize)ratio;
00097 
00098 - (NSView *)mainView;
00099 
00100 - (IBAction)togglePlaylist:(id)sender;
00101 
00102 - (BOOL)isFullscreen;
00103 
00104 - (void)lockFullscreenAnimation;
00105 - (void)unlockFullscreenAnimation;
00106 
00107 - (void)enterFullscreen;
00108 - (void)leaveFullscreen;
00109 /* Allows to leave fullscreen by simply fading out the display */
00110 - (void)leaveFullscreenAndFadeOut: (BOOL)fadeout;
00111 
00112 /* private */
00113 - (void)hasEndedFullscreen;
00114 - (void)hasBecomeFullscreen;
00115 
00116 - (void)setFrameOnMainThread:(NSData*)packedargs;
00117 @end
00118 
00119 /*****************************************************************************
00120  * embeddedbackground
00121  *****************************************************************************/
00122 
00123 
00124 @interface embeddedbackground : NSView
00125 {
00126     IBOutlet id o_window;
00127     IBOutlet id o_timeslider;
00128     IBOutlet id o_main_pgbar;
00129     IBOutlet id o_time;
00130     IBOutlet id o_scrollfield;
00131     IBOutlet id o_searchfield;
00132     IBOutlet id o_btn_backward;
00133     IBOutlet id o_btn_forward;
00134     IBOutlet id o_btn_fullscreen;
00135     IBOutlet id o_btn_equalizer;
00136     IBOutlet id o_btn_playlist;
00137     IBOutlet id o_btn_play;
00138     IBOutlet id o_btn_prev;
00139     IBOutlet id o_btn_stop;
00140     IBOutlet id o_btn_next;
00141     IBOutlet id o_btn_volume_down;
00142     IBOutlet id o_volumeslider;
00143     IBOutlet id o_btn_volume_up;
00144     
00145     NSPoint dragStart;
00146 }
00147 
00148 @end
00149 
00150 /*****************************************************************************
00151  * statusbar
00152  *****************************************************************************/
00153 
00154 
00155 @interface statusbar : NSView
00156 {
00157     IBOutlet id o_text;
00158     
00159     BOOL mainwindow;
00160 }
00161 
00162 @end

Generated on Tue May 25 08:04:56 2010 for VLC by  doxygen 1.5.6