Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

prefs.h

00001 /*****************************************************************************
00002  * prefs.h: MacOS X module for vlc
00003  *****************************************************************************
00004  * Copyright (C) 2002-2005 the VideoLAN team
00005  * $Id: prefs.h 12757 2005-10-02 19:49:05Z fkuehne $
00006  *
00007  * Authors: Jon Lech Johansen <[email protected]> 
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  * 
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00022  *****************************************************************************/
00023 
00024 @interface VLCTreeItem : NSObject
00025 {
00026     NSString *o_name;
00027     NSString *o_title;
00028     NSString *o_help;
00029     int i_object_id;
00030     VLCTreeItem *o_parent;
00031     NSMutableArray *o_children;
00032     int i_object_category;
00033     NSMutableArray *o_subviews;
00034 }
00035 
00036 + (VLCTreeItem *)rootItem;
00037 - (int)numberOfChildren;
00038 - (VLCTreeItem *)childAtIndex:(int)i_index;
00039 - (int)getObjectID;
00040 - (NSString *)getName;
00041 - (NSString *)getTitle;
00042 - (NSString *)getHelp;
00043 - (BOOL)hasPrefs:(NSString *)o_module_name;
00044 - (NSView *)showView:(NSScrollView *)o_prefs_view advancedView:(vlc_bool_t) b_advanced;
00045 - (void)applyChanges;
00046 - (void)resetView;
00047 
00048 @end
00049 
00050 /*****************************************************************************
00051  * VLCPrefs interface
00052  *****************************************************************************/
00053 @interface VLCPrefs : NSObject
00054 {
00055     intf_thread_t *p_intf;
00056     vlc_bool_t b_advanced;
00057     VLCTreeItem *o_config_tree;
00058     NSView *o_empty_view;
00059     NSMutableDictionary *o_save_prefs;
00060     
00061     IBOutlet id o_prefs_window;
00062     IBOutlet id o_title;
00063     IBOutlet id o_tree;
00064     IBOutlet id o_prefs_view;
00065     IBOutlet id o_save_btn;
00066     IBOutlet id o_cancel_btn;
00067     IBOutlet id o_reset_btn;
00068     IBOutlet id o_advanced_ckb;
00069 }
00070 
00071 + (VLCPrefs *)sharedInstance;
00072 
00073 - (void)initStrings;
00074 - (void)setTitle: (NSString *) o_title_name;
00075 - (void)showPrefs;
00076 - (IBAction)savePrefs: (id)sender;
00077 - (IBAction)closePrefs: (id)sender;
00078 - (IBAction)resetAll: (id)sender;
00079 - (IBAction)advancedToggle: (id)sender;
00080 
00081 @end
00082 
00083 @interface VLCFlippedView : NSView
00084 {
00085 
00086 }
00087 
00088 @end

Generated on Tue Dec 20 10:14:38 2005 for vlc-0.8.4a by  doxygen 1.4.2