* InterfaceWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: InterfaceWindow.cpp,v 1.22 2003/01/25 20:15:41 titer Exp $
+ * $Id: InterfaceWindow.cpp,v 1.23 2003/01/27 10:29:21 titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
{
p_intf = p_interface;
p_wrapper = p_intf->p_sys->p_wrapper;
- p_intf->p_sys->b_dvdold = false;
+ p_intf->p_sys->b_dvdmenus = false;
fPlaylistIsEmpty = !( p_wrapper->PlaylistSize() > 0 );
* PreferencesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: PreferencesWindow.cpp,v 1.9 2003/01/25 20:15:41 titer Exp $
+ * $Id: PreferencesWindow.cpp,v 1.10 2003/01/27 10:29:21 titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
rect = fGeneralView->Bounds();
rect.InsetBy( 10, 10 );
rect.bottom = rect.top + 10;
- fDvdOldCheck = new BCheckBox( rect, "dvdold", "Do not use DVD menus",
- new BMessage( DVDOLD_CHECK ) );
- fGeneralView->AddChild( fDvdOldCheck );
+ fDvdMenusCheck = new BCheckBox( rect, "dvdmenus", "Use DVD menus",
+ new BMessage( DVDMENUS_CHECK ) );
+ fGeneralView->AddChild( fDvdMenusCheck );
rect.top = rect.bottom + 20;
rect.bottom = rect.top + 30;
{
switch ( p_message->what )
{
- case DVDOLD_CHECK:
+ case DVDMENUS_CHECK:
case SLIDER_UPDATE:
{
ApplyChanges();
*****************************************************************************/
void PreferencesWindow::SetDefaults()
{
- fDvdOldCheck->SetValue( 0 );
+ fDvdMenusCheck->SetValue( 0 );
fPpSlider->SetValue( 0 );
fBrightnessSlider->SetValue( 100 );
fContrastSlider->SetValue( 100 );
*****************************************************************************/
void PreferencesWindow::ApplyChanges()
{
- if( fDvdOldCheck->Value() )
- p_intf->p_sys->b_dvdold = true;
+ if( fDvdMenusCheck->Value() )
+ p_intf->p_sys->b_dvdmenus = true;
else
- p_intf->p_sys->b_dvdold = false;
+ p_intf->p_sys->b_dvdmenus = false;
config_PutInt( p_intf, "ffmpeg-pp-q", fPpSlider->Value() );
config_PutFloat( p_intf, "brightness",
* PreferencesWindow.h
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: PreferencesWindow.h,v 1.7 2003/01/25 20:15:41 titer Exp $
+ * $Id: PreferencesWindow.h,v 1.8 2003/01/27 10:29:22 titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
#define PREFS_SAVE 'prsa'
#define PREFS_DEFAULTS 'prde'
#define SLIDER_UPDATE 'slup'
-#define DVDOLD_CHECK 'dvch'
+#define DVDMENUS_CHECK 'dvme'
class PreferencesWindow : public BWindow
{
BView * fAdjustView;
BTab * fGeneralTab;
BTab * fAdjustTab;
- BCheckBox * fDvdOldCheck;
+ BCheckBox * fDvdMenusCheck;
BSlider * fPpSlider;
BSlider * fContrastSlider;
BSlider * fBrightnessSlider;
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: VlcWrapper.cpp,v 1.21 2003/01/22 01:13:22 titer Exp $
+ * $Id: VlcWrapper.cpp,v 1.22 2003/01/27 10:29:22 titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
void VlcWrapper::OpenDisc(BString o_type, BString o_device, int i_title, int i_chapter)
{
- if( p_intf->p_sys->b_dvdold )
+ if( p_intf->p_sys->b_dvdmenus )
+ o_device.Prepend( "dvd:" );
+ else
o_device.Prepend( "dvdold:" );
playlist_Add( p_playlist, o_device.String(),
PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END );
* VlcWrapper.h: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: VlcWrapper.h,v 1.16 2003/01/25 20:15:41 titer Exp $
+ * $Id: VlcWrapper.h,v 1.17 2003/01/27 10:29:22 titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
int i_part;
audio_volume_t i_saved_volume;
int i_channel;
- bool b_dvdold;
+ bool b_dvdmenus;
VlcWrapper * p_wrapper;
};