Tidying.
authorCarl Hetherington <cth@carlh.net>
Thu, 21 Apr 2022 19:34:50 +0000 (21:34 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 21 Apr 2022 21:48:16 +0000 (23:48 +0200)
55 files changed:
src/lib/reel_writer.cc
src/tools/dcpomatic_playlist.cc
src/wx/audio_plot.cc
src/wx/batch_job_view.cc
src/wx/colour_conversion_editor.cc
src/wx/colour_conversion_editor.h
src/wx/content_menu.cc
src/wx/content_menu.h
src/wx/content_panel.cc
src/wx/content_panel.h
src/wx/content_sub_panel.cc
src/wx/content_view.cc
src/wx/content_widget.h
src/wx/controls.cc
src/wx/dcp_panel.cc
src/wx/dcpomatic_spin_ctrl.cc
src/wx/dkdm_dialog.cc
src/wx/dkdm_dialog.h
src/wx/dkdm_output_panel.h
src/wx/editable_list.h
src/wx/film_editor.cc
src/wx/film_name_location_dialog.cc
src/wx/film_viewer.cc
src/wx/fonts_dialog.cc
src/wx/full_language_tag_dialog.cc
src/wx/interop_metadata_dialog.cc
src/wx/job_view.cc
src/wx/kdm_advanced_dialog.cc
src/wx/kdm_dialog.cc
src/wx/kdm_dialog.h
src/wx/markers_dialog.cc
src/wx/player_config_dialog.cc
src/wx/player_stress_tester.cc
src/wx/playlist_controls.cc
src/wx/recipient_dialog.h
src/wx/send_i18n_dialog.h
src/wx/smpte_metadata_dialog.cc
src/wx/smpte_metadata_dialog.h
src/wx/static_text.h
src/wx/templates_dialog.cc
src/wx/text_panel.cc
src/wx/text_view.cc
src/wx/time_picker.cc
src/wx/timeline.cc
src/wx/timeline.h
src/wx/timeline_content_view.cc
src/wx/timeline_dialog.cc
src/wx/timeline_labels_view.cc
src/wx/timeline_reels_view.cc
src/wx/timeline_time_axis_view.cc
src/wx/try_unmount_dialog.cc
src/wx/verify_dcp_progress_dialog.cc
src/wx/video_view.h
src/wx/video_waveform_plot.cc
src/wx/wx_util.h

index d8ce8882e3ced36100a12c9037067348de3d0109..b5a95d8b1d6e03a1b214632bac04318f133bb9f7 100644 (file)
 
 */
 
-#include "reel_writer.h"
-#include "film.h"
+
+#include "audio_buffers.h"
+#include "compose.hpp"
+#include "config.h"
 #include "cross.h"
-#include "job.h"
-#include "log.h"
 #include "dcpomatic_log.h"
 #include "digester.h"
+#include "film.h"
 #include "font_data.h"
-#include "compose.hpp"
-#include "config.h"
-#include "audio_buffers.h"
 #include "image.h"
+#include "job.h"
+#include "log.h"
+#include "reel_writer.h"
 #include <dcp/atmos_asset.h>
 #include <dcp/atmos_asset_writer.h>
 #include <dcp/certificate_chain.h>
 
 #include "i18n.h"
 
-using std::list;
-using std::string;
-using std::cout;
+
+using std::dynamic_pointer_cast;
 using std::exception;
+using std::list;
+using std::make_shared;
 using std::map;
 using std::set;
-using std::vector;
 using std::shared_ptr;
-using std::make_shared;
+using std::string;
+using std::vector;
+using std::weak_ptr;
 using boost::optional;
-using std::dynamic_pointer_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
-using std::weak_ptr;
 using dcp::ArrayData;
 using dcp::Data;
 using dcp::raw_convert;
 using namespace dcpomatic;
 
+
 int const ReelWriter::_info_size = 48;
 
+
 static dcp::MXFMetadata
 mxf_metadata ()
 {
@@ -95,6 +98,7 @@ mxf_metadata ()
        return meta;
 }
 
+
 /** @param job Related job, or 0.
  *  @param text_only true to enable a special mode where the writer will expect only subtitles and closed captions to be written
  *  (no picture nor sound) and not give errors in that case.  This is used by the hints system to check the potential sizes of
@@ -197,6 +201,7 @@ ReelWriter::ReelWriter (
        _default_font = dcp::ArrayData(default_font_file());
 }
 
+
 /** @param frame reel-relative frame */
 void
 ReelWriter::write_frame_info (Frame frame, Eyes eyes, dcp::FrameInfo info) const
@@ -208,6 +213,7 @@ ReelWriter::write_frame_info (Frame frame, Eyes eyes, dcp::FrameInfo info) const
        checked_fwrite (info.hash.c_str(), info.hash.size(), handle->get(), handle->file());
 }
 
