00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012
00013
00014 #ifndef _INFODIALOG_H_
00015 #define _INFODIALOG_H_
00016
00017 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
00018 #pragma interface "infodialog.h"
00019 #endif
00020
00025
00026
00027
00032
00033 class wxBoxSizer;
00035
00040
00041 #define ID_INFODIALOG 10040
00042 #define SYMBOL_INFODIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
00043 #define SYMBOL_INFODIALOG_TITLE _("CAEN Scope about")
00044 #define SYMBOL_INFODIALOG_IDNAME ID_INFODIALOG
00045 #define SYMBOL_INFODIALOG_SIZE wxDefaultSize
00046 #define SYMBOL_INFODIALOG_POSITION wxDefaultPosition
00047 #define ID_PANEL2 10043
00048 #define ID_PANEL1 10041
00049 #define ID_OK_BUTTON 10042
00050
00051 #define ID_HYPERLINK 11000
00052
00057 #ifndef wxCLOSE_BOX
00058 #define wxCLOSE_BOX 0x1000
00059 #endif
00060
00065 class InfoDialog: public wxDialog
00066 {
00067 DECLARE_DYNAMIC_CLASS( InfoDialog )
00068 DECLARE_EVENT_TABLE()
00069
00070 public:
00072 InfoDialog( );
00073 InfoDialog( wxWindow* parent, wxWindowID id = SYMBOL_INFODIALOG_IDNAME, const wxString& caption = SYMBOL_INFODIALOG_TITLE, const wxPoint& pos = SYMBOL_INFODIALOG_POSITION, const wxSize& size = SYMBOL_INFODIALOG_SIZE, long style = SYMBOL_INFODIALOG_STYLE );
00074
00076 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_INFODIALOG_IDNAME, const wxString& caption = SYMBOL_INFODIALOG_TITLE, const wxPoint& pos = SYMBOL_INFODIALOG_POSITION, const wxSize& size = SYMBOL_INFODIALOG_SIZE, long style = SYMBOL_INFODIALOG_STYLE );
00077
00079 void CreateControls();
00080
00082
00084 void OnOkButtonClick( wxCommandEvent& event );
00085
00087 void OnHyperlink(wxCommandEvent &event);
00088
00090
00092 wxBitmap GetBitmapResource( const wxString& name );
00093
00095 wxIcon GetIconResource( const wxString& name );
00097
00099 static bool ShowToolTips();
00100
00102 wxPanel* m_left_panel;
00103 wxBoxSizer* m_left_sizer;
00104 wxStaticText* m_caenvmetool_rev;
00106 };
00107
00108 #endif
00109