summaryrefslogtreecommitdiff
path: root/muse2/muse/functions.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-05-29 12:43:17 +0000
committerFlorian Jung <flo@windfisch.org>2011-05-29 12:43:17 +0000
commit25a43d58dead31caf482fc8ada4f231d2f1269d9 (patch)
treec39631efc11ab7099520e9b2f861a86674db1251 /muse2/muse/functions.h
parent55a6fa75d70dbcd38e4b434420c970475448d1a7 (diff)
- moved cut,copy'n'paste to functions.cpp, removed unneccessary
duplication - changed behaviour of paste: now the pasted, not the original notes are selected
Diffstat (limited to 'muse2/muse/functions.h')
-rw-r--r--muse2/muse/functions.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/muse2/muse/functions.h b/muse2/muse/functions.h
index 40e5f0e0..b08c2c39 100644
--- a/muse2/muse/functions.h
+++ b/muse2/muse/functions.h
@@ -22,6 +22,8 @@
#include <set>
#include "part.h"
+class QString;
+class QMimeData;
extern GateTime* gatetime_dialog;
extern Velocity* velocity_dialog;
@@ -68,6 +70,12 @@ bool delete_overlaps(const std::set<Part*>& parts);
bool legato(const std::set<Part*>& parts);
+//functions for copy'n'paste
+void copy_notes(const std::set<Part*>& parts, int range);
+void paste_notes(Part* dest_part);
+QMimeData* selected_events_to_mime(const std::set<Part*>& parts, int range);
+void paste_at(Part* dest_part, const QString& pt, int pos);
+
//functions for reading and writing default values
class Xml;