+
 dcp::FrameInfo
 ReelWriter::read_frame_info (shared_ptr<InfoFileHandle> info, Frame frame, Eyes eyes) const
 {
@@ -224,6 +230,7 @@ ReelWriter::read_frame_info (shared_ptr<InfoFileHandle> info, Frame frame, Eyes
        return frame_info;
 }
 
+
 long
 ReelWriter::frame_info_position (Frame frame, Eyes eyes) const
 {
@@ -241,6 +248,7 @@ ReelWriter::frame_info_position (Frame frame, Eyes eyes) const
        DCPOMATIC_ASSERT (false);
 }
 
+
 Frame
 ReelWriter::check_existing_picture_asset (boost::filesystem::path asset)
 {
@@ -299,6 +307,7 @@ ReelWriter::check_existing_picture_asset (boost::filesystem::path asset)
        return first_nonexistant_frame;
 }
 
+
 void
 ReelWriter::write (shared_ptr<const Data> encoded, Frame frame, Eyes eyes)
 {
@@ -340,6 +349,7 @@ ReelWriter::fake_write (int size)
        _picture_asset_writer->fake_write (size);
 }
 
+
 void
 ReelWriter::repeat_write (Frame frame, Eyes eyes)
 {
@@ -355,6 +365,7 @@ ReelWriter::repeat_write (Frame frame, Eyes eyes)
        write_frame_info (frame, eyes, fin);
 }
 
+
 void
 ReelWriter::finish (boost::filesystem::path output_dcp)
 {
@@ -767,6 +778,7 @@ try
         */
 }
 
+
 Frame
 ReelWriter::start () const
 {
@@ -906,6 +918,7 @@ ReelWriter::write (PlayerText subs, TextType type, optional<DCPTextTrack> track,
        }
 }
 
+
 bool
 ReelWriter::existing_picture_frame_ok (FILE* asset_file, shared_ptr<InfoFileHandle> info_file, Frame frame) const
 {
index dbc5e81ddf673b445876b42863260daddfdd936e..056bc7512f68041397e9fd6238d9cd1dd1d85c8f 100644 (file)
 */
 
 
-#include "wx/wx_util.h"
-#include "wx/wx_signal_manager.h"
+#include "wx/about_dialog.h"
 #include "wx/content_view.h"
 #include "wx/dcpomatic_button.h"
-#include "wx/about_dialog.h"
 #include "wx/playlist_editor_config_dialog.h"
+#include "wx/wx_signal_manager.h"
+#include "wx/wx_util.h"
 #include "lib/config.h"
 #include "lib/cross.h"
 #include "lib/dcp_content.h"
 #include "lib/spl.h"
 #include "lib/spl_entry.h"
 #include "lib/util.h"
-#include <wx/wx.h>
-#include <wx/listctrl.h>
 #include <wx/imaglist.h>
-#include <wx/spinctrl.h>
+#include <wx/listctrl.h>
 #include <wx/preferences.h>
+#include <wx/spinctrl.h>
+#include <wx/wx.h>
 
 
 using std::cout;
index e08e07e0505bb3f6ba4d246c5a4d39f72dd6c364..a4518d5dd484141b36f5924f00347f57b3554c04 100644 (file)
 #include <wx/graphics.h>
 #include <boost/bind/bind.hpp>
 #include <cfloat>
-#include <iostream>
 
 
-using std::cout;
 using std::list;
 using std::map;
 using std::max;
index 06f6988746707900e58d09a82b766a90da2fbe23..c93bf1ebaff19a4b7c9c97c315f7b28080f3f26f 100644 (file)
@@ -22,8 +22,8 @@
 #include "batch_job_view.h"
 #include "dcpomatic_button.h"
 #include "lib/job_manager.h"
-#include <wx/sizer.h>
 #include <wx/button.h>
+#include <wx/sizer.h>
 
 
 using std::list;
index 8f52c1ff5d14df90e19487ece25a1fa93ff4f105..908968712131848a73c7ae571c967de7b7acaebf 100644 (file)
 #include "static_text.h"
 #include "wx_util.h"
 #include "lib/colour_conversion.h"
-#include <dcp/locale_convert.h>
 #include <dcp/gamma_transfer_function.h>
 #include <dcp/identity_transfer_function.h>
-#include <dcp/s_gamut3_transfer_function.h>
+#include <dcp/locale_convert.h>
 #include <dcp/modified_gamma_transfer_function.h>
+#include <dcp/s_gamut3_transfer_function.h>
 #include <wx/gbsizer.h>
 #include <wx/numformatter.h>
 #include <wx/spinctrl.h>
-#include <iostream>
 
 
-using std::cout;
 using std::dynamic_pointer_cast;
 using std::make_shared;
 using std::string;
index f609daae492d855a86849ad63c5f1905b6fa03d0..bdf185227a842966cb336309108cd623afcb58ca 100644 (file)
@@ -27,9 +27,9 @@
 #include <wx/wx.h>
 
 
+class ColourConversion;
 class wxGridBagSizer;
 class wxSpinCtrlDouble;
-class ColourConversion;
 
 
 class ColourConversionEditor : public wxPanel
index 137ef97dca981f1b4081ad0163225ec914c7568d..fe117aac03521e9f1d198a512d62b84667d91852 100644 (file)
 */
 
 
+#include "content_advanced_dialog.h"
 #include "content_menu.h"
+#include "content_properties_dialog.h"
 #include "repeat_dialog.h"
-#include "wx_util.h"
-#include "timeline_video_content_view.h"
 #include "timeline_audio_content_view.h"
-#include "content_properties_dialog.h"
-#include "content_advanced_dialog.h"
-#include "lib/playlist.h"
-#include "lib/film.h"
-#include "lib/image_content.h"
+#include "timeline_video_content_view.h"
+#include "wx_util.h"
+#include "lib/audio_content.h"
+#include "lib/config.h"
 #include "lib/content_factory.h"
-#include "lib/examine_content_job.h"
-#include "lib/job_manager.h"
-#include "lib/exceptions.h"
+#include "lib/copy_dcp_details_to_film.h"
 #include "lib/dcp_content.h"
 #include "lib/dcp_examiner.h"
+#include "lib/examine_content_job.h"
+#include "lib/exceptions.h"
 #include "lib/ffmpeg_content.h"
-#include "lib/audio_content.h"
-#include "lib/config.h"
-#include "lib/copy_dcp_details_to_film.h"
+#include "lib/film.h"
+#include "lib/image_content.h"
+#include "lib/job_manager.h"
+#include "lib/playlist.h"
 #include <dcp/cpl.h>
-#include <dcp/exceptions.h>
 #include <dcp/decrypted_kdm.h>
+#include <dcp/exceptions.h>
 #include <dcp/search.h>
-#include <wx/wx.h>
 #include <wx/dirdlg.h>
-#include <iostream>
+#include <wx/wx.h>
 
 
-using std::cout;
-using std::vector;
+using std::dynamic_pointer_cast;
 using std::exception;
 using std::list;
+using std::make_shared;
 using std::shared_ptr;
+using std::vector;
 using std::weak_ptr;
-using std::dynamic_pointer_cast;
-using std::make_shared;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 8a3548419aac8d7a9f5067b4a834004fb772f6b8..240a9e64f9be2c18da7daa99fe6135f6e83f735f 100644 (file)
 
 */
 
+
 #ifndef DCPOMATIC_CONTENT_MENU_H
 #define DCPOMATIC_CONTENT_MENU_H
 
+
 #include "timeline_content_view.h"
 #include "lib/types.h"
 #include <wx/wx.h>
 #include <memory>
 
+
+class DCPContent;
 class Film;
 class Job;
-class DCPContent;
+
 
 class ContentMenu
 {
index 56a342bfe4c45e9f9dd7b4fe0b8781d3a7ec28dd..db29ed74a1fee6d2bcaf37c9de725b19fc1de5c0 100644 (file)
 #include "lib/string_text_file_content.h"
 #include "lib/text_content.h"
 #include "lib/video_content.h"
-#include <wx/wx.h>
-#include <wx/notebook.h>
-#include <wx/listctrl.h>
 #include <wx/display.h>
+#include <wx/listctrl.h>
+#include <wx/notebook.h>
+#include <wx/wx.h>
 #include <boost/filesystem.hpp>
-#include <iostream>
 
 
-using std::cout;
 using std::dynamic_pointer_cast;
 using std::exception;
 using std::list;
index 650b7966838abc828d9c99a54e0a8ac872c1b474..21acd28b264a3533853615106142000bd900e694 100644 (file)
 #include <list>
 
 
+class AudioPanel;
+class ContentSubPanel;
+class Film;
+class FilmEditor;
+class FilmViewer;
+class TextPanel;
+class TimelineDialog;
+class TimingPanel;
+class VideoPanel;
+class wxListCtrl;
+class wxListEvent;
 class wxNotebook;
 class wxPanel;
 class wxSizer;
-class wxListCtrl;
-class wxListEvent;
 class wxSplitterWindow;
-class TimelineDialog;
-class FilmEditor;
-class ContentSubPanel;
-class TextPanel;
-class VideoPanel;
-class AudioPanel;
-class TimingPanel;
-class Film;
-class FilmViewer;
 
 
 class LimitedSplitter : public wxSplitterWindow
index 9c236abebfef4a1b552b5e8b5f084a283f569a1d..d170d6edd514342d4c64674fb7f7455fa20036e7 100644 (file)
@@ -18,6 +18,7 @@
 
 */
 
+
 #include "content_sub_panel.h"
 #include "content_panel.h"
 #include "wx_util.h"
 #include "lib/log.h"
 #include <wx/notebook.h>
 
+
 using std::list;
-using std::string;
 using std::shared_ptr;
+using std::string;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
 
+
 ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name)
        : wxScrolledWindow (p->notebook(), wxID_ANY)
        , _parent (p)
index 8055e2f2d2fb2f043c147984bf30ecd99dd542ec..7a20cc3445f121f265f6de61a87e167767de5e59 100644 (file)
 
 #include "content_view.h"
 #include "wx_util.h"
-#include "lib/dcpomatic_assert.h"
 #include "lib/config.h"
-#include "lib/dcp_content.h"
 #include "lib/content_factory.h"
+#include "lib/cross.h"
+#include "lib/dcp_content.h"
+#include "lib/dcpomatic_assert.h"
 #include "lib/examine_content_job.h"
 #include "lib/job_manager.h"
-#include "lib/cross.h"
 #include <dcp/exceptions.h>
 #include <boost/filesystem.hpp>
 #include <boost/optional.hpp>
index 34755e4b5a7e1707b710f45487bc9cdf4934dfd3..62561192d6ebf7e27fb3b6a8ab98d2034b2a868c 100644 (file)
  *  @brief ContentWidget class.
  */
 
+
 #ifndef DCPOMATIC_CONTENT_WIDGET_H
 #define DCPOMATIC_CONTENT_WIDGET_H
 
+
 #include "wx_util.h"
 #include "lib/content.h"
-#include <wx/wx.h>
 #include <wx/gbsizer.h>
 #include <wx/spinctrl.h>
+#include <wx/wx.h>
 #include <vector>
 
+
 /** @class ContentWidget
  *  @brief A widget which represents some Content state and which can be used
  *  when multiple pieces of content are selected.
index a90ac79b40e5b89ab706a55a9e0a1a3ecb4b368d..5b1e62c2e06244f3d04f0a479677695dc2bc20bf 100644 (file)
 #include "lib/job.h"
 #include "lib/job_manager.h"
 #include "lib/player_video.h"
-#include <dcp/dcp.h>
 #include <dcp/cpl.h>
+#include <dcp/dcp.h>
 #include <dcp/reel.h>
 #include <dcp/reel_picture_asset.h>
-#include <wx/wx.h>
-#include <wx/tglbtn.h>
 #include <wx/listctrl.h>
 #include <wx/progdlg.h>
+#include <wx/tglbtn.h>
+#include <wx/wx.h>
 
 
-using std::string;
-using std::list;
 using std::cout;
-using std::make_pair;
+using std::dynamic_pointer_cast;
 using std::exception;
-using boost::optional;
+using std::list;
+using std::make_pair;
 using std::shared_ptr;
+using std::string;
 using std::weak_ptr;
-using std::dynamic_pointer_cast;
+using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 61dfd7507d4c2ddcd47d63413ab7a495a36efbba..1e626bf183b598957883646fd9ae2cea4287dbb5 100644 (file)
 #include "smpte_metadata_dialog.h"
 #include "static_text.h"
 #include "wx_util.h"
-#include "lib/ratio.h"
+#include "lib/audio_content.h"
+#include "lib/audio_processor.h"
 #include "lib/config.h"
+#include "lib/dcp_content.h"
 #include "lib/dcp_content_type.h"
-#include "lib/util.h"
-#include "lib/film.h"
 #include "lib/ffmpeg_content.h"
-#include "lib/audio_processor.h"
-#include "lib/video_content.h"
+#include "lib/film.h"
+#include "lib/ratio.h"
 #include "lib/text_content.h"
-#include "lib/dcp_content.h"
-#include "lib/audio_content.h"
+#include "lib/util.h"
+#include "lib/video_content.h"
 #include <dcp/locale_convert.h>
-#include <wx/wx.h>
-#include <wx/notebook.h>
 #include <wx/gbsizer.h>
+#include <wx/notebook.h>
 #include <wx/spinctrl.h>
+#include <wx/wx.h>
 #include <boost/lexical_cast.hpp>
-#include <iostream>
 
 
-using std::cout;
 using std::list;
-using std::string;
-using std::vector;
-using std::pair;
-using std::max;
 using std::make_pair;
-using boost::lexical_cast;
+using std::max;
+using std::pair;
 using std::shared_ptr;
+using std::string;
+using std::vector;
 using std::weak_ptr;
+using boost::lexical_cast;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index a050704104ee74e3a331d21a862ace98e4901daf..9d255f77a868b6815a5f6c42fed9b16570bfa705 100644 (file)
@@ -24,6 +24,7 @@
 #include <boost/version.hpp>
 #include <wx/wx.h>
 
+
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 68fe4bae1ae53ebfc594702c6d68aa9605993b5f..e9fd89304bce1dd34d9ef1a0fe94d93b5567a938 100644 (file)
 */
 
 
+#include "confirm_kdm_email_dialog.h"
+#include "dcpomatic_button.h"
 #include "dkdm_dialog.h"
-#include "wx_util.h"
-#include "recipients_panel.h"
-#include "kdm_timing_panel.h"
 #include "dkdm_output_panel.h"
 #include "kdm_cpl_panel.h"
-#include "confirm_kdm_email_dialog.h"
+#include "kdm_timing_panel.h"
+#include "recipients_panel.h"
 #include "static_text.h"
-#include "dcpomatic_button.h"
+#include "wx_util.h"
+#include "lib/config.h"
 #include "lib/film.h"
-#include "lib/kdm_with_metadata.h"
 #include "lib/job_manager.h"
-#include "lib/config.h"
+#include "lib/kdm_with_metadata.h"
 #include <libcxml/cxml.h>
 #include <dcp/exceptions.h>
-#include <wx/treectrl.h>
 #include <wx/listctrl.h>
+#include <wx/treectrl.h>
 #include <iostream>
 
 
-using std::string;
+using std::cout;
 using std::exception;
-using std::map;
 using std::list;
-using std::pair;
-using std::cout;
-using std::vector;
 using std::make_pair;
+using std::map;
+using std::pair;
 using std::runtime_error;
 using std::shared_ptr;
+using std::string;
+using std::vector;
 using boost::bind;
 using boost::optional;
 #if BOOST_VERSION >= 106100
index 7b20e88ec000f2bd523debc6d4e2feb37f9dd3c9..132b30aefc8d1260502081552ae093232dad820e 100644 (file)
 #include <map>
 
 
-class Film;
-class ScreensPanel;
-class RecipientsPanel;
-class KDMTimingPanel;
 class DKDMOutputPanel;
+class Film;
 class KDMCPLPanel;
+class KDMTimingPanel;
+class RecipientsPanel;
+class ScreensPanel;
 struct CPLSummary;
 
 
index 43e66a172dd4c5255896d02b9e5768affa5c4735..821a41deb992f3bc76c5988fb320a172b11a9f23 100644 (file)
 
 */
 
-#include "lib/kdm_with_metadata.h"
-#include "wx_util.h"
+
 #include "name_format_editor.h"
+#include "wx_util.h"
+#include "lib/kdm_with_metadata.h"
 #include <dcp/types.h>
 #include <wx/wx.h>
 #include <boost/filesystem.hpp>
 
-class wxRadioButton;
-class wxDirPickerCtrl;
+
 class DirPickerCtrl;
-class KDMTimingPanel;
 class Job;
+class KDMTimingPanel;
 class Log;
+class wxDirPickerCtrl;
+class wxRadioButton;
+
 
 class DKDMOutputPanel : public wxPanel
 {
index 3f2ea0ca2fe0afad40f7a1e2b5512e6c817282ac..ac201580b8233c9384b318e1bf406fead683f859 100644 (file)
 
 */
 
+
 #ifndef DCPOMATIC_EDITABLE_LIST_H
 #define DCPOMATIC_EDITABLE_LIST_H
 
-#include "wx_util.h"
+
 #include "dcpomatic_button.h"
-#include <wx/wx.h>
+#include "wx_util.h"
 #include <wx/listctrl.h>
+#include <wx/wx.h>
 #include <vector>
 
+
 class EditableListColumn
 {
 public:
index d604f678df508908b54e27b076d7536d2e054a10..28baf566e8228c1f662e5a26416dcbea13d0aba2 100644 (file)
  */
 
 
-#include "wx_util.h"
-#include "film_editor.h"
-#include "dcp_panel.h"
 #include "content_panel.h"
-#include "lib/film.h"
-#include "lib/job_manager.h"
+#include "dcp_panel.h"
+#include "film_editor.h"
+#include "wx_util.h"
 #include "lib/content.h"
 #include "lib/dcp_content.h"
-#include <wx/wx.h>
+#include "lib/film.h"
+#include "lib/job_manager.h"
 #include <wx/notebook.h>
-#include <iostream>
+#include <wx/wx.h>
 
 
-using std::cout;
-using std::string;
 using std::list;
 using std::shared_ptr;
+using std::string;
 using std::weak_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
index 516ed86ae9cbf0fbc3e6ba960b797b31a141994d..098676a9eefcd039ea338864dea1719562125d46 100644 (file)
 #include "check_box.h"
 #include "film_name_location_dialog.h"
 #include "wx_util.h"
+/* This must come after wx_util.h as it defines DCPOMATIC_USE_OWN_PICKER */
 #ifdef DCPOMATIC_USE_OWN_PICKER
 #include "dir_picker_ctrl.h"
 #endif
-#include "lib/config.h"
 #include "lib/compose.hpp"
+#include "lib/config.h"
 #include <wx/stdpaths.h>
 #include <boost/filesystem.hpp>
 
index cd5b6e2eafd47d1576fa08584683d3e3b0c61fcf..f7c50b98aa07cc62b75fcd9916b98c2570ff3980 100644 (file)
 #include "playhead_to_timecode_dialog.h"
 #include "simple_video_view.h"
 #include "wx_util.h"
-#include "lib/film.h"
-#include "lib/ratio.h"
-#include "lib/util.h"
-#include "lib/job_manager.h"
-#include "lib/image.h"
-#include "lib/exceptions.h"
+#include "lib/butler.h"
+#include "lib/compose.hpp"
+#include "lib/config.h"
+#include "lib/dcpomatic_log.h"
 #include "lib/examine_content_job.h"
+#include "lib/exceptions.h"
+#include "lib/film.h"
 #include "lib/filter.h"
+#include "lib/image.h"
+#include "lib/job_manager.h"
+#include "lib/log.h"
 #include "lib/player.h"
 #include "lib/player_video.h"
+#include "lib/ratio.h"
+#include "lib/text_content.h"
+#include "lib/timer.h"
+#include "lib/util.h"
 #include "lib/video_content.h"
 #include "lib/video_decoder.h"
-#include "lib/timer.h"
-#include "lib/butler.h"
-#include "lib/log.h"
-#include "lib/config.h"
-#include "lib/compose.hpp"
-#include "lib/dcpomatic_log.h"
-#include "lib/text_content.h"
 extern "C" {
 #include <libavutil/pixfmt.h>
 }
 #include <dcp/exceptions.h>
 #include <wx/tglbtn.h>
-#include <iostream>
 #include <iomanip>
 
 
 using std::bad_alloc;
-using std::cout;
 using std::dynamic_pointer_cast;
 using std::make_shared;
 using std::max;
index d5e0aacbea0a01bc7fb5f43710b76c70f8a339c9..43e914cee48d1cd9af56ab6c9f3899b87e30fe12 100644 (file)
 */
 
 
+#include "dcpomatic_button.h"
 #include "fonts_dialog.h"
-#include "wx_util.h"
 #include "system_font_dialog.h"
-#include "dcpomatic_button.h"
-#include "lib/font.h"
+#include "wx_util.h"
 #include "lib/content.h"
+#include "lib/font.h"
 #include "lib/text_content.h"
 #include <wx/wx.h>
-#include <iostream>
 #include <memory>
 
 
 using std::list;
-using std::string;
-using std::cout;
 using std::shared_ptr;
+using std::string;
 using namespace dcpomatic;
 
 
index a6d5e49a65de69ef0201a26171936ce6ac2d6b05..df9a565b4d89c60a74b843fa644a81b5ca75ef93 100644 (file)
@@ -19,8 +19,8 @@
 */
 
 
-#include "lib/dcpomatic_assert.h"
 #include "full_language_tag_dialog.h"
+#include "lib/dcpomatic_assert.h"
 #include <dcp/language_tag.h>
 #include <wx/listctrl.h>
 #include <wx/srchctrl.h>
@@ -29,7 +29,6 @@
 #include <boost/bind/bind.hpp>
 #include <boost/optional.hpp>
 #include <boost/signals2.hpp>
-#include <iostream>
 #include <iterator>
 #include <string>
 #include <vector>
 
 using std::min;
 using std::pair;
+using std::shared_ptr;
 using std::string;
 using std::vector;
-using boost::optional;
-using std::shared_ptr;
 using std::weak_ptr;
+using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 61aa2349867426cdb6ba334d53af71bbd7b84e5a..ad932bc67cab5eba56789efe5f01231d59360de4 100644 (file)
 #include <wx/gbsizer.h>
 
 
+using std::shared_ptr;
 using std::string;
 using std::vector;
 using std::weak_ptr;
-using std::shared_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index 06d10401f578c23a980fc92279aceea1d380930b..fe42f4be36f6f6f911c8b01a558c2d228f111622 100644 (file)
 */
 
 
+#include "check_box.h"
+#include "dcpomatic_button.h"
 #include "job_view.h"
-#include "wx_util.h"
 #include "message_dialog.h"
 #include "static_text.h"
-#include "check_box.h"
-#include "dcpomatic_button.h"
-#include "lib/job.h"
-#include "lib/job_manager.h"
+#include "wx_util.h"
+#include "lib/analyse_audio_job.h"
 #include "lib/compose.hpp"
 #include "lib/config.h"
+#include "lib/job.h"
+#include "lib/job_manager.h"
 #include "lib/send_notification_email_job.h"
 #include "lib/transcode_job.h"
-#include "lib/analyse_audio_job.h"
 #include <wx/wx.h>
 #include <boost/algorithm/string.hpp>
 
 
-using std::string;
 using std::min;
 using std::shared_ptr;
+using std::string;
 using boost::bind;
 
 
index f5ed88b41c80afef5d4030cd65b0ded5f61b57b9..ba1e7a4d3ec341f3c8e9be0cf6a3913794d8be5d 100644 (file)
 
 */
 
-#include "kdm_advanced_dialog.h"
+
 #include "check_box.h"
+#include "kdm_advanced_dialog.h"
 #include "wx_util.h"
 #include <wx/spinctrl.h>
 
+
 using boost::optional;
 
+
 KDMAdvancedDialog::KDMAdvancedDialog (wxWindow* parent, bool forensic_mark_video, bool forensic_mark_audio, optional<int> forensic_mark_audio_up_to)
        : TableDialog (parent, _("Advanced KDM options"), 2, 1, false)
 {
index 9b6b0927c089bb32ab6b38e97d11a3db236692dc..71556812264d81ea4029b6810f5d69c1ee942fdd 100644 (file)
 */
 
 
+#include "confirm_kdm_email_dialog.h"
+#include "dcpomatic_button.h"
+#include "kdm_cpl_panel.h"
 #include "kdm_dialog.h"
-#include "wx_util.h"
-#include "screens_panel.h"
-#include "kdm_timing_panel.h"
 #include "kdm_output_panel.h"
-#include "kdm_cpl_panel.h"
-#include "confirm_kdm_email_dialog.h"
+#include "kdm_timing_panel.h"
+#include "screens_panel.h"
 #include "static_text.h"
-#include "dcpomatic_button.h"
+#include "wx_util.h"
+#include "lib/cinema.h"
+#include "lib/config.h"
 #include "lib/film.h"
-#include "lib/screen.h"
-#include "lib/kdm_with_metadata.h"
 #include "lib/job_manager.h"
-#include "lib/config.h"
-#include "lib/cinema.h"
+#include "lib/kdm_with_metadata.h"
+#include "lib/screen.h"
 #include <libcxml/cxml.h>
 #include <dcp/exceptions.h>
-#include <wx/treectrl.h>
 #include <wx/listctrl.h>
-#include <iostream>
+#include <wx/treectrl.h>
 
 
-using std::string;
 using std::exception;
-using std::map;
 using std::list;
-using std::pair;
-using std::cout;
-using std::vector;
 using std::make_pair;
+using std::map;
+using std::pair;
 using std::runtime_error;
 using std::shared_ptr;
+using std::string;
+using std::vector;
 using boost::bind;
 using boost::optional;
 #if BOOST_VERSION >= 106100
index ea504f8429b1922f4846320510e59641ff207f6d..0c6076fb4c1e7d65802931a054be8cec50c70757 100644 (file)
 
 */
 
+
 #include "wx_util.h"
 #include <dcp/types.h>
 #include <wx/wx.h>
 #include <boost/date_time/posix_time/posix_time.hpp>
 #include <map>
 
+
 namespace dcpomatic {
        class Screen;
 }
 
 class Cinema;
 class Film;
-class ScreensPanel;
-class KDMTimingPanel;
-class KDMOutputPanel;
 class KDMCPLPanel;
+class KDMOutputPanel;
+class KDMTimingPanel;
+class ScreensPanel;
 struct CPLSummary;
 
+
 class KDMDialog : public wxDialog
 {
 public:
index 205d44195e20a9c2aeb548c4e422ff264149ebe9..302717f5953d3f68e6a2a0bbbe20e2bc9694fd47 100644 (file)
 */
 
 
-#include "markers_dialog.h"
-#include "wx_util.h"
-#include "timecode.h"
-#include "static_text.h"
-#include "dcpomatic_button.h"
 #include "check_box.h"
+#include "dcpomatic_button.h"
 #include "film_viewer.h"
+#include "markers_dialog.h"
+#include "static_text.h"
+#include "timecode.h"
+#include "wx_util.h"
 #include "lib/film.h"
 #include <dcp/types.h>
 #include <wx/gbsizer.h>
 #include <boost/bind/bind.hpp>
-#include <iostream>
 
 
-using std::cout;
+using std::make_shared;
 using std::shared_ptr;
 using std::weak_ptr;
-using std::make_shared;
-using boost::optional;
 using boost::bind;
+using boost::optional;
 using dcpomatic::DCPTime;
 
 
index af0f8641efe9c23a91d34fcabc9604284dcf8890..947afa500dcb9ed529c14f7cba11d687ac815de4 100644 (file)
 
 */
 
+
 /** @file src/player_config_dialog.cc
  *  @brief A dialogue to edit DCP-o-matic Player configuration.
  */
 
+
+#include "check_box.h"
 #include "config_dialog.h"
-#include "wx_util.h"
+#include "dir_picker_ctrl.h"
 #include "editable_list.h"
-#include "filter_dialog.h"
+#include "email_dialog.h"
 #include "file_picker_ctrl.h"
-#include "dir_picker_ctrl.h"
-#include "server_dialog.h"
+#include "filter_dialog.h"
 #include "make_chain_dialog.h"
-#include "email_dialog.h"
-#include "name_format_editor.h"
 #include "nag_dialog.h"
-#include "check_box.h"
+#include "name_format_editor.h"
+#include "server_dialog.h"
 #include "static_text.h"
+#include "wx_util.h"
 #include "lib/config.h"
-#include "lib/ratio.h"
-#include "lib/filter.h"
+#include "lib/cross.h"
 #include "lib/dcp_content_type.h"
+#include "lib/exceptions.h"
+#include "lib/filter.h"
 #include "lib/log.h"
+#include "lib/ratio.h"
 #include "lib/util.h"
-#include "lib/cross.h"
-#include "lib/exceptions.h"
-#include <dcp/locale_convert.h>
-#include <dcp/exceptions.h>
 #include <dcp/certificate_chain.h>
-#include <wx/stdpaths.h>
+#include <dcp/exceptions.h>
+#include <dcp/locale_convert.h>
+#include <wx/filepicker.h>
 #include <wx/preferences.h>
 #include <wx/spinctrl.h>
-#include <wx/filepicker.h>
+#include <wx/stdpaths.h>
 #include <RtAudio.h>
 #include <boost/filesystem.hpp>
-#include <iostream>
 
-using std::vector;
-using std::string;
+
+using std::function;
 using std::list;
-using std::cout;
-using std::pair;
 using std::make_pair;
 using std::map;
-using boost::bind;
+using std::pair;
 using std::shared_ptr;
-using std::function;
+using std::string;
+using std::vector;
+using boost::bind;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
 using dcp::locale_convert;
 
+
 class PlayerGeneralPage : public GeneralPage
 {
 public:
index 6dd2dd67473451f5bdcbb45f1f2fd03c0ea4a076..b299ccbf8a249f9c674ba814c118a2ebe45ccccd 100644 (file)
 
 */
 
-#include "player_stress_tester.h"
+
 #include "controls.h"
+#include "player_stress_tester.h"
 #include <dcp/raw_convert.h>
 #include <dcp/util.h>
 #include <wx/wx.h>
 #include <boost/algorithm/string.hpp>
 #include <boost/bind/bind.hpp>
+#include <iostream>
 #include <string>
 #include <vector>
-#include <iostream>
 
+
+using std::cout;
 using std::string;
 using std::vector;
-using std::cout;
 using dcp::raw_convert;
 using boost::optional;
 
+
 /* Interval to check for things to do with the stress script (in milliseconds) */
 #define CHECK_INTERVAL 20
 
+
 Command::Command (string line)
        : type (NONE)
        , int_param (0)
index 3be47ad97cd0d4ad7a264cb938bc3263e078d072..da7976b8d7259be1223568b516e2b47102bc39ad 100644 (file)
 
 */
 
-#include "playlist_controls.h"
-#include "film_viewer.h"
-#include "wx_util.h"
+
 #include "content_view.h"
 #include "dcpomatic_button.h"
+#include "film_viewer.h"
+#include "playlist_controls.h"
 #include "static_text.h"
-#include "lib/player_video.h"
-#include "lib/dcp_content.h"
+#include "wx_util.h"
+#include "lib/compose.hpp"
 #include "lib/cross.h"
-#include "lib/scoped_temporary.h"
-#include "lib/internet.h"
+#include "lib/dcp_content.h"
 #include "lib/ffmpeg_content.h"
-#include "lib/compose.hpp"
+#include "lib/internet.h"
+#include "lib/player_video.h"
+#include "lib/scoped_temporary.h"
 #include <dcp/raw_convert.h>
 #include <dcp/exceptions.h>
 #include <wx/listctrl.h>
 #include <wx/progdlg.h>
 
-using std::string;
+
 using std::cout;
+using std::dynamic_pointer_cast;
 using std::exception;
-using std::sort;
 using std::shared_ptr;
-using std::dynamic_pointer_cast;
+using std::sort;
+using std::string;
 using boost::optional;
 using namespace dcpomatic;
 
+
 PlaylistControls::PlaylistControls (wxWindow* parent, shared_ptr<FilmViewer> viewer)
        : Controls (parent, viewer, false)
        , _play_button (new Button(this, _("Play")))
index 39ba5915e8ead72281be5aa888269348df2c0acb..3ad9789e98b2a6f07c7027269235735a6b3d2e56 100644 (file)
@@ -18,6 +18,7 @@
 
 */
 
+
 #include "editable_list.h"
 #include "email_dialog.h"
 #include "wx_util.h"
 #include <wx/wx.h>
 #include <boost/optional.hpp>
 
+
 class Progress;
 class TrustedDeviceDialog;
 
+
 class RecipientDialog : public wxDialog
 {
 public:
index f8d2b53549e536821a752e3b2546634a5765c9e3..68eec51b2b678cb0b8fd0d57cc876149d6b4231b 100644 (file)
 
 */
 
+
 #include "wx_util.h"
 #include <wx/wx.h>
 
+
 class SendI18NDialog : public wxDialog
 {
 public:
index e4d2d96224a9a4cd02a468417d1c5f80b2aa6b98..979afde8d607c95d47681cbd01c48ef9d06cbac1 100644 (file)
 #include "editable_list.h"
 #include "language_tag_dialog.h"
 #include "language_tag_widget.h"
-#include "smpte_metadata_dialog.h"
 #include "rating_dialog.h"
+#include "smpte_metadata_dialog.h"
 #include "lib/film.h"
 #include <dcp/types.h>
 #include <wx/gbsizer.h>
 #include <wx/spinctrl.h>
 
 
+using std::shared_ptr;
 using std::string;
 using std::vector;
-using boost::optional;
-using std::shared_ptr;
 using std::weak_ptr;
+using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
index d1a792a363239edadf8fb11fab1c6b171febbfd2..2d1b3075703de2d1b8dddb9aa323311be61328a5 100644 (file)
 #include <vector>
 
 
-class Film;
-class RatingDialog;
 class ContentVersionDialog;
-class LanguageTagWidget;
+class Film;
 class LanguageTagDialog;
+class LanguageTagWidget;
+class RatingDialog;
 
 
 class SMPTEMetadataDialog : public MetadataDialog
index 325e1f6d807ffa1a0708c5281e813b7ea0cb9d0d..f690815eb08d21ff6a7531d988299f6a141b50fb 100644 (file)
 
 */
 
+
 #include "i18n_hook.h"
 #include <wx/wx.h>
 
+
 class StaticText : public wxStaticText, public I18NHook
 {
 public:
index 259989d4761e945d74106f550f0ae04c47b62b4e..30c692e5e3cf75c62cc3ad9e6a6a9a1be1e85372 100644 (file)
 */
 
 
+#include "dcpomatic_button.h"
+#include "rename_template_dialog.h"
 #include "templates_dialog.h"
 #include "wx_util.h"
-#include "rename_template_dialog.h"
-#include "dcpomatic_button.h"
 #include "lib/config.h"
 #include <wx/wx.h>
 
index 7bbead30ccb91926004e34e4cf49a1c557ae55b3..24646b78ac56704e1ee3636ff39a5ffcdac6d7c4 100644 (file)
@@ -18,6 +18,7 @@
 
 */
 
+
 #include "check_box.h"
 #include "content_panel.h"
 #include "dcp_text_track_dialog.h"
 #include <wx/spinctrl.h>
 
 
-using std::vector;
-using std::string;
-using std::list;
 using std::cout;
-using std::shared_ptr;
-using boost::optional;
 using std::dynamic_pointer_cast;
+using std::list;
+using std::shared_ptr;
+using std::string;
+using std::vector;
 using boost::bind;
+using boost::optional;
 
 
 /** @param t Original text type of the content, if known */
index 3b674b5c17eb04562932ca23e54d2668cc144b89..4a39b913976eba1476bc3a5bb123a006e37928ed 100644 (file)
 
 */
 
-#include "text_view.h"
+
 #include "film_viewer.h"
+#include "text_view.h"
 #include "wx_util.h"
-#include "lib/string_text_file_decoder.h"
-#include "lib/content_text.h"
-#include "lib/video_decoder.h"
 #include "lib/audio_decoder.h"
-#include "lib/film.h"
 #include "lib/config.h"
+#include "lib/content_text.h"
+#include "lib/film.h"
 #include "lib/string_text_file_content.h"
+#include "lib/string_text_file_decoder.h"
 #include "lib/text_decoder.h"
+#include "lib/video_decoder.h"
+
 
+using std::dynamic_pointer_cast;
 using std::list;
 using std::shared_ptr;
 using std::weak_ptr;
 using boost::bind;
-using std::dynamic_pointer_cast;
 using namespace dcpomatic;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
 
+
 TextView::TextView (
        wxWindow* parent, shared_ptr<Film> film, shared_ptr<Content> content, shared_ptr<TextContent> text, shared_ptr<Decoder> decoder, weak_ptr<FilmViewer> viewer
        )
@@ -73,12 +76,12 @@ TextView::TextView (
                _list->InsertColumn (2, ip);
        }
 
-       wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
+       auto sizer = new wxBoxSizer (wxVERTICAL);
        sizer->Add (_list, 1, wxEXPAND | wxALL, DCPOMATIC_SIZER_X_GAP);
 
        _list->Bind (wxEVT_LIST_ITEM_SELECTED, boost::bind (&TextView::subtitle_selected, this, _1));
 
-       wxSizer* buttons = CreateSeparatedButtonSizer (wxOK);
+       auto buttons = CreateSeparatedButtonSizer (wxOK);
        if (buttons) {
                sizer->Add (buttons, wxSizerFlags().Expand().DoubleBorder());
        }
@@ -104,6 +107,7 @@ TextView::TextView (
        SetSizerAndFit (sizer);
 }
 
+
 void
 TextView::data_start (ContentStringText cts)
 {
@@ -120,6 +124,7 @@ TextView::data_start (ContentStringText cts)
        _last_count = cts.subs.size ();
 }
 
+
 void
 TextView::data_stop (ContentTime time)
 {
@@ -132,6 +137,7 @@ TextView::data_stop (ContentTime time)
        }
 }
 
+
 void
 TextView::subtitle_selected (wxListEvent& ev)
 {
@@ -140,9 +146,9 @@ TextView::subtitle_selected (wxListEvent& ev)
        }
 
        DCPOMATIC_ASSERT (ev.GetIndex() < int(_start_times.size()));
-       shared_ptr<Content> lc = _content.lock ();
+       auto lc = _content.lock ();
        DCPOMATIC_ASSERT (lc);
-       shared_ptr<FilmViewer> fv = _film_viewer.lock ();
+       auto fv = _film_viewer.lock ();
        DCPOMATIC_ASSERT (fv);
        /* Add on a frame here to work around any rounding errors and make sure land in the subtitle */
        fv->seek (lc, _start_times[ev.GetIndex()] + ContentTime::from_frames(1, _frc->source), true);
index 966671be9ac100f8c876707a4ad8b8ff038068b3..6b37d864b2592c35d12b013c0173c75ec94448db 100644 (file)
 
 */
 
+
+#include "static_text.h"
 #include "time_picker.h"
 #include "wx_util.h"
-#include "static_text.h"
 #include <dcp/locale_convert.h>
 #include <wx/spinctrl.h>
 #include <boost/bind/bind.hpp>
 #include <iomanip>
 
+
+using std::cout;
+using std::max;
+using std::min;
 using std::setfill;
 using std::setw;
-using std::min;
-using std::max;
 using std::string;
-using std::cout;
 using boost::bind;
 using dcp::locale_convert;
 
index 359de9bf9f1b93d65e64e2045487ad120f6d6071..645cb3de3a5e876055177e8126894721e2b1e142 100644 (file)
 
 */
 
+#include "content_panel.h"
 #include "film_editor.h"
+#include "film_viewer.h"
 #include "timeline.h"
-#include "timeline_time_axis_view.h"
-#include "timeline_reels_view.h"
-#include "timeline_labels_view.h"
-#include "timeline_video_content_view.h"
+#include "timeline_atmos_content_view.h"
 #include "timeline_audio_content_view.h"
+#include "timeline_labels_view.h"
+#include "timeline_reels_view.h"
 #include "timeline_text_content_view.h"
-#include "timeline_atmos_content_view.h"
-#include "content_panel.h"
+#include "timeline_time_axis_view.h"
+#include "timeline_video_content_view.h"
 #include "wx_util.h"
-#include "film_viewer.h"
+#include "lib/atmos_mxf_content.h"
+#include "lib/audio_content.h"
 #include "lib/film.h"
-#include "lib/playlist.h"
 #include "lib/image_content.h"
-#include "lib/timer.h"
-#include "lib/audio_content.h"
+#include "lib/playlist.h"
 #include "lib/text_content.h"
+#include "lib/timer.h"
 #include "lib/video_content.h"
-#include "lib/atmos_mxf_content.h"
 #include <wx/graphics.h>
-#include <list>
 #include <iterator>
-#include <iostream>
+#include <list>
 
+
+using std::abs;
+using std::dynamic_pointer_cast;
 using std::list;
-using std::cout;
-using std::min;
+using std::make_shared;
 using std::max;
-using std::abs;
+using std::min;
 using std::shared_ptr;
 using std::weak_ptr;
-using std::dynamic_pointer_cast;
-using std::make_shared;
 using boost::bind;
 using boost::optional;
 using namespace dcpomatic;
@@ -59,10 +58,12 @@ using namespace dcpomatic;
 using namespace boost::placeholders;
 #endif
 
+
 /* 3 hours in 640 pixels */
 double const Timeline::_minimum_pixels_per_second = 640.0 / (60 * 60 * 3);
 int const Timeline::_minimum_pixels_per_track = 16;
 
+
 Timeline::Timeline (wxWindow* parent, ContentPanel* cp, shared_ptr<Film> film, weak_ptr<FilmViewer> viewer)
        : wxPanel (parent, wxID_ANY)
        , _labels_canvas (new wxScrolledCanvas (this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE))
@@ -126,18 +127,21 @@ Timeline::Timeline (wxWindow* parent, ContentPanel* cp, shared_ptr<Film> film, w
        _labels_canvas->ShowScrollbars (wxSHOW_SB_NEVER, wxSHOW_SB_NEVER);
 }
 
+
 void
 Timeline::update_playhead ()
 {
        Refresh ();
 }
 
+
 void
 Timeline::set_pixels_per_second (double pps)
 {
        _pixels_per_second = max (_minimum_pixels_per_second, pps);
 }
 
+
 void
 Timeline::paint_labels ()
 {
@@ -157,6 +161,7 @@ Timeline::paint_labels ()
        delete gc;
 }
 
+
 void
 Timeline::paint_main ()
 {
@@ -224,6 +229,7 @@ Timeline::paint_main ()
        delete gc;
 }
 
+
 void
 Timeline::film_change (ChangeType type, Film::Property p)
 {
@@ -239,6 +245,7 @@ Timeline::film_change (ChangeType type, Film::Property p)
        }
 }
 
+
 void
 Timeline::recreate_views ()
 {
@@ -274,6 +281,7 @@ Timeline::recreate_views ()
        Refresh ();
 }
 
+
 void
 Timeline::film_content_change (ChangeType type, int property, bool frequent)
 {
@@ -293,6 +301,7 @@ Timeline::film_content_change (ChangeType type, int property, bool frequent)
        }
 }
 
+
 template <class T>
 int
 place (shared_ptr<const Film> film, TimelineViewList& views, int& tracks)
@@ -345,6 +354,7 @@ place (shared_ptr<const Film> film, TimelineViewList& views, int& tracks)
        return tracks - base;
 }
 
+
 /** Compare the mapped output channels of two TimelineViews, so we can into
  *  order of first mapped DCP channel.
  */
@@ -366,6 +376,7 @@ struct AudioMappingComparator {
        }
 };
 
+
 void
 Timeline::assign_tracks ()
 {
@@ -429,12 +440,14 @@ Timeline::assign_tracks ()
        _reels_view->set_y (8);
 }
 
+
 int
 Timeline::tracks () const
 {
        return _tracks;
 }
 
+
 void
 Timeline::setup_scrollbars ()
 {
@@ -451,6 +464,7 @@ Timeline::setup_scrollbars ()
        _main_canvas->SetScrollRate (_x_scroll_rate, _y_scroll_rate);
 }
 
+
 shared_ptr<TimelineView>
 Timeline::event_to_view (wxMouseEvent& ev)
 {
@@ -473,6 +487,7 @@ Timeline::event_to_view (wxMouseEvent& ev)
        return *i;
 }
 
+
 void
 Timeline::left_down (wxMouseEvent& ev)
 {
@@ -492,6 +507,7 @@ Timeline::left_down (wxMouseEvent& ev)
        }
 }
 
+
 void
 Timeline::left_down_select (wxMouseEvent& ev)
 {
@@ -548,6 +564,7 @@ Timeline::left_down_select (wxMouseEvent& ev)
        }
 }
 
+
 void
 Timeline::left_up (wxMouseEvent& ev)
 {
@@ -567,6 +584,7 @@ Timeline::left_up (wxMouseEvent& ev)
        }
 }
 
+
 void
 Timeline::left_up_select (wxMouseEvent& ev)
 {
@@ -591,6 +609,7 @@ Timeline::left_up_select (wxMouseEvent& ev)
        _end_snaps.clear ();
 }
 
+
 void
 Timeline::left_up_zoom (wxMouseEvent& ev)
 {
@@ -626,12 +645,14 @@ Timeline::left_up_zoom (wxMouseEvent& ev)
        Refresh ();
 }
 
+
 void
 Timeline::set_pixels_per_track (int h)
 {
        _pixels_per_track = max(_minimum_pixels_per_track, h);
 }
 
+
 void
 Timeline::mouse_moved (wxMouseEvent& ev)
 {
@@ -649,6 +670,7 @@ Timeline::mouse_moved (wxMouseEvent& ev)
        }
 }
 
+
 void
 Timeline::mouse_moved_select (wxMouseEvent& ev)
 {
@@ -659,6 +681,7 @@ Timeline::mouse_moved_select (wxMouseEvent& ev)
        set_position_from_event (ev);
 }
 
+
 void
 Timeline::mouse_moved_zoom (wxMouseEvent& ev)
 {
@@ -670,6 +693,7 @@ Timeline::mouse_moved_zoom (wxMouseEvent& ev)
        Refresh ();
 }
 
+
 void
 Timeline::right_down (wxMouseEvent& ev)
 {
@@ -691,6 +715,7 @@ Timeline::right_down (wxMouseEvent& ev)
        }
 }
 
