13
0
livetrax/gtk2_ardour/cue_editor.cc

241 lines
3.6 KiB
C++
Raw Normal View History

2023-11-17 19:57:45 -05:00
#include "cue_editor.h"
#include "editor_drag.h"
#include "pbd/i18n.h"
2023-11-17 19:57:45 -05:00
CueEditor::CueEditor (std::string const & name)
: EditingContext (name)
, HistoryOwner (X_("cue-editor"))
2023-11-17 19:57:45 -05:00
{
}
CueEditor::~CueEditor ()
{
}
void
CueEditor::set_snapped_cursor_position (Temporal::timepos_t const & pos)
{
}
std::vector<MidiRegionView*>
CueEditor::filter_to_unique_midi_region_views (RegionSelection const & ms) const
{
std::vector<MidiRegionView*> mrv;
return mrv;
}
void
CueEditor::select_all_within (Temporal::timepos_t const &, Temporal::timepos_t const &, double, double, TrackViewList const &, Selection::Operation, bool)
{
}
void
CueEditor::get_regionviews_by_id (PBD::ID const id, RegionSelection & regions) const
{
}
StripableTimeAxisView*
CueEditor::get_stripable_time_axis_by_id (const PBD::ID& id) const
{
return nullptr;
}
TrackViewList
CueEditor::axis_views_from_routes (std::shared_ptr<ARDOUR::RouteList>) const
{
TrackViewList tvl;
return tvl;
}
ARDOUR::Location*
CueEditor::find_location_from_marker (ArdourMarker*, bool&) const
{
return nullptr;
}
ArdourMarker*
CueEditor::find_marker_from_location_id (PBD::ID const&, bool) const
{
return nullptr;
}
TempoMarker*
CueEditor::find_marker_for_tempo (Temporal::TempoPoint const &)
{
return nullptr;
}
MeterMarker*
CueEditor::find_marker_for_meter (Temporal::MeterPoint const &)
{
return nullptr;
}
void
CueEditor::maybe_autoscroll (bool, bool, bool from_headers)
{
}
void
CueEditor::stop_canvas_autoscroll ()
{
}
bool
CueEditor::autoscroll_active() const
{
return false;
2023-11-17 19:57:45 -05:00
}
void
CueEditor::redisplay_grid (bool immediate_redraw)
{
}
Temporal::timecnt_t
CueEditor::get_nudge_distance (Temporal::timepos_t const & pos, Temporal::timecnt_t& next) const
2023-11-17 19:57:45 -05:00
{
return Temporal::timecnt_t (Temporal::AudioTime);
}
void
CueEditor::instant_save()
{
}
EditingContext::EnterContext*
CueEditor::get_enter_context(ItemType type)
{
return nullptr;
}
void
CueEditor::begin_selection_op_history ()
{
}
void
CueEditor::begin_reversible_selection_op (std::string cmd_name)
{
}
void
CueEditor::commit_reversible_selection_op ()
{
}
void
CueEditor::abort_reversible_selection_op ()
{
}
void
CueEditor::undo_selection_op ()
{
}
void
CueEditor::redo_selection_op ()
{
}
double
CueEditor::get_y_origin () const
{
return 0.;
}
void
CueEditor::set_zoom_focus (Editing::ZoomFocus)
{
}
Editing::ZoomFocus
CueEditor::get_zoom_focus () const
{
return Editing::ZoomFocusPlayhead;
}
void
CueEditor::set_samples_per_pixel (samplecnt_t n)
2023-11-17 19:57:45 -05:00
{
samples_per_pixel = n;
ZoomChanged(); /* EMIT SIGNAL */
2023-11-17 19:57:45 -05:00
}
samplecnt_t
CueEditor::get_current_zoom () const
{
return samples_per_pixel;
}
2023-11-17 19:57:45 -05:00
void
CueEditor::reposition_and_zoom (samplepos_t, double)
{
}
void
CueEditor::set_mouse_mode (Editing::MouseMode, bool force)
{
}
void
CueEditor::step_mouse_mode (bool next)
{
}
void
CueEditor::reset_x_origin_to_follow_playhead ()
{
}
Gdk::Cursor*
CueEditor::get_canvas_cursor () const
{
return nullptr;
}
Editing::MouseMode
CueEditor::current_mouse_mode () const
{
return Editing::MouseContent;
}
std::shared_ptr<Temporal::TempoMap const>
CueEditor::start_local_tempo_map (std::shared_ptr<Temporal::TempoMap> map)
{
std::shared_ptr<Temporal::TempoMap const> tmp = Temporal::TempoMap::use();
Temporal::TempoMap::set (map);
return tmp;
}
void
CueEditor::end_local_tempo_map (std::shared_ptr<Temporal::TempoMap const> map)
{
Temporal::TempoMap::set (map);
}
void
CueEditor::do_undo (uint32_t n)
{
if (_drags->active ()) {
_drags->abort ();
}
_history.undo (n);
}
void
CueEditor::do_redo (uint32_t n)
{
if (_drags->active ()) {
_drags->abort ();
}
_history.redo (n);
}