diff options
author | Florian Jung <flo@windfisch.org> | 2011-04-15 17:12:51 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-04-15 17:12:51 +0000 |
commit | d7e222752028fd0bed037c06806d252a66c5db88 (patch) | |
tree | af9ef20113c14560f41bf0a28783a0a6878c691d /muse2/muse/app.cpp | |
parent | 84fdf802caa8a37cbbc3e8d2a4b33e7e89251604 (diff) |
scores now have names; the user can't change them yet,
but implementing this will be no problem
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r-- | muse2/muse/app.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index c4ed06dc..a96b7e9b 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -3444,7 +3444,10 @@ PartList* MusE::getMidiPartsToEdit() return pl; } - +void MusE::scoreNamingChanged() +{ + updateScoreMenus(); +} void MusE::updateScoreMenus() { @@ -3471,13 +3474,13 @@ void MusE::updateScoreMenus() { ScoreEdit* score = (ScoreEdit*) it->cobject(); - action=new QAction(tr("foo"), this); //TODO FLO: use proper name instead of "foo" + action=new QAction(QString(score->get_name().c_str()), this); connect(action, SIGNAL(activated()), scoreOneStaffPerTrackMapper, SLOT(map())); scoreOneStaffPerTrackMapper->setMapping(action, (QWidget*)score); scoreOneStaffPerTrackSubsubmenu->addAction(action); - action=new QAction(tr("foo"), this); //the above action may NOT be reused! //TODO FLO: see above + action=new QAction(QString(score->get_name().c_str()), this); //the above action may NOT be reused! connect(action, SIGNAL(activated()), scoreAllInOneMapper, SLOT(map())); scoreAllInOneMapper->setMapping(action, (QWidget*)score); scoreAllInOneSubsubmenu->addAction(action); |