+
 void
 Timeline::right_down_select (wxMouseEvent& ev)
 {
@@ -708,6 +733,7 @@ Timeline::right_down_select (wxMouseEvent& ev)
        _menu.popup (_film, selected_content (), selected_views (), ev.GetPosition ());
 }
 
+
 void
 Timeline::maybe_snap (DCPTime a, DCPTime b, optional<DCPTime>& nearest_distance) const
 {
@@ -717,6 +743,7 @@ Timeline::maybe_snap (DCPTime a, DCPTime b, optional<DCPTime>& nearest_distance)
        }
 }
 
+
 void
 Timeline::set_position_from_event (wxMouseEvent& ev, bool force_emit)
 {
@@ -782,18 +809,21 @@ Timeline::set_position_from_event (wxMouseEvent& ev, bool force_emit)
        film->set_sequence (false);
 }
 
+
 void
 Timeline::force_redraw (dcpomatic::Rect<int> const & r)
 {
        _main_canvas->RefreshRect (wxRect (r.x, r.y, r.width, r.height), false);
 }
 
+
 shared_ptr<const Film>
 Timeline::film () const
 {
        return _film.lock ();
 }
 
+
 void
 Timeline::resized ()
 {
@@ -804,6 +834,7 @@ Timeline::resized ()
        setup_scrollbars ();
 }
 
