1 /*****************************************************************************
2 * prefs.h: MacOS X module for vlc
3 *****************************************************************************
4 * Copyright (C) 2002-2004 VideoLAN
5 * $Id: prefs.h,v 1.14 2004/01/30 12:44:21 hartman Exp $
7 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8 * Derk-Jan Hartman <hartman at videolan dot org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
23 *****************************************************************************/
25 @interface VLCTreeItem : NSObject
32 NSMutableArray *o_config_controls;
34 VLCTreeItem *o_parent;
35 NSMutableArray *o_children;
38 + (VLCTreeItem *)rootItem;
39 - (id)initWithID: (int)i_id parent: (VLCTreeItem *)o_parent_item;
40 - (int)numberOfChildren;
41 - (VLCTreeItem *)childAtIndex:(int)i_index;
44 - (void)setName:(NSString *)a_name;
48 /*****************************************************************************
50 *****************************************************************************/
51 @interface VLCPrefs : NSObject
53 intf_thread_t *p_intf;
54 vlc_bool_t b_advanced;
57 IBOutlet id o_prefs_window;
59 IBOutlet id o_prefs_view;
60 IBOutlet id o_save_btn;
61 IBOutlet id o_cancel_btn;
62 IBOutlet id o_reset_btn;
63 IBOutlet id o_advanced_ckb;
68 - (IBAction)savePrefs: (id)sender;
69 - (IBAction)closePrefs: (id)sender;
70 - (IBAction)resetAll: (id)sender;
71 - (void)sheetDidEnd:(NSWindow *)o_sheet returnCode:(int)i_return contextInfo:(void *)o_context;
72 - (IBAction)advancedToggle: (id)sender;
73 - (void)showViewForID: (int)i_id;