00001 /*************************************************************** 00002 * Name: AllChannelPanelImpl.cpp 00003 * Purpose: Code for AllChannelPanelImpl class 00004 * Author: NDA (nicola.dellamico@ndatech.it) 00005 * Created: 2008-09-16 00006 * Copyright: CAEN S.p.A (www.caen.it) 00007 * License: 00008 **************************************************************/ 00009 #ifdef WX_PRECOMP 00010 #include "wx_pch.h" 00011 #endif 00012 #include "AllChannelPanelImpl.h" 00013 #include "N1568DemoMain.h" 00014 00015 AllChannelPanelImpl::AllChannelPanelImpl( wxWindow* parent, N1568DemoFrame* p_main_frame) 00016 : ChannelPanelImpl( parent, p_main_frame) { 00017 } 00018 00019 AllChannelPanelImpl::~AllChannelPanelImpl() { 00020 } 00021 00022 void AllChannelPanelImpl::OnWriteClicked( wxCommandEvent& event ) { 00023 ChannelPanelImpl::OnWriteClicked( event ); 00024 // Do export to other channels 00025 this->m_p_main_frame->DoExport( false); 00026 } 00027 void AllChannelPanelImpl::OnReadClicked( wxCommandEvent& /*event*/ ) { 00028 // Do refresh other channels 00029 this->m_p_main_frame->RefreshChannels( ); 00030 } 00031 void AllChannelPanelImpl::SetChannelId( int channel_id) { 00032 this->m_channel_id= channel_id; 00033 // Setup label 00034 wxString text( _("All ")); 00035 this->m_channel_staticText->SetLabel( text); 00036 } 00037
1.5.6