coredialogs.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * coredialogs.h: Mac OS X Core Dialogs
00003  *****************************************************************************
00004  * Copyright (C) 2005-2009 the VideoLAN team
00005  * $Id: 66b2f8ba8404082c039d21c84b822657f6432a6f $
00006  *
00007  * Authors: Derk-Jan Hartman <hartman at videolan dot org>
00008  *          Felix Paul Kühne <fkuehne at videolan dot org>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00023  *****************************************************************************/
00024 #import <vlc_common.h>
00025 #import <vlc_dialog.h>
00026 #import <Cocoa/Cocoa.h>
00027 
00028 
00029 /*****************************************************************************
00030  * VLCErrorPanel interface
00031  *****************************************************************************/
00032 
00033 @interface VLCErrorPanel : NSObject
00034 {
00035     IBOutlet id o_window;
00036     IBOutlet id o_cleanup_button;
00037     IBOutlet id o_error_table;
00038     IBOutlet id o_messages_btn;
00039     
00040     NSMutableArray * o_errors;
00041     NSMutableArray * o_icons;
00042     
00043     BOOL b_nib_loaded;
00044 }
00045 - (IBAction)cleanupTable:(id)sender;
00046 - (IBAction)showMessages:(id)sender;
00047 
00048 -(void)showPanel;
00049 -(void)addError: (NSString *)o_error withMsg:(NSString *)o_msg;
00050 
00051 @end
00052 
00053 /*****************************************************************************
00054  * VLCCoreDialogProvider interface
00055  *****************************************************************************/
00056 @interface VLCCoreDialogProvider : NSObject
00057 {
00058     VLCErrorPanel *o_error_panel;
00059 
00060     /* authentication dialogue */
00061     IBOutlet id o_auth_cancel_btn;
00062     IBOutlet id o_auth_description_txt;
00063     IBOutlet id o_auth_login_fld;
00064     IBOutlet id o_auth_login_txt;
00065     IBOutlet id o_auth_ok_btn;
00066     IBOutlet id o_auth_pw_fld;
00067     IBOutlet id o_auth_pw_txt;
00068     IBOutlet id o_auth_title_txt;
00069     IBOutlet id o_auth_win;
00070 
00071     /* progress dialogue */
00072     IBOutlet NSProgressIndicator * o_prog_bar;
00073     IBOutlet id o_prog_cancel_btn;
00074     IBOutlet id o_prog_description_txt;
00075     IBOutlet id o_prog_title_txt;
00076     IBOutlet id o_prog_win;
00077     BOOL b_progress_cancelled;
00078 }
00079 + (VLCCoreDialogProvider *)sharedInstance;
00080 
00081 -(void)performDialogEvent: (NSNotification *)o_notification;
00082 
00083 -(void)showFatalDialog: (NSValue *)o_value;
00084 -(void)showFatalWaitDialog: (NSValue *)o_value;
00085 -(void)showQuestionDialog: (NSValue *)o_value;
00086 
00087 -(void)showLoginDialog: (NSValue *)o_value;
00088 -(IBAction)loginDialogAction:(id)sender;
00089 
00090 -(void)showProgressDialog: (NSValue *)o_value;
00091 -(IBAction)progDialogAction:(id)sender;
00092 -(BOOL)progressCancelled;
00093 -(void)updateProgressPanelWithText: (NSString *)string andNumber: (double)d_number;
00094 -(void)destroyProgressPanel;
00095 
00096 -(id)errorPanel;
00097 
00098 @end

Generated on Tue May 25 08:04:56 2010 for VLC by  doxygen 1.5.6