+
 void
 Timeline::clear_selection ()
 {
@@ -815,6 +846,7 @@ Timeline::clear_selection ()
        }
 }
 
+
 TimelineContentViewList
 Timeline::selected_views () const
 {
@@ -830,6 +862,7 @@ Timeline::selected_views () const
        return sel;
 }
 
+
 ContentList
 Timeline::selected_content () const
 {
@@ -842,6 +875,7 @@ Timeline::selected_content () const
        return sel;
 }
 
+
 void
 Timeline::set_selection (ContentList selection)
 {
@@ -853,18 +887,21 @@ Timeline::set_selection (ContentList selection)
        }
 }
 
+
 int
 Timeline::tracks_y_offset () const
 {
        return _reels_view->bbox().height + 4;
 }
 
+
 int
 Timeline::width () const
 {
        return _main_canvas->GetVirtualSize().GetWidth();
 }
 
+
 void
 Timeline::scrolled (wxScrollWinEvent& ev)
 {
@@ -876,6 +913,7 @@ Timeline::scrolled (wxScrollWinEvent& ev)
        ev.Skip ();
 }
 
+
 void
 Timeline::tool_clicked (Tool t)
 {
@@ -893,6 +931,7 @@ Timeline::tool_clicked (Tool t)
        }
 }
 
