NIREP

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

00001 
00002 // Name:        CreateDisplay.h
00003 // Purpose:     
00004 // Author:      
00005 // Modified by: 
00006 // Created:     29/07/2010 10:57:52
00007 // RCS-ID:      
00008 // Copyright:   
00009 // Licence:     
00011 
00012 #ifndef _CREATEDISPLAY_H_
00013 #define _CREATEDISPLAY_H_
00014 
00015 
00020 #include "wx/frame.h"
00021 #include "wx/statline.h"
00022 #include "wx/grid.h"
00023 #include "wx/generic/gridctrl.h"
00024 
00025 #include "EzGrid.h"
00026 #include "GridCellChoiceRenderer.h"
00027 #include "FastComboEditor.h"
00028 
00029 
00030 
00041 #define SYMBOL_CREATEDISPLAY_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
00042 #define SYMBOL_CREATEDISPLAY_TITLE _("CreateDisplay")
00043 #define SYMBOL_CREATEDISPLAY_IDNAME ID_CREATEDISPLAY
00044 #define SYMBOL_CREATEDISPLAY_SIZE wxSize(400, 950)
00045 #define SYMBOL_CREATEDISPLAY_POSITION wxDefaultPosition
00046 
00047 
00052 class CreateDisplay: public wxFrame
00053 {    
00054     DECLARE_CLASS( CreateDisplay )
00055     DECLARE_EVENT_TABLE()
00056 
00057 public:
00059     CreateDisplay();
00060     CreateDisplay( wxWindow* parent, wxWindowID id = SYMBOL_CREATEDISPLAY_IDNAME, const wxString& caption = SYMBOL_CREATEDISPLAY_TITLE, const wxPoint& pos = SYMBOL_CREATEDISPLAY_POSITION, const wxSize& size = SYMBOL_CREATEDISPLAY_SIZE, long style = SYMBOL_CREATEDISPLAY_STYLE );
00061 
00062     bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CREATEDISPLAY_IDNAME, const wxString& caption = SYMBOL_CREATEDISPLAY_TITLE, const wxPoint& pos = SYMBOL_CREATEDISPLAY_POSITION, const wxSize& size = SYMBOL_CREATEDISPLAY_SIZE, long style = SYMBOL_CREATEDISPLAY_STYLE );
00063 
00065     ~CreateDisplay();
00066 
00068     void Init();
00069 
00071     void CreateControls();
00072 
00074     void OnAddRdlClick( wxCommandEvent& event );
00075 
00077     void OnRemoveRdlClick( wxCommandEvent& event );
00078 
00080     void OnButton2Click( wxCommandEvent& event );
00081 
00083     void OnRowTextUpdated( wxCommandEvent& event );
00084 
00086     void OnColumnTextUpdated( wxCommandEvent& event );
00087 
00089     void OnCreateClick( wxCommandEvent& event );
00090 
00092     void OnCancelClick( wxCommandEvent& event );
00093 
00094     void OnUpdateEvaluatorGrid( wxGridEvent & event );
00095 
00096 
00098     wxBitmap GetBitmapResource( const wxString& name );
00099 
00101     wxIcon GetIconResource( const wxString& name );
00102 
00104     static bool ShowToolTips();
00105 
00106 private:
00107   EzGrid* m_evaluatorCommands;
00108   EzGrid* m_widgetCommands;
00109   wxGrid* m_widgetAttributes;
00110   wxListBox* m_RDLList;
00111   wxGrid* m_variable;
00112 
00113   enum{
00114     ID_CREATEDISPLAY= 10077,
00115     ID_SCROLLEDWINDOW1,
00116     ID_RDL_LIST,
00117     ID_ADD_RDL,
00118     ID_REMOVE_RDL,
00119     ID_VARIABLE_GRID,
00120     ID_EVALUATOR_COMMANDS,
00121     ID_BUTTON2,
00122     ID_ROW,
00123     ID_COLUMN,
00124     ID_WIDGET_COMMANDS,
00125     ID_WIDGET_COMMANDS_LIST,
00126     ID_WIDGET_ATTRIBUTES,
00127     ID_WIDGET_ATTRIBUTES_LIST,
00128     ID_CREATE
00129   };
00130 };
00131 
00132 #endif
00133     // _CREATEDISPLAY_H_
 All Classes Functions Variables Typedefs Enumerations Enumerator