Use branch of ffmpeg.
[dcpomatic.git] / src / wx / content_panel.h
index ab11a894b95f3dd1e09b7da22239f91154f2646d..df5c58ebd0450ebaaa7240cb0bab3839ffcfce1b 100644 (file)
@@ -45,14 +45,7 @@ class FilmViewer;
 class LimitedSplitter : public wxSplitterWindow
 {
 public:
-       LimitedSplitter (wxWindow* parent)
-               : wxSplitterWindow (parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_NOBORDER | wxSP_3DSASH | wxSP_LIVE_UPDATE)
-       {
-               /* This value doesn't really mean much but we just want to stop double-click on the
-                  divider from shrinking the bottom panel (#1601).
-               */
-               SetMinimumPaneSize (64);
-       }
+       LimitedSplitter (wxWindow* parent);
 
        bool OnSashPositionChange (int new_position)
        {
@@ -61,6 +54,12 @@ public:
        }
 
        void first_shown (wxWindow* top, wxWindow* bottom);
+
+private:
+       void sized (wxSizeEvent& ev);
+
+       bool _first_shown;
+       int const _top_panel_minimum_size;
 };