Commit 6cb3690f authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* modules/gui/macosx/playlist.m: fixed my fix

* modules/gui/macosx/output.m: removed a debug statement
* modules/gui/macosx/prefs.m: fixed localizations of the prefs panel.
parent 5a4c870b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* output.m: MacOS X Output Dialog * output.m: MacOS X Output Dialog
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: output.m,v 1.3 2003/05/21 21:30:30 hartman Exp $ * $Id: output.m,v 1.4 2003/05/22 14:25:33 hartman Exp $
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr> * Christophe Massiot <massiot@via.ecp.fr>
...@@ -302,7 +302,6 @@ ...@@ -302,7 +302,6 @@
[o_mrl_string appendString: @"}"]; [o_mrl_string appendString: @"}"];
} }
[self setMRL:o_mrl_string]; [self setMRL:o_mrl_string];
NSLog( o_mrl_string );
} }
- (void)TTLChanged:(NSNotification *)o_notification - (void)TTLChanged:(NSNotification *)o_notification
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* playlist.m: MacOS X interface plugin * playlist.m: MacOS X interface plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: playlist.m,v 1.23 2003/05/22 13:40:13 hartman Exp $ * $Id: playlist.m,v 1.24 2003/05/22 14:25:34 hartman Exp $
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net> * Derk-Jan Hartman <thedj@users.sourceforge.net>
...@@ -117,10 +117,10 @@ ...@@ -117,10 +117,10 @@
float f_origin_y = NSMaxY( o_rect ); float f_origin_y = NSMaxY( o_rect );
int i_row = o_rect.origin.y / f_height; int i_row = o_rect.origin.y / f_height;
if( [NSColor respondsTo:alternateSelectedControlColor] ) if( [o_striped_row_color respondsTo:@selector( alternateSelectedControlColor ) ] )
{ {
[super highlightSelectionInClipRect:o_rect]; [super highlightSelectionInClipRect:o_rect];
break; return;
} }
if ( i_row % 2 == 0 ) if ( i_row % 2 == 0 )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* prefs.m: MacOS X plugin for vlc * prefs.m: MacOS X plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: prefs.m,v 1.23 2003/05/20 18:53:03 hartman Exp $ * $Id: prefs.m,v 1.24 2003/05/22 14:25:34 hartman Exp $
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <thedj at users.sf.net> * Derk-Jan Hartman <thedj at users.sf.net>
...@@ -68,7 +68,6 @@ ...@@ -68,7 +68,6 @@
[o_prefs_view setRulersVisible: YES]; [o_prefs_view setRulersVisible: YES];
[o_prefs_view setDocumentView: o_empty_view]; [o_prefs_view setDocumentView: o_empty_view];
[o_tree selectRow:0 byExtendingSelection:NO]; [o_tree selectRow:0 byExtendingSelection:NO];
//[self loadConfigTree];
} }
- (void)initStrings - (void)initStrings
...@@ -130,7 +129,7 @@ ...@@ -130,7 +129,7 @@
int i_type = [o_vlc_config configType]; int i_type = [o_vlc_config configType];
NSString *o_name = [o_vlc_config configName]; NSString *o_name = [o_vlc_config configName];
char *psz_name = (char *)[o_name UTF8String]; char *psz_name = (char *)[o_name lossyCString];
switch( i_type ) switch( i_type )
{ {
...@@ -141,7 +140,7 @@ ...@@ -141,7 +140,7 @@
NSString *o_value; NSString *o_value;
o_value = [o_vlc_config titleOfSelectedItem]; o_value = [o_vlc_config titleOfSelectedItem];
psz_value = (char *)[o_value UTF8String]; psz_value = (char *)[o_value lossyCString];
config_PutPsz( p_intf, psz_name, psz_value ); config_PutPsz( p_intf, psz_name, psz_value );
} }
...@@ -155,7 +154,7 @@ ...@@ -155,7 +154,7 @@
NSString *o_value; NSString *o_value;
o_value = [o_vlc_config stringValue]; o_value = [o_vlc_config stringValue];
psz_value = (char *)[o_value UTF8String]; psz_value = (char *)[o_value lossyCString];
config_PutPsz( p_intf, psz_name, psz_value ); config_PutPsz( p_intf, psz_name, psz_value );
} }
...@@ -206,7 +205,7 @@ ...@@ -206,7 +205,7 @@
} }
/* Enumerate config options and add corresponding config boxes */ /* Enumerate config options and add corresponding config boxes */
o_module_name = [NSString stringWithUTF8String: p_parser->psz_object_name]; o_module_name = [NSString stringWithCString: p_parser->psz_object_name];
p_item = p_parser->p_config; p_item = p_parser->p_config;
i_pos = 0; i_pos = 0;
...@@ -330,6 +329,7 @@ ...@@ -330,6 +329,7 @@
[o_modules setTarget: self]; [o_modules setTarget: self];
[o_modules setAction: @selector(configChanged:)]; [o_modules setAction: @selector(configChanged:)];
[o_modules sendActionOn:NSLeftMouseUpMask]; [o_modules sendActionOn:NSLeftMouseUpMask];
if ( psz_duptip != NULL ) if ( psz_duptip != NULL )
{ {
[o_modules setToolTip: [NSApp localizedString: [o_modules setToolTip: [NSApp localizedString:
...@@ -349,8 +349,8 @@ ...@@ -349,8 +349,8 @@
if( !strcmp( p_a_module->psz_capability, if( !strcmp( p_a_module->psz_capability,
p_item->psz_type ) ) p_item->psz_type ) )
{ {
NSString *o_object_name = [NSString NSString *o_object_name = [NSApp
stringWithCString: p_a_module->psz_object_name]; localizedString: p_a_module->psz_object_name];
[o_modules addItemWithTitle: o_object_name]; [o_modules addItemWithTitle: o_object_name];
} }
} }
...@@ -359,7 +359,7 @@ ...@@ -359,7 +359,7 @@
if( p_item->psz_value != NULL ) if( p_item->psz_value != NULL )
{ {
NSString *o_value = NSString *o_value =
[NSString stringWithUTF8String: p_item->psz_value]; [NSApp localizedString: p_item->psz_value];
[o_modules selectItemWithTitle: o_value]; [o_modules selectItemWithTitle: o_value];
} }
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
p_item->psz_value : ""; p_item->psz_value : "";
INPUT_FIELD_STRING( p_item->psz_name, p_item->psz_text, 200, INPUT_FIELD_STRING( p_item->psz_name, p_item->psz_text, 200,
[NSString stringWithCString: psz_value], [NSApp localizedString: psz_value],
p_item->psz_longtext ); p_item->psz_longtext );
} }
else else
...@@ -420,9 +420,9 @@ ...@@ -420,9 +420,9 @@
for( i=0; p_item->ppsz_list[i]; i++ ) for( i=0; p_item->ppsz_list[i]; i++ )
{ {
[o_combo_box addItemWithObjectValue: [o_combo_box addItemWithObjectValue:
[NSString stringWithCString: p_item->ppsz_list[i]]]; [NSApp localizedString: p_item->ppsz_list[i]]];
} }
[o_combo_box setStringValue: [NSString stringWithCString: [o_combo_box setStringValue: [NSApp localizedString:
p_item->psz_value ? p_item->psz_value : ""]]; p_item->psz_value ? p_item->psz_value : ""]];
CONTROL_LABEL( p_item->psz_text ); CONTROL_LABEL( p_item->psz_text );
...@@ -595,7 +595,7 @@ static VLCTreeItem *o_root_item = nil; ...@@ -595,7 +595,7 @@ static VLCTreeItem *o_root_item = nil;
switch( p_item->i_type ) switch( p_item->i_type )
{ {
case CONFIG_HINT_CATEGORY: case CONFIG_HINT_CATEGORY:
o_child_name = [NSString stringWithUTF8String: p_item->psz_text]; o_child_name = [NSApp localizedString: p_item->psz_text];
[o_children addObject:[[VLCTreeItem alloc] initWithName: o_child_name [o_children addObject:[[VLCTreeItem alloc] initWithName: o_child_name
ID: p_module->i_object_id parent:self]]; ID: p_module->i_object_id parent:self]];
break; break;
...@@ -637,7 +637,7 @@ static VLCTreeItem *o_root_item = nil; ...@@ -637,7 +637,7 @@ static VLCTreeItem *o_root_item = nil;
/* Create the capability tree if it doesn't already exist */ /* Create the capability tree if it doesn't already exist */
NSString *o_capability; NSString *o_capability;
o_capability = [NSString stringWithUTF8String: p_module->psz_capability]; o_capability = [NSApp localizedString: p_module->psz_capability];
if( !p_module->psz_capability || !*p_module->psz_capability ) if( !p_module->psz_capability || !*p_module->psz_capability )
{ {
/* Empty capability ? Let's look at the submodules */ /* Empty capability ? Let's look at the submodules */
...@@ -647,7 +647,7 @@ static VLCTreeItem *o_root_item = nil; ...@@ -647,7 +647,7 @@ static VLCTreeItem *o_root_item = nil;
p_submodule = (module_t*)p_module->pp_children[ j ]; p_submodule = (module_t*)p_module->pp_children[ j ];
if( p_submodule->psz_capability && *p_submodule->psz_capability ) if( p_submodule->psz_capability && *p_submodule->psz_capability )
{ {
o_capability = [NSString stringWithUTF8String: p_submodule->psz_capability]; o_capability = [NSApp localizedString: p_submodule->psz_capability];
BOOL b_found = FALSE; BOOL b_found = FALSE;
for( j = 0; j < [o_children count]; j++ ) for( j = 0; j < [o_children count]; j++ )
{ {
...@@ -707,7 +707,7 @@ static VLCTreeItem *o_root_item = nil; ...@@ -707,7 +707,7 @@ static VLCTreeItem *o_root_item = nil;
/* Check the capability */ /* Check the capability */
NSString *o_capability; NSString *o_capability;
o_capability = [NSString stringWithUTF8String: p_module->psz_capability]; o_capability = [NSApp localizedString: p_module->psz_capability];
if( !p_module->psz_capability || !*p_module->psz_capability ) if( !p_module->psz_capability || !*p_module->psz_capability )
{ {
/* Empty capability ? Let's look at the submodules */ /* Empty capability ? Let's look at the submodules */
...@@ -717,11 +717,11 @@ static VLCTreeItem *o_root_item = nil; ...@@ -717,11 +717,11 @@ static VLCTreeItem *o_root_item = nil;
p_submodule = (module_t*)p_module->pp_children[ j ]; p_submodule = (module_t*)p_module->pp_children[ j ];
if( p_submodule->psz_capability && *p_submodule->psz_capability ) if( p_submodule->psz_capability && *p_submodule->psz_capability )
{ {
o_capability = [NSString stringWithUTF8String: p_submodule->psz_capability]; o_capability = [NSApp localizedString: p_submodule->psz_capability];
if( [o_capability isEqualToString: [self getName]] ) if( [o_capability isEqualToString: [self getName]] )
{ {
[o_children addObject:[[VLCTreeItem alloc] initWithName: [o_children addObject:[[VLCTreeItem alloc] initWithName:
[NSString stringWithUTF8String: p_module->psz_object_name ] [NSApp localizedString: p_module->psz_object_name ]
ID: p_module->i_object_id parent:self]]; ID: p_module->i_object_id parent:self]];
} }
} }
...@@ -730,7 +730,7 @@ static VLCTreeItem *o_root_item = nil; ...@@ -730,7 +730,7 @@ static VLCTreeItem *o_root_item = nil;
else if( [o_capability isEqualToString: [self getName]] ) else if( [o_capability isEqualToString: [self getName]] )
{ {
[o_children addObject:[[VLCTreeItem alloc] initWithName: [o_children addObject:[[VLCTreeItem alloc] initWithName:
[NSString stringWithUTF8String: p_module->psz_object_name ] [NSApp localizedString: p_module->psz_object_name ]
ID: p_module->i_object_id parent:self]]; ID: p_module->i_object_id parent:self]];
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment