mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
* modules/gui/macosx/prefs.?:
- Changed modules list to use Default instead of None. probably clearer to users. - Have a warning before resetting the prefs.
This commit is contained in:
parent
d6246ea263
commit
2c5fba48b4
@ -2,7 +2,7 @@
|
||||
* prefs.h: MacOS X plugin for vlc
|
||||
*****************************************************************************
|
||||
* Copyright (C) 2002-2003 VideoLAN
|
||||
* $Id: prefs.h,v 1.9 2003/05/26 14:59:37 hartman Exp $
|
||||
* $Id: prefs.h,v 1.10 2003/06/06 00:38:41 hartman Exp $
|
||||
*
|
||||
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
|
||||
*
|
||||
@ -64,6 +64,7 @@
|
||||
- (IBAction)savePrefs: (id)sender;
|
||||
- (IBAction)closePrefs: (id)sender;
|
||||
- (IBAction)resetAll: (id)sender;
|
||||
- (void)sheetDidEnd:(NSWindow *)o_sheet returnCode:(int)i_return contextInfo:(void *)o_context;
|
||||
- (IBAction)advancedToggle: (id)sender;
|
||||
- (void)showViewForID: (int) i_id andName:(NSString *)o_item_name;
|
||||
- (void)configChanged:(id)o_unknown;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* prefs.m: MacOS X plugin for vlc
|
||||
*****************************************************************************
|
||||
* Copyright (C) 2002-2003 VideoLAN
|
||||
* $Id: prefs.m,v 1.30 2003/05/26 14:59:37 hartman Exp $
|
||||
* $Id: prefs.m,v 1.31 2003/06/06 00:38:41 hartman Exp $
|
||||
*
|
||||
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
|
||||
* Derk-Jan Hartman <thedj at users.sf.net>
|
||||
@ -98,7 +98,20 @@
|
||||
|
||||
- (IBAction)resetAll: (id)sender
|
||||
{
|
||||
config_ResetAll( p_intf );
|
||||
NSBeginInformationalAlertSheet(_NS("Reset Preferences"), @"Cancel", @"Continue",
|
||||
nil, o_prefs_window, self, @selector(sheetDidEnd: returnCode: contextInfo:), NULL, nil,
|
||||
_NS("Beware this will reset your VLC Media Player config file.\n"
|
||||
"Are you sure you want to continue?") );
|
||||
}
|
||||
|
||||
- (void)sheetDidEnd:(NSWindow *)o_sheet returnCode:(int)i_return contextInfo:(void *)o_context
|
||||
{
|
||||
if( i_return == NSAlertAlternateReturn )
|
||||
{
|
||||
config_ResetAll( p_intf );
|
||||
[self showViewForID: [[o_tree itemAtRow:[o_tree selectedRow]] getObjectID]
|
||||
andName: [[o_tree itemAtRow:[o_tree selectedRow]] getName]];
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)advancedToggle: (id)sender
|
||||
@ -345,7 +358,7 @@
|
||||
}
|
||||
[o_view addSubview: [o_modules autorelease]];
|
||||
|
||||
[o_modules addItemWithTitle: _NS("None")];
|
||||
[o_modules addItemWithTitle: _NS("Default")];
|
||||
[[o_modules lastItem] setTag: -1];
|
||||
[o_modules selectItem: [o_modules lastItem]];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user