1 /*****************************************************************************
2 * prefs.h: MacOS X module for vlc
3 *****************************************************************************
4 * Copyright (C) 2002-2007 the VideoLAN team
7 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 @interface VLCTreeItem : NSObject
30 VLCTreeItem *o_parent;
31 NSMutableArray *o_children;
32 int i_object_category;
33 NSMutableArray *o_subviews;
36 + (VLCTreeItem *)rootItem;
37 - (int)numberOfChildren;
38 - (VLCTreeItem *)childAtIndex:(int)i_index;
40 - (NSString *)getName;
41 - (NSString *)getTitle;
42 - (NSString *)getHelp;
43 - (BOOL)hasPrefs:(NSString *)o_module_name;
44 - (NSView *)showView:(NSScrollView *)o_prefs_view;
50 /*****************************************************************************
52 *****************************************************************************/
53 @interface VLCPrefs : NSObject
55 intf_thread_t *p_intf;
56 VLCTreeItem *o_config_tree;
58 NSMutableDictionary *o_save_prefs;
60 IBOutlet id o_prefs_window;
63 IBOutlet id o_prefs_view;
64 IBOutlet id o_save_btn;
65 IBOutlet id o_cancel_btn;
66 IBOutlet id o_reset_btn;
67 IBOutlet id o_basicFull_matrix;
70 + (VLCPrefs *)sharedInstance;
73 - (void)setTitle: (NSString *) o_title_name;
75 - (IBAction)savePrefs: (id)sender;
76 - (IBAction)closePrefs: (id)sender;
77 - (IBAction)resetAll: (id)sender;
78 - (IBAction)buttonAction: (id)sender;
82 @interface VLCFlippedView : NSView