diff --git a/src/gui/peptide_list_view/peptide_view.ui b/src/gui/peptide_list_view/peptide_view.ui index 318091ca96899409a787efbfb80dfb034d44d8db..726daae142c3582c68c9ccd556c3628e843f135d 100644 --- a/src/gui/peptide_list_view/peptide_view.ui +++ b/src/gui/peptide_list_view/peptide_view.ui @@ -25,6 +25,39 @@ </property> </widget> </item> + + <item> + <layout class="QHBoxLayout" name="horizontalLayoutcb"> + <item> + <widget class="QLabel" name="labelhide"> + <property name="text"> + <string>hide :</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="hideNotValidCheckBox"> + <property name="text"> + <string>not valid</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="hideNotCheckedCheckBox"> + <property name="text"> + <string>not checked</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="hideNotGroupedCheckBox"> + <property name="text"> + <string>not grouped</string> + </property> + </widget> + </item> + </layout> + </item> <item> <widget class="QTableView" name="tableView"/> </item> @@ -43,5 +76,60 @@ <widget class="QStatusBar" name="statusbar"/> </widget> <resources/> - <connections/> + + <connections> + <connection> + <sender>hideNotValidCheckBox</sender> + <signal>toggled(bool)</signal> + <receiver>PeptideView</receiver> + <slot>doNotValidHide(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>245</x> + <y>53</y> + </hint> + <hint type="destinationlabel"> + <x>839</x> + <y>171</y> + </hint> + </hints> + </connection> + <connection> + <sender>hideNotCheckedCheckBox</sender> + <signal>toggled(bool)</signal> + <receiver>PeptideView</receiver> + <slot>doNotCheckedHide(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>482</x> + <y>47</y> + </hint> + <hint type="destinationlabel"> + <x>920</x> + <y>269</y> + </hint> + </hints> + </connection> + <connection> + <sender>hideNotGroupedCheckBox</sender> + <signal>toggled(bool)</signal> + <receiver>PeptideView</receiver> + <slot>doNotGroupedHide(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>688</x> + <y>57</y> + </hint> + <hint type="destinationlabel"> + <x>1079</x> + <y>360</y> + </hint> + </hints> + </connection> + </connections> + <slots> + <slot>doNotValidHide(bool)</slot> + <slot>doNotCheckedHide(bool)</slot> + <slot>doNotGroupedHide(bool)</slot> + </slots> </ui> diff --git a/src/gui/peptide_list_view/peptidelistwindow.cpp b/src/gui/peptide_list_view/peptidelistwindow.cpp index c25b24f2f4f43f66e5142d456e93303c3d5c3aa1..9cda7c0fd736c97aaa39ba81e6e9cd7d34810489 100644 --- a/src/gui/peptide_list_view/peptidelistwindow.cpp +++ b/src/gui/peptide_list_view/peptidelistwindow.cpp @@ -46,6 +46,24 @@ PeptideListWindow::PeptideListWindow(ProjectWindow *parent): //connect(ui->tableView, SIGNAL(clicked(const QModelIndex &)), _p_proxy_model, SLOT(onTableClicked(const QModelIndex &))); + + QSettings settings; + bool hide = settings.value("peptideview/hidenotvalid", "true").toBool(); + if (hide) { + ui->hideNotValidCheckBox->setCheckState(Qt::Checked); + } + _p_proxy_model->hideNotValid(hide); + hide = settings.value("peptideview/hidenotchecked", "false").toBool(); + if (hide) { + ui->hideNotCheckedCheckBox->setCheckState(Qt::Checked); + } + _p_proxy_model->hideNotChecked(hide); + hide = settings.value("peptideview/hidenotgrouped", "false").toBool(); + if (hide) { + ui->hideNotGroupedCheckBox->setCheckState(Qt::Checked); + } + _p_proxy_model->hideNotGrouped(hide); + #if QT_VERSION >= 0x050000 // Qt5 code diff --git a/src/gui/protein_list_view/proteinlistwindow.cpp b/src/gui/protein_list_view/proteinlistwindow.cpp index d58d8dfc21017809493b8ec3835ac428727e26f4..0392a9296311584a6c9469c19305f13f60d4ea6f 100644 --- a/src/gui/protein_list_view/proteinlistwindow.cpp +++ b/src/gui/protein_list_view/proteinlistwindow.cpp @@ -60,7 +60,7 @@ ProteinListWindow::ProteinListWindow(ProjectWindow *parent): if (hide) { ui->hideNotGroupedCheckBox->setCheckState(Qt::Checked); } - _p_proxy_model->hideNotGrouped(settings.value("proteinview/hidenotgrouped", "false").toBool()); + _p_proxy_model->hideNotGrouped(hide); #if QT_VERSION >= 0x050000