Commit 1dcec75f authored by Clément Stenac's avatar Clément Stenac

* Some progress on the wizard (still not useable)

* Fixed layout of the item info dialog
parent be50fbbe
...@@ -139,6 +139,7 @@ wxPanel *ItemInfoDialog::InfoPanel( wxWindow* parent ) ...@@ -139,6 +139,7 @@ wxPanel *ItemInfoDialog::InfoPanel( wxWindow* parent )
wxStaticBoxSizer *box_sizer = new wxStaticBoxSizer( panel_box, wxStaticBoxSizer *box_sizer = new wxStaticBoxSizer( panel_box,
wxVERTICAL ); wxVERTICAL );
wxFlexGridSizer *sizer = new wxFlexGridSizer(2,3,20);
/* URI Textbox */ /* URI Textbox */
wxStaticText *uri_label = wxStaticText *uri_label =
new wxStaticText( info_panel, -1, wxU(_("URI")) ); new wxStaticText( info_panel, -1, wxU(_("URI")) );
...@@ -147,12 +148,8 @@ wxPanel *ItemInfoDialog::InfoPanel( wxWindow* parent ) ...@@ -147,12 +148,8 @@ wxPanel *ItemInfoDialog::InfoPanel( wxWindow* parent )
wxU(p_item->input.psz_uri), wxDefaultPosition, wxSize( 300, -1 ), wxU(p_item->input.psz_uri), wxDefaultPosition, wxSize( 300, -1 ),
wxTE_PROCESS_ENTER ); wxTE_PROCESS_ENTER );
wxBoxSizer *uri_sizer = new wxBoxSizer( wxHORIZONTAL ); sizer->Add( uri_label, 0 , wxALIGN_LEFT |wxALL , 5 );
sizer->Add( uri_text, 1 , wxALIGN_RIGHT | wxALL , 5 );
uri_sizer->Add( uri_label, 0 , wxALIGN_RIGHT |wxALL , 5 );
uri_sizer->Add( uri_text, 1 , wxALIGN_RIGHT | wxALL , 5 );
uri_sizer->Layout();
box_sizer->Add( uri_sizer, 1, wxEXPAND , 5);
/* Name Textbox */ /* Name Textbox */
wxStaticText *name_label = wxStaticText *name_label =
...@@ -162,12 +159,8 @@ wxPanel *ItemInfoDialog::InfoPanel( wxWindow* parent ) ...@@ -162,12 +159,8 @@ wxPanel *ItemInfoDialog::InfoPanel( wxWindow* parent )
wxU(p_item->input.psz_name), wxDefaultPosition, wxSize( 300, -1 ), wxU(p_item->input.psz_name), wxDefaultPosition, wxSize( 300, -1 ),
wxTE_PROCESS_ENTER ); wxTE_PROCESS_ENTER );
wxBoxSizer *name_sizer = new wxBoxSizer( wxHORIZONTAL ); sizer->Add( name_label, 0 , wxALIGN_LEFT |wxALL , 5 );
sizer->Add( name_text, 1 , wxALIGN_RIGHT | wxALL , 5 );
name_sizer->Add( name_label, 0 , wxALIGN_RIGHT |wxALL , 5 );
name_sizer->Add( name_text, 1 , wxALIGN_RIGHT | wxALL , 5 );
name_sizer->Layout();
box_sizer->Add( name_sizer, 1 , wxEXPAND, 5 );
/* Author Textbox */ /* Author Textbox */
wxStaticText *author_label = wxStaticText *author_label =
...@@ -180,11 +173,8 @@ wxPanel *ItemInfoDialog::InfoPanel( wxWindow* parent ) ...@@ -180,11 +173,8 @@ wxPanel *ItemInfoDialog::InfoPanel( wxWindow* parent )
wxDefaultPosition, wxSize( 300, -1 ), wxDefaultPosition, wxSize( 300, -1 ),
wxTE_PROCESS_ENTER); wxTE_PROCESS_ENTER);
wxBoxSizer *author_sizer = new wxBoxSizer( wxHORIZONTAL ); sizer->Add( author_label, 0 , wxALIGN_LEFT | wxALL , 5 );
author_sizer->Add( author_label, 0 , wxALIGN_RIGHT | wxALL , 5 ); sizer->Add( author_text, 1 , wxALIGN_RIGHT | wxALL , 5);
author_sizer->Add( author_text, 1 , wxALIGN_RIGHT | wxALL , 5);
author_sizer->Layout();
box_sizer->Add( author_sizer, 1, wxEXPAND, 5 );
/* Treeview */ /* Treeview */
info_tree = new wxTreeCtrl( info_panel, -1, wxDefaultPosition, info_tree = new wxTreeCtrl( info_panel, -1, wxDefaultPosition,
...@@ -192,6 +182,8 @@ wxPanel *ItemInfoDialog::InfoPanel( wxWindow* parent ) ...@@ -192,6 +182,8 @@ wxPanel *ItemInfoDialog::InfoPanel( wxWindow* parent )
wxSUNKEN_BORDER |wxTR_HAS_BUTTONS | wxSUNKEN_BORDER |wxTR_HAS_BUTTONS |
wxTR_HIDE_ROOT ); wxTR_HIDE_ROOT );
sizer->Layout();
box_sizer->Add( sizer, 0, wxEXPAND, 5 );
box_sizer->Add( info_tree, 0, wxEXPAND, 5 ); box_sizer->Add( info_tree, 0, wxEXPAND, 5 );
info_sizer->Add( box_sizer, 1, wxBOTTOM, 5 ); info_sizer->Add( box_sizer, 1, wxBOTTOM, 5 );
......
This diff is collapsed.
...@@ -573,6 +573,7 @@ public: ...@@ -573,6 +573,7 @@ public:
virtual ~WizardDialog(); virtual ~WizardDialog();
void SetTranscode( char *vcodec, int vb, char *acodec,int ab); void SetTranscode( char *vcodec, int vb, char *acodec,int ab);
void SetMrl( const char *mrl ); void SetMrl( const char *mrl );
void SetPartial( int, int );
void SetStream( char *method, char *address ); void SetStream( char *method, char *address );
void SetTranscodeOut( char *address ); void SetTranscodeOut( char *address );
void SetAction( int i_action ); void SetAction( int i_action );
...@@ -583,6 +584,7 @@ public: ...@@ -583,6 +584,7 @@ public:
private: private:
int vb,ab; int vb,ab;
int i_from, i_to;
char *vcodec,*acodec,*method,*address,*mrl,*mux; char *vcodec,*acodec,*method,*address,*mrl,*mux;
DECLARE_EVENT_TABLE(); DECLARE_EVENT_TABLE();
......
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