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

show/hide protein columns accession and evalue

parent 8604acfe
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,8 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Xml_EXECUTABLE_COMPILE_FLAGS} ${Qt5
#sudo apt-get install libpappsomspp-dev
#FIND_PACKAGE( Pappsomspp REQUIRED )
SET (PAPPSOMSPP_DIR "/home/olivier/eclipse/git/pappsomspp")
# SET (PAPPSOMSPP_DIR "/home/langella/developpement/git/pappsomspp")
# SET (PAPPSOMSPP_DIR "/home/olivier/eclipse/git/pappsomspp")
SET (PAPPSOMSPP_DIR "/home/langella/developpement/git/pappsomspp")
SET (PAPPSOMSPP_INCLUDE_DIR "${PAPPSOMSPP_DIR}/src")
SET (PAPPSOMSPP_QT4_LIBRARY "${PAPPSOMSPP_DIR}/cbuild/src/libpappsomspp-qt4.so")
......
......@@ -89,19 +89,33 @@ void ProteinListWindow::showEvalueColumn(bool show) {
ui->tableView->setColumnHidden(4,!show);
}
void ProteinListWindow::showAccessionColumn(bool show) {
_display_accession = show;
ui->tableView->setColumnHidden(2,!show);
}
void ProteinListWindow::doubleclickOnproteinMatch(ProteinMatch * p_protein_match) {
emit proteinMatchClicked(p_protein_match);
//updateStatusBar();
}
void ProteinListWindow::doFocusReceived(bool has_focus) {
if (has_focus ) {
qDebug() << "ProteinListWindow::doFocusReceived begin";
_project_window->setDefaultProteinListWindow(this);
qDebug() << "ProteinListWindow::doFocusReceived end";
}
}
void ProteinListWindow::showContextMenu(const QPoint & pos) {
QMenu contextMenu(tr("Context menu"), this);
QAction accession_action("accession", this);
accession_action.setCheckable(true);
accession_action.setChecked(_display_evalue);
connect(&accession_action, SIGNAL(toggled(bool)), this, SLOT(showAccessionColumn(bool)));
contextMenu.addAction(&accession_action);
QAction evalue_action("Evalue", this);
evalue_action.setCheckable(true);
......
......@@ -64,12 +64,12 @@ protected slots:
void doNotCheckedHide(bool hide);
void doNotGroupedHide(bool hide);
void showContextMenu(const QPoint &);
void showEvalueColumn(bool show);
void showAccessionColumn(bool show);
protected :
void updateStatusBar();
private :
void showEvalueColumn(bool show);
private:
IdentificationGroup * _p_identification_group;
......@@ -78,6 +78,7 @@ private:
ProteinTableProxyModel * _p_proxy_model = nullptr;
ProjectWindow * _project_window;
bool _display_evalue = true;
bool _display_accession = true;
};
......
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