X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fprefs.h;h=3927d9c508ce1d184bdec7b442516a055c25818f;hb=a9b12caead48117116f3a55afcff670c05337778;hp=756dfeae7a02e4948c590662735d30559cb52e41;hpb=2617285f8aa783b8f41a4c3be25f5dac4fd15880;p=vlc diff --git a/modules/gui/macosx/prefs.h b/modules/gui/macosx/prefs.h index 756dfeae7a..3927d9c508 100644 --- a/modules/gui/macosx/prefs.h +++ b/modules/gui/macosx/prefs.h @@ -1,11 +1,10 @@ /***************************************************************************** * prefs.h: MacOS X module for vlc ***************************************************************************** - * Copyright (C) 2002-2004 VideoLAN - * $Id: prefs.h,v 1.14 2004/01/30 12:44:21 hartman Exp $ + * Copyright (C) 2002-2005 the VideoLAN team + * $Id$ * - * Authors: Jon Lech Johansen - * Derk-Jan Hartman + * Authors: Jon Lech Johansen * * 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 @@ -19,29 +18,32 @@ * * 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. *****************************************************************************/ @interface VLCTreeItem : NSObject { - int i_object_id; - char *psz_help; - char *psz_section; NSString *o_name; - - NSMutableArray *o_config_controls; - + NSString *o_title; + NSString *o_help; + int i_object_id; VLCTreeItem *o_parent; NSMutableArray *o_children; + int i_object_category; + NSMutableArray *o_subviews; } + (VLCTreeItem *)rootItem; -- (id)initWithID: (int)i_id parent: (VLCTreeItem *)o_parent_item; - (int)numberOfChildren; - (VLCTreeItem *)childAtIndex:(int)i_index; -- (int)objectID; -- (NSString *)name; -- (void)setName:(NSString *)a_name; +- (int)getObjectID; +- (NSString *)getName; +- (NSString *)getTitle; +- (NSString *)getHelp; +- (BOOL)hasPrefs:(NSString *)o_module_name; +- (NSView *)showView:(NSScrollView *)o_prefs_view advancedView:(vlc_bool_t) b_advanced; +- (void)applyChanges; +- (void)resetView; @end @@ -52,9 +54,12 @@ { intf_thread_t *p_intf; vlc_bool_t b_advanced; + VLCTreeItem *o_config_tree; NSView *o_empty_view; + NSMutableDictionary *o_save_prefs; IBOutlet id o_prefs_window; + IBOutlet id o_title; IBOutlet id o_tree; IBOutlet id o_prefs_view; IBOutlet id o_save_btn; @@ -63,13 +68,21 @@ IBOutlet id o_advanced_ckb; } ++ (VLCPrefs *)sharedInstance; + - (void)initStrings; +- (void)setTitle: (NSString *) o_title_name; - (void)showPrefs; - (IBAction)savePrefs: (id)sender; - (IBAction)closePrefs: (id)sender; - (IBAction)resetAll: (id)sender; -- (void)sheetDidEnd:(NSWindow *)o_sheet returnCode:(int)i_return contextInfo:(void *)o_context; - (IBAction)advancedToggle: (id)sender; -- (void)showViewForID: (int)i_id; -@end \ No newline at end of file +@end + +@interface VLCFlippedView : NSView +{ + +} + +@end