summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-08-10 17:53:12 +0000
committerFlorian Jung <flo@windfisch.org>2011-08-10 17:53:12 +0000
commit55d5f2d38bfe7c9673a315bb5597c20675bfde99 (patch)
tree52d8b082cfe10aaa58d893bd32c823267e049818 /muse2/muse/app.cpp
parentbefca1aa676e5ee010525cc1af70051ec4c04722 (diff)
THIS IS JUST A PROOF OF CONCEPT
arranger is now a MdiSubWin
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp30
1 files changed, 20 insertions, 10 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index 53078d44..8f60cff5 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -14,6 +14,8 @@
#include <QWhatsThis>
#include <QSettings>
#include <QProgressDialog>
+#include <QMdiArea>
+#include <QMdiSubWindow>
#include "app.h"
#include "master/lmaster.h"
@@ -824,18 +826,26 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
//menu_ids[CMD_START_WHATSTHIS] = menu_help->insertItem(tr("What's &This?"), this, SLOT(whatsThis()), 0);
+ //---------------------------------------------------
+ // Central Widget
+ //---------------------------------------------------
+
+
+ mdiArea=new QMdiArea(this);
+ setCentralWidget(mdiArea);
+
+
arrangerView = new ArrangerView(this);
connect(arrangerView, SIGNAL(closed()), SLOT(arrangerClosed()));
toplevels.push_back(Toplevel(Toplevel::ARRANGER, (unsigned long)(arrangerView), arrangerView));
arrangerView->hide();
arranger=arrangerView->getArranger();
-
-
- //---------------------------------------------------
- // Central Widget
- //---------------------------------------------------
-
- //TODO FINDMICHJETZT mdiarea erstellen und als central widget setzen!
+
+ //QMdiSubWindow* subwin=new QMdiSubWindow(this); //FINDMICHJETZT
+ //subwin->setWidget(arrangerView);
+ //mdiArea->addSubWindow(subwin);
+ mdiArea->addSubWindow(arrangerView->createMdiWrapper());
+
//---------------------------------------------------
// read list of "Recent Projects"
//---------------------------------------------------
@@ -1021,7 +1031,7 @@ void MusE::loadProjectFile(const QString& name, bool songTemplate, bool loadAll)
if (restartSequencer)
seqStart();
- //visTracks->updateVisibleTracksButtons(); //TODO FINDMICHJETZT
+ arrangerView->updateVisibleTracksButtons();
progress->setValue(100);
delete progress;
progress=0;
@@ -2128,7 +2138,7 @@ static void catchSignal(int sig)
// some cmd's from pulldown menu
//---------------------------------------------------------
-void MusE::cmd(int cmd) //FINDMICHJETZT
+void MusE::cmd(int cmd)
{
switch(cmd) {
case CMD_FOLLOW_NO:
@@ -2731,7 +2741,7 @@ void MusE::updateConfiguration()
//menuSettings->setAccel(shortcuts[SHRT_CONFIG_AUDIO_PORTS].key, menu_ids[CMD_CONFIG_AUDIO_PORTS]);
//menu_help->setAccel(menu_ids[CMD_START_WHATSTHIS], shortcuts[SHRT_START_WHATSTHIS].key);
- //arrangerView->updateShortcuts(); //FINDMICHJETZT is done via signal
+ //arrangerView->updateShortcuts(); //commented out by flo: is done via signal
}