changeset 302:2fe08e403a9b

* Add vestigial Activity Log
author Chris Cannam
date Tue, 24 Feb 2009 14:01:42 +0000
parents 4ba091beade5
children 5d691489a84f
files main/MainWindow.cpp main/MainWindow.h
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Mon Feb 23 22:28:24 2009 +0000
+++ b/main/MainWindow.cpp	Tue Feb 24 14:01:42 2009 +0000
@@ -49,6 +49,7 @@
 #include "widgets/KeyReference.h"
 #include "widgets/TransformFinder.h"
 #include "widgets/LabelCounterInputDialog.h"
+#include "widgets/ActivityLog.h"
 #include "audioio/AudioCallbackPlaySource.h"
 #include "audioio/AudioCallbackPlayTarget.h"
 #include "audioio/AudioTargetFactory.h"
@@ -146,6 +147,7 @@
     m_playControlsWidth(0),
     m_preferencesDialog(0),
     m_layerTreeDialog(0),
+    m_activityLog(new ActivityLog()),
     m_keyReference(new KeyReference())
 {
     Profiler profiler("MainWindow::MainWindow");
@@ -270,6 +272,14 @@
     statusBar();
 
     newSession();
+
+    connect(m_viewManager, SIGNAL(activity(QString)),
+            m_activityLog, SLOT(activityHappened(QString)));
+    connect(m_playSource, SIGNAL(activity(QString)),
+            m_activityLog, SLOT(activityHappened(QString)));
+    connect(CommandHistory::getInstance(), SIGNAL(activity(QString)),
+            m_activityLog, SLOT(activityHappened(QString)));
+    m_activityLog->show();
     
     TransformFactory::getInstance()->startPopulationThread();
 }
--- a/main/MainWindow.h	Mon Feb 23 22:28:24 2009 +0000
+++ b/main/MainWindow.h	Tue Feb 24 14:01:42 2009 +0000
@@ -57,7 +57,7 @@
 class OSCMessage;
 class KeyReference;
 class Labeller;
-
+class ActivityLog;
 
 class MainWindow : public MainWindowBase
 {
@@ -209,6 +209,7 @@
     QPointer<PreferencesDialog> m_preferencesDialog;
     QPointer<LayerTreeDialog>   m_layerTreeDialog;
 
+    ActivityLog             *m_activityLog;
     KeyReference            *m_keyReference;
 
     struct LayerConfiguration {