diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-03-01 16:11:57 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-03-01 16:11:57 +0000 |
commit | e34cbdc31e42538b551025313ff97410ae24b1c7 (patch) | |
tree | f3af0df61e47798759493d1f3581eebd70f4fbbb /muse2/muse/app.cpp | |
parent | 1645eee5c59ea72438d730a01add17e106b8c82f (diff) |
allow to show/hide track-types from arranger
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r-- | muse2/muse/app.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index a2b5102a..0a8bb658 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -52,6 +52,8 @@ #include "waveedit.h" #include "widgets/projectcreateimpl.h" #include "widgets/menutitleitem.h" +#include "tools.h" +#include "visibletracks.h" #ifdef DSSI_SUPPORT #include "dssihost.h" @@ -1248,6 +1250,9 @@ MusE::MusE(int argc, char** argv) : QMainWindow() panicToolbar->setObjectName("Panic"); panicToolbar->addAction(panicAction); + visTracks = new VisibleTracks(this); + addToolBar(visTracks); + //rlimit lim; //getrlimit(RLIMIT_RTPRIO, &lim); @@ -1487,6 +1492,7 @@ MusE::MusE(int argc, char** argv) : QMainWindow() setCentralWidget(arranger); connect(tools1, SIGNAL(toolChanged(int)), arranger, SLOT(setTool(int))); + connect(visTracks, SIGNAL(visibilityChanged()), song, SLOT(update()) ); connect(arranger, SIGNAL(editPart(Track*)), SLOT(startEditor(Track*))); connect(arranger, SIGNAL(dropSongFile(const QString&)), SLOT(loadProjectFile(const QString&))); connect(arranger, SIGNAL(dropMidiFile(const QString&)), SLOT(importMidi(const QString&))); |