BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
18 namespace 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::WFlags fl = 0 );
36 
39 
41  String getSequence();
42 
44  Protein* getProtein() { return protein_;}
45 
46  public 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 
109  void back_pressed();
110 
112  void close_pressed();
113 
115  void angle_changed();
116 
118  void insert_seq();
119 
121  void prolineActivated();
122 
124  void prolineDeactivated();
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
~PeptideDialog()
Destructor.
Definition: peptideDialog.h:38
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
static String all_amino_acids_