From fef280df2219bc533f96155a65a6a835aeeb3bc6 Mon Sep 17 00:00:00 2001
From: Olivier Langella <Olivier.Langella@moulon.inra.fr>
Date: Sat, 10 Jun 2017 19:09:41 +0200
Subject: [PATCH] new ptm peptide list gui objects

---
 .../ptm_peptide_list_view.ui                  | 98 +++++++++++++++++++
 .../ptmpeptidelistwindow.cpp                  | 30 ++++++
 .../ptmpeptidelistwindow.h                    | 37 +++++++
 .../ptmpeptidetablemodel.cpp                  | 29 ++++++
 .../ptmpeptidetablemodel.h                    | 36 +++++++
 .../ptmpeptidetableproxymodel.cpp             | 29 ++++++
 .../ptmpeptidetableproxymodel.h               | 36 +++++++
 7 files changed, 295 insertions(+)
 create mode 100644 src/gui/ptm_peptide_list_view/ptm_peptide_list_view.ui
 create mode 100644 src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.cpp
 create mode 100644 src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.h
 create mode 100644 src/gui/ptm_peptide_list_view/ptmpeptidetablemodel.cpp
 create mode 100644 src/gui/ptm_peptide_list_view/ptmpeptidetablemodel.h
 create mode 100644 src/gui/ptm_peptide_list_view/ptmpeptidetableproxymodel.cpp
 create mode 100644 src/gui/ptm_peptide_list_view/ptmpeptidetableproxymodel.h

