X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fwx_util.h;h=fb1a3a001ecd6064467ea3bd97347ac435beb52b;hb=f5bd787fb71466a6187050086b2890b9b0ac9294;hp=aa3dc60dba7bf5aafe12d8b460d5c7b911464316;hpb=a1f95f87b8254760d7151ba3928cf1071afcc884;p=dcpomatic.git diff --git a/src/wx/wx_util.h b/src/wx/wx_util.h index aa3dc60db..fb1a3a001 100644 --- a/src/wx/wx_util.h +++ b/src/wx/wx_util.h @@ -28,14 +28,15 @@ #define DCPOMATIC_WX_UTIL_H +#include "lib/config.h" #include "lib/dcpomatic_time.h" -#include "lib/warnings.h" -DCPOMATIC_DISABLE_WARNINGS -#include -DCPOMATIC_ENABLE_WARNINGS +#include +LIBDCP_DISABLE_WARNINGS #include -#include +#include +LIBDCP_ENABLE_WARNINGS #include +#include class FilePickerCtrl; @@ -119,7 +120,10 @@ extern bool display_progress (wxString title, wxString task); extern bool report_errors_from_last_job (wxWindow* parent); extern wxString bitmap_path (std::string name); extern wxSize small_button_size (wxWindow* parent, wxString text); - +extern bool gui_is_dark (); +extern double dpi_scale_factor (wxWindow* window); +extern int search_ctrl_height (); +extern void report_config_load_failure(wxWindow* parent, Config::LoadFailure what); struct Offset { @@ -156,7 +160,7 @@ extern int wx_get (wxChoice* widget); extern int wx_get (wxSpinCtrl* widget); extern double wx_get (wxSpinCtrlDouble* widget); -#if defined(__WXMSW__) +#ifdef DCPOMATIC_WINDOWS #define DCPOMATIC_USE_OWN_PICKER #endif