BALL 1.5.0
Loading...
Searching...
No Matches
peptideDialog.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4
5#ifndef BALL_VIEW_DIALOGS_PEPTIDEDIALOG_H
6#define BALL_VIEW_DIALOGS_PEPTIDEDIALOG_H
7
8#ifndef BALL_COMMON_GLOBAL_H
9# include <BALL/COMMON/global.h>
10#endif
11
12#ifndef BALL_STRUCTURE_PEPTIDEBUILDER_H
14#endif
15
16#include <BALL/VIEW/UIC/ui_peptideDialog.h>
17
18namespace BALL
19{
20 namespace VIEW
21 {
26 : public QDialog,
27 public Ui_PeptideDialogData,
29 {
30 Q_OBJECT
31
32 public:
33
35 PeptideDialog( QWidget* parent = 0, const char* name = "PeptideDialog", Qt::WindowFlags fl = 0 );
36
39
42
44 Protein* getProtein() { return protein_;}
45
46 public Q_SLOTS:
47
49 void ala_pressed() {insert_('a');}
50
52 void arg_pressed() {insert_('r');}
53
55 void asn_pressed() {insert_('n');}
56
58 void asp_pressed() {insert_('d');}
59
61 void cys_pressed() {insert_('c');}
62
64 void gln_pressed() {insert_('q');}
65
67 void glu_pressed() {insert_('e');}
68
70 void gly_pressed() {insert_('g');}
71
73 void his_pressed() {insert_('h');}
74
76 void ile_pressed() {insert_('i');}
77
79 void leu_pressed() {insert_('l');}
80
82 void lys_pressed() {insert_('k');}
83
85 void met_pressed() {insert_('m');}
86
88 void phe_pressed() {insert_('f');}
89
91 void pro_pressed() {insert_('p');}
92
94 void ser_pressed() {insert_('s');}
95
97 void thr_pressed() {insert_('t');}
98
100 void trp_pressed() {insert_('w');}
101
103 void tyr_pressed() {insert_('y');}
104
106 void val_pressed() {insert_('v');}
107
110
113
116
119
122
125
127 virtual bool eventFilter(QObject* object, QEvent* event);
128
129 protected:
130
131 void insert_(char a);
132
133 void truncString_(String& data);
134
135 bool isAminoAcid_(char a) const;
136
139 };
140
141} } // namespaces
142#endif
bool isAminoAcid_(char a) const
void truncString_(String &data)
virtual bool eventFilter(QObject *object, QEvent *event)
PeptideDialog(QWidget *parent=0, const char *name="PeptideDialog", Qt::WindowFlags fl=0)
Constructor.
#define BALL_VIEW_EXPORT