prefs.h 2.59 KB
Newer Older
1
/*****************************************************************************
2
 * prefs.h: MacOS X module for vlc
3
 *****************************************************************************
4
 * Copyright (C) 2002-2005 the VideoLAN team
5
 * $Id$
6
 *
hartman's avatar
hartman committed
7
 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 *****************************************************************************/

hartman's avatar
hartman committed
24 25
@interface VLCTreeItem : NSObject
{
hartman's avatar
hartman committed
26
    NSString *o_name;
27 28
    NSString *o_title;
    NSString *o_help;
hartman's avatar
hartman committed
29
    int i_object_id;
hartman's avatar
hartman committed
30 31
    VLCTreeItem *o_parent;
    NSMutableArray *o_children;
32
    int i_object_category;
33
    NSMutableArray *o_subviews;
hartman's avatar
hartman committed
34 35 36 37 38
}

+ (VLCTreeItem *)rootItem;
- (int)numberOfChildren;
- (VLCTreeItem *)childAtIndex:(int)i_index;
hartman's avatar
hartman committed
39 40
- (int)getObjectID;
- (NSString *)getName;
41 42
- (NSString *)getTitle;
- (NSString *)getHelp;
hartman's avatar
hartman committed
43
- (BOOL)hasPrefs:(NSString *)o_module_name;
Jérome Decoodt's avatar
Jérome Decoodt committed
44 45
- (NSView *)showView:(NSScrollView *)o_prefs_view advancedView:(vlc_bool_t) b_advanced;
- (void)applyChanges;
46
- (void)resetView;
hartman's avatar
hartman committed
47 48 49

@end

50 51 52 53 54 55
/*****************************************************************************
 * VLCPrefs interface
 *****************************************************************************/
@interface VLCPrefs : NSObject
{
    intf_thread_t *p_intf;
hartman's avatar
hartman committed
56
    vlc_bool_t b_advanced;
hartman's avatar
hartman committed
57
    VLCTreeItem *o_config_tree;
hartman's avatar
hartman committed
58
    NSView *o_empty_view;
hartman's avatar
hartman committed
59
    NSMutableDictionary *o_save_prefs;
hartman's avatar
hartman committed
60
    
hartman's avatar
hartman committed
61
    IBOutlet id o_prefs_window;
62
    IBOutlet id o_title;
63
    IBOutlet id o_help;
hartman's avatar
hartman committed
64 65 66 67 68 69
    IBOutlet id o_tree;
    IBOutlet id o_prefs_view;
    IBOutlet id o_save_btn;
    IBOutlet id o_cancel_btn;
    IBOutlet id o_reset_btn;
    IBOutlet id o_advanced_ckb;
70 71
}

72 73
+ (VLCPrefs *)sharedInstance;

hartman's avatar
hartman committed
74
- (void)initStrings;
75
- (void)setTitle: (NSString *) o_title_name;
hartman's avatar
hartman committed
76 77 78 79 80
- (void)showPrefs;
- (IBAction)savePrefs: (id)sender;
- (IBAction)closePrefs: (id)sender;
- (IBAction)resetAll: (id)sender;
- (IBAction)advancedToggle: (id)sender;
hartman's avatar
hartman committed
81 82 83 84 85 86 87 88 89

@end

@interface VLCFlippedView : NSView
{

}

@end