+
 void
 Timeline::zoom_all ()
 {
index b532e74e3730989bb78124cc7a8cacf9e997dd86..041970d1639f2ce66dabe54c0ad8cf23e40b7718 100644 (file)
 
 #include "content_menu.h"
 #include "timeline_content_view.h"
-#include "lib/util.h"
-#include "lib/rect.h"
 #include "lib/film.h"
+#include "lib/rect.h"
+#include "lib/util.h"
+#include "lib/warnings.h"
+DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
+DCPOMATIC_ENABLE_WARNINGS
 #include <boost/signals2.hpp>
 
-class Film;
+
 class ContentPanel;
-class TimelineView;
-class TimelineTimeAxisView;
-class TimelineReelsView;
-class TimelineLabelsView;
+class Film;
 class FilmViewer;
+class TimelineLabelsView;
+class TimelineReelsView;
+class TimelineTimeAxisView;
+class TimelineView;
+
 
 class Timeline : public wxPanel
 {
index 481e8100d2b77037c6e854b181a1ccaef0069a7b..926ca3258c0b3947bdafdc4cf1644d149a0b3dfd 100644 (file)
 
 */
 
-#include "timeline_content_view.h"
+
 #include "timeline.h"
+#include "timeline_content_view.h"
 #include "wx_util.h"
 #include "lib/content.h"
 #include <wx/graphics.h>
 
+
 using std::list;
 using std::shared_ptr;
 using namespace dcpomatic;
@@ -31,6 +33,7 @@ using namespace dcpomatic;
 using namespace boost::placeholders;
 #endif
 
+
 TimelineContentView::TimelineContentView (Timeline& tl, shared_ptr<Content> c)
        : TimelineView (tl)
        , _content (c)
@@ -38,6 +41,7 @@ TimelineContentView::TimelineContentView (Timeline& tl, shared_ptr<Content> c)
        _content_connection = c->Change.connect (bind (&TimelineContentView::content_change, this, _1, _3));
 }
 
+
 dcpomatic::Rect<int>
 TimelineContentView::bbox () const
 {
@@ -57,6 +61,7 @@ TimelineContentView::bbox () const
                );
 }
 
