display number of basepairs copied
[mussa.git] / qui / MussaWindow.cpp
index 1a7c355dad75b3f9df71bdb26e16a0ab748612be..b1b883a2297359e26d3724b8c5b2cf81976c15ff 100644 (file)
@@ -74,6 +74,8 @@ MussaWindow::MussaWindow(MussaRef analysis_, QWidget *parent) :
   // to call update()
   connect(this, SIGNAL(changedAnnotations()), browser, SLOT(update()));
   connect(this, SIGNAL(changedMotifs()), this, SLOT(updateAnnotations()));
+  connect(browser, SIGNAL(basepairsCopied(size_t)), 
+          this, SLOT(showBasePairsCopied(size_t)));
 
   //mussaViewTB->addAction(toggleMotifsAction);
   mussaViewTB->addWidget(zoom);
@@ -615,6 +617,16 @@ void MussaWindow::showMussaToolbar()
     mussaViewTB->show();
 }
 
+void MussaWindow::showBasePairsCopied(size_t bp_copied)
+{
+  QString msg("Copied ");
+  QString num;
+  num.setNum(bp_copied);
+  msg += num + " base pairs";
+  statusBar()->showMessage(msg, 5000);
+}
+
+
 void MussaWindow::toggleMotifs()
 {
   NotImplementedBox();