summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-08-22 17:17:23 +0000
committerFlorian Jung <flo@windfisch.org>2011-08-22 17:17:23 +0000
commit83d25a41dfc356d2249d8cbed2f08416013eb07c (patch)
tree8c79d92d64803298174786097da263d516d41f50 /muse2/muse/app.cpp
parent6aa5a11e56b977c26cb4e108e23ed191160ba801 (diff)
renamed and rearranged "settings" menus
fixed empty title problem for list editor shared menu is also resetted when closing/hiding arranger, marker, cliplist
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index 69e4525a..b30358b1 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -840,7 +840,7 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
// popup Settings
//-------------------------------------------------------------
- menuSettings = new QMenu(tr("Se&ttings"), this);
+ menuSettings = new QMenu(tr("MusE Se&ttings"), this);
menuBar()->addMenu(menuSettings);
trailingMenus.push_back(menuSettings);
@@ -886,6 +886,8 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
mdiArea=new QMdiArea(this);
mdiArea->setOption(QMdiArea::DontMaximizeSubWindowOnActivation);
+ mdiArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+ mdiArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setCentralWidget(mdiArea);
connect(windowsTileAction, SIGNAL(activated()), mdiArea, SLOT(tileSubWindows()));
connect(windowsCascadeAction, SIGNAL(activated()), mdiArea, SLOT(cascadeSubWindows()));
@@ -1595,6 +1597,10 @@ void MusE::showMarker(bool flag)
}
markerView->setVisible(flag);
viewMarkerAction->setChecked(flag);
+ if (!flag)
+ if (currentMenuSharingTopwin == markerView)
+ setCurrentMenuSharingTopwin(NULL);
+
updateWindowMenu();
}
@@ -1605,6 +1611,9 @@ void MusE::showMarker(bool flag)
void MusE::markerClosed()
{
viewMarkerAction->setChecked(false);
+ if (currentMenuSharingTopwin == markerView)
+ setCurrentMenuSharingTopwin(NULL);
+
updateWindowMenu();
}
@@ -1625,6 +1634,9 @@ void MusE::showArranger(bool flag)
{
arrangerView->setVisible(flag);
viewArrangerAction->setChecked(flag);
+ if (!flag)
+ if (currentMenuSharingTopwin == arrangerView)
+ setCurrentMenuSharingTopwin(NULL);
updateWindowMenu();
}
@@ -2055,6 +2067,8 @@ void MusE::toplevelDeleted(TopWin* tl)
// ORCAN: This needs to be verified. aid2 used to correspond to Cliplist:
//menu_audio->setItemChecked(aid2, false);
viewCliplistAction->setChecked(false);
+ if (currentMenuSharingTopwin == clipListEdit)
+ setCurrentMenuSharingTopwin(NULL);
updateWindowMenu();
return;
//break;