Commit c66b7a83 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/*: got rid of the close button in the fileinfo and playlist dialogs.
parent 1b50257c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* fileinfo.cpp : wxWindows plugin for vlc * fileinfo.cpp : wxWindows plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001 VideoLAN * Copyright (C) 2000-2001 VideoLAN
* $Id: fileinfo.cpp,v 1.18 2003/08/27 11:53:26 gbazin Exp $ * $Id: fileinfo.cpp,v 1.19 2003/09/21 18:07:51 gbazin Exp $
* *
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* *
...@@ -76,18 +76,10 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ): ...@@ -76,18 +76,10 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ):
fileinfo_root_label = wxT(""); fileinfo_root_label = wxT("");
/* Create the OK button */
wxButton *ok_button = new wxButton( panel, wxID_OK, wxU(_("Close")) );
ok_button->SetDefault();
/* Place everything in sizers */ /* Place everything in sizers */
wxBoxSizer *ok_button_sizer = new wxBoxSizer( wxHORIZONTAL );
ok_button_sizer->Add( ok_button, 0, wxALL, 5 );
ok_button_sizer->Layout();
wxBoxSizer *main_sizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer *main_sizer = new wxBoxSizer( wxVERTICAL );
wxBoxSizer *panel_sizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer *panel_sizer = new wxBoxSizer( wxVERTICAL );
panel_sizer->Add( fileinfo_tree, 1, wxEXPAND | wxALL, 5 ); panel_sizer->Add( fileinfo_tree, 1, wxEXPAND | wxALL, 5 );
panel_sizer->Add( ok_button_sizer, 0, wxALIGN_CENTRE );
panel_sizer->Layout(); panel_sizer->Layout();
panel->SetSizerAndFit( panel_sizer ); panel->SetSizerAndFit( panel_sizer );
main_sizer->Add( panel, 1, wxEXPAND, 0 ); main_sizer->Add( panel, 1, wxEXPAND, 0 );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* playlist.cpp : wxWindows plugin for vlc * playlist.cpp : wxWindows plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001 VideoLAN * Copyright (C) 2000-2001 VideoLAN
* $Id: playlist.cpp,v 1.19 2003/09/10 10:21:09 zorglub Exp $ * $Id: playlist.cpp,v 1.20 2003/09/21 18:07:51 gbazin Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* *
...@@ -88,7 +88,6 @@ BEGIN_EVENT_TABLE(Playlist, wxFrame) ...@@ -88,7 +88,6 @@ BEGIN_EVENT_TABLE(Playlist, wxFrame)
EVT_LIST_KEY_DOWN(ListView_Event, Playlist::OnKeyDown) EVT_LIST_KEY_DOWN(ListView_Event, Playlist::OnKeyDown)
/* Button events */ /* Button events */
EVT_BUTTON( Close_Event, Playlist::OnClose)
EVT_BUTTON( Search_Event, Playlist::OnSearch) EVT_BUTTON( Search_Event, Playlist::OnSearch)
EVT_BUTTON( Save_Event, Playlist::OnSave) EVT_BUTTON( Save_Event, Playlist::OnSave)
...@@ -155,11 +154,6 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ): ...@@ -155,11 +154,6 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
listview->SetColumnWidth( 0, 250 ); listview->SetColumnWidth( 0, 250 );
listview->SetColumnWidth( 1, 100 ); listview->SetColumnWidth( 1, 100 );
/* Create the Close button */
wxButton *close_button = new wxButton( playlist_panel, Close_Event,
wxU(_("Close")) );
close_button->SetDefault();
/* Create the Random checkbox */ /* Create the Random checkbox */
wxCheckBox *random_checkbox = wxCheckBox *random_checkbox =
new wxCheckBox( playlist_panel, Random_Event, wxU(_("Random")) ); new wxCheckBox( playlist_panel, Random_Event, wxU(_("Random")) );
...@@ -193,20 +187,11 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ): ...@@ -193,20 +187,11 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
wxEXPAND|wxALIGN_RIGHT|wxALL, 5); wxEXPAND|wxALIGN_RIGHT|wxALL, 5);
search_sizer->Layout(); search_sizer->Layout();
wxBoxSizer *close_button_sizer = new wxBoxSizer( wxHORIZONTAL );
close_button_sizer->Add( close_button, 0, wxALL, 5 );
/* close_button_sizer->Add( random_checkbox, 0,
wxEXPAND|wxALIGN_RIGHT|wxALL, 5);
close_button_sizer->Add( loop_checkbox, 0,
wxEXPAND|wxALIGN_RIGHT|wxALL, 5);*/
close_button_sizer->Layout();
wxBoxSizer *main_sizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer *main_sizer = new wxBoxSizer( wxVERTICAL );
wxBoxSizer *panel_sizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer *panel_sizer = new wxBoxSizer( wxVERTICAL );
panel_sizer->Add( listview, 1, wxEXPAND | wxALL, 5 ); panel_sizer->Add( listview, 1, wxEXPAND | wxALL, 5 );
panel_sizer->Add( search_sizer, 0 , wxALIGN_CENTRE); panel_sizer->Add( search_sizer, 0 , wxALIGN_CENTRE);
panel_sizer->Add( close_button_sizer, 0, wxALIGN_CENTRE );
panel_sizer->Layout(); panel_sizer->Layout();
playlist_panel->SetSizerAndFit( panel_sizer ); playlist_panel->SetSizerAndFit( panel_sizer );
......
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