* playlist.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: messages.cpp,v 1.7 2003/06/05 21:22:28 gbazin Exp $
+ * $Id: messages.cpp,v 1.8 2003/07/09 09:30:23 adn Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
*
/* Button events */
EVT_BUTTON(wxID_OK, Messages::OnClose)
EVT_CHECKBOX(Verbose_Event, Messages::OnVerbose)
+ EVT_BUTTON(wxID_CLEAR, Messages::OnClear)
/* Special events : we don't want to destroy the window when the user
* clicks on (X) */
wxButton *ok_button = new wxButton( messages_panel, wxID_OK, wxU(_("OK")));
ok_button->SetDefault();
+ /* Create the Clear button */
+ wxButton *clear_button = new wxButton( messages_panel, wxID_CLEAR, wxU(_("Clear")));
+ clear_button->SetDefault();
+
/* Create the Verbose checkbox */
wxCheckBox *verbose_checkbox =
new wxCheckBox( messages_panel, Verbose_Event, wxU(_("Verbose")) );
/* Place everything in sizers */
wxBoxSizer *buttons_sizer = new wxBoxSizer( wxHORIZONTAL );
buttons_sizer->Add( ok_button, 0, wxEXPAND |wxALIGN_LEFT| wxALL, 5 );
+ buttons_sizer->Add( clear_button, 0, wxEXPAND |wxALIGN_LEFT| wxALL, 5 );
buttons_sizer->Add( new wxPanel( this, -1 ), 1, wxALL, 5 );
buttons_sizer->Add( verbose_checkbox, 0, wxEXPAND |wxALIGN_RIGHT | wxALL, 5 );
buttons_sizer->Layout();
Hide();
}
+void Messages::OnClear( wxCommandEvent& WXUNUSED(event) )
+{
+ (*textctrl).Clear();
+}
+
void Messages::OnVerbose( wxCommandEvent& event )
{
b_verbose = event.IsChecked();
* wxwindows.h: private wxWindows interface description
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: wxwindows.h,v 1.38 2003/07/06 16:13:11 gbazin Exp $
+ * $Id: wxwindows.h,v 1.39 2003/07/09 09:30:23 adn Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
/* Event handlers (these functions should _not_ be virtual) */
void OnClose( wxCommandEvent& event );
void OnVerbose( wxCommandEvent& event );
+ void OnClear( wxCommandEvent& event );
DECLARE_EVENT_TABLE();