vector<pair<wxString, dcp::Marker>>
-all_markers()
+all_editable_markers()
{
return vector<pair<wxString, dcp::Marker>>{
- { _("First frame of composition"), dcp::Marker::FFOC },
- { _("Last frame of composition"), dcp::Marker::LFOC },
{ _("First frame of title credits"), dcp::Marker::FFTC },
{ _("Last frame of title credits"), dcp::Marker::LFTC },
{ _("First frame of intermission"), dcp::Marker::FFOI },
#include <vector>
-extern std::vector<std::pair<wxString, dcp::Marker>> all_markers ();
+extern std::vector<std::pair<wxString, dcp::Marker>> all_editable_markers();
auto grid = new wxGridBagSizer (DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
int r = 0;
- for (auto const& marker: all_markers()) {
+ for (auto const& marker: all_editable_markers()) {
_markers.push_back (make_shared<Marker>(this, grid, r++, film, viewer, marker.first, marker.second));
}
Bind (wxEVT_MENU, boost::bind(&MarkersPanel::move_marker_to_current_position, this), ID_move_marker_to_current_position);
Bind (wxEVT_MENU, boost::bind(&MarkersPanel::remove_marker, this), ID_remove_marker);
- Bind (wxEVT_MENU, boost::bind(&MarkersPanel::add_marker, this, _1), ID_add_base, ID_add_base + all_markers().size());
+ Bind (wxEVT_MENU, boost::bind(&MarkersPanel::add_marker, this, _1), ID_add_base, ID_add_base + all_editable_markers().size());
}
}
auto add_marker = new wxMenu ();
- for (auto const& marker: all_markers()) {
+ for (auto const& marker: all_editable_markers()) {
add_marker->Append (static_cast<int>(ID_add_base) + static_cast<int>(marker.second), marker.first);
}
menu.Append (ID_add_marker, _("Add or move marker to current position"), add_marker);