/* Separation */
wxStaticLine *static_line = new wxStaticLine( panel, wxID_OK );
+#if 0
/* Create the buttons */
wxButton *ok_button = new wxButton( panel, wxID_OK, wxU(_("OK")) );
ok_button->SetDefault();
+#endif
+ wxButton *save_button = new wxButton( panel, wxID_SAVE, wxU(_("&Save")) );
+ save_button->SetDefault();
wxButton *cancel_button = new wxButton( panel, wxID_CANCEL,
- wxU(_("Cancel")) );
- wxButton *save_button = new wxButton( panel, wxID_SAVE, wxU(_("Save")) );
+ wxU(_("&Cancel")) );
wxButton *reset_button = new wxButton( panel, ResetAll_Event,
wxU(_("Reset All")) );
/* Place everything in sizers */
wxBoxSizer *button_sizer = new wxBoxSizer( wxHORIZONTAL );
+#if 0
button_sizer->Add( ok_button, 0, wxALL, 5 );
- button_sizer->Add( cancel_button, 0, wxALL, 5 );
+#endif
button_sizer->Add( save_button, 0, wxALL, 5 );
+ button_sizer->Add( cancel_button, 0, wxALL, 5 );
button_sizer->Add( reset_button, 0, wxALL, 5 );
button_sizer->Add( dummy_panel, 1, wxALL, 5 );
button_sizer->Add( advanced_checkbox, 0, wxALL | wxALIGN_RIGHT |
void PrefsDialog::OnResetAll( wxCommandEvent& WXUNUSED(event) )
{
wxMessageDialog dlg( this,
- wxU(_("Beware this will reset your VLC media player preferences.\n"
+ wxU(_("This will reset your VLC media player preferences.\n"
"Are you sure you want to continue?")),
wxU(_("Reset Preferences")), wxYES_NO|wxNO_DEFAULT|wxCENTRE );
psz_help = config_CategoryHelpGet( p_item->i_value );
if( psz_help )
{
- config_data->psz_help = wraptext( strdup( psz_help ),
- 72 , 1 );
+ config_data->psz_help = wraptext( strdup( psz_help ), 72 );
}
else
{
break;
case CONFIG_SUBCATEGORY:
if( p_item->i_value == -1 ) break; // Don't display it
+ /* Special case: move the "general" subcategories to their
+ * parent category */
if( p_item->i_value == SUBCAT_VIDEO_GENERAL ||
+ p_item->i_value == SUBCAT_ADVANCED_MISC ||
+ p_item->i_value == SUBCAT_INPUT_GENERAL ||
+ p_item->i_value == SUBCAT_INTERFACE_GENERAL ||
+ p_item->i_value == SUBCAT_SOUT_GENERAL||
+ p_item->i_value == SUBCAT_PLAYLIST_GENERAL||
p_item->i_value == SUBCAT_AUDIO_GENERAL )
{
ConfigTreeData *cd = (ConfigTreeData *)
char *psz_help = config_CategoryHelpGet( p_item->i_value );
if( psz_help )
{
- cd->psz_help = wraptext( strdup( psz_help ),72 ,
- 1 );
+ cd->psz_help = wraptext( strdup( psz_help ), 72 );
}
else
{
psz_help = config_CategoryHelpGet( p_item->i_value );
if( psz_help )
{
- config_data->psz_help = wraptext( strdup( psz_help ) ,
- 72 , 1 );
+ config_data->psz_help = wraptext( strdup( psz_help ), 72 );
}
else
{
}
if( !p_module && !b_found )
{
- msg_Warn( p_intf, "ohoh, unable to find main module" );
+ msg_Warn( p_intf, "unable to create preferences "
+ "(main module not found)" );
return;
}
}
p_item->i_type == CONFIG_SUBCATEGORY ) )
break;
+ if( p_item->b_internal == VLC_TRUE ) continue;
+
ConfigControl *control =
CreateConfigControl( VLC_OBJECT(p_intf),
p_item, config_window );
case CONFIG_ITEM_KEY:
/* So you don't need to restart to have the changes take effect */
val.i_int = control->GetIntValue();
- var_Set( p_intf->p_vlc, control->GetName().mb_str(), val );
+ var_Set( p_intf->p_libvlc, control->GetName().mb_str(), val );
case CONFIG_ITEM_INTEGER:
case CONFIG_ITEM_BOOL:
config_PutInt( p_intf, control->GetName().mb_str(),