X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a62da4c56f4bbfcd42ba85ba2a7b0dc6c5bc2af9..d3d0b8dba702091fb19c83ae0ad9844a9bc4bf47:/contrib/utils/wxrcedit/pe_adv.h diff --git a/contrib/utils/wxrcedit/pe_adv.h b/contrib/utils/wxrcedit/pe_adv.h index f99c1b726e..6115554d16 100644 --- a/contrib/utils/wxrcedit/pe_adv.h +++ b/contrib/utils/wxrcedit/pe_adv.h @@ -7,7 +7,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "pe_adv.h" #endif @@ -25,7 +25,7 @@ class PropEditCtrlFont : public PropEditCtrlTxt public: PropEditCtrlFont(PropertiesFrame *propFrame) : PropEditCtrlTxt(propFrame) {} - + virtual wxWindow* CreateEditCtrl(); virtual wxTreeItemId CreateTreeEntry(wxTreeItemId parent, const PropertyInfo& pinfo); }; @@ -37,12 +37,12 @@ class PropEditCtrlChoice : public PropEditCtrl public: PropEditCtrlChoice(PropertiesFrame *propFrame) : PropEditCtrl(propFrame) {} - + virtual wxWindow* CreateEditCtrl(); - + virtual void ReadValue(); virtual void WriteValue(); - + protected: wxChoice *m_Choice; @@ -57,7 +57,7 @@ class PropEditCtrlColor : public PropEditCtrlTxt PropEditCtrlColor(PropertiesFrame *propFrame) : PropEditCtrlTxt(propFrame) {} - virtual bool HasDetails() { return TRUE; } + virtual bool HasDetails() { return true; } virtual void OnDetails(); }; @@ -70,12 +70,32 @@ class PropEditCtrlFlags : public PropEditCtrlTxt PropEditCtrlFlags(PropertiesFrame *propFrame) : PropEditCtrlTxt(propFrame) {} - virtual bool HasDetails() { return TRUE; } + virtual bool HasDetails() { return true; } virtual void OnDetails(); }; +class PropEditCtrlFile : public PropEditCtrlTxt +{ + public: + PropEditCtrlFile(PropertiesFrame *propFrame) + : PropEditCtrlTxt(propFrame) {} + + virtual bool HasDetails() { return true; } + virtual void OnDetails(); + + virtual wxString GetFileTypes(); +}; + + +class PropEditCtrlImageFile : public PropEditCtrlFile +{ + public: + PropEditCtrlImageFile(PropertiesFrame *propFrame) + : PropEditCtrlFile(propFrame) {} + virtual wxString GetFileTypes(); +}; #endif