Try to fix crashes when things go wrong with getDeviceInfo.
[dcpomatic.git] / src / wx / video_panel.h
index 22c5644828ab9de26594398cbd80f6e8745ab645..2304e5e0b7f3bb3041b22b03757283613a36317b 100644 (file)
@@ -31,6 +31,7 @@ class wxChoice;
 class wxStaticText;
 class wxSpinCtrl;
 class wxButton;
+class wxToggleButton;
 
 /** @class VideoPanel
  *  @brief The video tab of the film editor.
@@ -45,9 +46,7 @@ public:
        void content_selection_changed ();
 
 private:
-       void use_clicked ();
        void reference_clicked ();
-       void edit_filters_clicked ();
        void colour_conversion_changed ();
        void edit_colour_conversion_clicked ();
        void range_changed ();
@@ -57,22 +56,29 @@ private:
        void scale_fit_clicked ();
        void scale_custom_clicked ();
        bool scale_custom_edit_clicked ();
+       void left_right_link_clicked ();
+       void top_bottom_link_clicked ();
+       void left_crop_changed ();
+       void right_crop_changed ();
+       void top_crop_changed ();
+       void bottom_crop_changed ();
 
        void setup_description ();
        void setup_sensitivity ();
 
        wxCheckBox* _reference;
        wxStaticText* _reference_note;
-       wxCheckBox* _use;
        wxStaticText* _type_label;
        ContentChoice<VideoContent, VideoFrameType>* _frame_type;
        wxStaticText* _crop_label;
        wxStaticText* _left_crop_label;
        ContentSpinCtrl<VideoContent>* _left_crop;
+       wxToggleButton* _left_right_link;
        wxStaticText* _right_crop_label;
        ContentSpinCtrl<VideoContent>* _right_crop;
        wxStaticText* _top_crop_label;
        ContentSpinCtrl<VideoContent>* _top_crop;
+       wxToggleButton* _top_bottom_link;
        wxStaticText* _bottom_crop_label;
        ContentSpinCtrl<VideoContent>* _bottom_crop;
        wxStaticText* _fade_in_label;
@@ -84,9 +90,6 @@ private:
        wxRadioButton* _scale_custom;
        wxButton* _scale_custom_edit;
        wxStaticText* _description;
-       wxStaticText* _filters_label;
-       wxStaticText* _filters;
-       wxButton* _filters_button;
        wxStaticText* _colour_conversion_label;
        wxChoice* _colour_conversion;
        wxButton* _edit_colour_conversion_button;