Store Sequence sequence location in a shared_ptr class
[mussa.git] / qui / seqbrowser / SequenceDescription.cpp
index d1165047793badac57ed778b77db476858b9756d..f3f19116f044da5b82a733e3c1fbd8ed35fe7737 100644 (file)
@@ -34,13 +34,12 @@ void SequenceDescription::setupWidgets()
   setLineWidth(1);
 
   // What's this feature descriptions
-  // FIXME: The '*' is added because for some reason
+  // FIXME: The extra space is added because for some reason
   // Qt's whatsthis feature is chopping off the last word
-  // If the '*' eventually shows up in a whatsthis pop-up
-  // then the '*' should be removed.
-  name_label->setWhatsThis("Name of sequence *");
-  position_label->setWhatsThis("Edge of viewport base pair position *");
-  length_label->setWhatsThis("Total length of sequence *");
+  // under linux.
+  name_label->setWhatsThis("Name of sequence ");
+  position_label->setWhatsThis("Edge of viewport base pair position ");
+  length_label->setWhatsThis("Total length of sequence ");
   
   layout->addWidget(name_label);
   layout->addWidget(position_label);
@@ -56,8 +55,8 @@ void SequenceDescription::setGlSequence(
 {
   if (glseq != glsequence_) {
     glsequence_ = glseq;
-    setName(glsequence_->sequence()->get_species());
-    setLength(glsequence_->sequence()->length());
+    setName(glsequence_->get_species());
+    setLength(glsequence_->size());
     emit glsequenceChanged(glsequence_);
   }
 }
@@ -76,8 +75,8 @@ void SequenceDescription::setName(const QString& name_)
 {
   std::string std_name_ = name_.toStdString();
 
-  if (std_name_ != glsequence_->sequence()->get_species()) {
-    glsequence_->sequence()->set_species(std_name_);
+  if (std_name_ != glsequence_->get_species()) {
+    glsequence_->set_species(std_name_);
     emit nameChanged(name_);
   }
 
@@ -91,7 +90,7 @@ void SequenceDescription::setName(const QString& name_)
 std::string SequenceDescription::name() const 
 { 
   if (glsequence_) 
-    return glsequence_->sequence()->get_species();
+    return glsequence_->get_species();
   else
     return string("");
 }
@@ -120,7 +119,7 @@ int SequenceDescription::length() const
   return 0;
 
   if (glsequence_)
-    return glsequence_->sequence()->size();
+    return glsequence_->size();
   else
     return 0;
 }