connect a spin box to the scene zoom slot
authorDiane Trout <diane@caltech.edu>
Thu, 2 Mar 2006 20:02:48 +0000 (20:02 +0000)
committerDiane Trout <diane@caltech.edu>
Thu, 2 Mar 2006 20:02:48 +0000 (20:02 +0000)
qui/PathWindow.cxx

index 95188f53c5686d22862125ccb554b43eb8979d2a..4ae4d5b8b1be91afefb5b930b5415aaf1ebecc1c 100644 (file)
@@ -6,6 +6,7 @@
 #include <QIcon>
 #include <QMenuBar>
 #include <QMessageBox>
+#include <QSpinBox>
 #include <QStatusBar>
 #include <QString>
 #include <QToolBar>
@@ -33,6 +34,11 @@ PathWindow::PathWindow(QWidget *) :
   mussaViewTB = new QToolBar("Path Views");
   mussaViewTB->addAction(toggleMotifsAction);
 
+  QSpinBox *zoom = new QSpinBox();
+  zoom->setWhatsThis("zoom magnification factor");
+  mussaViewTB->addWidget(zoom);
+  connect(zoom, SIGNAL(valueChanged(int)), scene, SLOT(setZoom(int)));
+  
   ThresholdWidget *threshold = new ThresholdWidget;
   threshold->setRange(19, 30);
   threshold->setThreshold(19);