X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fwx_util.h;h=e36a35e1e336e4c83ca0bee8354d1bc5b8b026d6;hb=f1dbcec7552052856369631e77c5eb160badd619;hp=7011d35d32559c54f7f6d992b0726be5347ffde2;hpb=660d365faf784a8ea80d5fdc21a1384e81153194;p=dcpomatic.git diff --git a/src/wx/wx_util.h b/src/wx/wx_util.h index 7011d35d3..e36a35e1e 100644 --- a/src/wx/wx_util.h +++ b/src/wx/wx_util.h @@ -69,7 +69,7 @@ class wxSplashScreen; */ #define S_(x) context_translation(x) -extern void error_dialog (wxWindow *, wxString); +extern void error_dialog (wxWindow *, wxString, boost::optional e = boost::optional()); extern void message_dialog (wxWindow *, wxString); extern bool confirm_dialog (wxWindow *, wxString); extern wxStaticText* add_label_to_sizer (wxSizer *, wxWindow *, wxString, bool left, int prop = 0); @@ -82,6 +82,7 @@ extern std::string string_client_data (wxClientData* o); extern wxString time_to_timecode (DCPTime t, double fps); extern void setup_audio_channels_choice (wxChoice* choice, int minimum); extern wxSplashScreen* maybe_show_splash (); +extern boost::filesystem::path path_from_file_dialog (wxFileDialog* dialog, std::string extension); extern void checked_set (FilePickerCtrl* widget, boost::filesystem::path value); extern void checked_set (wxSpinCtrl* widget, int value);