X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fwx_util.h;h=400493f1883203a223be2745811e890af42c70a4;hb=747e81de1927c71b39dc916be05bb9296ca6b882;hp=ee06c380778c46896a3dd584b01a15893ef22bad;hpb=ce9bb37168f52a8d1348e1334fc15d5778fffa75;p=dcpomatic.git diff --git a/src/wx/wx_util.h b/src/wx/wx_util.h index ee06c3807..400493f18 100644 --- a/src/wx/wx_util.h +++ b/src/wx/wx_util.h @@ -41,6 +41,7 @@ class wxSpinCtrl; class wxSpinCtrlDouble; class wxGridBagSizer; class wxSplashScreen; +class PasswordEntry; #define DCPOMATIC_SIZER_X_GAP 8 #define DCPOMATIC_SIZER_Y_GAP 8 @@ -58,7 +59,7 @@ class wxSplashScreen; #define DCPOMATIC_RTAUDIO_API RtAudio::LINUX_PULSE #endif #ifdef DCPOMATIC_WINDOWS -#define DCPOMATIC_RTAUDIO_API RtAudio::WINDOWS_DS +#define DCPOMATIC_RTAUDIO_API RtAudio::UNSPECIFIED #endif #ifdef DCPOMATIC_OSX #define DCPOMATIC_RTAUDIO_API RtAudio::MACOSX_CORE @@ -83,11 +84,12 @@ extern wxString std_to_wx (std::string); extern void dcpomatic_setup_i18n (); extern wxString context_translation (wxString); extern std::string string_client_data (wxClientData* o); -extern wxString time_to_timecode (DCPTime t, double fps); +extern wxString time_to_timecode (dcpomatic::DCPTime t, double fps); extern void setup_audio_channels_choice (wxChoice* choice, int minimum); extern wxSplashScreen* maybe_show_splash (); -extern boost::optional path_from_file_dialog (wxFileDialog* dialog, std::string extension); extern double calculate_mark_interval (double start); +extern bool display_progress (wxString title, wxString task); +extern bool report_errors_from_last_job (wxWindow* parent); extern void checked_set (FilePickerCtrl* widget, boost::filesystem::path value); extern void checked_set (wxDirPickerCtrl* widget, boost::filesystem::path value); @@ -98,6 +100,7 @@ extern void checked_set (wxChoice* widget, std::string value); extern void checked_set (wxChoice* widget, std::vector > items); extern void checked_set (wxTextCtrl* widget, std::string value); extern void checked_set (wxTextCtrl* widget, wxString value); +extern void checked_set (PasswordEntry* widget, std::string value); extern void checked_set (wxCheckBox* widget, bool value); extern void checked_set (wxRadioButton* widget, bool value); extern void checked_set (wxStaticText* widget, std::string value);