+
 void
 TimelineContentView::set_selected (bool s)
 {
@@ -64,36 +69,42 @@ TimelineContentView::set_selected (bool s)
        force_redraw ();
 }
 
+
 bool
 TimelineContentView::selected () const
 {
        return _selected;
 }
 
+
 shared_ptr<Content>
 TimelineContentView::content () const
 {
        return _content.lock ();
 }
 
+
 void
 TimelineContentView::set_track (int t)
 {
        _track = t;
 }
 
+
 void
 TimelineContentView::unset_track ()
 {
        _track = boost::optional<int>();
 }
 
+
 boost::optional<int>
 TimelineContentView::track () const
 {
        return _track;
 }
 
+
 void
 TimelineContentView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int>> overlaps)
 {
@@ -156,12 +167,14 @@ TimelineContentView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int>>
        gc->PopState ();
 }
 
+
 int
 TimelineContentView::y_pos (int t) const
 {
        return t * _timeline.pixels_per_track() + _timeline.tracks_y_offset();
 }
 
+
 void
 TimelineContentView::content_change (ChangeType type, int p)
 {
@@ -176,6 +189,7 @@ TimelineContentView::content_change (ChangeType type, int p)
        }
 }
 
+
 wxString
 TimelineContentView::label () const
 {
index 975f7cd9d6c375802c1b684296e2ff8138fcd21e..8cdc6d63d5cf52282534630055d92733c6fa12a1 100644 (file)
 #include "lib/cross.h"
 #include "lib/playlist.h"
 #include <wx/graphics.h>
-#include <iostream>
 #include <list>
 
 
 using std::list;
-using std::cout;
-using std::string;
 using std::shared_ptr;
+using std::string;
 using std::weak_ptr;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
index 4450fef0552ec2dd4f60e4ef59f24370655b09df..cc0d76aa7ab5a73d670ac50d4ce2a7f20cffac86 100644 (file)
 */
 
 
-#include "timeline_labels_view.h"
 #include "timeline.h"
-#include <wx/wx.h>
+#include "timeline_labels_view.h"
 #include <wx/graphics.h>
+#include <wx/wx.h>
 
 
 using std::list;
index cf1abb34f6b961f21fd6552ab66c6a4911e562d9..588ae781902ae7f851857e540c43bd18c68f2911 100644 (file)
 */
 
 
-#include "timeline_reels_view.h"
 #include "timeline.h"
-#include <wx/wx.h>
+#include "timeline_reels_view.h"
 #include <wx/graphics.h>
+#include <wx/wx.h>
 
 
 using std::min;
index e9de1b542fab6b1777993b09a920009d420903bc..3cdcfc2c85604bd283ae025d8b9d2975695d300f 100644 (file)
 
 */
 
-#include "timeline_time_axis_view.h"
 #include "timeline.h"
+#include "timeline_time_axis_view.h"
 #include "wx_util.h"
-#include <wx/wx.h>
 #include <wx/graphics.h>
+#include <wx/wx.h>
+
 
-using std::list;
 using std::cout;
+using std::list;
 using namespace dcpomatic;
 
+
 TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
        : TimelineView (tl)
        , _y (y)
@@ -35,12 +37,14 @@ TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y)
 
 }
 
