Commit a85ddccd authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* ALL:

  - Changed the autogenerated menu's in a system working similar to wxWindows.
  - The deinterlace menu is autogenerated now. However it seems the problem
    with on the fly filter changes still exists.
parent 4c0e43c1
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
{ {
ACTIONS = { ACTIONS = {
backward = id; backward = id;
deinterlace = id;
faster = id; faster = id;
forward = id; forward = id;
loop = id; loop = id;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* controls.h: MacOS X interface plugin * controls.h: MacOS X interface plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: controls.h,v 1.4 2003/05/08 01:16:57 hartman Exp $ * $Id: controls.h,v 1.5 2003/06/01 23:48:17 hartman Exp $
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr> * Christophe Massiot <massiot@via.ecp.fr>
...@@ -53,8 +53,38 @@ ...@@ -53,8 +53,38 @@
- (void)updateVolumeSlider; - (void)updateVolumeSlider;
- (IBAction)windowAction:(id)sender; - (IBAction)windowAction:(id)sender;
- (IBAction)deinterlace:(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; - (IBAction)toggleVar:(id)sender;
@end @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
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* intf.h: MacOS X interface plugin * intf.h: MacOS X interface plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: intf.h,v 1.41 2003/05/26 14:59:37 hartman Exp $ * $Id: intf.h,v 1.42 2003/06/01 23:48:17 hartman Exp $
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr> * Christophe Massiot <massiot@via.ecp.fr>
...@@ -231,27 +231,19 @@ struct intf_sys_t ...@@ -231,27 +231,19 @@ struct intf_sys_t
- (void)manage:(playlist_t *)p_playlist; - (void)manage:(playlist_t *)p_playlist;
- (void)manageMode:(playlist_t *)p_playlist; - (void)manageMode:(playlist_t *)p_playlist;
- (void)manageIntf:(NSTimer *)o_timer; - (void)manageIntf:(NSTimer *)o_timer;
- (void)setupMenus;
- (void)updateMessageArray; - (void)updateMessageArray;
- (void)playStatusUpdated:(BOOL)b_pause; - (void)playStatusUpdated:(BOOL)b_pause;
- (void)setSubmenusEnabled:(BOOL)b_enabled; - (void)setSubmenusEnabled:(BOOL)b_enabled;
- (void)manageVolumeSlider; - (void)manageVolumeSlider;
- (IBAction)timesliderUpdate:(id)sender;
- (void)setupMenus:(input_thread_t *)p_input;
- (void)setupVarMenu:(NSMenuItem *)o_mi
target:(vlc_object_t *)p_object
var:(const char *)psz_var
selector:(SEL)pf_callback;
- (IBAction)clearRecentItems:(id)sender; - (IBAction)clearRecentItems:(id)sender;
- (void)openRecentItem:(id)sender; - (void)openRecentItem:(id)sender;
- (IBAction)viewPreferences:(id)sender; - (IBAction)viewPreferences:(id)sender;
- (IBAction)timesliderUpdate:(id)sender;
- (IBAction)closeError:(id)sender; - (IBAction)closeError:(id)sender;
- (IBAction)openReadMe:(id)sender; - (IBAction)openReadMe:(id)sender;
- (IBAction)openDocumentation:(id)sender; - (IBAction)openDocumentation:(id)sender;
- (IBAction)reportABug:(id)sender; - (IBAction)reportABug:(id)sender;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment