From 26de48aa332697554ec2dc3aabb0e1a5ec5c46c9 Mon Sep 17 00:00:00 2001 From: Brandon King Date: Mon, 27 Feb 2006 22:28:13 +0000 Subject: [PATCH] Toolbar is now toggleable from menu. --- qui/PathWindow.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qui/PathWindow.cxx b/qui/PathWindow.cxx index fb2f9e2..935591e 100644 --- a/qui/PathWindow.cxx +++ b/qui/PathWindow.cxx @@ -79,6 +79,8 @@ void PathWindow::setupActions() showMussaViewToolbarAction = new QAction(tr("Show Toolbar"), this); connect(showMussaViewToolbarAction, SIGNAL(triggered()), this, SLOT(showMussaToolbar())); + showMussaViewToolbarAction->setCheckable(true); + showMussaViewToolbarAction->setChecked(true); toggleMotifsAction = new QAction(tr("Toggle Motifs"), this); connect(toggleMotifsAction, SIGNAL(triggered()), @@ -159,7 +161,10 @@ void PathWindow::saveMotifList() void PathWindow::showMussaToolbar() { std::clog << "isVis?" << mussaViewTB->isVisible() <show(); + if (mussaViewTB->isVisible()) + mussaViewTB->hide(); + else + mussaViewTB->show(); std::clog << "isVis?" << mussaViewTB->isVisible() <