+
 dcpomatic::Rect<int>
 TimelineTimeAxisView::bbox () const
 {
        return dcpomatic::Rect<int> (0, _y - 4, _timeline.width(), 24);
 }
 
+
 /** @param y y position in tracks (not pixels) */
 void
 TimelineTimeAxisView::set_y (int y)
@@ -49,6 +53,7 @@ TimelineTimeAxisView::set_y (int y)
        force_redraw ();
 }
 
+
 void
 TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int> >)
 {
index 8a75a13761a6d443ac60ce8e333cf97acd8d6a91..dcec6bb0b644fa351271715727e97743282b7ee2 100644 (file)
@@ -19,9 +19,9 @@
 */
 
 
+#include "static_text.h"
 #include "try_unmount_dialog.h"
 #include "wx_util.h"
-#include "static_text.h"
 #include <wx/wx.h>
 
 
index 030a9810de043b06686ba9105b8c5647d222eaf1..c62d198a0d85f0ef2628d11b6de2f4dd8ace898f 100644 (file)
@@ -29,8 +29,8 @@
 
 
 using std::string;
-using boost::optional;
 using std::shared_ptr;
+using boost::optional;
 
 
 static int const max_file_name_length = 80;
index 5353f213f8803e3e2a9865c6a0567610edf51fc9..28ca3a1e8c4a7ce6bf3da3aba260dc9db0d98b75 100644 (file)
 #include <boost/thread.hpp>
 
 
-class Image;
-class wxWindow;
 class FilmViewer;
+class Image;
 class Player;
 class PlayerVideo;
+class wxWindow;
 
 
 class VideoView : public ExceptionStore, public Signaller
index 07b2955b37d6d4da579ee227b1fa8bd5178b3aa1..766432ec6a0c608ae97b83059c6990dab73c01ea 100644 (file)
@@ -28,8 +28,8 @@
 #include "lib/player_video.h"
 #include <dcp/locale_convert.h>
 #include <dcp/openjpeg_image.h>
-#include <wx/rawbmp.h>
 #include <wx/graphics.h>
+#include <wx/rawbmp.h>
 #include <boost/bind/bind.hpp>
 #include <iostream>
 
index f85110eae69d749863d0a93d73072278fa2ab56e..a41337720082b94b0aedaaaf4b5fa5ef62a92c81 100644 (file)
@@ -34,8 +34,8 @@ DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
 #include <wx/gbsizer.h>
-#include <boost/thread.hpp>
 #include <boost/signals2.hpp>
+#include <boost/thread.hpp>
 
 
 class FilePickerCtrl;