* PreferencesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: PreferencesWindow.cpp,v 1.5 2003/01/11 20:42:47 titer Exp $
+ * $Id: PreferencesWindow.cpp,v 1.6 2003/01/14 16:00:49 titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
fPpSlider->SetHashMarks(B_HASH_MARKS_BOTTOM);
fPpSlider->SetHashMarkCount( 7 );
fPpSlider->SetLimitLabels( "None", "Maximum" );
+ fPpSlider->SetValue( config_GetInt( p_intf, "ffmpeg-pp-q" ) );
fFfmpegView->AddChild( fPpSlider );
rect.left = rect.right - 80;
button = new BButton( rect, NULL, "OK", new BMessage( PREFS_OK ) );
fPrefsView->AddChild( button );
+
+ rect.OffsetBy( -90, 0 );
+ button = new BButton( rect, NULL, "Save", new BMessage( PREFS_SAVE ) );
+ fPrefsView->AddChild( button );
rect.OffsetBy( -90, 0 );
button = new BButton( rect, NULL, "Defaults", new BMessage( PREFS_DEFAULTS ) );
ApplyChanges();
break;
}
+ case PREFS_SAVE:
+ {
+ config_SaveConfigFile( p_intf, "main" );
+ config_SaveConfigFile( p_intf, "adjust" );
+ config_SaveConfigFile( p_intf, "ffmpeg" );
+ break;
+ }
case PREFS_OK:
{
Hide();
* PreferencesWindow.h
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: PreferencesWindow.h,v 1.3 2002/11/26 01:06:08 titer Exp $
+ * $Id: PreferencesWindow.h,v 1.4 2003/01/14 16:00:49 titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
#define PREFS_WINDOW_HEIGHT 280
#define PREFS_OK 'prok'
-#define PREFS_CANCEL 'prca'
+#define PREFS_SAVE 'prsa'
#define PREFS_DEFAULTS 'prde'
#define SLIDER_UPDATE 'slup'