]> git.sesse.net Git - vlc/blob - modules/gui/macosx/prefs.h
Work on MacOS preferences. Need to be completed, improved, and debugged...
[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     int i_object_category;
31 }
32
33 + (VLCTreeItem *)rootItem;
34 - (int)numberOfChildren;
35 - (VLCTreeItem *)childAtIndex:(int)i_index;
36 - (int)getObjectID;
37 - (NSString *)getName;
38 - (BOOL)hasPrefs:(NSString *)o_module_name;
39 - (NSView *)showView:(NSScrollView *)o_prefs_view;
40
41 @end
42
43 /*****************************************************************************
44  * VLCPrefs interface
45  *****************************************************************************/
46 @interface VLCPrefs : NSObject
47 {
48     intf_thread_t *p_intf;
49     vlc_bool_t b_advanced;
50     VLCTreeItem *o_config_tree;
51     NSView *o_empty_view;
52     NSMutableDictionary *o_save_prefs;
53     
54     IBOutlet id o_prefs_window;
55     IBOutlet id o_tree;
56     IBOutlet id o_prefs_view;
57     IBOutlet id o_save_btn;
58     IBOutlet id o_cancel_btn;
59     IBOutlet id o_reset_btn;
60     IBOutlet id o_advanced_ckb;
61 }
62
63 + (VLCPrefs *)sharedInstance;
64
65 - (void)initStrings;
66 - (void)showPrefs;
67 - (IBAction)savePrefs: (id)sender;
68 - (IBAction)closePrefs: (id)sender;
69 - (IBAction)resetAll: (id)sender;
70 - (IBAction)advancedToggle: (id)sender;
71
72 @end
73
74 @interface VLCFlippedView : NSView
75 {
76
77 }
78
79 @end