along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#include <cstdlib>
#include "ardour_ui.h"
#include "editor.h"
#include "time_axis_view.h"
-#include "regionview.h"
+#include "region_view.h"
#include "selection.h"
#include "i18n.h"
void
Editor::keyboard_duplicate_region ()
{
- if (selection->audio_regions.empty()) {
+ if (selection->regions.empty()) {
return;
}
- float prefix;
+ float prefix = 0;
bool was_floating;
if (get_prefix (prefix, was_floating) == 0) {
- duplicate_some_regions (selection->audio_regions, prefix);
+ duplicate_some_regions (selection->regions, prefix);
} else {
- duplicate_some_regions (selection->audio_regions, 1);
+ duplicate_some_regions (selection->regions, 1);
}
}
void
Editor::keyboard_duplicate_selection ()
{
- float prefix;
+ float prefix = 0;
bool was_floating;
if (get_prefix (prefix, was_floating) == 0) {
void
Editor::keyboard_paste ()
{
- float prefix;
+ float prefix = 0;
bool was_floating;
if (get_prefix (prefix, was_floating) == 0) {
void
Editor::keyboard_insert_region_list_selection ()
{
- float prefix;
+ float prefix = 0;
bool was_floating;
if (get_prefix (prefix, was_floating) == 0) {
int
Editor::get_prefix (float& val, bool& was_floating)
{
- return Keyboard::the_keyboard().get_prefix (val, was_floating);
+ was_floating = false;
+ return 1;
}