summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-12-31 09:02:13 +0000
committerTim E. Real <termtech@rogers.com>2010-12-31 09:02:13 +0000
commitbf97cc86df42bdbef8f626f2fd457e17f8bc4366 (patch)
treef38c0356319ec6ced4b45577b8f279a175694e38 /muse2/muse/app.cpp
parent3a6b421ef02d7defbc6207fdd8fe7fa5608fa2bc (diff)
Possible fix for arranger focussing problems.
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index 968c9388..3758bcb9 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -764,6 +764,7 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
setIconSize(ICON_SIZE);
setFocusPolicy(Qt::WheelFocus);
+ //setFocusPolicy(Qt::NoFocus);
muse = this; // hack
clipListEdit = 0;
midiSyncConfig = 0;
@@ -1469,7 +1470,7 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
arranger = new Arranger(this, "arranger");
setCentralWidget(arranger);
-
+
connect(tools1, SIGNAL(toolChanged(int)), arranger, SLOT(setTool(int)));
connect(arranger, SIGNAL(editPart(Track*)), SLOT(startEditor(Track*)));
connect(arranger, SIGNAL(dropSongFile(const QString&)), SLOT(loadProjectFile(const QString&)));
@@ -3417,6 +3418,24 @@ void MusE::kbAccel(int key)
else if (key == shortcuts[SHRT_PLAY_SONG].key ) {
song->setPlay(true);
}
+
+ /*
+ else if (key == shortcuts[SHRT_POS_DEC].key) {
+ int pos = song->pos();
+ int frames = pos - AL::sigmap.rasterStep(pos, *_raster);
+ if (frames < 0)
+ frames = 0;
+ Pos p(frames,true);
+ song->setPos(0, p, true, true, true);
+ return;
+ }
+ else if (key == shortcuts[SHRT_POS_INC].key) {
+ Pos p(pos[0] + AL::sigmap.rasterStep(pos[0], *_raster), true);
+ song->setPos(0, p, true, true, true); //CDW
+ return;
+ }
+ */
+
else if (key == shortcuts[SHRT_GOTO_LEFT].key) {
if (!song->record())
song->setPos(0, song->lPos());