]> git.sesse.net Git - vlc/blob - modules/gui/macosx/prefs.h
* modules/gui/macosx/intf.m: fix
[vlc] / modules / gui / macosx / prefs.h
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 $
6  *
7  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8  *          Derk-Jan Hartman <hartman at videolan dot org>
9  *
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.
14  * 
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.
19  *
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  *****************************************************************************/
24
25 @interface VLCTreeItem : NSObject
26 {
27     int i_object_id;
28     char *psz_help;
29     char *psz_section;
30     NSString *o_name;
31     
32     NSMutableArray *o_config_controls;
33
34     VLCTreeItem *o_parent;
35     NSMutableArray *o_children;
36 }
37
38 + (VLCTreeItem *)rootItem;
39 - (id)initWithID: (int)i_id parent: (VLCTreeItem *)o_parent_item;
40 - (int)numberOfChildren;
41 - (VLCTreeItem *)childAtIndex:(int)i_index;
42 - (int)objectID;
43 - (NSString *)name;
44 - (void)setName:(NSString *)a_name;
45
46 @end
47
48 /*****************************************************************************
49  * VLCPrefs interface
50  *****************************************************************************/
51 @interface VLCPrefs : NSObject
52 {
53     intf_thread_t *p_intf;
54     vlc_bool_t b_advanced;
55     NSView *o_empty_view;
56     
57     IBOutlet id o_prefs_window;
58     IBOutlet id o_tree;
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;
64 }
65
66 - (void)initStrings;
67 - (void)showPrefs;
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;
74
75 @end