00001 /*************************************************************** 00002 * Name: ChannelPanelImpl.h 00003 * Purpose: Defines for ChannelPanelImpl class 00004 * Author: NDA (nicola.dellamico@ndatech.it) 00005 * Created: 2008-07-29 00006 * Copyright: CAEN S.p.A (www.caen.it) 00007 * License: 00008 **************************************************************/ 00009 #ifndef _CHANNELPANELIMPL_H 00010 #define _CHANNELPANELIMPL_H 00011 00012 #include "GUIFrame.h" 00013 #include "common.h" 00014 00015 class N1568DemoFrame; 00016 00017 class ChannelPanelImpl : public ChannelPanel { 00018 public: 00019 ChannelPanelImpl( wxWindow* parent, N1568DemoFrame* p_main_frame); 00020 virtual ~ChannelPanelImpl(); 00021 void ShowLabels( bool show); 00022 virtual void SetChannelId( int channel_id); 00023 void EnableCommunication( bool enable); 00024 bool ReadFromBoard( bool force_update, bool set_muxout); 00025 protected: 00026 int m_channel_id; 00027 N1568_data *m_p_board_data; 00028 void UpdateControls( N1568_channel_status& channel_status, bool force); 00029 void OnCFThChanged( wxSpinEvent& event ); 00030 void OnCFWdtChanged( wxSpinEvent& event ); 00031 void OnPZChanged( wxSpinEvent& event ); 00032 void OnFGChanged( wxSpinEvent& event ); 00033 void OnSHChanged( wxSpinEvent& event ); 00034 void OnCGChanged( wxSpinEvent& event ); 00035 void OnCGTChanged( wxSpinEvent& event ); 00036 void OnInChanged( wxCommandEvent& event ); 00037 void OnSTRChanged( wxCommandEvent& event ); 00038 virtual void OnWriteClicked( wxCommandEvent& event ); 00039 virtual void OnReadClicked( wxCommandEvent& event ); 00040 00041 bool m_CFTh_changed; 00042 bool m_CFWdt_changed; 00043 bool m_PZ_changed; 00044 bool m_FG_changed; 00045 bool m_SH_changed; 00046 bool m_CG_changed; 00047 bool m_CGT_changed; 00048 bool m_In_changed; 00049 bool m_STR_changed; 00050 void ResetChangeFlags(); 00051 bool m_is_connect; 00052 void SetDirty( bool is_dirty); 00053 bool m_is_dirty; 00054 void AddToLogger( const wxString &msg, LOG_MESSAGE_TYPE type= LMT_INTERNAL); 00055 N1568DemoFrame* m_p_main_frame; 00056 private: 00057 }; 00058 00059 #endif // _CHANNELPANELIMPL_H
1.5.6