#include "content_menu.h"
#include "content_properties_dialog.h"
#include "content_timeline_audio_view.h"
+#include "content_timeline_video_view.h"
#include "dir_dialog.h"
#include "file_dialog.h"
#include "film_viewer.h"
#include "id.h"
#include "repeat_dialog.h"
-#include "timeline_video_content_view.h"
#include "wx_util.h"
#include "lib/audio_content.h"
#include "lib/config.h"
continue;
}
- shared_ptr<TimelineVideoContentView> video;
+ shared_ptr<ContentTimelineVideoView> video;
shared_ptr<ContentTimelineAudioView> audio;
for (auto j: _views) {
- auto v = dynamic_pointer_cast<TimelineVideoContentView>(j);
+ auto v = dynamic_pointer_cast<ContentTimelineVideoView>(j);
auto a = dynamic_pointer_cast<ContentTimelineAudioView>(j);
if (v && v->content() == fc) {
video = v;
#include "film_viewer.h"
#include "content_timeline_atmos_view.h"
#include "content_timeline_audio_view.h"
+#include "content_timeline_video_view.h"
#include "timeline_labels_view.h"
#include "timeline_reels_view.h"
#include "timeline_text_content_view.h"
#include "timeline_time_axis_view.h"
-#include "timeline_video_content_view.h"
#include "wx_util.h"
#include "lib/atmos_mxf_content.h"
#include "lib/audio_content.h"
for (auto i: film->content ()) {
if (i->video) {
- _views.push_back (make_shared<TimelineVideoContentView>(*this, i));
+ _views.push_back(make_shared<ContentTimelineVideoView>(*this, i));
}
if (i->audio && !i->audio->mapping().mapped_output_channels().empty ()) {
}
}
- int const video_tracks = place<TimelineVideoContentView> (film, _views, _tracks);
+ int const video_tracks = place<ContentTimelineVideoView>(film, _views, _tracks);
int const text_tracks = place<TimelineTextContentView> (film, _views, _tracks);
/* Atmos */
--- /dev/null
+/*
+ Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net>
+
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ DCP-o-matic is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+
+#include "lib/image_content.h"
+#include "lib/video_content.h"
+#include "content_timeline_video_view.h"
+
+
+using std::dynamic_pointer_cast;
+using std::shared_ptr;
+
+
+ContentTimelineVideoView::ContentTimelineVideoView(ContentTimeline& tl, shared_ptr<Content> c)
+ : TimelineContentView (tl, c)
+{
+
+}
+
+wxColour
+ContentTimelineVideoView::background_colour() const
+{
+ if (!active()) {
+ return wxColour (210, 210, 210, 128);
+ }
+
+ return wxColour (242, 92, 120, 255);
+}
+
+wxColour
+ContentTimelineVideoView::foreground_colour() const
+{
+ if (!active()) {
+ return wxColour (180, 180, 180, 128);
+ }
+
+ return wxColour (0, 0, 0, 255);
+}
+
+bool
+ContentTimelineVideoView::active() const
+{
+ auto c = _content.lock();
+ DCPOMATIC_ASSERT (c);
+ return c->video && c->video->use();
+}
--- /dev/null
+/*
+ Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ DCP-o-matic is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+
+#include "timeline_content_view.h"
+
+
+/** @class ContentTimelineVideoView
+ * @brief Content timeline view for VideoContent.
+ */
+class ContentTimelineVideoView : public TimelineContentView
+{
+public:
+ ContentTimelineVideoView(ContentTimeline& tl, std::shared_ptr<Content> c);
+
+private:
+ bool active () const override;
+ wxColour background_colour () const override;
+ wxColour foreground_colour () const override;
+};
+++ /dev/null
-/*
- Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net>
-
- This file is part of DCP-o-matic.
-
- DCP-o-matic is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- DCP-o-matic is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
-
-*/
-
-
-#include "lib/image_content.h"
-#include "lib/video_content.h"
-#include "timeline_video_content_view.h"
-
-
-using std::dynamic_pointer_cast;
-using std::shared_ptr;
-
-
-TimelineVideoContentView::TimelineVideoContentView(ContentTimeline& tl, shared_ptr<Content> c)
- : TimelineContentView (tl, c)
-{
-
-}
-
-wxColour
-TimelineVideoContentView::background_colour () const
-{
- if (!active()) {
- return wxColour (210, 210, 210, 128);
- }
-
- return wxColour (242, 92, 120, 255);
-}
-
-wxColour
-TimelineVideoContentView::foreground_colour () const
-{
- if (!active()) {
- return wxColour (180, 180, 180, 128);
- }
-
- return wxColour (0, 0, 0, 255);
-}
-
-bool
-TimelineVideoContentView::active () const
-{
- shared_ptr<Content> c = _content.lock ();
- DCPOMATIC_ASSERT (c);
- return c->video && c->video->use();
-}
+++ /dev/null
-/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
-
- This file is part of DCP-o-matic.
-
- DCP-o-matic is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- DCP-o-matic is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
-
-*/
-
-
-#include "timeline_content_view.h"
-
-
-/** @class TimelineVideoContentView
- * @brief Timeline view for VideoContent.
- */
-class TimelineVideoContentView : public TimelineContentView
-{
-public:
- TimelineVideoContentView(ContentTimeline& tl, std::shared_ptr<Content> c);
-
-private:
- bool active () const override;
- wxColour background_colour () const override;
- wxColour foreground_colour () const override;
-};
content_timeline_atmos_view.cc
content_timeline_audio_view.cc
content_timeline_dialog.cc
+ content_timeline_video_view.cc
content_timeline_view.cc
content_version_dialog.cc
content_view.cc
timeline_text_content_view.cc
timeline_reels_view.cc
timeline_time_axis_view.cc
- timeline_video_content_view.cc
timing_panel.cc
try_unmount_dialog.cc
update_dialog.cc