Commit 313cc2da authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/streamout.cpp: fixed a couple of things.
parent 8331d363
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* streamout.cpp : wxWindows plugin for vlc * streamout.cpp : wxWindows plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001 VideoLAN * Copyright (C) 2000-2001 VideoLAN
* $Id: streamout.cpp,v 1.34 2003/11/05 17:57:29 gbazin Exp $ * $Id: streamout.cpp,v 1.35 2003/11/05 20:06:36 gbazin Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -138,33 +138,6 @@ BEGIN_EVENT_TABLE(SoutDialog, wxDialog) ...@@ -138,33 +138,6 @@ BEGIN_EVENT_TABLE(SoutDialog, wxDialog)
END_EVENT_TABLE() END_EVENT_TABLE()
#if 0
/*****************************************************************************
* Demux dump event methods.
*****************************************************************************/
void OpenDialog::OnDemuxDumpEnable( wxCommandEvent& event )
{
demuxdump_textctrl->Enable( event.GetInt() != 0 );
demuxdump_button->Enable( event.GetInt() != 0 );
if( event.GetInt() )
{
sout_checkbox->SetValue( 0 );
subsfile_checkbox->SetValue( 0 );
wxCommandEvent event = wxCommandEvent( wxEVT_NULL );
event.SetInt( 0 );
OnSoutEnable( event );
OnSubsFileEnable( event );
}
UpdateMRL( i_current_access_method );
}
void OpenDialog::OnDemuxDumpChange( wxCommandEvent& WXUNUSED(event) )
{
}
#endif
/***************************************************************************** /*****************************************************************************
* Constructor. * Constructor.
*****************************************************************************/ *****************************************************************************/
...@@ -459,8 +432,6 @@ wxPanel *SoutDialog::AccessPanel( wxWindow* parent ) ...@@ -459,8 +432,6 @@ wxPanel *SoutDialog::AccessPanel( wxWindow* parent )
wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL ); wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL );
subpanel_sizer->Add( new wxPanel(access_subpanels[1], -1), 0, subpanel_sizer->Add( new wxPanel(access_subpanels[1], -1), 0,
wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL ); wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL );
subpanel_sizer->Add( new wxPanel(access_subpanels[1], -1), 0,
wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL );
dump_checkbox = new wxCheckBox( access_subpanels[1], FileDump_Event, dump_checkbox = new wxCheckBox( access_subpanels[1], FileDump_Event,
wxU(_("Dump raw input")) ); wxU(_("Dump raw input")) );
subpanel_sizer->Add( dump_checkbox, 0, subpanel_sizer->Add( dump_checkbox, 0,
...@@ -877,8 +848,9 @@ void SoutDialog::OnFileDump( wxCommandEvent& event ) ...@@ -877,8 +848,9 @@ void SoutDialog::OnFileDump( wxCommandEvent& event )
{ {
if( i != FILE_ACCESS_OUT ) if( i != FILE_ACCESS_OUT )
{ {
access_subpanels[i]->Enable( !event.GetInt() );
access_checkboxes[i]->Enable( !event.GetInt() ); access_checkboxes[i]->Enable( !event.GetInt() );
access_subpanels[i]->Enable( !event.GetInt() &&
access_checkboxes[i]->IsChecked() );
} }
} }
......
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