Commit 8df7c244 authored by Renne Thomas's avatar Renne Thomas
Browse files

first modification to add msRunId view

parent 8cfc2b87
......@@ -112,6 +112,13 @@
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>View ms Identification list</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
......@@ -141,8 +148,8 @@
<slot>doViewPtmIslandList()</slot>
<hints>
<hint type="sourcelabel">
<x>220</x>
<y>265</y>
<x>135</x>
<y>194</y>
</hint>
<hint type="destinationlabel">
<x>669</x>
......@@ -150,9 +157,26 @@
</hint>
</hints>
</connection>
<connection>
<sender>pushButton</sender>
<signal>clicked()</signal>
<receiver>IdentificationGroupWidget</receiver>
<slot>doViewMsIdRunList()</slot>
<hints>
<hint type="sourcelabel">
<x>394</x>
<y>24</y>
</hint>
<hint type="destinationlabel">
<x>639</x>
<y>108</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>doViewProteinList()</slot>
<slot>doViewPtmIslandList()</slot>
<slot>doViewMsIdRunList()</slot>
</slots>
</ui>
......@@ -82,6 +82,15 @@ IdentificationGroupWidget::doViewProteinList()
qDebug() << "IdentificationGroupWidget::doViewProteinList end";
}
void
IdentificationGroupWidget::doViewMsIdRunList()
{
qDebug() << "IdentificationGroupWidget::doViewMsIdRunList begin "
<< _p_identification_group;
_p_project_window->doViewMsIdRunList(_p_identification_group);
qDebug() << "IdentificationGroupWidget::doViewMsIdRunList end";
}
void
IdentificationGroupWidget::doIdentificationGroupGrouped(
IdentificationGroup *p_identification_group)
......
......@@ -47,6 +47,7 @@ class IdentificationGroupWidget : public QWidget
public slots:
void doViewProteinList();
void doViewPtmIslandList();
void doViewMsIdRunList();
void
doIdentificationGroupGrouped(IdentificationGroup *p_identification_group);
......
......@@ -39,6 +39,7 @@
#include "../../utils/utils.h"
#include <qcustomplot.h>
#include "../../core/qvalue/computeqvalues.h"
#include <gui/lists/ms_identification_run_list_view/msidentrunlistwindow.h>
ProjectWindow::ProjectWindow(MainWindow *parent)
......@@ -642,6 +643,41 @@ ProjectWindow::doViewProteinList(IdentificationGroup *p_identification_group)
qDebug() << "ProjectWindow::doViewProteinList end";
}
void
ProjectWindow::doViewMsIdRunList(IdentificationGroup *p_identification_group)
{
qDebug() << "ProjectWindow::doViewMsIdRunList begin "
<< p_identification_group;
MsRunIdListWindow *_p_current_ms_run_id_list_window = new MsRunIdListWindow(this);
_p_current_ms_run_id_list_window->show();
// if (p_identification_group == nullptr) {
//}
// if(_protein_list_window_collection.size() == 0)
// {
// connectNewProteinListWindow();
// }
// Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers();
// if(modifier == Qt::ControlModifier)
// {
// connectNewProteinListWindow();
// }
// _p_current_ms_run_id_list_window->show();
// _p_current_ms_run_id_list_window->raise();
// _p_current_ms_run_id_list_window->activateWindow();
// qDebug() << "ProjectWindow::doViewMsIdRunList end " << p_identification_group;
// _p_current_protein_list_window->setIdentificationGroup(
// p_identification_group);
//
// emit identificationGroupGrouped(p_identification_group);
qDebug() << "ProjectWindow::doViewMsIdRunList end";
}
void
ProjectWindow::setProjectSp(ProjectSp project_sp)
{
......
......@@ -36,6 +36,7 @@
#include "../waiting_message_dialog/waitingmessagedialog.h"
#include "../xic_view/xicwindow.h"
#include <qcustomplot.h>
#include "../lists/ms_identification_run_list_view/msidentrunlistwindow.h"
class MainWindow;
......@@ -51,6 +52,7 @@ class ProjectWindow : public QMainWindow
friend class ProteinListWindow;
friend class PeptideListWindow;
friend class MsRunIdListWindow;
public:
explicit ProjectWindow(MainWindow *parent = 0);
......@@ -65,6 +67,7 @@ class ProjectWindow : public QMainWindow
void doViewPtmIslandList(IdentificationGroup *p_identification_group);
void doPtmIslandGrouping(IdentificationGroup *p_identification_group);
void doViewProteinList(IdentificationGroup *p_identification_group = nullptr);
void doViewMsIdRunList(IdentificationGroup *p_identification_group = nullptr);
void setDefaultProteinListWindow(ProteinListWindow *p_protein_list_window);
void doAutomaticFilterParametersChanged(AutomaticFilterParameters parameters);
void doMassPrecisionUnitChanged(QString combo_value);
......@@ -127,6 +130,8 @@ class ProjectWindow : public QMainWindow
MainWindow *main_window;
std::list<ProteinListWindow *> _protein_list_window_collection;
ProteinListWindow *_p_current_protein_list_window = nullptr;
//std::list<MsRunIdListWindow *> _ms_run_id_list_window_collection;
//MsRunIdListWindow *_p_current_ms_run_id_list_window = nullptr;
std::list<PeptideListWindow *> _peptide_list_window_collection;
PeptideListWindow *_p_current_peptide_list_window = nullptr;
std::list<ProteinWindow *> _protein_detail_window_collection;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment