X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fconfig_dialog.h;h=9924909273a0b62c84f662adebb3f1fc0fd5f592;hb=06537940d7ae9fc3d9b6cce6cb8be0a59debf917;hp=f47408a4ff740a97878da93a33c7fda6e6baeee4;hpb=94aadbd62c259a73d7511522dd167d519c68c5f9;p=dcpomatic.git diff --git a/src/wx/config_dialog.h b/src/wx/config_dialog.h index f47408a4f..992490927 100644 --- a/src/wx/config_dialog.h +++ b/src/wx/config_dialog.h @@ -32,16 +32,18 @@ #include "lib/util.h" #include "lib/cross.h" #include "lib/exceptions.h" +#include "lib/warnings.h" #include #include #include +DCPOMATIC_DISABLE_WARNINGS #include #include #include #include +DCPOMATIC_ENABLE_WARNINGS #include #include -#include #include class AudioMappingView; @@ -82,7 +84,7 @@ public: #ifdef DCPOMATIC_OSX wxBitmap GetLargeIcon () const { - return wxBitmap ("general", wxBITMAP_TYPE_PNG_RESOURCE); + return wxBitmap(bitmap_path("general"), wxBITMAP_TYPE_PNG); } #endif @@ -111,9 +113,9 @@ public: wxWindow* parent, wxString title, int border, - boost::function)> set, - boost::function (void)> get, - boost::function nag_alter + std::function)> set, + std::function (void)> get, + std::function nag_alter ); void add_button (wxWindow* button); @@ -142,9 +144,9 @@ private: wxStaticText* _private_key_bad; wxSizer* _sizer; wxBoxSizer* _button_sizer; - boost::function)> _set; - boost::function (void)> _get; - boost::function _nag_alter; + std::function)> _set; + std::function (void)> _get; + std::function _nag_alter; }; class KeysPage : public Page @@ -159,7 +161,7 @@ public: #ifdef DCPOMATIC_OSX wxBitmap GetLargeIcon () const { - return wxBitmap ("keys", wxBITMAP_TYPE_PNG_RESOURCE); + return wxBitmap(bitmap_path("keys"), wxBITMAP_TYPE_PNG); } #endif @@ -189,7 +191,7 @@ public: #ifdef DCPOMATIC_OSX wxBitmap GetLargeIcon () const { - return wxBitmap ("sound", wxBITMAP_TYPE_PNG_RESOURCE); + return wxBitmap(bitmap_path("sound"), wxBITMAP_TYPE_PNG); } #endif @@ -229,15 +231,8 @@ private: void playlist_directory_changed (); void kdm_directory_changed (); -#ifdef DCPOMATIC_VARIANT_SWAROOP - void background_image_changed (); -#endif - wxDirPickerCtrl* _content_directory; wxDirPickerCtrl* _playlist_directory; wxDirPickerCtrl* _kdm_directory; -#ifdef DCPOMATIC_VARIANT_SWAROOP - FilePickerCtrl* _background_image; -#endif }; #endif