From bda8155709a68b694dd9542c8170f8871f944714 Mon Sep 17 00:00:00 2001 From: Brandon King Date: Mon, 27 Feb 2006 21:53:02 +0000 Subject: [PATCH] View Toolbar Action in View Menu. --- qui/PathWindow.cxx | 16 ++++++++++++++++ qui/PathWindow.h | 3 +++ 2 files changed, 19 insertions(+) diff --git a/qui/PathWindow.cxx b/qui/PathWindow.cxx index c2f2e71..279fa56 100644 --- a/qui/PathWindow.cxx +++ b/qui/PathWindow.cxx @@ -12,6 +12,8 @@ #include "qui/PathScene.h" #include "qui/ThresholdWidget.h" +#include + PathWindow::PathWindow(QWidget *) : closeAction(0) // initialize one of the pointers to null as a saftey flag { @@ -73,6 +75,10 @@ void PathWindow::setupActions() connect(saveMotifListAction, SIGNAL(triggered()), this, SLOT(saveMotifList())); + showMussaViewToolbarAction = new QAction(tr("Show Toolbar"), this); + connect(showMussaViewToolbarAction, SIGNAL(triggered()), + this, SLOT(showMussaToolbar())); + toggleMotifsAction = new QAction(tr("Toggle Motifs"), this); connect(toggleMotifsAction, SIGNAL(triggered()), this, SLOT(toggleMotifs())); @@ -95,6 +101,9 @@ void PathWindow::setupMainMenu() newMenu->addSeparator(); newMenu->addAction(closeAction); + newMenu = menuBar()->addMenu(tr("&View")); + newMenu->addAction(showMussaViewToolbarAction); + newMenu = menuBar()->addMenu(tr("&Help")); newMenu->addAction(aboutAction); } @@ -143,6 +152,13 @@ void PathWindow::saveMotifList() NotImplementedBox(); } +void PathWindow::showMussaToolbar() +{ + std::clog << "isVis?" << mussaViewTB->isVisible() <show(); + std::clog << "isVis?" << mussaViewTB->isVisible() <