Skip to content
Snippets Groups Projects
Commit a2e0ce65 authored by Renne Thomas's avatar Renne Thomas
Browse files

Add protein detail link to the ptmIsland window #29

parent 24408577
No related branches found
No related tags found
1 merge request!33Multiples Corrections and features implementations
......@@ -54,6 +54,7 @@ class ProjectWindow : public QMainWindow
friend class ProteinListWindow;
friend class PeptideListWindow;
friend class MsRunIdListWindow;
friend class PtmIslandListWindow;
public:
explicit ProjectWindow(MainWindow *parent = 0);
......
......@@ -215,6 +215,15 @@ PtmIslandListWindow::askViewPtmPeptideList(PtmIsland *ptm_island)
_p_current_ptm_peptide_list_window->show();
}
void PtmIslandListWindow::askProteinDetailView(ProteinMatch* p_protein_match)
{
qDebug() << "begin";
_project_window->doViewProteinDetail(p_protein_match);
qDebug() << "end";
// updateStatusBar();
}
const IdentificationGroup *
PtmIslandListWindow::getIdentificationGroup() const
{
......
......@@ -76,6 +76,7 @@ class PtmIslandListWindow : public QMainWindow
protected:
void askViewPtmPeptideList(PtmIsland *ptm_island);
void askProteinDetailView(ProteinMatch *p_protein_match);
private:
void connectNewPtmPeptideListWindow();
......
......@@ -169,18 +169,18 @@ PtmIslandProxyModel::onTableClicked(const QModelIndex &index)
qDebug() << "PtmIslandProxyModel::onTableClicked begin "
<< this->mapToSource(index).row();
//_protein_table_model_p->onTableClicked(this->mapToSource(index));
// _protein_table_model_p->onTableClicked(this->mapToSource(index));
QModelIndex source_index(this->mapToSource(index));
int row = source_index.row();
int col = source_index.column();
// ProteinMatch* p_protein_match =
// _p_ptm_island_table_model->getIdentificationGroup()->getProteinMatchList().at(row);
ProteinMatch* p_protein_match =
_p_ptm_island_table_model->getIdentificationGroup()->getProteinMatchList().at(row);
if((col == (std::int8_t)PtmIslandListColumn::accession) ||
(col == (std::int8_t)PtmIslandListColumn::description))
{
//_p_ptm_island_table_model->askPtmProteinDetailView(p_protein_match);
_p_ptm_island_list_window->askProteinDetailView(p_protein_match);
}
else
{
......
......@@ -150,6 +150,12 @@ PtmIslandTableModel::setIdentificationGroup(
this->_p_ptm_island_list_window->resizeColumnsToContents();
}
IdentificationGroup * PtmIslandTableModel::getIdentificationGroup()
{
return _p_identification_group;
}
const PtmGroupingExperiment *
PtmIslandTableModel::getPtmGroupingExperiment() const
{
......
......@@ -68,6 +68,8 @@ class PtmIslandTableModel : public QAbstractTableModel
~PtmIslandTableModel();
void setIdentificationGroup(IdentificationGroup *p_identification_group);
IdentificationGroup * getIdentificationGroup();
virtual int
rowCount(const QModelIndex &parent = QModelIndex()) const override;
virtual int
......
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