Commit fcbecde7 authored by Yoann Peronneau's avatar Yoann Peronneau

* wx/vlm: cosmetic changes

parent 06a38890
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "dialogs/vlm/vlm_wrapper.hpp" #include "dialogs/vlm/vlm_wrapper.hpp"
#include "dialogs/vlm/vlm_stream.hpp" #include "dialogs/vlm/vlm_stream.hpp"
#include "dialogs/vlm/vlm_streampanel.hpp" #include "dialogs/vlm/vlm_streampanel.hpp"
#include <wx/statline.h>
enum enum
{ {
...@@ -248,6 +249,9 @@ wxPanel * VLMPanel::BroadcastPanel( wxWindow *parent ) ...@@ -248,6 +249,9 @@ wxPanel * VLMPanel::BroadcastPanel( wxWindow *parent )
broadcasts_sizer->Add( box_sizer, 0, wxEXPAND|wxALL, 5 ); broadcasts_sizer->Add( box_sizer, 0, wxEXPAND|wxALL, 5 );
wxStaticLine *static_line = new wxStaticLine( broadcasts_panel );
broadcasts_sizer->Add( static_line, 0, wxEXPAND | wxALL, 5 );
scrolled_broadcasts = new wxScrolledWindow( broadcasts_panel, -1, scrolled_broadcasts = new wxScrolledWindow( broadcasts_panel, -1,
wxDefaultPosition, wxDefaultSize, wxDefaultPosition, wxDefaultSize,
wxBORDER_NONE | wxVSCROLL ); wxBORDER_NONE | wxVSCROLL );
...@@ -355,16 +359,18 @@ VLMAddStreamPanel::VLMAddStreamPanel( intf_thread_t *_p_intf, ...@@ -355,16 +359,18 @@ VLMAddStreamPanel::VLMAddStreamPanel( intf_thread_t *_p_intf,
wxBoxSizer *panel_sizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer *panel_sizer = new wxBoxSizer( wxVERTICAL );
wxFlexGridSizer *upper_sizer = new wxFlexGridSizer( 5,2 ); wxFlexGridSizer *upper_sizer = new wxFlexGridSizer( 5, 2 );
upper_sizer->AddGrowableCol( 1, 1 ); upper_sizer->AddGrowableCol( 1 );
upper_sizer->AddGrowableCol( 3, 1 ); upper_sizer->AddGrowableCol( 3 );
upper_sizer->Add( new wxStaticText( this, -1, wxU( _("Name") ) ) ); upper_sizer->Add( new wxStaticText( this, -1, wxU( _("Name") ) ), 0,
wxALIGN_CENTER_VERTICAL, 0 );
name_text = new wxTextCtrl( this, -1, wxU( _("") ), wxDefaultPosition, name_text = new wxTextCtrl( this, -1, wxU( _("") ), wxDefaultPosition,
wxSize( 150, -1 ) ); wxSize( 150, -1 ) );
upper_sizer->Add( name_text , 1, wxEXPAND | wxLEFT | wxRIGHT, 5 ); upper_sizer->Add( name_text , 1, wxEXPAND | wxLEFT | wxRIGHT, 5 );
upper_sizer->Add( new wxStaticText( this, -1, wxU( _("Input") ) ) ); upper_sizer->Add( new wxStaticText( this, -1, wxU( _("Input") ) ), 0,
wxALIGN_CENTER_VERTICAL, 0 );
input_text = new wxTextCtrl( this, -1, wxU( _("") ) , input_text = new wxTextCtrl( this, -1, wxU( _("") ) ,
wxDefaultPosition, wxSize( 150, -1 ) ); wxDefaultPosition, wxSize( 150, -1 ) );
upper_sizer->Add( input_text , 1, wxEXPAND | wxLEFT | wxRIGHT, 5 ); upper_sizer->Add( input_text , 1, wxEXPAND | wxLEFT | wxRIGHT, 5 );
...@@ -373,7 +379,8 @@ VLMAddStreamPanel::VLMAddStreamPanel( intf_thread_t *_p_intf, ...@@ -373,7 +379,8 @@ VLMAddStreamPanel::VLMAddStreamPanel( intf_thread_t *_p_intf,
upper_sizer->Add( 0,0 ); upper_sizer->Add( 0,0 );
upper_sizer->Add( 0,0 ); upper_sizer->Add( 0,0 );
upper_sizer->Add( new wxStaticText( this, -1, wxU( _("Output") ) ) ); upper_sizer->Add( new wxStaticText( this, -1, wxU( _("Output") ) ), 0,
wxALIGN_CENTER_VERTICAL, 0 );
output_text = new wxTextCtrl( this, -1, wxU( _("") ) , output_text = new wxTextCtrl( this, -1, wxU( _("") ) ,
wxDefaultPosition, wxSize( 150, -1 ) ); wxDefaultPosition, wxSize( 150, -1 ) );
upper_sizer->Add( output_text, 1, wxEXPAND | wxLEFT | wxRIGHT, 5 ); upper_sizer->Add( output_text, 1, wxEXPAND | wxLEFT | wxRIGHT, 5 );
......
...@@ -92,7 +92,7 @@ VLMBroadcastStreamPanel::VLMBroadcastStreamPanel( intf_thread_t* _p_intf, ...@@ -92,7 +92,7 @@ VLMBroadcastStreamPanel::VLMBroadcastStreamPanel( intf_thread_t* _p_intf,
box_sizer->Add( p_slider, 1, wxEXPAND | wxALL, 5 ); box_sizer->Add( p_slider, 1, wxEXPAND | wxALL, 5 );
p_time = new wxStaticText( this, -1, wxU( "0:00:00 / 0:00:00") ); p_time = new wxStaticText( this, -1, wxU( "0:00:00 / 0:00:00") );
box_sizer->Add( p_time , 0, wxEXPAND | wxALL, 5 ); box_sizer->Add( p_time, 0, wxALL | wxALIGN_CENTER_VERTICAL, 5 );
wxBitmapButton *edit_button = new wxBitmapButton( this, BEdit_Event, wxBitmapButton *edit_button = new wxBitmapButton( this, BEdit_Event,
wxBitmap( trash_xpm ) ); wxBitmap( trash_xpm ) );
......
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