NIREP

C:/Programs/source/NIREP/DisplayManager/NIREPEditProjectFile.h

00001 
00002 // Name:        NIREPEditProjectFile.h
00003 // Purpose:     Allows a user to edit the variables in the display description.
00004 //              Once a user is done with editing the variables they can click
00005 //              on reload, which will reload the whole entire display description
00006 //              with the new variables.
00007 // Author:      Jefffrey Hawley
00008 // Modified by: 
00009 // Created:     31/03/2010 14:46:42
00010 // RCS-ID:      
00011 // Copyright:   
00012 // Licence:     
00014 
00015 #ifndef _NIREPEDITPROJECTFILE_H_
00016 #define _NIREPEDITPROJECTFILE_H_
00017 
00018 
00023 
00024 #include "wx/frame.h"
00026 #include "DisplayDescription.h"
00027 
00031 class NIREPDisplay;
00034 
00039 
00040 #define ID_NIREPEDITPROJECTFILE 10022
00041 #define ID_PANEL4 10023
00042 #define ID_SCROLLEDWINDOW 10028
00043 #define ID_TEXTCTRL2 10024
00044 #define ID_TEXTCTRL3 10025
00045 #define ID_RELOAD 10026
00046 #define ID_CANCEL 10027
00047 #define SYMBOL_NIREPEDITPROJECTFILE_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
00048 #define SYMBOL_NIREPEDITPROJECTFILE_TITLE _("Edit Display Variables")
00049 #define SYMBOL_NIREPEDITPROJECTFILE_IDNAME ID_NIREPEDITPROJECTFILE
00050 #define SYMBOL_NIREPEDITPROJECTFILE_SIZE wxSize(400, 300)
00051 #define SYMBOL_NIREPEDITPROJECTFILE_POSITION wxDefaultPosition
00052 
00053 
00054 
00059 class NIREPEditProjectFile: public wxFrame
00060 {    
00061     DECLARE_CLASS( NIREPEditProjectFile )
00062     DECLARE_EVENT_TABLE()
00063 
00064 public:
00066     NIREPEditProjectFile();
00067     NIREPEditProjectFile( wxWindow* parent,DisplayDescription *dd, wxWindowID id = SYMBOL_NIREPEDITPROJECTFILE_IDNAME, const wxString& caption = SYMBOL_NIREPEDITPROJECTFILE_TITLE, const wxPoint& pos = SYMBOL_NIREPEDITPROJECTFILE_POSITION, const wxSize& size = SYMBOL_NIREPEDITPROJECTFILE_SIZE, long style = SYMBOL_NIREPEDITPROJECTFILE_STYLE );
00068 
00069     bool Create( wxWindow* parent, wxWindowID id = SYMBOL_NIREPEDITPROJECTFILE_IDNAME, const wxString& caption = SYMBOL_NIREPEDITPROJECTFILE_TITLE, const wxPoint& pos = SYMBOL_NIREPEDITPROJECTFILE_POSITION, const wxSize& size = SYMBOL_NIREPEDITPROJECTFILE_SIZE, long style = SYMBOL_NIREPEDITPROJECTFILE_STYLE );
00070 
00072     ~NIREPEditProjectFile();
00073 
00075     void Init();
00076 
00078     void CreateControls();
00079 
00081 
00083     void OnReloadClick( wxCommandEvent& event );
00084 
00086     void OnCancelClick( wxCommandEvent& event );
00087 
00089 
00091 
00093     wxBitmap GetBitmapResource( const wxString& name );
00094 
00096     wxIcon GetIconResource( const wxString& name );
00098 
00100     static bool ShowToolTips();
00101 
00102 private:
00103   DisplayDescription *displayDescription;
00104   std::map<std::string,wxTextCtrl*> stringToTextCtrl;
00105   NIREPDisplay *PARENT;
00106 };
00107 
00108 #endif
00109     // _NIREPEDITPROJECTFILE_H_
 All Classes Functions Variables Typedefs Enumerations Enumerator