NIREP
|
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 #ifndef _PANELFORM_H_ 00014 #define _PANELFORM_H_ 00015 00016 00022 #include "wx/fontpicker.h" 00023 #include <vector> 00024 00025 00026 00027 /* +--------+ 00028 | Macros | 00029 +--------+ */ 00030 00031 00032 #define ID_TEST 10000 00033 #define ID_CHOICE 10002 00034 #define ID_ORIENTATION 10003 00035 #define ID_CHOICE2 10004 00036 #define ID_CHOICE3 10005 00037 #define ID_CHOICE4 10006 00038 #define ID_CHECKLISTBOX 10008 00039 #define ID_CHOICE5 10007 00040 #define ID_OK 10001 00041 #define ID_CANCEL 10010 00042 #define ID_HELP 10011 00043 #define ID_DELETE 10012 00044 #define ID_TEXTCTRL12 10013 00045 #define ID_FONTCTRL 10014 00046 #define SYMBOL_PANELFORM_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 00047 #define SYMBOL_PANELFORM_TITLE _("Widget Properties") 00048 #define SYMBOL_PANELFORM_IDNAME ID_TEST 00049 #define SYMBOL_PANELFORM_SIZE wxSize(400, 300) 00050 #define SYMBOL_PANELFORM_POSITION wxDefaultPosition 00051 00052 /* +---------+ 00053 | Classes | 00054 +---------+ */ 00055 00056 class Panel; 00057 00073 00074 class PanelForm: public wxDialog 00075 { 00076 DECLARE_DYNAMIC_CLASS( PanelForm ) 00077 DECLARE_EVENT_TABLE() 00078 00079 public: 00083 PanelForm(); 00084 00087 PanelForm( wxWindow* parent, wxWindowID id = SYMBOL_PANELFORM_IDNAME, const wxString& caption = SYMBOL_PANELFORM_TITLE, const wxPoint& pos = SYMBOL_PANELFORM_POSITION, const wxSize& size = SYMBOL_PANELFORM_SIZE, long style = SYMBOL_PANELFORM_STYLE ); 00088 00092 bool Create( wxWindow* parent, wxWindowID id = SYMBOL_PANELFORM_IDNAME, const wxString& caption = SYMBOL_PANELFORM_TITLE, const wxPoint& pos = SYMBOL_PANELFORM_POSITION, const wxSize& size = SYMBOL_PANELFORM_SIZE, long style = SYMBOL_PANELFORM_STYLE ); 00093 00097 ~PanelForm(); 00098 00102 void Init(); 00103 00107 void CreateControls(); 00108 00112 void OnOkClick( wxCommandEvent& event ); 00113 00117 void OnCancelClick( wxCommandEvent& event ); 00118 00122 void OnHelpClick( wxCommandEvent& event ); 00123 00127 void OnDeleteClick( wxCommandEvent& event ); 00128 00132 wxBitmap GetBitmapResource( const wxString& name ); 00133 00137 wxIcon GetIconResource( const wxString& name ); 00138 00142 static bool ShowToolTips(); 00143 00146 void SetPanel(Panel *p){panel =p;}; 00147 00150 void EnableOrDisableChoiceTwo( wxCommandEvent& event ); 00151 00152 void OnChoiceSelected( wxCommandEvent& event ); 00153 00154 void OnChoiceTwoSelected( wxCommandEvent& event ); 00155 00156 private: 00157 00158 /* +--------------------+ 00159 | Private Parameters | 00160 +--------------------+ */ 00161 Panel *panel; 00162 wxChoice* view; 00163 wxArrayString viewList; 00164 wxChoice* colorMapChoices; 00165 wxChoice* ImageOneChoice; 00166 wxChoice* ImageTwoChoice; 00167 wxCheckListBox* LinkWidgetsCheckList; 00168 wxChoice* OrientationChoice; 00169 00170 std::vector<std::string> keys; 00171 std::vector<std::string> values; 00172 std::string PanelName; 00173 wxFontPickerCtrl* TitleFontPicker; 00174 wxTextCtrl* PanelTitle; 00175 wxTextCtrl* minSize; 00176 wxTextCtrl* maxSize; 00177 00178 }; 00179 00180 #endif 00181 // _PANELFORM_H_