]> git.sesse.net Git - vlc/blob - modules/gui/macosx/prefs.h
28ef646023fa4cfca61d0025bec55feaf604b7e8
[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     NSMutableArray *o_subviews;
32 }
33
34 + (VLCTreeItem *)rootItem;
35 - (int)numberOfChildren;
36 - (VLCTreeItem *)childAtIndex:(int)i_index;
37 - (int)getObjectID;
38 - (NSString *)getName;
39 - (BOOL)hasPrefs:(NSString *)o_module_name;
40 - (NSView *)showView:(NSScrollView *)o_prefs_view advancedView:(vlc_bool_t) b_advanced;
41 - (void)applyChanges;
42 - (void)resetView;
43
44 @end
45
46 /*****************************************************************************
47  * VLCPrefs interface
48  *****************************************************************************/
49 @interface VLCPrefs : NSObject
50 {
51     intf_thread_t *p_intf;
52     vlc_bool_t b_advanced;
53     VLCTreeItem *o_config_tree;
54     NSView *o_empty_view;
55     NSMutableDictionary *o_save_prefs;
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 + (VLCPrefs *)sharedInstance;
67
68 - (void)initStrings;
69 - (void)showPrefs;
70 - (IBAction)savePrefs: (id)sender;
71 - (IBAction)closePrefs: (id)sender;
72 - (IBAction)resetAll: (id)sender;
73 - (IBAction)advancedToggle: (id)sender;
74
75 @end
76
77 @interface VLCFlippedView : NSView
78 {
79
80 }
81
82 @end