controls.h
上传用户:riyaled888
上传日期:2009-03-27
资源大小:7338k
文件大小:3k
- /*****************************************************************************
- * controls.h: MacOS X interface module
- *****************************************************************************
- * Copyright (C) 2002-2003 VideoLAN
- * $Id: controls.h 7178 2004-03-28 12:29:42Z bigben $
- *
- * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
- * Christophe Massiot <massiot@via.ecp.fr>
- * Derk-Jan Hartman <thedj@users.sourceforge.net>
- *
- * 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
- * GNU General Public License for more details.
- *
- * 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.
- *****************************************************************************/
- /*****************************************************************************
- * VLCControls interface
- *****************************************************************************/
- @interface VLCControls : NSObject
- {
- IBOutlet id o_open;
- IBOutlet id o_main;
- IBOutlet id o_btn_fullscreen;
- IBOutlet id o_volumeslider;
- }
- - (IBAction)play:(id)sender;
- - (IBAction)stop:(id)sender;
- - (IBAction)faster:(id)sender;
- - (IBAction)slower:(id)sender;
- - (IBAction)prev:(id)sender;
- - (IBAction)next:(id)sender;
- - (IBAction)random:(id)sender;
- - (IBAction)repeat:(id)sender;
- - (IBAction)loop:(id)sender;
- - (IBAction)forward:(id)sender;
- - (IBAction)backward:(id)sender;
- - (IBAction)volumeUp:(id)sender;
- - (IBAction)volumeDown:(id)sender;
- - (IBAction)mute:(id)sender;
- - (IBAction)volumeSliderUpdated:(id)sender;
- - (void)updateVolumeSlider;
- - (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;
- @end
- /*****************************************************************************
- * VLCMenuExt interface
- *****************************************************************************
- * This holds our data for autogenerated menus
- *****************************************************************************/
- @interface VLCMenuExt : NSObject
- {
- 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