Skip to content
Snippets Groups Projects
Commit a509f67f authored by Langella Olivier's avatar Langella Olivier
Browse files

update spreadsheet export dialog to choose peptidomic output

parent ba93c240
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>676</width>
<height>559</height>
<height>588</height>
</rect>
</property>
<property name="windowTitle">
......@@ -62,6 +62,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="peptidomiccomparspectra_checkbox">
<property name="text">
<string>peptidomic : compar number of spectra by samples for each peptide</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="compar_groupbox">
<property name="toolTip">
......@@ -224,7 +231,7 @@
<hints>
<hint type="sourcelabel">
<x>665</x>
<y>507</y>
<y>577</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
......@@ -240,7 +247,7 @@
<hints>
<hint type="sourcelabel">
<x>579</x>
<y>507</y>
<y>577</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
......@@ -259,7 +266,7 @@
<y>69</y>
</hint>
<hint type="destinationlabel">
<x>839</x>
<x>675</x>
<y>107</y>
</hint>
</hints>
......@@ -275,7 +282,7 @@
<y>101</y>
</hint>
<hint type="destinationlabel">
<x>814</x>
<x>675</x>
<y>166</y>
</hint>
</hints>
......@@ -291,7 +298,7 @@
<y>133</y>
</hint>
<hint type="destinationlabel">
<x>857</x>
<x>675</x>
<y>191</y>
</hint>
</hints>
......@@ -307,7 +314,7 @@
<y>165</y>
</hint>
<hint type="destinationlabel">
<x>760</x>
<x>675</x>
<y>228</y>
</hint>
</hints>
......@@ -323,7 +330,7 @@
<y>197</y>
</hint>
<hint type="destinationlabel">
<x>764</x>
<x>675</x>
<y>318</y>
</hint>
</hints>
......@@ -339,7 +346,7 @@
<y>229</y>
</hint>
<hint type="destinationlabel">
<x>835</x>
<x>675</x>
<y>253</y>
</hint>
</hints>
......@@ -351,11 +358,11 @@
<slot>doComparSpectra(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>157</x>
<y>296</y>
<x>167</x>
<y>328</y>
</hint>
<hint type="destinationlabel">
<x>785</x>
<x>675</x>
<y>407</y>
</hint>
</hints>
......@@ -368,10 +375,10 @@
<hints>
<hint type="sourcelabel">
<x>359</x>
<y>296</y>
<y>328</y>
</hint>
<hint type="destinationlabel">
<x>836</x>
<x>675</x>
<y>390</y>
</hint>
</hints>
......@@ -384,10 +391,10 @@
<hints>
<hint type="sourcelabel">
<x>167</x>
<y>328</y>
<y>360</y>
</hint>
<hint type="destinationlabel">
<x>736</x>
<x>675</x>
<y>385</y>
</hint>
</hints>
......@@ -400,10 +407,10 @@
<hints>
<hint type="sourcelabel">
<x>359</x>
<y>328</y>
<y>360</y>
</hint>
<hint type="destinationlabel">
<x>753</x>
<x>675</x>
<y>342</y>
</hint>
</hints>
......@@ -416,10 +423,10 @@
<hints>
<hint type="sourcelabel">
<x>501</x>
<y>296</y>
<y>328</y>
</hint>
<hint type="destinationlabel">
<x>790</x>
<x>675</x>
<y>245</y>
</hint>
</hints>
......@@ -432,10 +439,10 @@
<hints>
<hint type="sourcelabel">
<x>501</x>
<y>328</y>
<y>360</y>
</hint>
<hint type="destinationlabel">
<x>793</x>
<x>675</x>
<y>355</y>
</hint>
</hints>
......@@ -447,11 +454,11 @@
<slot>doPtmIslands(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>112</x>
<y>407</y>
<x>145</x>
<y>439</y>
</hint>
<hint type="destinationlabel">
<x>765</x>
<x>675</x>
<y>477</y>
</hint>
</hints>
......@@ -463,11 +470,11 @@
<slot>doPtmSpectra(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>389</x>
<y>392</y>
<x>642</x>
<y>439</y>
</hint>
<hint type="destinationlabel">
<x>976</x>
<x>675</x>
<y>366</y>
</hint>
</hints>
......@@ -479,15 +486,31 @@
<slot>doComparNsaf(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>550</x>
<y>286</y>
<x>642</x>
<y>328</y>
</hint>
<hint type="destinationlabel">
<x>806</x>
<x>675</x>
<y>294</y>
</hint>
</hints>
</connection>
<connection>
<sender>peptidomiccomparspectra_checkbox</sender>
<signal>clicked(bool)</signal>
<receiver>ExportSpreadsheetDialog</receiver>
<slot>doPeptidomicComparSpectra(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>70</x>
<y>245</y>
</hint>
<hint type="destinationlabel">
<x>798</x>
<y>269</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>reject()</slot>
......@@ -508,5 +531,6 @@
<slot>doPtmIslands(bool)</slot>
<slot>doPtmSpectra(bool)</slot>
<slot>doComparNsaf(bool)</slot>
<slot>doPeptidomicComparSpectra(bool)</slot>
</slots>
</ui>
......@@ -130,6 +130,12 @@ ExportSpreadsheetDialog::ExportSpreadsheetDialog(QWidget *parent)
ui->tsv_radiobutton->setChecked(true);
}
ui->peptidomiccomparspectra_checkbox->setCheckState(Qt::Unchecked);
if(settings.value("export_ods/peptidomiccomparspectra", "false").toBool())
{
ui->peptidomiccomparspectra_checkbox->setCheckState(Qt::Checked);
}
#if QT_VERSION >= 0x050000
// Qt5 code
#else
......@@ -191,6 +197,15 @@ ExportSpreadsheetDialog::doComparSpecificSpectra(bool simple)
settings.setValue("export_ods/comparspecificspectra",
QString("%1").arg(simple));
}
void
ExportSpreadsheetDialog::doPeptidomicComparSpectra(bool simple)
{
QSettings settings;
settings.setValue("export_ods/peptidomiccomparspectra",
QString("%1").arg(simple));
}
void
ExportSpreadsheetDialog::doComparUniqueSequence(bool simple)
{
......
......@@ -66,6 +66,7 @@ class ExportSpreadsheetDialog : public QDialog
void doProteins(bool simple);
void doPtmIslands(bool simple);
void doPtmSpectra(bool simple);
void doPeptidomicComparSpectra(bool simple);
signals:
......
......@@ -110,12 +110,14 @@ OdsExport::write(CalcWriterInterface *p_writer, WorkMonitorInterface *p_monitor)
if(_p_project->getProjectMode() != ProjectMode::individual)
{
// export compar sheets not possible in individual mode
//if(settings.value("export_ods/peptidomiccomparspectra", "true").toBool())
// {
p_monitor->message(QObject::tr("writing spectra comparisons for peptidomic"));
if(settings.value("export_ods/peptidomiccomparspectra", "true")
.toBool())
{
p_monitor->message(
QObject::tr("writing spectra comparisons for peptidomic"));
ComparSpectraByPeptide(this, p_writer, _p_project).writeSheet();
// }
}
if(settings.value("export_ods/comparspectra", "true").toBool())
{
p_monitor->message(QObject::tr("writing spectra comparisons"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment