Modify previous commit to move restriction code into the UI.
[dcpomatic.git] / src / wx / dcp_panel.h
index 3aa97ad539cca5ac5869e948169954d86f010acb..ac6792dddf7649adff8ed7756c5fe4d4e98229ca 100644 (file)
@@ -31,6 +31,8 @@ class wxButton;
 class wxSpinCtrl;
 class wxSizer;
 
+class AudioDialog;
+
 class Film;
 
 class DCPPanel : public boost::noncopyable
@@ -69,10 +71,14 @@ private:
        void encrypted_toggled ();
        void edit_key_clicked ();
        void audio_processor_changed ();
+       void show_audio_clicked ();
        
        void setup_frame_rate_widget ();
        void setup_container ();
        void setup_dcp_name ();
+       void setup_audio_channels_choice ();
+
+       int minimum_allowed_audio_channels () const;
 
        wxPanel* make_general_panel ();
        wxPanel* make_video_panel ();
@@ -98,6 +104,7 @@ private:
        wxSizer* _frame_rate_sizer;
        wxChoice* _audio_channels;
        wxChoice* _audio_processor;
+       wxButton* _show_audio;
        wxButton* _best_frame_rate;
        wxCheckBox* _three_d;
        wxChoice* _resolution;
@@ -108,6 +115,8 @@ private:
        wxStaticText* _key;
        wxButton* _edit_key;
 
+       AudioDialog* _audio_dialog;
+
        boost::shared_ptr<Film> _film;
        bool _generally_sensitive;
 };