From: Brandon King Date: Mon, 27 Feb 2006 22:28:13 +0000 (+0000) Subject: Toolbar is now toggleable from menu. X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=commitdiff_plain;h=26de48aa332697554ec2dc3aabb0e1a5ec5c46c9;p=mussa.git Toolbar is now toggleable from menu. --- 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() <