]> git.sesse.net Git - vlc/blob - modules/gui/macosx/prefs.h
* Let's break the prefs again for OSX
[vlc] / modules / gui / macosx / prefs.h
1 /*****************************************************************************
2  * prefs.h: MacOS X module for vlc
3  *****************************************************************************
4  * Copyright (C) 2002-2005 VideoLAN
5  * $Id$
6  *
7  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
8  *
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.
13  * 
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.
18  *
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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 @interface VLCTreeItem : NSObject
25 {
26     NSString *o_name;
27     int i_object_id;
28     VLCTreeItem *o_parent;
29     NSMutableArray *o_children;
30 }
31
32 + (VLCTreeItem *)rootItem;
33 - (int)numberOfChildren;
34 - (VLCTreeItem *)childAtIndex:(int)i_index;
35 - (int)getObjectID;
36 - (NSString *)getName;
37 - (BOOL)hasPrefs:(NSString *)o_module_name;
38
39 @end
40
41 /*****************************************************************************
42  * VLCPrefs interface
43  *****************************************************************************/
44 @interface VLCPrefs : NSObject
45 {
46     intf_thread_t *p_intf;
47     vlc_bool_t b_advanced;
48     VLCTreeItem *o_config_tree;
49     NSView *o_empty_view;
50     NSMutableDictionary *o_save_prefs;
51     
52     IBOutlet id o_prefs_window;
53     IBOutlet id o_tree;
54     IBOutlet id o_prefs_view;
55     IBOutlet id o_save_btn;
56     IBOutlet id o_cancel_btn;
57     IBOutlet id o_reset_btn;
58     IBOutlet id o_advanced_ckb;
59 }
60
61 + (VLCPrefs *)sharedInstance;
62
63 - (void)initStrings;
64 - (void)showPrefs;
65 - (IBAction)savePrefs: (id)sender;
66 - (IBAction)closePrefs: (id)sender;
67 - (IBAction)resetAll: (id)sender;
68 - (IBAction)advancedToggle: (id)sender;
69
70 @end
71
72 @interface VLCFlippedView : NSView
73 {
74
75 }
76
77 @end