diff --git a/src/gui/ptm_peptide_list_view/ptm_peptide_list_view.ui b/src/gui/ptm_peptide_list_view/ptm_peptide_list_view.ui
new file mode 100644
index 00000000..8e2c1891
--- /dev/null
+++ b/src/gui/ptm_peptide_list_view/ptm_peptide_list_view.ui
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>PtmIslandListWindow</class>
+ <widget class="QMainWindow" name="PtmIslandListWindow">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>826</width>
+    <height>404</height>
+   </rect>
+  </property>
+  <property name="contextMenuPolicy">
+   <enum>Qt::CustomContextMenu</enum>
+  </property>
+  <property name="windowTitle">
+   <string>PTM island list</string>
+  </property>
+  <widget class="QWidget" name="centralwidget">
+   <property name="contextMenuPolicy">
+    <enum>Qt::CustomContextMenu</enum>
+   </property>
+   <layout class="QVBoxLayout" name="verticalLayout">
+    <item>
+     <widget class="QTableView" name="ptm_island_tableview">
+      <property name="contextMenuPolicy">
+       <enum>Qt::DefaultContextMenu</enum>
+      </property>
+     </widget>
+    </item>
+    <item>
+     <layout class="QHBoxLayout" name="horizontalLayout_2">
+      <item>
+       <widget class="QLabel" name="label_2">
+        <property name="text">
+         <string>search</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QComboBox" name="search_combobox">
+        <item>
+         <property name="text">
+          <string>accession</string>
+         </property>
+        </item>
+        <item>
+         <property name="text">
+          <string>description</string>
+         </property>
+        </item>
+        <item>
+         <property name="text">
+          <string>group</string>
+         </property>
+        </item>
+        <item>
+         <property name="text">
+          <string>sequence</string>
+         </property>
+        </item>
+        <item>
+         <property name="text">
+          <string>peptide</string>
+         </property>
+        </item>
+       </widget>
+      </item>
+      <item>
+       <widget class="QLineEdit" name="protein_search_edit"/>
+      </item>
+     </layout>
+    </item>
+   </layout>
+  </widget>
+  <widget class="QMenuBar" name="menubar">
+   <property name="geometry">
+    <rect>
+     <x>0</x>
+     <y>0</y>
+     <width>826</width>
+     <height>23</height>
+    </rect>
+   </property>
+  </widget>
+  <widget class="QStatusBar" name="statusbar"/>
+ </widget>
+ <resources/>
+ <connections/>
+ <slots>
+  <slot>doNotValidHide(bool)</slot>
+  <slot>doNotCheckedHide(bool)</slot>
+  <slot>doNotGroupedHide(bool)</slot>
+  <slot>onProteinSearchEdit(QString)</slot>
+  <slot>doSearchOn(QString)</slot>
+ </slots>
+</ui>
+
diff --git a/src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.cpp b/src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.cpp
new file mode 100644
index 00000000..3309a7db
--- /dev/null
+++ b/src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.cpp
@@ -0,0 +1,30 @@
+/**
+ * \file gui/ptm_peptide_list_window/ptmpeptidelistwindow.cpp
+ * \date 10/6/2017
+ * \author Olivier Langella
+ * \brief display all peptides from one ptm island
+ */
+
+/*******************************************************************************
+* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
+*
+* This file is part of XTPcpp.
+*
+*     XTPcpp is free software: you can redistribute it and/or modify
+*     it under the terms of the GNU General Public License as published by
+*     the Free Software Foundation, either version 3 of the License, or
+*     (at your option) any later version.
+*
+*     XTPcpp is distributed in the hope that it will be useful,
+*     but WITHOUT ANY WARRANTY; without even the implied warranty of
+*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+*     GNU General Public License for more details.
+*
+*     You should have received a copy of the GNU General Public License
+*     along with XTPcpp.  If not, see <http://www.gnu.org/licenses/>.
+*
+* Contributors:
+*     Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
+******************************************************************************/
+
+#include "ptmpeptidelistwindow.h"
diff --git a/src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.h b/src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.h
new file mode 100644
index 00000000..e6bc8363
--- /dev/null
+++ b/src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.h
@@ -0,0 +1,37 @@
+/**
+ * \file gui/ptm_peptide_list_window/ptmpeptidelistwindow.h
+ * \date 10/6/2017
+ * \author Olivier Langella
+ * \brief display all peptides from one ptm island
+ */
+
+/*******************************************************************************
+* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
+*
+* This file is part of XTPcpp.
+*
+*     XTPcpp is free software: you can redistribute it and/or modify
+*     it under the terms of the GNU General Public License as published by
+*     the Free Software Foundation, either version 3 of the License, or
+*     (at your option) any later version.
+*
+*     XTPcpp is distributed in the hope that it will be useful,
+*     but WITHOUT ANY WARRANTY; without even the implied warranty of
+*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+*     GNU General Public License for more details.
+*
+*     You should have received a copy of the GNU General Public License
+*     along with XTPcpp.  If not, see <http://www.gnu.org/licenses/>.
+*
+* Contributors:
+*     Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
+******************************************************************************/
+
+#ifndef PTMPEPTIDELISTWINDOW_H
+#define PTMPEPTIDELISTWINDOW_H
+
+class PtmPeptideListWindow
+{
+};
+
+#endif // PTMPEPTIDELISTWINDOW_H
diff --git a/src/gui/ptm_peptide_list_view/ptmpeptidetablemodel.cpp b/src/gui/ptm_peptide_list_view/ptmpeptidetablemodel.cpp
new file mode 100644
index 00000000..6ce26eec
--- /dev/null
+++ b/src/gui/ptm_peptide_list_view/ptmpeptidetablemodel.cpp
@@ -0,0 +1,29 @@
+/**
+ * \file gui/ptm_peptide_list_window/ptmpeptidetablemodel.cpp
+ * \date 10/6/2017
+ * \author Olivier Langella
+ */
+
+/*******************************************************************************
+* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
+*
+* This file is part of XTPcpp.
+*
+*     XTPcpp is free software: you can redistribute it and/or modify
+*     it under the terms of the GNU General Public License as published by
+*     the Free Software Foundation, either version 3 of the License, or
+*     (at your option) any later version.
+*
+*     XTPcpp is distributed in the hope that it will be useful,
+*     but WITHOUT ANY WARRANTY; without even the implied warranty of
+*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+*     GNU General Public License for more details.
+*
+*     You should have received a copy of the GNU General Public License
+*     along with XTPcpp.  If not, see <http://www.gnu.org/licenses/>.
+*
+* Contributors:
+*     Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
+******************************************************************************/
+
+#include "ptmpeptidetablemodel.h"
diff --git a/src/gui/ptm_peptide_list_view/ptmpeptidetablemodel.h b/src/gui/ptm_peptide_list_view/ptmpeptidetablemodel.h
new file mode 100644
index 00000000..d1eed50d
--- /dev/null
+++ b/src/gui/ptm_peptide_list_view/ptmpeptidetablemodel.h
@@ -0,0 +1,36 @@
+/**
+ * \file gui/ptm_peptide_list_window/ptmpeptidetablemodel.h
+ * \date 10/6/2017
+ * \author Olivier Langella
+ */
+
+/*******************************************************************************
+* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
+*
+* This file is part of XTPcpp.
+*
+*     XTPcpp is free software: you can redistribute it and/or modify
+*     it under the terms of the GNU General Public License as published by
+*     the Free Software Foundation, either version 3 of the License, or
+*     (at your option) any later version.
+*
+*     XTPcpp is distributed in the hope that it will be useful,
+*     but WITHOUT ANY WARRANTY; without even the implied warranty of
+*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+*     GNU General Public License for more details.
+*
+*     You should have received a copy of the GNU General Public License
+*     along with XTPcpp.  If not, see <http://www.gnu.org/licenses/>.
+*
+* Contributors:
+*     Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
+******************************************************************************/
+
+#ifndef PTMPEPTIDETABLEMODEL_H
+#define PTMPEPTIDETABLEMODEL_H
+
+class PtmPeptideTableModel
+{
+};
+
+#endif // PTMPEPTIDETABLEMODEL_H
diff --git a/src/gui/ptm_peptide_list_view/ptmpeptidetableproxymodel.cpp b/src/gui/ptm_peptide_list_view/ptmpeptidetableproxymodel.cpp
new file mode 100644
index 00000000..b6b394c4
--- /dev/null
+++ b/src/gui/ptm_peptide_list_view/ptmpeptidetableproxymodel.cpp
@@ -0,0 +1,29 @@
+/**
+ * \file gui/ptm_peptide_list_window/ptmpeptidetableproxymodel.cpp
+ * \date 10/6/2017
+ * \author Olivier Langella
+ */
+
+/*******************************************************************************
+* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
+*
+* This file is part of XTPcpp.
+*
+*     XTPcpp is free software: you can redistribute it and/or modify
+*     it under the terms of the GNU General Public License as published by
+*     the Free Software Foundation, either version 3 of the License, or
+*     (at your option) any later version.
+*
+*     XTPcpp is distributed in the hope that it will be useful,
+*     but WITHOUT ANY WARRANTY; without even the implied warranty of
+*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+*     GNU General Public License for more details.
+*
+*     You should have received a copy of the GNU General Public License
+*     along with XTPcpp.  If not, see <http://www.gnu.org/licenses/>.
+*
+* Contributors:
+*     Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
+******************************************************************************/
+
+#include "ptmpeptidetableproxymodel.h"
diff --git a/src/gui/ptm_peptide_list_view/ptmpeptidetableproxymodel.h b/src/gui/ptm_peptide_list_view/ptmpeptidetableproxymodel.h
new file mode 100644
index 00000000..5e0a9f67
--- /dev/null
+++ b/src/gui/ptm_peptide_list_view/ptmpeptidetableproxymodel.h
@@ -0,0 +1,36 @@
+/**
+ * \file gui/ptm_peptide_list_window/ptmpeptidetableproxymodel.h
+ * \date 10/6/2017
+ * \author Olivier Langella
+ */
+
+/*******************************************************************************
+* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
+*
+* This file is part of XTPcpp.
+*
+*     XTPcpp is free software: you can redistribute it and/or modify
+*     it under the terms of the GNU General Public License as published by
+*     the Free Software Foundation, either version 3 of the License, or
+*     (at your option) any later version.
+*
+*     XTPcpp is distributed in the hope that it will be useful,
+*     but WITHOUT ANY WARRANTY; without even the implied warranty of
+*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+*     GNU General Public License for more details.
+*
+*     You should have received a copy of the GNU General Public License
+*     along with XTPcpp.  If not, see <http://www.gnu.org/licenses/>.
+*
+* Contributors:
+*     Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
+******************************************************************************/
+
+#ifndef PTMPEPTIDETABLEPROXYMODEL_H
+#define PTMPEPTIDETABLEPROXYMODEL_H
+
+class PtmPeptideTableProxyModel
+{
+};
+
+#endif // PTMPEPTIDETABLEPROXYMODEL_H
-- 
GitLab