00001
00002
00003
00004
00005
00006 #ifndef BALL_VIEW_DIALOGS_PEPTIDEDIALOG_H
00007 #define BALL_VIEW_DIALOGS_PEPTIDEDIALOG_H
00008
00009 #ifndef BALL_COMMON_GLOBAL_H
00010 # include <BALL/COMMON/global.h>
00011 #endif
00012
00013 #ifdef BALL_COMPILER_MSVC
00014 # include <BALL/VIEW/UIC/ui_peptideDialog.h>
00015 #else
00016 # include <BALL/VIEW/UIC/peptideDialogData.h>
00017 #endif
00018
00019
00020 #ifndef BALL_STRUCTURE_PEPTIDEBUILDER_H
00021 #include <BALL/STRUCTURE/peptideBuilder.h>
00022 #endif
00023
00024 namespace BALL
00025 {
00026 namespace VIEW
00027 {
00031 class BALL_VIEW_EXPORT PeptideDialog
00032 : public QDialog,
00033 public Ui_PeptideDialogData,
00034 public Peptides::PeptideBuilder
00035 {
00036 Q_OBJECT
00037
00038 public:
00039
00041 PeptideDialog( QWidget* parent = 0, const char* name = "PeptideDialog", Qt::WFlags fl = 0 );
00042
00044 ~PeptideDialog() {}
00045
00047 String getSequence();
00048
00050 Protein* getProtein() { return protein_;}
00051
00052 public slots:
00053
00055 void ala_pressed() {insert_('a');}
00056
00058 void arg_pressed() {insert_('r');}
00059
00061 void asn_pressed() {insert_('n');}
00062
00064 void asp_pressed() {insert_('d');}
00065
00067 void cys_pressed() {insert_('c');}
00068
00070 void gln_pressed() {insert_('q');}
00071
00073 void glu_pressed() {insert_('e');}
00074
00076 void gly_pressed() {insert_('g');}
00077
00079 void his_pressed() {insert_('h');}
00080
00082 void ile_pressed() {insert_('i');}
00083
00085 void leu_pressed() {insert_('l');}
00086
00088 void lys_pressed() {insert_('k');}
00089
00091 void met_pressed() {insert_('m');}
00092
00094 void phe_pressed() {insert_('f');}
00095
00097 void pro_pressed() {insert_('p');}
00098
00100 void ser_pressed() {insert_('s');}
00101
00103 void thr_pressed() {insert_('t');}
00104
00106 void trp_pressed() {insert_('w');}
00107
00109 void tyr_pressed() {insert_('y');}
00110
00112 void val_pressed() {insert_('v');}
00113
00115 void back_pressed();
00116
00118 void close_pressed();
00119
00121 void angle_changed();
00122
00124 void insert_seq();
00125
00127 void prolineActivated();
00128
00130 void prolineDeactivated();
00131
00133 virtual bool eventFilter(QObject* object, QEvent* event);
00134
00135 protected:
00136
00137 void insert_(char a);
00138
00139 void truncString_(String& data);
00140
00141 bool isAminoAcid_(char a) const;
00142
00143 Protein* protein_;
00144 static String all_amino_acids_;
00145 };
00146
00147 } }
00148 #endif