# HG changeset patch # User Chris Cannam # Date 1235561167 0 # Node ID 8fbbfea74058e13bac73ce8f08ce7e5a96034025 # Parent f76efdd7d1807a0be3bece4921f7f194d83aed4c * Make Activity Log a bit more of a proper window diff -r f76efdd7d180 -r 8fbbfea74058 main/MainWindow.cpp --- a/main/MainWindow.cpp Wed Feb 25 11:15:22 2009 +0000 +++ b/main/MainWindow.cpp Wed Feb 25 11:26:07 2009 +0000 @@ -280,11 +280,10 @@ connect(CommandHistory::getInstance(), SIGNAL(activity(QString)), m_activityLog, SLOT(activityHappened(QString))); connect(this, SIGNAL(replacedDocument()), this, SLOT(documentReplaced())); + m_activityLog->hide(); newSession(); - m_activityLog->show(); - connect(m_midiInput, SIGNAL(eventsAvailable()), this, SLOT(midiEventsAvailable())); @@ -836,6 +835,11 @@ connect(action, SIGNAL(triggered()), this, SLOT(showLayerTree())); m_keyReference->registerShortcut(action); menu->addAction(action); + + action = new QAction(tr("Show Acti&vity Log"), this); + action->setStatusTip(tr("Open a window listing interactions and other events")); + connect(action, SIGNAL(triggered()), this, SLOT(showActivityLog())); + menu->addAction(action); } void @@ -3607,6 +3611,14 @@ } void +MainWindow::showActivityLog() +{ + m_activityLog->show(); + m_activityLog->raise(); + m_activityLog->scrollToEnd(); +} + +void MainWindow::preferences() { if (!m_preferencesDialog.isNull()) { diff -r f76efdd7d180 -r 8fbbfea74058 main/MainWindow.h --- a/main/MainWindow.h Wed Feb 25 11:15:22 2009 +0000 +++ b/main/MainWindow.h Wed Feb 25 11:26:07 2009 +0000 @@ -160,6 +160,7 @@ virtual void modelAdded(Model *); virtual void showLayerTree(); + virtual void showActivityLog(); virtual void mouseEnteredWidget(); virtual void mouseLeftWidget();