From 0376cc529b3f4fa49daffd45ddad141c2c2b6fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 10 Oct 2007 10:29:21 +0000 Subject: [PATCH] compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dataview/dataview.cpp | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index c9fc9840d4..da20828f9a 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -500,8 +500,6 @@ public: void OnDeleteList(wxCommandEvent& event); void OnValueChanged( wxDataViewEvent &event ); - void OnItemAdded( wxDataViewEvent &event ); - void OnItemDeleted( wxDataViewEvent &event ); void OnActivated( wxDataViewEvent &event ); void OnExpanding( wxDataViewEvent &event ); @@ -591,10 +589,7 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame) EVT_BUTTON( ID_DELETE_LIST, MyFrame::OnDeleteList ) EVT_BUTTON( ID_GOTO, MyFrame::OnGoto) - EVT_DATAVIEW_MODEL_ITEM_ADDED( ID_MUSIC_CTRL, MyFrame::OnItemAdded ) - EVT_DATAVIEW_MODEL_ITEM_DELETED( ID_MUSIC_CTRL, MyFrame::OnItemDeleted ) - EVT_DATAVIEW_MODEL_VALUE_CHANGED( ID_MUSIC_CTRL, MyFrame::OnValueChanged ) - EVT_DATAVIEW_MODEL_ITEM_CHANGED( ID_MUSIC_CTRL, MyFrame::OnValueChanged ) + EVT_DATAVIEW_ITEM_VALUE_CHANGED( ID_MUSIC_CTRL, MyFrame::OnValueChanged ) EVT_DATAVIEW_ITEM_ACTIVATED(ID_MUSIC_CTRL, MyFrame::OnActivated ) EVT_DATAVIEW_ITEM_EXPANDING(ID_MUSIC_CTRL, MyFrame::OnExpanding) @@ -736,28 +731,12 @@ void MyFrame::OnDeleteList( wxCommandEvent& WXUNUSED(event) ) m_list_model->DeleteItem( items[i] ); } -void MyFrame::OnItemAdded( wxDataViewEvent &event ) -{ - if (!m_log) - return; - - wxLogMessage("wxEVT_COMMAND_DATAVIEW_MODEL_ITEM_ADDED, Item Id: %d",event.GetItem().GetID()); -} - -void MyFrame::OnItemDeleted( wxDataViewEvent &event ) -{ - if (!m_log) - return; - - wxLogMessage( "EVT_DATAVIEW_MODEL_ITEM_DELETED, Item Id: %d", event.GetItem().GetID() ); -} - void MyFrame::OnValueChanged( wxDataViewEvent &event ) { if (!m_log) return; - wxLogMessage( "EVT_DATAVIEW_MODEL_VALUE_CHANGED, Item Id: %d; Column: %d", event.GetItem().GetID(), event.GetColumn() ); + wxLogMessage( "EVT_DATAVIEW_ITEM_VALUE_CHANGED, Item Id: %d; Column: %d", event.GetItem().GetID(), event.GetColumn() ); } void MyFrame::OnActivated( wxDataViewEvent &event )