summaryrefslogtreecommitdiff
path: root/muse2/muse/dialogs.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-09-11 15:34:52 +0000
committerFlorian Jung <flo@windfisch.org>2011-09-11 15:34:52 +0000
commit253b9d9f1a17b98f3f6696f456e9d83f1ac9aee3 (patch)
tree0b32703e2bee9fb8135295671f7f2b7194cd2aaa /muse2/muse/dialogs.cpp
parent5f5a8e76f19d6956f6d711979877028f07203d88 (diff)
began with implementing the improved paste for midi editors
TODO: sane values for raster, and respect raster and amount values support ctrl+shift+c
Diffstat (limited to 'muse2/muse/dialogs.cpp')
-rw-r--r--muse2/muse/dialogs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/muse2/muse/dialogs.cpp b/muse2/muse/dialogs.cpp
index a0bf265f..18db2352 100644
--- a/muse2/muse/dialogs.cpp
+++ b/muse2/muse/dialogs.cpp
@@ -32,6 +32,7 @@
#include "widgets/function_dialogs/deloverlaps.h"
#include "widgets/function_dialogs/legato.h"
#include "widgets/pastedialog.h"
+#include "widgets/pasteeventsdialog.h"
#include "xml.h"
@@ -50,6 +51,7 @@ MusEDialog::Transpose* transpose_dialog=NULL;
MusEDialog::Crescendo* crescendo_dialog=NULL;
MusEDialog::Legato* legato_dialog=NULL;
PasteDialog* paste_dialog=NULL; // FINDMICHJETZT
+PasteEventsDialog* paste_events_dialog=NULL; // FINDMICHJETZT
void init_function_dialogs(QWidget* parent)
{
@@ -64,6 +66,7 @@ void init_function_dialogs(QWidget* parent)
crescendo_dialog = new MusEDialog::Crescendo(parent);
legato_dialog = new MusEDialog::Legato(parent);
paste_dialog = new PasteDialog(parent); // FINDMICHJETZT
+ paste_events_dialog = new PasteEventsDialog(parent); // FINDMICHJETZT
}
void read_function_dialog_config(Xml& xml)
@@ -107,6 +110,8 @@ void read_function_dialog_config(Xml& xml)
legato_dialog->read_configuration(xml);
else if (tag == "pastedialog")
paste_dialog->read_configuration(xml);
+ else if (tag == "pasteeventsdialog")
+ paste_events_dialog->read_configuration(xml);
else
xml.unknown("dialogs");
break;
@@ -136,6 +141,7 @@ void write_function_dialog_config(int level, Xml& xml)
crescendo_dialog->write_configuration(level, xml);
legato_dialog->write_configuration(level, xml);
paste_dialog->write_configuration(level, xml);
+ paste_events_dialog->write_configuration(level, xml);
xml.tag(level, "/dialogs");
}