comparison main/MainWindow.cpp @ 306:8fbbfea74058

* Make Activity Log a bit more of a proper window
author Chris Cannam
date Wed, 25 Feb 2009 11:26:07 +0000
parents f76efdd7d180
children d4ff14feca76
comparison
equal deleted inserted replaced
305:f76efdd7d180 306:8fbbfea74058
278 connect(m_playSource, SIGNAL(activity(QString)), 278 connect(m_playSource, SIGNAL(activity(QString)),
279 m_activityLog, SLOT(activityHappened(QString))); 279 m_activityLog, SLOT(activityHappened(QString)));
280 connect(CommandHistory::getInstance(), SIGNAL(activity(QString)), 280 connect(CommandHistory::getInstance(), SIGNAL(activity(QString)),
281 m_activityLog, SLOT(activityHappened(QString))); 281 m_activityLog, SLOT(activityHappened(QString)));
282 connect(this, SIGNAL(replacedDocument()), this, SLOT(documentReplaced())); 282 connect(this, SIGNAL(replacedDocument()), this, SLOT(documentReplaced()));
283 m_activityLog->hide();
283 284
284 newSession(); 285 newSession();
285
286 m_activityLog->show();
287 286
288 connect(m_midiInput, SIGNAL(eventsAvailable()), 287 connect(m_midiInput, SIGNAL(eventsAvailable()),
289 this, SLOT(midiEventsAvailable())); 288 this, SLOT(midiEventsAvailable()));
290 289
291 TransformFactory::getInstance()->startPopulationThread(); 290 TransformFactory::getInstance()->startPopulationThread();
833 action = new QAction(tr("Show La&yer Summary"), this); 832 action = new QAction(tr("Show La&yer Summary"), this);
834 action->setShortcut(tr("Y")); 833 action->setShortcut(tr("Y"));
835 action->setStatusTip(tr("Open a window displaying the hierarchy of panes and layers in this session")); 834 action->setStatusTip(tr("Open a window displaying the hierarchy of panes and layers in this session"));
836 connect(action, SIGNAL(triggered()), this, SLOT(showLayerTree())); 835 connect(action, SIGNAL(triggered()), this, SLOT(showLayerTree()));
837 m_keyReference->registerShortcut(action); 836 m_keyReference->registerShortcut(action);
837 menu->addAction(action);
838
839 action = new QAction(tr("Show Acti&vity Log"), this);
840 action->setStatusTip(tr("Open a window listing interactions and other events"));
841 connect(action, SIGNAL(triggered()), this, SLOT(showActivityLog()));
838 menu->addAction(action); 842 menu->addAction(action);
839 } 843 }
840 844
841 void 845 void
842 MainWindow::setupPaneAndLayerMenus() 846 MainWindow::setupPaneAndLayerMenus()
3602 } 3606 }
3603 3607
3604 m_layerTreeDialog = new LayerTreeDialog(m_paneStack); 3608 m_layerTreeDialog = new LayerTreeDialog(m_paneStack);
3605 m_layerTreeDialog->setAttribute(Qt::WA_DeleteOnClose); // see below 3609 m_layerTreeDialog->setAttribute(Qt::WA_DeleteOnClose); // see below
3606 m_layerTreeDialog->show(); 3610 m_layerTreeDialog->show();
3611 }
3612
3613 void
3614 MainWindow::showActivityLog()
3615 {
3616 m_activityLog->show();
3617 m_activityLog->raise();
3618 m_activityLog->scrollToEnd();
3607 } 3619 }
3608 3620
3609 void 3621 void
3610 MainWindow::preferences() 3622 MainWindow::preferences()
3611 { 3623 {