X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fwx_util.h;h=aaa59c4acac8456d1c688ebd94f8ee423dd94a43;hb=576620e67b7cc0bd9d2a95a486f5677a2e40ee39;hp=f55ecbd5272a0fc0c2043730fdd763d6fbd926e2;hpb=d43aadb0bbb5cbdebbc5c95cb3065ed0aa49296a;p=dcpomatic.git diff --git a/src/wx/wx_util.h b/src/wx/wx_util.h index f55ecbd52..aaa59c4ac 100644 --- a/src/wx/wx_util.h +++ b/src/wx/wx_util.h @@ -24,6 +24,7 @@ #ifndef DCPOMATIC_WX_UTIL_H #define DCPOMATIC_WX_UTIL_H +#include "lib/dcpomatic_time.h" #include #include #include @@ -57,21 +58,25 @@ class wxGridBagSizer; #define S_(x) context_translation(x) extern void error_dialog (wxWindow *, wxString); +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); -extern wxStaticText* add_label_to_grid_bag_sizer (wxGridBagSizer *, wxWindow *, wxString, bool, wxGBPosition, wxGBSpan span = wxDefaultSpan); +extern wxStaticText* add_label_to_sizer (wxGridBagSizer *, wxWindow *, wxString, bool, wxGBPosition, wxGBSpan span = wxDefaultSpan); extern std::string wx_to_std (wxString); 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 void checked_set (wxFilePickerCtrl* widget, std::string value); extern void checked_set (wxSpinCtrl* widget, int value); extern void checked_set (wxSpinCtrlDouble* widget, double value); extern void checked_set (wxChoice* widget, int value); 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 (wxCheckBox* widget, bool value); extern void checked_set (wxRadioButton* widget, bool value); extern void checked_set (wxStaticText* widget, std::string value); @@ -86,7 +91,7 @@ extern double wx_get (wxSpinCtrlDouble* widget); Use our own dir picker as this is the least bad option I can think of. */ #if defined(__WXMSW__) || (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION == 24 && (GTK_MICRO_VERSION == 17 || GTK_MICRO_VERSION == 20 || GTK_MICRO_VERSION == 23)) -#define DCPOMATIC_USE_OWN_DIR_PICKER +#define DCPOMATIC_USE_OWN_PICKER #endif #endif