summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-04-26 18:33:00 +0000
committerFlorian Jung <flo@windfisch.org>2011-04-26 18:33:00 +0000
commit928081edaa0752e14577c36b6b595ab38079224a (patch)
treef84f7a919d7bfe95929e63e0c12c13acfc6a66c7 /muse2/muse/app.cpp
parentcea0fdb5f411c7af11f588191bccf4b643536594 (diff)
added "new score window"-menu-entry for quickly opening a new score
window with one staff per track added "score"-entries for the popup-menu in the arranger changed arranger's popup-menu: now the pianoroll etc. actions are the same as the "Edit"-Menu's actions
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index 9bbe8736..80a7b7ef 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -999,9 +999,13 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
scoreAllInOneSubsubmenu = new QMenu(tr("all parts in one staff"), this);
scoreOneStaffPerTrackSubsubmenu = new QMenu(tr("one staff per part"), this);
+
+ scoreSubmenu->addMenu(scoreAllInOneSubsubmenu);
+ scoreSubmenu->addMenu(scoreOneStaffPerTrackSubsubmenu);
updateScoreMenus();
+ startScoreEditAction = new QAction(*scoreIconSet, tr("New score window"), this);
startPianoEditAction = new QAction(*pianoIconSet, tr("Pianoroll"), this);
startDrumEditAction = new QAction(QIcon(*edit_drummsIcon), tr("Drums"), this);
startListEditAction = new QAction(QIcon(*edit_listIcon), tr("List"), this);
@@ -1151,6 +1155,7 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
connect(editSignalMapper, SIGNAL(mapped(int)), this, SLOT(cmd(int)));
connect(startPianoEditAction, SIGNAL(activated()), SLOT(startPianoroll()));
+ connect(startScoreEditAction, SIGNAL(activated()), SLOT(startScoreQuickly()));
connect(startDrumEditAction, SIGNAL(activated()), SLOT(startDrumEditor()));
connect(startListEditAction, SIGNAL(activated()), SLOT(startListEditor()));
connect(startWaveEditAction, SIGNAL(activated()), SLOT(startWaveEditor()));
@@ -1373,8 +1378,7 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
menuEdit->addAction(startPianoEditAction);
menuEdit->addMenu(scoreSubmenu);
- scoreSubmenu->addMenu(scoreAllInOneSubsubmenu);
- scoreSubmenu->addMenu(scoreOneStaffPerTrackSubsubmenu);
+ menuEdit->addAction(startScoreEditAction);
menuEdit->addAction(startDrumEditAction);
menuEdit->addAction(startListEditAction);
menuEdit->addAction(startWaveEditAction);
@@ -3536,6 +3540,11 @@ void MusE::openInScoreEdit(ScoreEdit* destination, PartList* pl, bool allInOne)
destination->add_parts(pl, allInOne);
}
+void MusE::startScoreQuickly()
+{
+ openInScoreEdit_oneStaffPerTrack(NULL);
+}
+
//---------------------------------------------------------
// startPianoroll
//---------------------------------------------------------