diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-12-13 23:27:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-12 00:43:51 +0100 |
| commit | 783680c0efae1934409e4c93796b5a6265198e17 (patch) | |
| tree | 677f288632ea0e79e86d1b8e1e109daec9491b0a /src/wx/content_timeline_dialog.h | |
| parent | f81655002b1ef1427e2845dc5d354da6020bfafb (diff) | |
Rename TimelineDialog -> ContentTimelineDialog.
Diffstat (limited to 'src/wx/content_timeline_dialog.h')
| -rw-r--r-- | src/wx/content_timeline_dialog.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/wx/content_timeline_dialog.h b/src/wx/content_timeline_dialog.h new file mode 100644 index 000000000..2babf0437 --- /dev/null +++ b/src/wx/content_timeline_dialog.h @@ -0,0 +1,48 @@ +/* + Copyright (C) 2013-2021 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 "content_timeline.h" +#include <dcp/warnings.h> +LIBDCP_DISABLE_WARNINGS +#include <wx/wx.h> +LIBDCP_ENABLE_WARNINGS + + +class Playlist; + + +class ContentTimelineDialog : public wxDialog +{ +public: + ContentTimelineDialog(ContentPanel *, std::shared_ptr<Film>, FilmViewer& viewer); + + void set_selection (ContentList selection); + +private: + void film_change(ChangeType type, FilmProperty); + void tool_clicked (wxCommandEvent& id); + void keypress(wxKeyEvent const& event); + + std::weak_ptr<Film> _film; + ContentTimeline _timeline; + wxToolBar* _toolbar; + boost::signals2::scoped_connection _film_changed_connection; +}; |
