X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fcontrols.h;h=65f883e7d4b49fa58fd59885a7da516cf42b1a54;hb=c9a6d88b07d93367da73fce73be0e0fc34f434a3;hp=aea4624d7c9e0aa69c520bd88d8d846f05b29e0b;hpb=136957ea779cccb6afe1debadb6985b3080c07e8;p=vlc diff --git a/modules/gui/macosx/controls.h b/modules/gui/macosx/controls.h index aea4624d7c..65f883e7d4 100644 --- a/modules/gui/macosx/controls.h +++ b/modules/gui/macosx/controls.h @@ -1,18 +1,19 @@ /***************************************************************************** * controls.h: MacOS X interface module ***************************************************************************** - * Copyright (C) 2002-2003 VideoLAN + * Copyright (C) 2002-2011 the VideoLAN team * $Id$ * * Authors: Jon Lech Johansen * Christophe Massiot * Derk-Jan Hartman + * Felix Paul Kühne * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -20,31 +21,57 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ +#import "fspanel.h" + /***************************************************************************** - * VLCControls interface + * VLCControls interface *****************************************************************************/ @interface VLCControls : NSObject { - IBOutlet id o_open; IBOutlet id o_main; - IBOutlet id o_btn_fullscreen; IBOutlet id o_volumeslider; + + IBOutlet id o_btn_repeat; + IBOutlet id o_btn_shuffle; + + IBOutlet id o_specificTime_cancel_btn; + IBOutlet id o_specificTime_enter_fld; + IBOutlet id o_specificTime_goTo_lbl; + IBOutlet id o_specificTime_ok_btn; + IBOutlet id o_specificTime_win; + IBOutlet id o_specificTime_sec_lbl; + IBOutlet id o_specificTime_stepper; + IBOutlet id o_specificTime_mi; + + VLCFSPanel *o_fs_panel; + BOOL b_lockAspectRatio; } +- (id)voutView; +- (BOOL)aspectRatioIsLocked; - (IBAction)play:(id)sender; - (IBAction)stop:(id)sender; - (IBAction)faster:(id)sender; - (IBAction)slower:(id)sender; +- (IBAction)normalSpeed:(id)sender; - (IBAction)prev:(id)sender; - (IBAction)next:(id)sender; - (IBAction)random:(id)sender; - (IBAction)repeat:(id)sender; - (IBAction)loop:(id)sender; +- (IBAction)repeatButtonAction:(id)sender; +- (IBAction)quitAfterPlayback:(id)sender; + +/* the three ugly helpers again */ +- (void)repeatOne; +- (void)repeatAll; +- (void)repeatOff; +- (void)shuffle; - (IBAction)forward:(id)sender; - (IBAction)backward:(id)sender; @@ -53,42 +80,34 @@ - (IBAction)volumeDown:(id)sender; - (IBAction)mute:(id)sender; - (IBAction)volumeSliderUpdated:(id)sender; -- (void)updateVolumeSlider; +- (IBAction)showPosition: (id)sender; +- (IBAction)toogleFullscreen:(id)sender; +- (BOOL)isFullscreen; - (IBAction)windowAction:(id)sender; -- (void)setupVarMenuItem:(NSMenuItem *)o_mi - target:(vlc_object_t *)p_object - var:(const char *)psz_variable - selector:(SEL)pf_callback; -- (void)setupVarMenu:(NSMenu *)o_menu - forMenuItem: (NSMenuItem *)o_parent - target:(vlc_object_t *)p_object - var:(const char *)psz_variable - selector:(SEL)pf_callback; -- (IBAction)toggleVar:(id)sender; -- (int)toggleVarThread:(id)_o_data; +- (IBAction)telxTransparent:(id)sender; +- (IBAction)telxNavLink:(id)sender; +- (IBAction)lockVideosAspectRatio:(id)sender; +- (IBAction)addSubtitleFile:(id)sender; + +- (BOOL)keyEvent:(NSEvent *)o_event; +- (void)scrollWheel: (NSEvent *)theEvent; + +- (IBAction)goToSpecificTime:(id)sender; + +- (id)fspanel; @end /***************************************************************************** - * VLCMenuExt interface + * VLCTimeField interface ***************************************************************************** - * This holds our data for autogenerated menus + * we need the implementation to catch our click-event in the controller window *****************************************************************************/ -@interface VLCMenuExt : NSObject + +@interface VLCTimeField : NSTextField { - char *psz_name; - int i_object_id; - vlc_value_t value; - int i_type; } - -- (id)initWithVar: (const char *)_psz_name Object: (int)i_id - Value: (vlc_value_t)val ofType: (int)_i_type; -- (char *)name; -- (int)objectID; -- (vlc_value_t)value; -- (int)type; - @end +