projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add FilmViewer::time_until_next_frame.
[dcpomatic.git]
/
src
/
wx
/
closed_captions_dialog.h
diff --git
a/src/wx/closed_captions_dialog.h
b/src/wx/closed_captions_dialog.h
index 4b47d593fc2a5ace624c1bf04c428506af311613..fb4e9d59b40c5569e90a02c5013f28bd2a051531 100644
(file)
--- a/
src/wx/closed_captions_dialog.h
+++ b/
src/wx/closed_captions_dialog.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2018
-2019
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-20,22
+20,32
@@
#include "lib/dcpomatic_time.h"
#include "lib/player.h"
#include "lib/dcpomatic_time.h"
#include "lib/player.h"
+#include "lib/text_ring_buffers.h"
#include <wx/wx.h>
#include <wx/wx.h>
-class Player;
+class Butler;
+class FilmViewer;
class ClosedCaptionsDialog : public wxDialog
{
public:
class ClosedCaptionsDialog : public wxDialog
{
public:
-
ClosedCaptionsDialog (explicit wxWindow* parent
);
+
explicit ClosedCaptionsDialog (wxWindow* parent, FilmViewer* viewer
);
- void update (DCPTime);
+ void update (
dcpomatic::
DCPTime);
void clear ();
void clear ();
- void set_
player (boost::weak_ptr<Play
er>);
+ void set_
film_and_butler (boost::shared_ptr<Film>, boost::weak_ptr<Butl
er>);
private:
void paint ();
private:
void paint ();
+ void track_selected ();
+ FilmViewer* _viewer;
+ wxPanel* _display;
+ wxChoice* _track;
+ boost::optional<TextRingBuffers::Data> _current;
+ bool _current_in_lines;
std::vector<wxString> _lines;
std::vector<wxString> _lines;
- boost::weak_ptr<Player> _player;
+ std::vector<DCPTextTrack> _tracks;
+ boost::weak_ptr<Butler> _butler;
+ dcpomatic::DCPTime _last_update;
};
};