virtual_channel_def_dialog.h

Go to the documentation of this file.
00001 
00002 // Name:        virtual_channel_def_dialog.h
00003 // Purpose:     
00004 // Author:      NDA
00005 // Modified by: 
00006 // Created:     10/01/2007 12:50:38
00007 // RCS-ID:      
00008 // Copyright:   CAEN S.p.A All rights reserved.
00009 // Licence:     
00011 
00012 // Generated by DialogBlocks (unregistered), 10/01/2007 12:50:38
00013 
00014 #ifndef _VIRTUAL_CHANNEL_DEF_DIALOG_H_
00015 #define _VIRTUAL_CHANNEL_DEF_DIALOG_H_
00016 
00017 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
00018 #pragma interface "virtual_channel_def_dialog.h"
00019 #endif
00020 
00025 
00026 #include "wx/spinctrl.h"
00028 
00033 
00034 class wxBoxSizer;
00035 class wxSpinCtrl;
00037 
00038 class VirtualBoardChannel;
00039 class RpnHandler;
00044 
00045 #define ID_VIRTUAL_CHANNEL_DEF_DIALOG 10074
00046 #define SYMBOL_VIRTUALCHANNELDEFDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
00047 #define SYMBOL_VIRTUALCHANNELDEFDIALOG_TITLE _("Virtual channel definition")
00048 #define SYMBOL_VIRTUALCHANNELDEFDIALOG_IDNAME ID_VIRTUAL_CHANNEL_DEF_DIALOG
00049 #define SYMBOL_VIRTUALCHANNELDEFDIALOG_SIZE wxSize(550, 250)
00050 #define SYMBOL_VIRTUALCHANNELDEFDIALOG_POSITION wxDefaultPosition
00051 #define ID_VCH_DEF_LEFT_PANEL 11000
00052 #define ID_VCH_DEF_CHANNEL_CHOICE 10079
00053 #define ID_VCH_DEF_ADD_CHANNEL_BUTTON 10080
00054 #define ID_VCH_DEF_CONSTANT_SPINCTRL 10081
00055 #define ID_VCH_DEF_ADD_CONSTANT_BUTTON 10005
00056 #define ID_VCH_DEF_OPERATOR_CHOICE 10006
00057 #define ID_VCH_DEF_ADD_OPERATOR_BUTTON 10007
00058 #define ID_VCH_DEF_REMOVE_BUTTON 10004
00059 #define ID_VCH_DEF_DEFINTION_LISTBOX 10082
00060 #define ID_VCH_MOVE_UP_BUTTON 10000
00061 #define ID_VCH_MOVE_DW_BUTTON 10001
00062 #define ID_VCH_DEF_RIGHT_PANEL 11001
00063 #define ID_VCH_DEF_OK_BUTTON 10078
00064 #define ID_VCH_DEF_CANCEL_BUTTON 10002
00065 #define ID_VCH_DEF_TEST_BUTTON 10003
00066 
00067 
00072 #ifndef wxCLOSE_BOX
00073 #define wxCLOSE_BOX 0x1000
00074 #endif
00075 
00080 class VirtualChannelDefDialog: public wxDialog
00081 {    
00082     DECLARE_DYNAMIC_CLASS( VirtualChannelDefDialog )
00083     DECLARE_EVENT_TABLE()
00084 
00085 public:
00087     VirtualChannelDefDialog( );
00088     VirtualChannelDefDialog( VirtualBoardChannel* board_channel, wxWindow* parent, wxWindowID id = SYMBOL_VIRTUALCHANNELDEFDIALOG_IDNAME, const wxString& caption = SYMBOL_VIRTUALCHANNELDEFDIALOG_TITLE, const wxPoint& pos = SYMBOL_VIRTUALCHANNELDEFDIALOG_POSITION, const wxSize& size = SYMBOL_VIRTUALCHANNELDEFDIALOG_SIZE, long style = SYMBOL_VIRTUALCHANNELDEFDIALOG_STYLE );
00089 
00091     bool Create( wxWindow* parent, wxWindowID id = SYMBOL_VIRTUALCHANNELDEFDIALOG_IDNAME, const wxString& caption = SYMBOL_VIRTUALCHANNELDEFDIALOG_TITLE, const wxPoint& pos = SYMBOL_VIRTUALCHANNELDEFDIALOG_POSITION, const wxSize& size = SYMBOL_VIRTUALCHANNELDEFDIALOG_SIZE, long style = SYMBOL_VIRTUALCHANNELDEFDIALOG_STYLE );
00092 
00094     void CreateControls();
00095 
00097 
00099     void OnVchDefAddChannelButtonClick( wxCommandEvent& event );
00100 
00102     void OnVchDefAddConstantButtonClick( wxCommandEvent& event );
00103 
00105     void OnVchDefAddOperatorButtonClick( wxCommandEvent& event );
00106 
00108     void OnVchDefRemoveButtonClick( wxCommandEvent& event );
00109 
00111     void OnVchMoveUpButtonClick( wxCommandEvent& event );
00112 
00114     void OnVchMoveDwButtonClick( wxCommandEvent& event );
00115 
00117     void OnVchDefOkButtonClick( wxCommandEvent& event );
00118 
00120     void OnVchDefCancelButtonClick( wxCommandEvent& event );
00121 
00123     void OnVchDefTestButtonClick( wxCommandEvent& event );
00124 
00126 
00128 
00130     wxBitmap GetBitmapResource( const wxString& name );
00131 
00133     wxIcon GetIconResource( const wxString& name );
00135 
00137     static bool ShowToolTips();
00138 
00140     wxPanel* m_left_panel;
00141     wxBoxSizer* m_left_sizer;
00142     wxChoice* m_channel_ctrl;
00143     wxSpinCtrl* m_constant_ctrl;
00144     wxChoice* m_operator_ctrl;
00145     wxListBox* m_definition_ctrl;
00147 protected:
00148         VirtualBoardChannel* m_p_board_channel;
00149         wxString MakeExpressionDef( void);
00150 };
00151 
00152 #endif
00153     // _VIRTUAL_CHANNEL_DEF_DIALOG_H_

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