projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f7c43ba
)
Limit video frame rate text control to numbers.
author
Carl Hetherington
<cth@carlh.net>
Tue, 1 Dec 2020 20:44:32 +0000
(21:44 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 1 Dec 2020 20:44:32 +0000
(21:44 +0100)
src/wx/content_advanced_dialog.cc
patch
|
blob
|
history
diff --git
a/src/wx/content_advanced_dialog.cc
b/src/wx/content_advanced_dialog.cc
index 9f2a45106805a4c3995418347825114a6a5d605e..1726579ea4a025382553efec3b884690630b6aa3 100644
(file)
--- a/
src/wx/content_advanced_dialog.cc
+++ b/
src/wx/content_advanced_dialog.cc
@@
-31,6
+31,9
@@
#include "lib/image_content.h"
#include "lib/video_content.h"
#include <wx/gbsizer.h>
#include "lib/image_content.h"
#include "lib/video_content.h"
#include <wx/gbsizer.h>
+DCPOMATIC_DISABLE_WARNINGS
+#include <wx/propgrid/props.h>
+DCPOMATIC_ENABLE_WARNINGS
#include <boost/bind.hpp>
#include <boost/bind.hpp>
@@
-77,7
+80,7
@@
ContentAdvancedDialog::ContentAdvancedDialog (wxWindow* parent, shared_ptr<Conte
} else {
video_frame_rate_label = add_label_to_sizer (sizer, this, _("Video frame rate that content was prepared for"), true, wxGBPosition(r, 0));
}
} else {
video_frame_rate_label = add_label_to_sizer (sizer, this, _("Video frame rate that content was prepared for"), true, wxGBPosition(r, 0));
}
- _video_frame_rate = new wxTextCtrl (this, wxID_ANY);
+ _video_frame_rate = new wxTextCtrl (this, wxID_ANY
, wxT(""), wxDefaultPosition, wxDefaultSize, 0, wxNumericPropertyValidator(wxNumericPropertyValidator::Float)
);
sizer->Add (_video_frame_rate, wxGBPosition(r, 1));
_set_video_frame_rate = new Button (this, _("Set"));
_set_video_frame_rate->Enable (false);
sizer->Add (_video_frame_rate, wxGBPosition(r, 1));
_set_video_frame_rate = new Button (this, _("Set"));
_set_video_frame_rate->Enable (false);