diff options
author | Florian Jung <flo@windfisch.org> | 2011-10-16 19:22:35 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-10-16 19:22:35 +0000 |
commit | f6fd0c7b4979612ed34a222c02d43e81ebaddf7e (patch) | |
tree | acd6ca648f8c15371f50935c4627c29fecc88aef /muse2/muse/midiedit/drumedit.h | |
parent | 5c191a7c5b525cfc833ed4d3be171101058e9779 (diff) |
ctrlcanvas stuff. not ready yet
BUGGY! problem is: while changing entries, ourDrumMap may be reallocated
which causes abort()s and/or bugs.
Diffstat (limited to 'muse2/muse/midiedit/drumedit.h')
-rw-r--r-- | muse2/muse/midiedit/drumedit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/muse2/muse/midiedit/drumedit.h b/muse2/muse/midiedit/drumedit.h index b860da80..08f485e7 100644 --- a/muse2/muse/midiedit/drumedit.h +++ b/muse2/muse/midiedit/drumedit.h @@ -33,6 +33,7 @@ #include "header.h" #include "shortcuts.h" #include "event.h" +#include "dcanvas.h" //FINDMICH UGLY. remove! class QCloseEvent; class QLabel; @@ -182,6 +183,8 @@ class DrumEdit : public MidiEditor { bool old_style_drummap_mode(); group_mode_t group_mode() { return _group_mode; } bool ignore_hide() { return _ignore_hide; } + + QVector<instrument_number_mapping_t>& get_instrument_map() { return static_cast<DrumCanvas*>(canvas)->get_instrument_map(); } //FINDMICH UGLY }; } // namespace MusEGui |