From b420f1dd82698c9d7c46212a57a1142a4e37f228 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Mon, 22 Aug 2011 18:17:08 +0000 Subject: added fullscreen mode --- muse2/muse/app.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'muse2/muse/app.cpp') diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index b30358b1..d6990c67 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -506,6 +506,9 @@ MusE::MusE(int argc, char** argv) : QMainWindow() viewMarkerAction->setCheckable(true); viewArrangerAction = new QAction(tr("Arranger View"), this); viewArrangerAction->setCheckable(true); + fullscreenAction=new QAction(tr("Fullscreen"), this); + fullscreenAction->setCheckable(true); + fullscreenAction->setChecked(false); //-------- Midi Actions menuScriptPlugins = new QMenu(tr("&Plugins"), this); @@ -595,6 +598,7 @@ MusE::MusE(int argc, char** argv) : QMainWindow() connect(viewCliplistAction, SIGNAL(toggled(bool)), SLOT(startClipList(bool))); connect(viewMarkerAction, SIGNAL(toggled(bool)), SLOT(toggleMarker(bool))); connect(viewArrangerAction, SIGNAL(toggled(bool)), SLOT(toggleArranger(bool))); + connect(fullscreenAction, SIGNAL(toggled(bool)), SLOT(setFullscreen(bool))); //-------- Midi connections connect(midiEditInstAction, SIGNAL(activated()), SLOT(startEditInstrument())); @@ -767,6 +771,8 @@ MusE::MusE(int argc, char** argv) : QMainWindow() menuView->addAction(viewCliplistAction); menuView->addAction(viewMarkerAction); menuView->addAction(viewArrangerAction); + menuView->addSeparator(); + menuView->addAction(fullscreenAction); //------------------------------------------------------------- @@ -3246,3 +3252,11 @@ void MusE::bringToFront(QWidget* widget) win->raise(); } } + +void MusE::setFullscreen(bool val) +{ + if (val) + showFullScreen(); + else + showNormal(); +} -- cgit v1.2.3