]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/dialogs/vlm/vlm_panel.cpp
update module LIST file.
[vlc] / modules / gui / wxwidgets / dialogs / vlm / vlm_panel.cpp
1 /*****************************************************************************
2  * vlm_panel.cpp: VLM Panel
3  *****************************************************************************
4  * Copyright (C) 2000-2005 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/OR MODIFy
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #if 0
25 #include "dialogs/vlm/vlm_panel.hpp"
26 #include "dialogs/vlm/vlm_wrapper.hpp"
27 #include "dialogs/vlm/vlm_stream.hpp"
28 #include "dialogs/vlm/vlm_streampanel.hpp"
29 #include <wx/statline.h>
30
31 #include "vlc_charset.h"
32
33 enum
34 {
35     Notebook_Event,
36     Timer_Event,
37     Load_Event,
38 };
39
40 BEGIN_EVENT_TABLE( VLMPanel, wxPanel)
41    EVT_TIMER( Timer_Event, VLMPanel::OnTimer )
42    EVT_BUTTON( wxID_CLOSE, VLMPanel::OnClose )
43    EVT_BUTTON( Load_Event, VLMPanel::OnLoad )
44    EVT_BUTTON( wxID_SAVE, VLMPanel::OnSave )
45 END_EVENT_TABLE()
46
47
48 VLMPanel::VLMPanel( intf_thread_t *_p_intf, wxWindow *_p_parent ) :
49         wxPanel( _p_parent, -1, wxDefaultPosition, wxDefaultSize ),
50        timer( this, Timer_Event )
51 {
52     p_intf = _p_intf;
53     p_parent = _p_parent;
54
55     p_vlm = new VLMWrapper( p_intf );
56     p_vlm->AttachVLM();
57
58     SetAutoLayout( TRUE );
59
60     wxBoxSizer *panel_sizer = new wxBoxSizer( wxVERTICAL );
61
62     p_notebook = new wxNotebook( this, Notebook_Event );
63 #if (!wxCHECK_VERSION(2,5,0))
64     wxNotebookSizer *notebook_sizer = new wxNotebookSizer( p_notebook );
65 #endif
66     p_notebook->AddPage( BroadcastPanel( p_notebook ), wxU( _("Broadcasts") ) );
67 #if 0
68     p_notebook->AddPage( VODPanel( p_notebook ), wxU( _("VOD") ) );
69 #endif
70 #if (!wxCHECK_VERSION(2,5,0))
71     panel_sizer->Add( notebook_sizer, 1, wxEXPAND | wxALL, 5 );
72 #else
73     panel_sizer->Add( p_notebook, 1 , wxEXPAND | wxALL, 5 );
74 #endif
75
76     wxBoxSizer *button_sizer = new wxBoxSizer( wxHORIZONTAL );
77     button_sizer->Add( new wxButton( this, wxID_CLOSE, wxU(_("&Close") ) ) );
78     button_sizer->Add( 0, 0, 1 );
79     button_sizer->Add( new wxButton( this, Load_Event, wxU(_("Load") ) ), 0, wxRIGHT, 10 );
80     button_sizer->Add( new wxButton( this, wxID_SAVE, wxU(_("&Save") ) ) );
81     panel_sizer->Add( button_sizer, 0 , wxEXPAND | wxALL, 5 );
82
83     panel_sizer->Layout();
84     SetSizerAndFit( panel_sizer );
85
86     Update();
87
88     timer.Start( 300 );
89 }
90
91 VLMPanel::~VLMPanel()
92 {
93     delete p_vlm;
94 }
95
96 void VLMPanel::OnTimer( wxTimerEvent& event )
97 {
98     Update();
99 }
100
101 void VLMPanel::Update()
102 {
103     unsigned int i;
104     for( i = 0 ; i < broadcasts.size(); i++ )
105     {
106         ((VLMBroadcastStreamPanel *)broadcasts[i])->b_found = VLC_FALSE;
107     }
108     for( i = 0 ; i < vods.size(); i++ )
109     {
110         ((VLMVODStreamPanel *)vods[i])->b_found = VLC_FALSE;
111     }
112
113     p_vlm->LockVLM();
114     /* Iterate over the media, to find the panels to add / remove */
115     /* FIXME: This code should be better wrapped */
116     for( i = 0; i < p_vlm->NbMedia(); i++ )
117     {
118         vlm_media_t *p_media = p_vlm->GetMedia( i );
119
120         if( p_media->i_type == BROADCAST_TYPE )
121         {
122             vlc_bool_t b_foundthis = VLC_FALSE;
123             for( unsigned int j = 0 ; j < broadcasts.size(); j++ )
124             {
125                 VLMBroadcastStreamPanel *p_streamp =
126                        (VLMBroadcastStreamPanel *)(broadcasts[j]);
127                 /* FIXME: dangerous .. */
128                 if( p_streamp->GetStream()->p_media ==  p_media )
129                 {
130                     p_streamp->b_found = VLC_TRUE;
131                     b_foundthis = VLC_TRUE;
132                     break;
133                 }
134             }
135             /* Create the stream */
136             if( !b_foundthis )
137             {
138                 VLMBroadcastStream *p_broadcast =
139                         new VLMBroadcastStream( p_intf, p_media, p_vlm );
140                 AppendBroadcast( p_broadcast );
141             }
142         }
143         else if( p_media->i_type == VOD_TYPE )
144         {
145             vlc_bool_t b_foundthis = VLC_FALSE;
146             for( unsigned int j = 0 ; i < vods.size(); i++ )
147             {
148                 VLMVODStreamPanel *p_streamp = (VLMVODStreamPanel *)( vods[j] );
149                 if(  p_streamp->GetStream()->p_media ==  p_media )
150                 {
151                     p_streamp->b_found = VLC_TRUE;
152                     b_foundthis = VLC_TRUE;
153                     break;
154                 }
155             }
156             /* Create it */
157             if( !b_foundthis )
158             {
159                 VLMVODStream *p_vod = new VLMVODStream(p_intf, p_media, p_vlm );
160                 AppendVOD( p_vod );
161             }
162         }
163     }
164
165     /* Those not marked as found must be removed */
166     vector<VLMBroadcastStreamPanel *>::iterator it = broadcasts.begin();
167     while( it < broadcasts.end() )
168     {
169         if( (*it)->b_found == VLC_FALSE )
170         {
171             vector<VLMBroadcastStreamPanel *>::iterator rem = it;
172             it++;
173             VLMBroadcastStreamPanel *p_remove = *rem;
174             broadcasts.erase( rem );
175             RemoveBroadcast( p_remove );
176             delete p_remove;
177         }
178         else
179             it++;
180     }
181     vector<VLMVODStreamPanel *>::iterator it2 = vods.begin();
182     while( it2 < vods.end() )
183     {
184         if( (*it2)->b_found == VLC_FALSE )
185         {
186             vector<VLMVODStreamPanel *>::iterator rem = it2;
187             it2++;
188             VLMVODStreamPanel *p_remove = *rem;
189             vods.erase( rem );
190             RemoveVOD( p_remove );
191             delete p_remove;
192         }
193         else
194             it2++;
195     }
196
197     /* Update sliders*/
198     for( unsigned int j = 0 ; j < broadcasts.size(); j++ )
199     {
200         VLMBroadcastStreamPanel *p_streamp =
201                 (VLMBroadcastStreamPanel *)( broadcasts[j] );
202         p_streamp->Update();
203     }
204     p_vlm->UnlockVLM();
205 }
206
207 void VLMPanel::OnClose( wxCommandEvent &event )
208 {
209     ((VLMFrame*)p_parent)->OnClose( *( new wxCloseEvent() ) );
210 }
211
212 void VLMPanel::OnLoad( wxCommandEvent &event )
213 {
214     p_file_dialog = new wxFileDialog( NULL, wxT(""), wxT(""), wxT(""),
215                                       wxT("*"), wxOPEN | wxMULTIPLE );
216     if( p_file_dialog == NULL ) return;
217
218     p_file_dialog->SetTitle( wxU(_("Load Configuration") ) );
219     if( p_file_dialog->ShowModal() == wxID_OK )
220     {
221         vlm_Load( p_vlm->GetVLM(), p_file_dialog->GetPath().mb_str(wxConvUTF8) );
222     }
223     Update();
224 }
225
226 void VLMPanel::OnSave( wxCommandEvent &event )
227 {
228     p_file_dialog = new wxFileDialog( NULL, wxT(""), wxT(""), wxT(""),
229                                       wxT("*"), wxSAVE | wxOVERWRITE_PROMPT );
230     if( p_file_dialog == NULL ) return;
231
232     p_file_dialog->SetTitle( wxU(_("Save Configuration") ) );
233     if( p_file_dialog->ShowModal() == wxID_OK )
234     {
235         vlm_Save( p_vlm->GetVLM(), p_file_dialog->GetPath().mb_str(wxConvUTF8) );
236     }
237 }
238
239 /*************************
240  * Broadcasts management
241  *************************/
242 wxPanel * VLMPanel::BroadcastPanel( wxWindow *parent )
243 {
244      broadcasts_panel = new wxPanel( parent, -1, wxDefaultPosition, wxSize( 500, 350 ) );
245      broadcasts_sizer = new wxBoxSizer( wxVERTICAL );
246
247      wxStaticBox *add_box = new wxStaticBox( broadcasts_panel, -1,
248                                             wxU( _( "New broadcast") ) );
249      wxStaticBoxSizer *box_sizer = new wxStaticBoxSizer( add_box, wxHORIZONTAL );
250      box_sizer->Add( AddBroadcastPanel( broadcasts_panel), 0, wxEXPAND|wxALL, 5 );
251      box_sizer->Layout();
252
253      broadcasts_sizer->Add( box_sizer, 0, wxEXPAND|wxALL, 5 );
254
255      wxStaticLine *static_line = new wxStaticLine( broadcasts_panel, wxID_ANY );
256      broadcasts_sizer->Add( static_line, 0, wxEXPAND | wxALL, 5 );
257
258      scrolled_broadcasts = new wxScrolledWindow( broadcasts_panel, -1,
259                                 wxDefaultPosition, wxDefaultSize,
260                                 wxBORDER_NONE | wxVSCROLL );
261
262      scrolled_broadcasts_sizer = new wxBoxSizer( wxVERTICAL );
263      scrolled_broadcasts->SetAutoLayout( TRUE );
264      scrolled_broadcasts->SetScrollRate( 5,5 );
265      scrolled_broadcasts->SetSizerAndFit( scrolled_broadcasts_sizer );
266
267      broadcasts_sizer->Add( scrolled_broadcasts, 1, wxEXPAND| wxALL, 5 );
268      broadcasts_sizer->Layout();
269
270      broadcasts_panel->SetSizerAndFit( broadcasts_sizer );
271
272      return broadcasts_panel;
273 }
274
275 wxPanel * VLMPanel::AddBroadcastPanel( wxPanel *panel )
276 {
277      return new VLMAddStreamPanel( p_intf, panel, p_vlm, VLC_FALSE,
278                                    VLC_TRUE );
279 }
280
281 void VLMPanel::AppendBroadcast( VLMBroadcastStream *p_broadcast )
282 {
283     VLMBroadcastStreamPanel *p_new =
284                    new VLMBroadcastStreamPanel( p_intf, scrolled_broadcasts,
285                                                 p_broadcast );
286     p_new->b_found = VLC_TRUE;
287     scrolled_broadcasts_sizer->Add( p_new, 0, wxEXPAND | wxALL, 5 );
288     scrolled_broadcasts_sizer->Layout();
289     scrolled_broadcasts->FitInside();
290     broadcasts.push_back( p_new );
291 }
292
293 void VLMPanel::RemoveBroadcast( VLMBroadcastStreamPanel *p_streamp )
294 {
295     scrolled_broadcasts_sizer->Remove( p_streamp );
296     scrolled_broadcasts_sizer->Layout();
297     scrolled_broadcasts->FitInside();
298 }
299
300 /*************************
301  * VODS management
302  *************************/
303 wxPanel * VLMPanel::VODPanel( wxWindow *parent )
304 {
305      vods_panel = new wxPanel( parent, -1, wxDefaultPosition, wxSize( 500, 350 ) );
306      return vods_panel;
307 }
308
309 wxPanel * VLMPanel::AddVODPanel( wxPanel *panel )
310 {
311      return new VLMAddStreamPanel( p_intf, panel, p_vlm, VLC_FALSE,
312                                    VLC_FALSE );
313 }
314
315 void VLMPanel::AppendVOD( VLMVODStream *p_vod )
316 {
317     VLMVODStreamPanel *p_new =
318                    new VLMVODStreamPanel( p_intf, scrolled_vods, p_vod );
319     p_new->b_found = VLC_TRUE;
320     scrolled_vods_sizer->Add( p_new, 0, wxEXPAND | wxALL, 5 );
321     scrolled_vods_sizer->Layout();
322     scrolled_vods->FitInside();
323     vods.push_back( p_new );
324 }
325
326 void VLMPanel::RemoveVOD( VLMVODStreamPanel *p_streamp )
327 {
328     scrolled_vods_sizer->Remove( p_streamp );
329     scrolled_vods_sizer->Layout();
330     scrolled_vods->FitInside();
331 }
332
333 /****************************************************************************
334  * VLM Add Broadcast panel implementation
335  *****************************************************************************/
336 enum
337 {
338     Create_Event,
339     Clear_Event,
340     ChooseInput_Event,
341     ChooseOutput_Event,
342 };
343
344 BEGIN_EVENT_TABLE( VLMAddStreamPanel, wxPanel)
345    EVT_BUTTON( Create_Event, VLMAddStreamPanel::OnCreate )
346    EVT_BUTTON( Clear_Event, VLMAddStreamPanel::OnClear )
347    EVT_BUTTON( ChooseInput_Event, VLMAddStreamPanel::OnChooseInput )
348    EVT_BUTTON( ChooseOutput_Event, VLMAddStreamPanel::OnChooseOutput )
349 END_EVENT_TABLE()
350
351 VLMAddStreamPanel::VLMAddStreamPanel( intf_thread_t *_p_intf,
352                 wxWindow *_p_parent, VLMWrapper *_p_vlm,
353                 vlc_bool_t _b_edit, vlc_bool_t _b_broadcast ):
354                 wxPanel( _p_parent, -1, wxDefaultPosition, wxDefaultSize )
355 {
356     p_intf = _p_intf;
357     p_parent = _p_parent;
358     p_vlm = _p_vlm;
359     b_edit = _b_edit;
360     b_broadcast = _b_broadcast;
361
362     p_open_dialog = NULL;
363     p_sout_dialog = NULL;
364
365     SetAutoLayout( TRUE );
366
367     wxBoxSizer *panel_sizer = new wxBoxSizer( wxVERTICAL );
368
369     wxFlexGridSizer *upper_sizer = new wxFlexGridSizer( 5, 2 );
370     upper_sizer->AddGrowableCol( 1 );
371     upper_sizer->AddGrowableCol( 3 );
372
373     upper_sizer->Add( new wxStaticText( this, -1, wxU( _("Name") ) ), 0,
374                                         wxALIGN_CENTER_VERTICAL, 0 );
375     name_text = new wxTextCtrl( this, -1, wxU( "" ), wxDefaultPosition,
376                                           wxSize( 150, -1 ) );
377     upper_sizer->Add( name_text , 1, wxEXPAND | wxLEFT | wxRIGHT, 5 );
378
379     upper_sizer->Add( new wxStaticText( this, -1, wxU( _("Input") ) ), 0,
380                                         wxALIGN_CENTER_VERTICAL, 0 );
381     input_text = new wxTextCtrl( this, -1, wxU( "" ) ,
382                       wxDefaultPosition, wxSize( 150, -1 ) );
383     upper_sizer->Add( input_text , 1, wxEXPAND | wxLEFT | wxRIGHT, 5 );
384     upper_sizer->Add( new wxButton( this, ChooseInput_Event, wxU( _("Choose") )  ) );
385
386     upper_sizer->Add( 0,0 );
387     upper_sizer->Add( 0,0 );
388
389     upper_sizer->Add( new wxStaticText( this, -1, wxU( _("Output") ) ), 0,
390                                         wxALIGN_CENTER_VERTICAL, 0 );
391     output_text = new wxTextCtrl( this, -1, wxU( "" ) ,
392                       wxDefaultPosition, wxSize( 150, -1 ) );
393     upper_sizer->Add( output_text, 1, wxEXPAND | wxLEFT | wxRIGHT, 5 );
394     upper_sizer->Add( new wxButton( this, ChooseOutput_Event,
395                       wxU( _("Choose") )  ) );
396
397     panel_sizer->Add( upper_sizer, 0, wxEXPAND | wxALL, 5 );
398
399     wxBoxSizer *lower_sizer = new wxBoxSizer( wxHORIZONTAL );
400     enabled_checkbox = new wxCheckBox( this, -1, wxU( _("Enabled" ) ) );
401     enabled_checkbox->SetValue( true );
402     lower_sizer->Add( enabled_checkbox,  1 , wxEXPAND | wxALL , 5 );
403     if( b_broadcast )
404     {
405         loop_checkbox = new wxCheckBox( this, -1, wxU( _("Loop" ) ) );
406         lower_sizer->Add( loop_checkbox,  1 , wxEXPAND | wxALL , 5 );
407     }
408
409     if( !b_edit )
410     {
411         lower_sizer->Add( new wxButton( this, wxID_CLEAR,
412                           wxU( _( "&Clear" )  ) ),
413                          0 , wxEXPAND | wxALL , 5 );
414     }
415     lower_sizer->Add( new wxButton( this, Create_Event,
416                           wxU( _( b_edit ? "OK" : N_("Create") ) ) ),
417                       0 , wxEXPAND | wxALL , 5 );
418
419
420     panel_sizer->Add( lower_sizer, 0 , wxEXPAND| wxALL, 5 );
421     panel_sizer->Layout();
422     SetSizerAndFit( panel_sizer );
423 }
424
425 VLMAddStreamPanel::~VLMAddStreamPanel()
426 {
427 }
428
429 void VLMAddStreamPanel::Load( VLMStream *p_stream )
430 {
431     name_text->SetValue( wxU( p_stream->p_media->psz_name ) );
432     name_text->SetEditable( false );
433     if( p_stream->p_media->i_input > 0 )
434     {
435         input_text->SetValue( wxU( p_stream->p_media->input[0] ) );
436     }
437     output_text->SetValue( wxU( p_stream->p_media->psz_output ) );
438     enabled_checkbox->SetValue( p_stream->p_media->b_enabled );
439     if( b_broadcast)
440         loop_checkbox->SetValue( p_stream->p_media->b_loop );
441 }
442
443 void VLMAddStreamPanel::OnCreate( wxCommandEvent &event )
444 {
445     char *psz_name = wxFromLocale( name_text->GetValue() );
446     char *psz_input = wxFromLocale(  input_text->GetValue() );
447     char *psz_output = wxFromLocale( output_text->GetValue() );
448     if( b_broadcast && ! b_edit )
449     {
450         p_vlm->AddBroadcast( psz_name, psz_input, psz_output,
451                          enabled_checkbox->IsChecked() ? VLC_TRUE: VLC_FALSE,
452                          loop_checkbox->IsChecked() ? VLC_TRUE : VLC_FALSE );
453     }
454     else if( b_broadcast && b_edit )
455     {
456         p_vlm->EditBroadcast( psz_name, psz_input, psz_output,
457                         enabled_checkbox->IsChecked() ? VLC_TRUE: VLC_FALSE,
458                         loop_checkbox->IsChecked() ? VLC_TRUE : VLC_FALSE );
459     }
460     else if( !b_broadcast && !b_edit )
461     {
462         p_vlm->AddVod( psz_name, psz_input, psz_output,
463                        enabled_checkbox->IsChecked() ? VLC_TRUE: VLC_FALSE,
464                        loop_checkbox->IsChecked() ? VLC_TRUE : VLC_FALSE );
465     }
466     else
467     {
468         p_vlm->EditVod( psz_name, psz_input, psz_output,
469                         enabled_checkbox->IsChecked() ? VLC_TRUE: VLC_FALSE,
470                         loop_checkbox->IsChecked() ? VLC_TRUE : VLC_FALSE );
471     }
472     wxLocaleFree( psz_name) ; wxLocaleFree( psz_input ) ;
473     wxLocaleFree( psz_output);
474     if( !b_edit )
475         OnClear( event );
476     if( b_edit )
477         p_parent->Hide();
478 }
479
480 void VLMAddStreamPanel::OnClear( wxCommandEvent &event )
481 {
482     name_text->SetValue( wxU("") );
483     input_text->SetValue( wxU("") );
484     output_text->SetValue( wxU("") );
485 }
486
487 void VLMAddStreamPanel::OnChooseInput( wxCommandEvent &event )
488 {
489     if( p_open_dialog == NULL )
490         p_open_dialog = new OpenDialog( p_intf, this, -1, -1, OPEN_STREAM );
491
492     if( p_open_dialog && p_open_dialog->ShowModal() == wxID_OK )
493     {
494         input_text->SetValue( p_open_dialog->mrl[0] );
495     }
496 }
497
498 void VLMAddStreamPanel::OnChooseOutput( wxCommandEvent &event )
499 {
500     if( p_sout_dialog == NULL )
501         p_sout_dialog = new SoutDialog( p_intf, this );
502
503     if( p_sout_dialog && p_sout_dialog->ShowModal() == wxID_OK )
504     {
505         wxString sout = (p_sout_dialog->GetOptions())[0] ;
506         sout = sout.AfterFirst( '=' );
507         output_text->SetValue( sout );
508     }
509 }
510
511 /****************************************************************************
512  * VLM Frame implementation
513  ****************************************************************************/
514 enum
515 {
516 };
517
518 BEGIN_EVENT_TABLE( VLMFrame, wxFrame )
519     EVT_CLOSE( VLMFrame::OnClose )
520 END_EVENT_TABLE()
521
522 VLMFrame::VLMFrame( intf_thread_t *_p_intf, wxWindow *_p_parent ) :
523         wxFrame( _p_parent, -1, wxU( _("VLM") ),
524         wxDefaultPosition, wxSize( 640,480 ), wxDEFAULT_FRAME_STYLE )
525 {
526     SetIcon( *_p_intf->p_sys->p_icon );
527
528     wxBoxSizer *main_sizer = new wxBoxSizer( wxHORIZONTAL );
529     vlm_panel = new VLMPanel( _p_intf, this );
530
531 #if defined(WIN32)
532     main_sizer->Add( vlm_panel, 1, wxGROW, 0 );
533 #else
534     main_sizer->Add( vlm_panel, 1, wxEXPAND | wxALL, 5 );
535 #endif
536     main_sizer->Layout();
537     SetSizerAndFit( main_sizer );
538 }
539
540 void VLMFrame::OnClose( wxCloseEvent& WXUNUSED(event) )
541 {
542     Hide();
543 }
544
545 void VLMFrame::Update()
546 {
547     vlm_panel->Update();
548 }
549
550 VLMFrame::~VLMFrame()
551 {
552     delete vlm_panel;
553 }
554
555 /****************************************************************************
556  * VLM Add stream Frame implementation
557  ****************************************************************************/
558 VLMEditStreamFrame::VLMEditStreamFrame( intf_thread_t *_p_intf,
559             wxWindow *_p_parent, VLMWrapper *_p_vlm, vlc_bool_t _b_broadcast,
560             VLMStream *p_stream ) :
561         wxFrame( _p_parent, -1, wxU( _("VLM stream") ),
562         wxDefaultPosition, wxSize( 640,480 ), wxDEFAULT_FRAME_STYLE )
563 {
564     SetIcon( *_p_intf->p_sys->p_icon );
565
566     wxBoxSizer *main_sizer = new wxBoxSizer( wxHORIZONTAL );
567     vlm_panel = new VLMAddStreamPanel( _p_intf, this, _p_vlm ,
568                                        VLC_TRUE, _b_broadcast );
569
570     vlm_panel->Load( p_stream );
571
572     main_sizer->Add( vlm_panel, 1, wxEXPAND | wxALL, 5 );
573     main_sizer->Layout();
574     SetSizerAndFit( main_sizer );
575 }
576
577 VLMEditStreamFrame::~VLMEditStreamFrame()
578 {
579 }
580 #endif
581