Add window titles
[mussa.git] / qui / MussaAlignedWindow.cpp
index 4daa5d8a6068be9b280f39560b1002d1e952eb98..9d6ff3f640248efd3a1a6617a473bb825576a395 100644 (file)
@@ -56,6 +56,8 @@ MussaAlignedWindow::MussaAlignedWindow(MussaRef m,
   message << "Selected " << selected_paths.size() << " paths";
   statusBar()->showMessage(message.str().c_str(), 5000);
   browser.updatePosition();
+  
+  updateTitle();
 }
 
 void MussaAlignedWindow::setupActions()
@@ -199,6 +201,15 @@ void MussaAlignedWindow::update()
   browser.update();
 }
 
+void MussaAlignedWindow::updateTitle()
+{
+  std::string title("Sequence View: ");
+  if (analysis) {
+    title += analysis->get_title();
+  }
+  setWindowTitle(title.c_str());
+}
+
 void MussaAlignedWindow::computeMatchLines()
 {
   browser.clear_links();