Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 302:2fe08e403a9b
* Add vestigial Activity Log
author | Chris Cannam |
---|---|
date | Tue, 24 Feb 2009 14:01:42 +0000 |
parents | f68506fccb62 |
children | 5d691489a84f |
comparison
equal
deleted
inserted
replaced
301:4ba091beade5 | 302:2fe08e403a9b |
---|---|
47 #include "widgets/SubdividingMenu.h" | 47 #include "widgets/SubdividingMenu.h" |
48 #include "widgets/NotifyingPushButton.h" | 48 #include "widgets/NotifyingPushButton.h" |
49 #include "widgets/KeyReference.h" | 49 #include "widgets/KeyReference.h" |
50 #include "widgets/TransformFinder.h" | 50 #include "widgets/TransformFinder.h" |
51 #include "widgets/LabelCounterInputDialog.h" | 51 #include "widgets/LabelCounterInputDialog.h" |
52 #include "widgets/ActivityLog.h" | |
52 #include "audioio/AudioCallbackPlaySource.h" | 53 #include "audioio/AudioCallbackPlaySource.h" |
53 #include "audioio/AudioCallbackPlayTarget.h" | 54 #include "audioio/AudioCallbackPlayTarget.h" |
54 #include "audioio/AudioTargetFactory.h" | 55 #include "audioio/AudioTargetFactory.h" |
55 #include "audioio/PlaySpeedRangeMapper.h" | 56 #include "audioio/PlaySpeedRangeMapper.h" |
56 #include "data/fileio/DataFileReaderFactory.h" | 57 #include "data/fileio/DataFileReaderFactory.h" |
144 m_playLoopAction(0), | 145 m_playLoopAction(0), |
145 m_playControlsSpacer(0), | 146 m_playControlsSpacer(0), |
146 m_playControlsWidth(0), | 147 m_playControlsWidth(0), |
147 m_preferencesDialog(0), | 148 m_preferencesDialog(0), |
148 m_layerTreeDialog(0), | 149 m_layerTreeDialog(0), |
150 m_activityLog(new ActivityLog()), | |
149 m_keyReference(new KeyReference()) | 151 m_keyReference(new KeyReference()) |
150 { | 152 { |
151 Profiler profiler("MainWindow::MainWindow"); | 153 Profiler profiler("MainWindow::MainWindow"); |
152 | 154 |
153 setWindowTitle(tr("Sonic Visualiser")); | 155 setWindowTitle(tr("Sonic Visualiser")); |
268 setupHelpMenu(); | 270 setupHelpMenu(); |
269 | 271 |
270 statusBar(); | 272 statusBar(); |
271 | 273 |
272 newSession(); | 274 newSession(); |
275 | |
276 connect(m_viewManager, SIGNAL(activity(QString)), | |
277 m_activityLog, SLOT(activityHappened(QString))); | |
278 connect(m_playSource, SIGNAL(activity(QString)), | |
279 m_activityLog, SLOT(activityHappened(QString))); | |
280 connect(CommandHistory::getInstance(), SIGNAL(activity(QString)), | |
281 m_activityLog, SLOT(activityHappened(QString))); | |
282 m_activityLog->show(); | |
273 | 283 |
274 TransformFactory::getInstance()->startPopulationThread(); | 284 TransformFactory::getInstance()->startPopulationThread(); |
275 } | 285 } |
276 | 286 |
277 MainWindow::~MainWindow() | 287 MainWindow::~MainWindow() |