Commit 07004fb9 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/*: small cleanup.
parent 6d46c2a1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* open.cpp : wxWindows plugin for vlc * open.cpp : wxWindows plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001 VideoLAN * Copyright (C) 2000-2001 VideoLAN
* $Id: open.cpp,v 1.43 2003/11/10 18:21:35 gbazin Exp $ * $Id: open.cpp,v 1.44 2003/11/23 17:51:54 gbazin Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -673,7 +673,8 @@ void OpenDialog::UpdateMRL( int i_access_method ) ...@@ -673,7 +673,8 @@ void OpenDialog::UpdateMRL( int i_access_method )
+ demux + wxT(":") + demux + wxT(":")
+ disc_device->GetLineText(0) + disc_device->GetLineText(0)
+ wxString::Format( wxT("@%d:%d"), + wxString::Format( wxT("@%d:%d"),
i_disc_title, i_disc_chapter ); disc_title->GetValue(),
disc_chapter->GetValue() );
break; break;
case NET_ACCESS: case NET_ACCESS:
switch( i_net_type ) switch( i_net_type )
...@@ -927,11 +928,6 @@ void OpenDialog::OnFileBrowse( wxCommandEvent& WXUNUSED(event) ) ...@@ -927,11 +928,6 @@ void OpenDialog::OnFileBrowse( wxCommandEvent& WXUNUSED(event) )
*****************************************************************************/ *****************************************************************************/
void OpenDialog::OnDiscPanelChange( wxCommandEvent& event ) void OpenDialog::OnDiscPanelChange( wxCommandEvent& event )
{ {
if( event.GetId() == DiscTitle_Event )
i_disc_title = event.GetInt();
else if( event.GetId() == DiscChapter_Event )
i_disc_chapter = event.GetInt();
UpdateMRL( DISC_ACCESS ); UpdateMRL( DISC_ACCESS );
} }
...@@ -959,17 +955,14 @@ void OpenDialog::OnDiscTypeChange( wxCommandEvent& WXUNUSED(event) ) ...@@ -959,17 +955,14 @@ void OpenDialog::OnDiscTypeChange( wxCommandEvent& WXUNUSED(event) )
case 0: case 0:
disc_title->SetRange( 0, 255 ); disc_title->SetRange( 0, 255 );
disc_title->SetValue( 0 ); disc_title->SetValue( 0 );
i_disc_title = 0;
break; break;
default: default:
disc_title->SetRange( 1, 255 ); disc_title->SetRange( 1, 255 );
disc_title->SetValue( 1 ); disc_title->SetValue( 1 );
i_disc_title = 1;
break; break;
} }
i_disc_chapter = 1;
disc_chapter->SetRange( 1, 255 ); disc_chapter->SetRange( 1, 255 );
disc_chapter->SetValue( 1 ); disc_chapter->SetValue( 1 );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* wxwindows.h: private wxWindows interface description * wxwindows.h: private wxWindows interface description
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: wxwindows.h,v 1.72 2003/11/21 18:55:40 gbazin Exp $ * $Id: wxwindows.h,v 1.73 2003/11/23 17:51:54 gbazin Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -373,9 +373,7 @@ private: ...@@ -373,9 +373,7 @@ private:
wxRadioBox *disc_type; wxRadioBox *disc_type;
wxTextCtrl *disc_device; wxTextCtrl *disc_device;
wxSpinCtrl *disc_title; wxSpinCtrl *disc_title;
int i_disc_title;
wxSpinCtrl *disc_chapter; wxSpinCtrl *disc_chapter;
int i_disc_chapter;
/* Controls for the net panel */ /* Controls for the net panel */
wxRadioBox *net_type; wxRadioBox *net_type;
......
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