7#ifndef _CSEQUENCEDATABASEWIDGET_H
8#define _CSEQUENCEDATABASEWIDGET_H
11#include <QDesktopServices>
18#include <QStandardItemModel>
19#include <QStandardItem>
99 QToolBar* toolbarFile;
100 QAction* actionNewDatabase;
101 QAction* actionOpenDatabase;
102 QAction* actionSaveDatabase;
103 QAction* actionSaveDatabaseAs;
104 QAction* actionImportDatabase;
105 QAction* actionCloseWindow;
107 QToolBar* toolbarEdit;
108 QAction* actionAddRow;
109 QAction* actionRemoveSelectedRows;
110 QAction* actionSelectAll;
111 QAction* actionUnselectAll;
112 QAction* actionRemoveDuplicateRows;
114 QToolBar* toolbarHelp;
115 QAction* actionHTMLDocumentation;
117 QToolBar* toolbarFilter;
118 QWidget* rowsfilterwidget;
119 QHBoxLayout* rowsfilterhbox;
120 QComboBox* rowsfilteroperator;
121 QComboBox* rowsfiltercombobox1;
122 QComboBox* rowsfiltercomparatorcombobox1;
123 QLineEdit* rowsfilterline1;
124 QComboBox* rowsfiltercombobox2;
125 QComboBox* rowsfiltercomparatorcombobox2;
126 QLineEdit* rowsfilterline2;
127 QCheckBox* rowsfiltercasesensitive;
128 QCheckBox* rowsfilterwholeword;
129 QPushButton* rowsfilterbutton;
130 QPushButton* rowsfilterclearbutton;
132 QTableView* database;
133 QStandardItemModel* databasemodel;
135 QVBoxLayout* mainlayout;
138 QString databasefile;
140 ifstream inputstream;
141 ofstream outputstream;
152 bool checkFormula(
int row,
const string& summary);
154 bool checkSequence(
int row);
156 void setDataModified(
bool datamodified);
177 bool saveDatabaseAs();
179 void saveDatabaseCheck();
183 void removeSelectedRows();
185 void itemChanged(QStandardItem* item);
187 void headerItemClicked(
int index);
193 void createNewDatabase();
195 void importDatabase();
201 void showHTMLDocumentation();
203 void editItem(
const QModelIndex& index);
205 void removeDuplicateRows();
A checkbox item delegate.
A combobox item delegate.
The representation of a set of peptide sequence candidates.
The database of sequences.
A proxy model for editor of database of sequences.
The class storing global preferences.
Definition: cGlobalPreferences.h:104
The class representing a database of sequences.
Definition: cSequenceDatabase.h:27
A proxy model for editor of database of sequences.
Definition: cSequenceDatabaseProxyModel.h:21
Auxiliary funtions and structures.