X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12d9e30820444b48882ab9e29139611b99a84495..dcb39c53303d1ec6884f7bcd7bc9dc101e560e62:/contrib/utils/wxrcedit/pe_basic.h diff --git a/contrib/utils/wxrcedit/pe_basic.h b/contrib/utils/wxrcedit/pe_basic.h index f646125c1e..b6e82fc4a5 100644 --- a/contrib/utils/wxrcedit/pe_basic.h +++ b/contrib/utils/wxrcedit/pe_basic.h @@ -7,7 +7,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "pe_basic.h" #endif @@ -25,12 +25,12 @@ class PropEditCtrlNull : public PropEditCtrl public: PropEditCtrlNull(PropertiesFrame *propFrame) : PropEditCtrl(propFrame) {} - - virtual void BeginEdit(const wxRect& rect, wxTreeItemId ti) {} + + virtual void BeginEdit(const wxRect& WXUNUSED(rect), wxTreeItemId WXUNUSED(ti)) {} virtual void EndEdit() {} - + virtual wxWindow* CreateEditCtrl() {return NULL;} - + virtual void ReadValue() {} virtual void WriteValue() {} }; @@ -42,12 +42,12 @@ class PropEditCtrlTxt : public PropEditCtrl public: PropEditCtrlTxt(PropertiesFrame *propFrame) : PropEditCtrl(propFrame) {} - + virtual wxWindow* CreateEditCtrl(); - + virtual void ReadValue(); virtual void WriteValue(); - + protected: wxTextCtrl *m_TextCtrl; @@ -63,7 +63,7 @@ class PropEditCtrlInt : public PropEditCtrlTxt public: PropEditCtrlInt(PropertiesFrame *propFrame) : PropEditCtrlTxt(propFrame) {} - + virtual wxWindow* CreateEditCtrl(); }; @@ -74,13 +74,13 @@ class PropEditCtrlBool : public PropEditCtrl public: PropEditCtrlBool(PropertiesFrame *propFrame) : PropEditCtrl(propFrame) {} - + virtual wxWindow* CreateEditCtrl(); - + virtual void ReadValue(); virtual void WriteValue(); virtual wxString GetValueAsText(wxTreeItemId ti); - + protected: wxChoice *m_Choice; @@ -94,9 +94,9 @@ class PropEditCtrlCoord : public PropEditCtrlTxt public: PropEditCtrlCoord(PropertiesFrame *propFrame); ~PropEditCtrlCoord(); - + virtual wxTreeItemId CreateTreeEntry(wxTreeItemId parent, const PropertyInfo& pinfo); - + private: PropEditCtrl *m_CtrlX, *m_CtrlY, *m_CtrlDlg; }; @@ -107,25 +107,25 @@ class PropEditCtrlDim : public PropEditCtrlTxt public: PropEditCtrlDim(PropertiesFrame *propFrame); ~PropEditCtrlDim(); - + virtual wxTreeItemId CreateTreeEntry(wxTreeItemId parent, const PropertyInfo& pinfo); - + private: PropEditCtrl *m_CtrlX, *m_CtrlDlg; }; -class PropEditCtrlXMLID : public PropEditCtrlTxt +class PropEditCtrlXRCID : public PropEditCtrlTxt { public: - PropEditCtrlXMLID(PropertiesFrame *propFrame) + PropEditCtrlXRCID(PropertiesFrame *propFrame) : PropEditCtrlTxt(propFrame) {} - + virtual void ReadValue(); virtual void WriteValue(); virtual void Clear(); - virtual bool HasDetails() { return TRUE; } + virtual bool HasDetails() { return true; } virtual void OnDetails(); virtual wxString GetValueAsText(wxTreeItemId ti); virtual bool IsPresent(const PropertyInfo& pinfo);