#include <ardour/session.h>
#include <ardour/region.h>
+#include <gtkmm/treeview.h>
#include "ardour_ui.h"
#include "editor.h"
void
Editor::keyboard_selection_finish (bool add)
{
- cerr << "here\n";
-
if (session && have_pending_keyboard_selection) {
nframes64_t end;
}
}
-void
-Editor::keyboard_duplicate_region ()
-{
- if (selection->regions.empty()) {
- return;
- }
-
- float prefix = 0;
- bool was_floating;
-
- if (get_prefix (prefix, was_floating) == 0) {
- duplicate_some_regions (selection->regions, prefix);
- } else {
- duplicate_some_regions (selection->regions, 1);
- }
-}
-
-void
-Editor::keyboard_duplicate_selection ()
-{
- float prefix = 0;
- bool was_floating;
-
- if (get_prefix (prefix, was_floating) == 0) {
- duplicate_selection (prefix);
- } else {
- duplicate_selection (1);
- }
-}
-
void
Editor::keyboard_paste ()
{
- float prefix = 0;
- bool was_floating;
-
- if (get_prefix (prefix, was_floating) == 0) {
- paste (prefix);
- } else {
- paste (1);
- }
+ ensure_entered_track_selected (true);
+ paste (1);
}
void
Editor::keyboard_insert_region_list_selection ()
{
- float prefix = 0;
- bool was_floating;
-
- if (get_prefix (prefix, was_floating) == 0) {
- insert_region_list_selection (prefix);
- } else {
- insert_region_list_selection (1);
- }
+ insert_region_list_selection (1);
}
int