implemented an average-per-data-set option for musrFT.
This commit is contained in:
@ -197,10 +197,14 @@ PGetMusrFTOptionsDialog::PGetMusrFTOptionsDialog(QString currentMsrFile, QString
|
||||
line.remove(line.length()-1, 1);
|
||||
fHistoList_lineEdit->setText(line);
|
||||
}
|
||||
// average tag
|
||||
// average ALL tag
|
||||
if (prevCmd[i] == "-a") {
|
||||
fAveragedView_checkBox->setCheckState(Qt::Checked);
|
||||
}
|
||||
// average per data set tag
|
||||
if (prevCmd[i] == "-ad") {
|
||||
fAveragePerDataSet_checkBox->setCheckState(Qt::Checked);
|
||||
}
|
||||
// t0 list
|
||||
if (prevCmd[i] == "--t0") {
|
||||
i++;
|
||||
@ -239,6 +243,8 @@ PGetMusrFTOptionsDialog::PGetMusrFTOptionsDialog(QString currentMsrFile, QString
|
||||
connect(fMsrFileNameClear_pushButton, SIGNAL (clicked() ), this, SLOT( clearMsrFileNames() ) );
|
||||
connect(fDataFileNameClear_pushButton, SIGNAL (clicked() ), this, SLOT( clearDataFileNames() ) );
|
||||
connect(fResetAll_pushButton, SIGNAL( clicked() ), this, SLOT( resetAll() ) );
|
||||
connect(fAveragedView_checkBox, SIGNAL ( stateChanged(int) ), this, SLOT( averagedAll(int) ) );
|
||||
connect(fAveragePerDataSet_checkBox, SIGNAL ( stateChanged(int) ), this, SLOT( averagedPerDataSet(int) ) );
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
@ -329,10 +335,14 @@ QStringList PGetMusrFTOptionsDialog::getMusrFTOptions()
|
||||
cmd << strList[i];
|
||||
}
|
||||
|
||||
// averaged view
|
||||
// averaged view ALL
|
||||
if (fAveragedView_checkBox->checkState() == Qt::Checked)
|
||||
cmd << "-a";
|
||||
|
||||
// averaged view per data set
|
||||
if (fAveragePerDataSet_checkBox->checkState() == Qt::Checked)
|
||||
cmd << "-ad";
|
||||
|
||||
// t0 list
|
||||
if (fT0_lineEdit->text().length() > 0) {
|
||||
cmd << "--t0";
|
||||
@ -546,6 +556,26 @@ void PGetMusrFTOptionsDialog::resetAll()
|
||||
fFourierTitle_lineEdit->setText("");
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
* <p>SLOT called when averaged view for ALL data is checked.
|
||||
*/
|
||||
void PGetMusrFTOptionsDialog::averagedAll(int state)
|
||||
{
|
||||
if ((state == Qt::Checked) && fAveragePerDataSet_checkBox->isChecked())
|
||||
fAveragePerDataSet_checkBox->setCheckState(Qt::Unchecked);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
* <p>SLOT called when averaged view per data set is checked.
|
||||
*/
|
||||
void PGetMusrFTOptionsDialog::averagedPerDataSet(int state)
|
||||
{
|
||||
if ((state == Qt::Checked) && fAveragedView_checkBox->isChecked())
|
||||
fAveragedView_checkBox->setCheckState(Qt::Unchecked);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
* <p>Generates a help content window showing the description for musrFT.
|
||||
|
@ -55,6 +55,8 @@ class PGetMusrFTOptionsDialog : public QDialog, private Ui::PGetMusrFTOptionsDia
|
||||
void clearDataFileNames();
|
||||
void createMsrFileChanged(int state);
|
||||
void resetAll();
|
||||
void averagedAll(int state);
|
||||
void averagedPerDataSet(int state);
|
||||
|
||||
private:
|
||||
QStringList fMsrFilePaths; ///< list keeping all the paths from the msr-file path-name list
|
||||
|
@ -34,11 +34,11 @@
|
||||
<property name="title">
|
||||
<string> Fourier </string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>30</y>
|
||||
<x>21</x>
|
||||
<y>31</y>
|
||||
<width>641</width>
|
||||
<height>156</height>
|
||||
</rect>
|
||||
@ -264,7 +264,14 @@ p, li { white-space: pre-wrap; }
|
||||
<item>
|
||||
<widget class="QCheckBox" name="fAveragedView_checkBox">
|
||||
<property name="text">
|
||||
<string>Averaged View</string>
|
||||
<string>Average All</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="fAveragePerDataSet_checkBox">
|
||||
<property name="text">
|
||||
<string>Average per Data Set</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -275,7 +282,7 @@ p, li { white-space: pre-wrap; }
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>278</width>
|
||||
<width>88</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
@ -644,7 +651,14 @@ p, li { white-space: pre-wrap; }
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="fMsrFileSelector_lineEdit"/>
|
||||
<widget class="QLineEdit" name="fMsrFileSelector_lineEdit">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="fMsrFileNameClear_pushButton">
|
||||
@ -668,7 +682,14 @@ p, li { white-space: pre-wrap; }
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="fDataFileSelector_lineEdit"/>
|
||||
<widget class="QLineEdit" name="fDataFileSelector_lineEdit">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="fDataFileNameClear_pushButton">
|
||||
@ -685,7 +706,7 @@ p, li { white-space: pre-wrap; }
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QWidget" name="">
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
|
Reference in New Issue
Block a user