display number of basepairs copied
[mussa.git] / qui / MussaAlignedWindow.cpp
index 92b96eb9e538796409a1c53766c369d3cf1e38de..5498344a0bdf00ebd5da8da69168587b80ac17c4 100644 (file)
@@ -29,6 +29,8 @@ MussaAlignedWindow::MussaAlignedWindow(MussaRef m,
     alignTB(0)
 {
   setupActions();
+  connect(&browser, SIGNAL(basepairsCopied(size_t)), 
+          this, SLOT(showBasePairsCopied(size_t)));
   browser.setSequences(analysis->sequences(), analysis->colorMapper());
   setSelectedPaths(analysis, sel_paths);
   setAlignment(0);
@@ -190,6 +192,15 @@ void MussaAlignedWindow::setAlignment(int alignment_index)
   }
 }
 
+void MussaAlignedWindow::showBasePairsCopied(size_t bp_copied)
+{
+  QString msg("Copied ");
+  QString num;
+  num.setNum(bp_copied);
+  msg += num + " base pairs";
+  statusBar()->showMessage(msg, 5000);
+}
+
 void MussaAlignedWindow::toggleViewAlignment(int alignment_index)
 {
   view_paths[alignment_index]= not view_paths[alignment_index];