diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-18 11:41:44 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-18 11:59:54 +0200 |
| commit | d8fc4fd042a3ae62ab1b258dbfa032bc7a933dc2 (patch) | |
| tree | 1bc928ffd7f87a82fd15e511fcaf9dc59fc8863f /src/wx/text_view.h | |
| parent | 1aa976b08e0cb7430adeb6c243e1cb9c7b330365 (diff) | |
Remember position and size of caption list view.
Diffstat (limited to 'src/wx/text_view.h')
| -rw-r--r-- | src/wx/text_view.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/text_view.h b/src/wx/text_view.h index 8cf3c78bb..d1271ef26 100644 --- a/src/wx/text_view.h +++ b/src/wx/text_view.h @@ -18,6 +18,8 @@ */ + +#include "window_metrics.h" #include "lib/content_text.h" #include <dcp/warnings.h> LIBDCP_DISABLE_WARNINGS @@ -25,10 +27,12 @@ LIBDCP_DISABLE_WARNINGS #include <wx/wx.h> LIBDCP_ENABLE_WARNINGS + class Decoder; class FilmViewer; class Film; + class TextView : public wxDialog { public: @@ -41,10 +45,14 @@ public: FilmViewer& viewer ); + void show(); + private: void data_start (ContentStringText cts); void data_stop (dcpomatic::ContentTime time); void subtitle_selected (wxListEvent &); + void moved(wxMoveEvent& ev); + void list_sized(wxSizeEvent& ev); wxListCtrl* _list; int _subs; @@ -53,4 +61,6 @@ private: std::vector<dcpomatic::ContentTime> _start_times; std::weak_ptr<Content> _content; FilmViewer& _film_viewer; + + static WindowMetrics _metrics; }; |
