X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8105809ef8f7cb0d1a9933f3f790b7b446c7cfa..e0aeebed0a3003f455e2bd7e962143faa1dde4c8:/utils/configtool/src/custompropertydialog.h?ds=sidebyside diff --git a/utils/configtool/src/custompropertydialog.h b/utils/configtool/src/custompropertydialog.h index 28488de734..fdde07a57d 100644 --- a/utils/configtool/src/custompropertydialog.h +++ b/utils/configtool/src/custompropertydialog.h @@ -12,7 +12,7 @@ #ifndef _CUSTOMPROPERTYDIALOG_H_ #define _CUSTOMPROPERTYDIALOG_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "custompropertydialog.cpp" #endif @@ -36,13 +36,9 @@ ////@begin control identifiers #define ID_CUSTOMPROPERTYDIALOG 10000 -#define ID_CUSTOMPROPERTYNAME 10003 -#define ID_CUSTOMPROPERTYTYPE 10002 -#define ID_CUSTOMPROPERTYEDITORTYPE 10008 #define ID_PROPERTY_CHOICES 10001 #define ID_PROPERTY_CHOICE_ADD 10005 #define ID_PROPERTY_CHOICE_REMOVE 10006 -#define ID_CUSTOMPROPERTYDESCRIPTION 10004 ////@end control identifiers /*! @@ -53,7 +49,7 @@ class ctCustomPropertyDialog: public wxDialog { public: /// Constructor - ctCustomPropertyDialog( wxWindow* parent, wxWindowID id = -1, const wxString& caption = _("Edit Custom Property"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU ); + ctCustomPropertyDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = _("Edit Custom Property")); /// Creates the controls and sizers void CreateControls(); @@ -102,11 +98,19 @@ public: DECLARE_CLASS( ctCustomPropertyDialog ) DECLARE_EVENT_TABLE() - wxString m_name; - wxString m_type; - wxString m_description; - wxString m_editorType; +protected: + wxString m_name; + wxString m_type; + wxString m_description; + wxString m_editorType; wxArrayString m_choices; + + // Dialog controls + wxTextCtrl* m_customPropertyName; + wxTextCtrl* m_customPropertyDescription; + wxChoice* m_customPrototype; + wxChoice* m_customPropertyEditorType; + wxListBox* m_propertyChoices; }; #endif