# HG changeset patch # User Chris Cannam # Date 1235484102 0 # Node ID 2fe08e403a9bdacda7771eac9253c417a59511f3 # Parent 4ba091beade5de62fcc646a222586ef717f8af38 * Add vestigial Activity Log diff -r 4ba091beade5 -r 2fe08e403a9b main/MainWindow.cpp --- 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(); } diff -r 4ba091beade5 -r 2fe08e403a9b main/MainWindow.h --- 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 m_preferencesDialog; QPointer m_layerTreeDialog; + ActivityLog *m_activityLog; KeyReference *m_keyReference; struct LayerConfiguration {