* open.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001, 2003 VideoLAN
- * $Id: open.cpp,v 1.60 2003/12/22 02:24:52 sam Exp $
+ * $Id: open.cpp,v 1.61 2003/12/22 15:42:43 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
{
sout_checkbox->SetValue(TRUE);
sout_button->Enable();
- subsfile_mrl.Add( wxString(wxT("sout=")) + wxU(psz_sout) );
+ subsfile_mrl.Add( wxString(wxT("sout=")) + wxL2U(psz_sout) );
}
if( psz_sout ) free( psz_sout );
{
subsfile_checkbox->SetValue(TRUE);
subsfile_button->Enable();
- subsfile_mrl.Add( wxString(wxT("sub-file=")) + wxU(psz_subsfile) );
+ subsfile_mrl.Add( wxString(wxT("sub-file=")) + wxL2U(psz_subsfile) );
}
if( psz_subsfile ) free( psz_subsfile );
if ( !psz_device ) psz_device = "";
- if( disc_device->GetValue().Cmp( wxU( psz_device ) ) )
+ if( disc_device->GetValue().Cmp( wxL2U( psz_device ) ) )
{
b_disc_device_changed = true;
}
psz_device = config_GetPsz( p_intf, "dvd" );
if( !b_disc_device_changed )
{
- disc_device->SetValue( psz_device ? wxU(psz_device) : wxT("") );
+ disc_device->SetValue( psz_device ? wxL2U(psz_device) : wxT("") );
disc_title_label->SetLabel ( wxT("Title") );
}
disc_title->SetRange( i_selection, 255 );
psz_device = config_GetPsz( p_intf, "vcd" );
if( !b_disc_device_changed )
{
- disc_device->SetValue( psz_device ? wxU(psz_device) : wxT("") );
+ disc_device->SetValue( psz_device ? wxL2U(psz_device) : wxT("") );
}
/* There are at most 98, tracks in a VCD, 999 Segments, 500 entries
psz_device = config_GetPsz( p_intf, "cd-audio" );
if( !b_disc_device_changed )
{
- disc_device->SetValue( psz_device ? wxU(psz_device) : wxT("") );
+ disc_device->SetValue( psz_device ? wxL2U(psz_device) : wxT("") );
}
disc_title_label->SetLabel ( wxT("Track") );
#ifdef HAVE_CDDAX
* preferences_widgets.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: preferences_widgets.cpp,v 1.17 2003/12/22 02:24:52 sam Exp $
+ * $Id: preferences_widgets.cpp,v 1.18 2003/12/22 15:42:44 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Sigmund Augdal <sigmunau@idi.ntnu.no>
module_t *p_parser;
label = new wxStaticText(this, -1, wxU(p_item->psz_text));
- combo = new wxComboBox( this, -1, wxU(p_item->psz_value),
+ combo = new wxComboBox( this, -1, wxL2U(p_item->psz_value),
wxDefaultPosition, wxDefaultSize,
0, NULL, wxCB_READONLY | wxCB_SORT );
label = new wxStaticText(this, -1, wxU(p_item->psz_text));
sizer->Add( label, 1, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
textctrl = new wxTextCtrl( this, -1,
- wxU(p_item->psz_value),
+ wxL2U(p_item->psz_value),
wxDefaultPosition,
wxDefaultSize,
wxTE_PROCESS_ENTER);
combo->Append( ( p_item->ppsz_list_text &&
p_item->ppsz_list_text[i_index] ) ?
wxU(p_item->ppsz_list_text[i_index]) :
- wxU(p_item->ppsz_list[i_index]) );
+ wxL2U(p_item->ppsz_list[i_index]) );
combo->SetClientData( i_index, (void *)p_item->ppsz_list[i_index] );
if( ( p_item->psz_value &&
!strcmp( p_item->psz_value, p_item->ppsz_list[i_index] ) ) ||
combo->SetValue( ( p_item->ppsz_list_text &&
p_item->ppsz_list_text[i_index] ) ?
wxU(p_item->ppsz_list_text[i_index]) :
- wxU(p_item->ppsz_list[i_index]) );
+ wxL2U(p_item->ppsz_list[i_index]) );
}
}
}
label = new wxStaticText(this, -1, wxU(p_item->psz_text));
sizer->Add( label, 1, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
textctrl = new wxTextCtrl( this, -1,
- wxU(p_item->psz_value),
+ wxL2U(p_item->psz_value),
wxDefaultPosition,
wxDefaultSize,
wxTE_PROCESS_ENTER);
* subtitles.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: subtitles.cpp,v 1.8 2003/12/22 02:24:52 sam Exp $
+ * $Id: subtitles.cpp,v 1.9 2003/12/22 15:42:44 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
wxHORIZONTAL );
char *psz_subsfile = config_GetPsz( p_intf, "sub-file" );
file_combo = new wxComboBox( panel, -1,
- psz_subsfile ? wxU(psz_subsfile) : wxT(""),
+ psz_subsfile ? wxL2U(psz_subsfile) : wxT(""),
wxPoint(20,25), wxSize(300, -1), 0, NULL );
if( psz_subsfile ) free( psz_subsfile );
wxButton *browse_button = new wxButton( panel, FileBrowse_Event,