virtual_common_ch_control.h

Go to the documentation of this file.
00001 
00002 // Name:        virtual_common_ch_control.h
00003 // Purpose:     
00004 // Author:      NDA
00005 // Modified by: 
00006 // Created:     11/01/2007 15:09:38
00007 // RCS-ID:      
00008 // Copyright:   CAEN S.p.A All rights reserved.
00009 // Licence:     
00011 
00012 // Generated by DialogBlocks (unregistered), 11/01/2007 15:09:38
00013 
00014 #ifndef _VIRTUAL_COMMON_CH_CONTROL_H_
00015 #define _VIRTUAL_COMMON_CH_CONTROL_H_
00016 
00017 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
00018 #pragma interface "virtual_common_ch_control.h"
00019 #endif
00020 
00025 
00026 #include "wx/tglbtn.h"
00028 
00029 #include "generic_board.h"
00030 #include "virtual_board_channel.h"
00031 #include "common_ch_control_base.h"
00032 
00037 
00038 class wxToggleButton;
00040 
00045 
00046 #define ID_VIRTUAL_COMMON_CH_DIALOG 11030
00047 #define SYMBOL_VIRTUALCOMMONCHCONTROL_STYLE 0
00048 #define SYMBOL_VIRTUALCOMMONCHCONTROL_TITLE _("VirtualCommonChControl")
00049 #define SYMBOL_VIRTUALCOMMONCHCONTROL_IDNAME ID_VIRTUAL_COMMON_CH_DIALOG
00050 #define SYMBOL_VIRTUALCOMMONCHCONTROL_SIZE wxDefaultSize
00051 #define SYMBOL_VIRTUALCOMMONCHCONTROL_POSITION wxDefaultPosition
00052 #define ID_VIRTUAL_ENABLE_TOGGLEBUTTON 10000
00053 #define ID_VIRTUAL_BUTTON 10083
00054 
00055 
00060 #ifndef wxCLOSE_BOX
00061 #define wxCLOSE_BOX 0x1000
00062 #endif
00063 
00068 class VirtualCommonChControl: public CommonChControlBase
00069 {    
00070     DECLARE_DYNAMIC_CLASS( VirtualCommonChControl )
00071     DECLARE_EVENT_TABLE()
00072 
00073 public:
00075     VirtualCommonChControl( );
00076         VirtualCommonChControl( wxWindow* parent, wxWindowID id = SYMBOL_VIRTUALCOMMONCHCONTROL_IDNAME, const wxPoint& pos = SYMBOL_VIRTUALCOMMONCHCONTROL_POSITION, const wxSize& size = SYMBOL_VIRTUALCOMMONCHCONTROL_SIZE, long style = SYMBOL_VIRTUALCOMMONCHCONTROL_STYLE );
00077 
00079     bool Create( wxWindow* parent, wxWindowID id = SYMBOL_VIRTUALCOMMONCHCONTROL_IDNAME, const wxPoint& pos = SYMBOL_VIRTUALCOMMONCHCONTROL_POSITION, const wxSize& size = SYMBOL_VIRTUALCOMMONCHCONTROL_SIZE, long style = SYMBOL_VIRTUALCOMMONCHCONTROL_STYLE );
00080 
00082     void CreateControls();
00083 
00085 
00087     void OnVirtualEnableTogglebuttonClick( wxCommandEvent& event );
00088 
00090     void OnVirtualButtonClick( wxCommandEvent& event );
00091 
00093 
00095 
00097     wxBitmap GetBitmapResource( const wxString& name );
00098 
00100     wxIcon GetIconResource( const wxString& name );
00102 
00104     static bool ShowToolTips();
00105 
00107     wxStaticBox* m_main_sizer_text;
00108     wxToggleButton* m_ch_enable_control;
00109     wxStaticText* m_medium_value_control;
00111 
00112         bool SetupBoard( GenericBoard* p_board, int ch_index, int ch_count);
00113         bool UpdateControls( );
00114         void SetMediumLabel( double value);
00115         void SetOverloadBackground( const wxColor& color);
00116 
00117 private: 
00118         // Generic Board pointer
00119         GenericBoard* m_p_board;
00120         VirtualBoardChannel* m_p_board_channel;
00121         int m_ch_index;
00122         int m_ch_count;
00123 };
00124 
00125 #endif
00126     // _VIRTUAL_COMMON_CH_CONTROL_H_

Generated on Mon Mar 19 17:14:08 2007 for CAENScope by  doxygen 1.4.6-NO