Loading...
Searching...
No Matches
peptideDialog.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_PEPTIDEDIALOG_H
#define BALL_VIEW_DIALOGS_PEPTIDEDIALOG_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_STRUCTURE_PEPTIDEBUILDER_H
#include <BALL/STRUCTURE/peptideBuilder.h>
#endif
#include <BALL/VIEW/UIC/ui_peptideDialog.h>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT PeptideDialog
: public QDialog,
public Ui_PeptideDialogData,
public Peptides::PeptideBuilder
{
Q_OBJECT
public:
PeptideDialog( QWidget* parent = 0, const char* name = "PeptideDialog", Qt::WindowFlags fl = 0 );
~PeptideDialog() {}
String getSequence();
Protein* getProtein() { return protein_;}
public Q_SLOTS:
void ala_pressed() {insert_('a');}
void arg_pressed() {insert_('r');}
void asn_pressed() {insert_('n');}
void asp_pressed() {insert_('d');}
void cys_pressed() {insert_('c');}
void gln_pressed() {insert_('q');}
void glu_pressed() {insert_('e');}
void gly_pressed() {insert_('g');}
void his_pressed() {insert_('h');}
void ile_pressed() {insert_('i');}
void leu_pressed() {insert_('l');}
void lys_pressed() {insert_('k');}
void met_pressed() {insert_('m');}
void phe_pressed() {insert_('f');}
void pro_pressed() {insert_('p');}
void ser_pressed() {insert_('s');}
void thr_pressed() {insert_('t');}
void trp_pressed() {insert_('w');}
void tyr_pressed() {insert_('y');}
void val_pressed() {insert_('v');}
void back_pressed();
void close_pressed();
void angle_changed();
void insert_seq();
void prolineActivated();
void prolineDeactivated();
virtual bool eventFilter(QObject* object, QEvent* event);
protected:
void insert_(char a);
void truncString_(String& data);
bool isAminoAcid_(char a) const;
Protein* protein_;
static String all_amino_acids_;
};
} } // namespaces
#endif
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::Peptides::PeptideBuilder
Definition peptideBuilder.h:93
BALL::Protein
Definition protein.h:30
BALL::String
Definition string.h:57
BALL::VIEW::PeptideDialog::gly_pressed
void gly_pressed()
Definition peptideDialog.h:70
BALL::VIEW::PeptideDialog::met_pressed
void met_pressed()
Definition peptideDialog.h:85
BALL::VIEW::PeptideDialog::asn_pressed
void asn_pressed()
Definition peptideDialog.h:55
BALL::VIEW::PeptideDialog::insert_seq
void insert_seq()
BALL::VIEW::PeptideDialog::tyr_pressed
void tyr_pressed()
Definition peptideDialog.h:103
BALL::VIEW::PeptideDialog::asp_pressed
void asp_pressed()
Definition peptideDialog.h:58
BALL::VIEW::PeptideDialog::prolineActivated
void prolineActivated()
BALL::VIEW::PeptideDialog::cys_pressed
void cys_pressed()
Definition peptideDialog.h:61
BALL::VIEW::PeptideDialog::gln_pressed
void gln_pressed()
Definition peptideDialog.h:64
BALL::VIEW::PeptideDialog::~PeptideDialog
~PeptideDialog()
Destructor.
Definition peptideDialog.h:38
BALL::VIEW::PeptideDialog::his_pressed
void his_pressed()
Definition peptideDialog.h:73
BALL::VIEW::PeptideDialog::isAminoAcid_
bool isAminoAcid_(char a) const
BALL::VIEW::PeptideDialog::truncString_
void truncString_(String &data)
BALL::VIEW::PeptideDialog::eventFilter
virtual bool eventFilter(QObject *object, QEvent *event)
BALL::VIEW::PeptideDialog::getSequence
String getSequence()
BALL::VIEW::PeptideDialog::trp_pressed
void trp_pressed()
Definition peptideDialog.h:100
BALL::VIEW::PeptideDialog::angle_changed
void angle_changed()
BALL::VIEW::PeptideDialog::lys_pressed
void lys_pressed()
Definition peptideDialog.h:82
BALL::VIEW::PeptideDialog::arg_pressed
void arg_pressed()
Definition peptideDialog.h:52
BALL::VIEW::PeptideDialog::thr_pressed
void thr_pressed()
Definition peptideDialog.h:97
BALL::VIEW::PeptideDialog::glu_pressed
void glu_pressed()
Definition peptideDialog.h:67
BALL::VIEW::PeptideDialog::PeptideDialog
PeptideDialog(QWidget *parent=0, const char *name="PeptideDialog", Qt::WindowFlags fl=0)
Constructor.
BALL::VIEW::PeptideDialog::insert_
void insert_(char a)
BALL::VIEW::PeptideDialog::ser_pressed
void ser_pressed()
Definition peptideDialog.h:94
BALL::VIEW::PeptideDialog::back_pressed
void back_pressed()
BALL::VIEW::PeptideDialog::all_amino_acids_
static String all_amino_acids_
Definition peptideDialog.h:138
BALL::VIEW::PeptideDialog::leu_pressed
void leu_pressed()
Definition peptideDialog.h:79
BALL::VIEW::PeptideDialog::protein_
Protein * protein_
Definition peptideDialog.h:137
BALL::VIEW::PeptideDialog::ile_pressed
void ile_pressed()
Definition peptideDialog.h:76
BALL::VIEW::PeptideDialog::phe_pressed
void phe_pressed()
Definition peptideDialog.h:88
BALL::VIEW::PeptideDialog::getProtein
Protein * getProtein()
Definition peptideDialog.h:44
BALL::VIEW::PeptideDialog::close_pressed
void close_pressed()
BALL::VIEW::PeptideDialog::ala_pressed
void ala_pressed()
Definition peptideDialog.h:49
BALL::VIEW::PeptideDialog::prolineDeactivated
void prolineDeactivated()
BALL::VIEW::PeptideDialog::val_pressed
void val_pressed()
Definition peptideDialog.h:106
BALL::VIEW::PeptideDialog::pro_pressed
void pro_pressed()
Definition peptideDialog.h:91
QDialog
QEvent
QObject
QWidget
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
peptideBuilder.h