NIREP
|
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 #pragma once 00013 #ifndef _LOADDISPLAY_H_ 00014 #define _LOADDISPLAY_H_ 00015 00016 00021 #include "wx/frame.h" 00022 #include "wx/filepicker.h" 00023 00024 00025 00029 class Interface; 00030 00034 #define ID_LOADDISPLAY 10012 00035 #define ID_PANEL 10013 00036 #define ID_WIDGET_FILE_PICKER 10019 00037 #define ID_CHECKBOX1 10038 00038 #define ID_CHOICE 10039 00039 #define ID_EVALUTOR_FILE_PICKER 10028 00040 #define ID_CHECKBOX 10035 00041 #define ID_NEW_EVALUATOR_LIST 10036 00042 #define ID_OK 10016 00043 #define ID_CANCEL 10014 00044 #define SYMBOL_LOADDISPLAY_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX 00045 #define SYMBOL_LOADDISPLAY_TITLE _("LoadDisplay") 00046 #define SYMBOL_LOADDISPLAY_IDNAME ID_LOADDISPLAY 00047 #define SYMBOL_LOADDISPLAY_SIZE wxSize(400, 300) 00048 #define SYMBOL_LOADDISPLAY_POSITION wxDefaultPosition 00049 00050 00051 /* +---------+ 00052 | Classes | 00053 +---------+ */ 00066 00067 class LoadDisplay: public wxFrame 00068 { 00069 DECLARE_CLASS( LoadDisplay ) 00070 DECLARE_EVENT_TABLE() 00071 00072 public: 00076 LoadDisplay(); 00077 LoadDisplay( wxWindow* parent, wxWindowID id = SYMBOL_LOADDISPLAY_IDNAME, const wxString& caption = SYMBOL_LOADDISPLAY_TITLE, const wxPoint& pos = SYMBOL_LOADDISPLAY_POSITION, const wxSize& size = SYMBOL_LOADDISPLAY_SIZE, long style = SYMBOL_LOADDISPLAY_STYLE ); 00078 00081 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_LOADDISPLAY_IDNAME, const wxString& caption = SYMBOL_LOADDISPLAY_TITLE, const wxPoint& pos = SYMBOL_LOADDISPLAY_POSITION, const wxSize& size = SYMBOL_LOADDISPLAY_SIZE, long style = SYMBOL_LOADDISPLAY_STYLE ); 00082 00086 ~LoadDisplay(); 00087 00091 void Init(); 00092 00096 void CreateControls(); 00097 00101 void OnWidgetFilePickerChanged( wxFileDirPickerEvent& event ); 00102 00106 void OnEvalutorFilePickerChanged( wxFileDirPickerEvent& event ); 00107 00111 void OnOkClick( wxCommandEvent& event ); 00112 00116 void OnCancelClick( wxCommandEvent& event ); 00117 00121 wxBitmap GetBitmapResource( const wxString& name ); 00122 00126 wxIcon GetIconResource( const wxString& name ); 00127 00131 static bool ShowToolTips(); 00132 00135 void SetInterface(Interface *I){NIREPInterface = I;}; 00136 00137 private: 00138 00139 00140 Interface *NIREPInterface; 00141 00142 }; 00143 00144 #endif 00145 // _LOADDISPLAY_H_