summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2012-01-17 23:46:37 +0000
committerFlorian Jung <flo@windfisch.org>2012-01-17 23:46:37 +0000
commitd33b1fa0810a3b115939e99cf72e75243a0d385a (patch)
tree34a660d281282ba43653b3694eeb6d380d9b03ae /muse2/muse/app.cpp
parent1fb87721aff3e7bbac536c2e3d71f9fbeabd5abf (diff)
added song position toolbar for rapid position selection
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index 3dfba915..6c78eafa 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -82,6 +82,7 @@
#include "widgets/unusedwavefiles.h"
#include "functions.h"
#include "trackdrummapupdater.h"
+#include "songpos_toolbar.h"
namespace MusECore {
extern void initMidiSynth();
@@ -677,6 +678,13 @@ MusE::MusE(int /*argc*/, char** /*argv*/) : QMainWindow()
// when adding a toolbar to the main window, remember adding it to
// either the requiredToolbars or optionalToolbars list!
+ QToolBar* songpos_tb;
+ songpos_tb = addToolBar(tr("Song Position"));
+ songpos_tb->setObjectName("Song Position");
+ songpos_tb->addWidget(new MusEGui::SongPosToolbarWidget(songpos_tb));
+ songpos_tb->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
+ songpos_tb->setContextMenuPolicy(Qt::PreventContextMenu);
+
tools = addToolBar(tr("File Buttons"));
tools->setObjectName("File Buttons");
tools->addAction(fileNewAction);
@@ -697,6 +705,7 @@ MusE::MusE(int /*argc*/, char** /*argv*/) : QMainWindow()
panicToolbar->addAction(MusEGlobal::panicAction);
requiredToolbars.push_back(tools);
+ requiredToolbars.push_back(songpos_tb);
optionalToolbars.push_back(undoToolbar);
optionalToolbars.push_back(transportToolbar);
optionalToolbars.push_back(panicToolbar);