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

cleat protein and peptide list windows

parent 3d06aecd
No related branches found
No related tags found
No related merge requests found
......@@ -120,16 +120,16 @@ void ProjectWindow::connectNewPeptideListWindow() {
void ProjectWindow::doIdentificationGroupEdited(IdentificationGroup * p_ident_group) {
qDebug() << "ProjectWindow::doIdentificationGroupEdited begin";
p_ident_group->startGrouping(_project_sp.get()->getGroupingType());
emit identificationGroupGrouped(p_ident_group);
qDebug() << "ProjectWindow::doIdentificationGroupEdited end";
}
void ProjectWindow::doViewPeptideList(ProteinMatch * protein_match) {
qDebug() << "ProjectWindow::doViewPeptideList begin";
if (_peptide_list_window_collection.size() == 0) {
connectNewPeptideListWindow();
......@@ -165,10 +165,23 @@ void ProjectWindow::doViewProteinList(IdentificationGroup* p_identification_grou
}
void ProjectWindow::setProjectSp(ProjectSp project_sp) {
for (auto && p_window :_peptide_list_window_collection) {
delete p_window;
}
_peptide_list_window_collection.clear();
_p_current_peptide_list_window = nullptr;
for (auto && p_window :_protein_list_window_collection) {
delete p_window;
}
_protein_list_window_collection.clear();
_p_current_protein_list_window = nullptr;
_project_sp = project_sp;
vector< MsRunIdSp > ms_run_list = _project_sp.get()->getCurrentIdentificationGroupP()->getMsRunIdSpList();
ui->sample_number_display->setText(QString("%1").arg(ms_run_list.size()));
ui->group_number_display->setText(QString("%1").arg(_project_sp.get()->getCurrentIdentificationGroupP()->countGroup()));
ui->subgroup_number_display->setText(QString("%1").arg(_project_sp.get()->getCurrentIdentificationGroupP()->countSubGroup()));
//_protein_list_window->setIdentificationGroup(_project_sp.get()->getCurrentIdentificationGroupP());
......
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