minor updates to mussa setup widget
[mussa.git] / qui / mussa_setup_dialog / MussaSetupWidget.cpp
index 097e247bb98e2b796fe82ed42b079b119ad1eaa2..85ad1cbdd8754e3d8ed9ad077af03eb2277e2ad3 100644 (file)
@@ -30,33 +30,47 @@ MussaSetupWidget::MussaSetupWidget(QWidget *parent)
     cancelPushButton(new QPushButton(tr("Cancel"))),
     seqSetupFrame(0)
 {
-  
+  analysisNameLineEdit = new QLineEdit;
+  windowEdit = new QSpinBox;
+  thresholdEdit = new QSpinBox;
+  numOfSequencesSpinBox = new QSpinBox;
+  createPushButton = new QPushButton(tr("Create"));
+  cancelPushButton = new QPushButton(tr("Cancel"));
+    
   // Analysis name
   QLabel *analysisNameLabel = new QLabel(tr("Analysis Name"));
   analysisNameLabel->setBuddy(analysisNameLineEdit);
+  analysisNameLabel->setWhatsThis("Meaningful name for your analysis ");
+  analysisNameLineEdit->setWhatsThis("Meaningful name for your analysis ");
 
   // Window
   windowEdit->setMinimum(1);
   windowEdit->setValue(30);
+  windowEdit->setWhatsThis("Sliding window size to use in analysis.\n\nSee Mussagl Manual for more information by selecting the 'Help > Mussagl Manual' menu option. ");
   QLabel *windowLabel = new QLabel(tr("Window (nt)"));
   windowLabel->setBuddy(windowEdit);
+  windowLabel->setWhatsThis("Sliding window size to use in analysis.\n\nSee Mussagl Manual for more information by selecting the 'Help > Mussagl Manual' menu option. ");
 
   // Threshold
   thresholdEdit->setMinimum(1);
   thresholdEdit->setMaximum(windowEdit->value());
   thresholdEdit->setValue(21);
+  thresholdEdit->setWhatsThis("Threshold of minimum number of matches required in a window to be considered a match.\n\nSee Mussagl Manual for more information by selecting the 'Help > Mussagl Manual' menu option. ");
   QLabel *thresholdLabel = new QLabel(tr("Threshold (nt)"));
   thresholdLabel->setBuddy(thresholdEdit);
+  thresholdLabel->setWhatsThis("Threshold of minimum number of matches required in a window to be considered a match.\n\nSee Mussagl Manual for more information by selecting the 'Help > Mussagl Manual' menu option. ");
   connect(windowEdit, SIGNAL(valueChanged(int)),
           this, SLOT(updateThreshold(int)));
 
   // Number of sequences
   QLabel *numOfSequencesLabel = new QLabel(tr("Number of sequences"));
   numOfSequencesLabel->setBuddy(numOfSequencesSpinBox);
+  numOfSequencesLabel->setWhatsThis("Number of sequences to include in analysis. ");
   numOfSequencesSpinBox->setMinimum(1);
+  numOfSequencesSpinBox->setWhatsThis("Number of sequences to include in analysis. ");
 
   //Sequence setup frame
-  seqSetupFrame = new SequenceSetupFrame;
+  seqSetupFrame = new SequenceSetupFrame(this);
 
   connect(numOfSequencesSpinBox, SIGNAL(valueChanged(int)),
          seqSetupFrame, SLOT(changeSequenceCount(int)));
@@ -67,7 +81,7 @@ MussaSetupWidget::MussaSetupWidget(QWidget *parent)
   connect(createPushButton, SIGNAL(pressed()),
          this, SLOT(mussaCreatePushed()));
   
-  // Cancle Button
+  // Cancel Button
   connect(cancelPushButton, SIGNAL(pressed()),
          this, SLOT(mussaCancelPushed()));