BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
BALL::VIEW::EditMode Class Reference

#include <BALL/VIEW/KERNEL/MODES/editMode.h>

Inheritance diagram for BALL::VIEW::EditMode:
BALL::VIEW::InteractionMode QObject

Public Member Functions

 EditMode (Scene *scene)
 
virtual ~EditMode ()
 
virtual void keyPressEvent (QKeyEvent *evt)
 
virtual void keyReleaseEvent (QKeyEvent *evt)
 
virtual void mouseDoubleClickEvent (QMouseEvent *evt)
 
virtual void wheelEvent (QWheelEvent *evt)
 
virtual void addToolBarEntries (QToolBar *tb)
 
virtual Qt::Key getKey () const
 
virtual QString getName () const
 
virtual void activate ()
 
virtual void populateContextMenu (QMenu *menu)
 
- Public Member Functions inherited from BALL::VIEW::InteractionMode
 InteractionMode (Scene *scene)
 
virtual ~InteractionMode ()
 
void mouseMoveEvent (QMouseEvent *evt)
 
void mousePressEvent (QMouseEvent *evt)
 
void mouseReleaseEvent (QMouseEvent *evt)
 
virtual void deactivate ()
 
void setMouseSensitivity (float sens)
 
QAction * getMainAction ()
 
bool isCurrent () const
 
void setCurrent (bool current)
 

Protected Slots

virtual void addStructure_ ()
 
virtual void setFormalCharge_ ()
 
virtual void changeBondOrder_ ()
 
virtual void activatedOrderItem_ (QAction *action)
 
virtual void deleteCurrentBondTriggered_ ()
 
virtual void deleteCurrentAtomTriggered_ ()
 
virtual void atomPropertiesTriggered_ ()
 
virtual void changeAtomElementTriggered_ ()
 
virtual void createBond_ ()
 
- Protected Slots inherited from BALL::VIEW::InteractionMode
void modeChangeSlot_ ()
 

Protected Member Functions

virtual void mouseMoveEventImpl_ (QMouseEvent *evt)
 
virtual void mousePressEventImpl_ (QMouseEvent *evt)
 
virtual void mouseReleaseEventImpl_ (QMouseEvent *evt)
 
void insert_ (int x, int y, PDBAtom &atom)
 
void merge_ (Composite *a1, Composite *a2)
 
virtual void createActions_ ()
 
- Protected Member Functions inherited from BALL::VIEW::InteractionMode
float getXDiff_ () const
 
float getYDiff_ () const
 
void zoomSystem_ ()
 

Protected Attributes

bool temp_move_
 
int atom_number_
 
int bond_order_
 
Qt::MouseButtons last_buttons_
 
FragmentDBfragment_db_
 
QAction * element_action_
 
QAction * bond_action_
 
QAction * delete_atom_
 
QAction * change_charge_
 
QAction * atom_properties_
 
QMenu * charge_menu_
 
QMenu * order_menu_
 
QMenu * add_menu_
 
std::vector< QAction * > order_actions_
 
- Protected Attributes inherited from BALL::VIEW::InteractionMode
Scenescene_
 
QPoint mouse_pos_old_
 
QPoint mouse_pos_new_
 
QSize desktop_size_
 
float mouse_sensitivity_
 
float mouse_wheel_sensitivity_
 
QAction * main_action_
 
bool is_current_
 

Additional Inherited Members

- Signals inherited from BALL::VIEW::InteractionMode
void requestModeChange (InteractionMode *mode)
 

Detailed Description

Definition at line 19 of file editMode.h.

Constructor & Destructor Documentation

BALL::VIEW::EditMode::EditMode ( Scene scene)
virtual BALL::VIEW::EditMode::~EditMode ( )
virtual

Member Function Documentation

virtual void BALL::VIEW::EditMode::activate ( )
virtual

Reimplemented from BALL::VIEW::InteractionMode.

virtual void BALL::VIEW::EditMode::activatedOrderItem_ ( QAction *  action)
protectedvirtualslot
virtual void BALL::VIEW::EditMode::addStructure_ ( )
protectedvirtualslot
virtual void BALL::VIEW::EditMode::addToolBarEntries ( QToolBar *  tb)
virtual

Reimplemented from BALL::VIEW::InteractionMode.

virtual void BALL::VIEW::EditMode::atomPropertiesTriggered_ ( )
protectedvirtualslot
virtual void BALL::VIEW::EditMode::changeAtomElementTriggered_ ( )
protectedvirtualslot
virtual void BALL::VIEW::EditMode::changeBondOrder_ ( )
protectedvirtualslot
virtual void BALL::VIEW::EditMode::createActions_ ( )
protectedvirtual
virtual void BALL::VIEW::EditMode::createBond_ ( )
protectedvirtualslot
virtual void BALL::VIEW::EditMode::deleteCurrentAtomTriggered_ ( )
protectedvirtualslot
virtual void BALL::VIEW::EditMode::deleteCurrentBondTriggered_ ( )
protectedvirtualslot
virtual Qt::Key BALL::VIEW::EditMode::getKey ( ) const
virtual
virtual QString BALL::VIEW::EditMode::getName ( ) const
inlinevirtual

Implements BALL::VIEW::InteractionMode.

Definition at line 37 of file editMode.h.

void BALL::VIEW::EditMode::insert_ ( int  x,
int  y,
PDBAtom atom 
)
protected
virtual void BALL::VIEW::EditMode::keyPressEvent ( QKeyEvent *  evt)
virtual

Reimplemented from BALL::VIEW::InteractionMode.

virtual void BALL::VIEW::EditMode::keyReleaseEvent ( QKeyEvent *  evt)
virtual

Reimplemented from BALL::VIEW::InteractionMode.

void BALL::VIEW::EditMode::merge_ ( Composite a1,
Composite a2 
)
protected
virtual void BALL::VIEW::EditMode::mouseDoubleClickEvent ( QMouseEvent evt)
virtual

Reimplemented from BALL::VIEW::InteractionMode.

virtual void BALL::VIEW::EditMode::mouseMoveEventImpl_ ( QMouseEvent evt)
protectedvirtual

Reimplemented from BALL::VIEW::InteractionMode.

virtual void BALL::VIEW::EditMode::mousePressEventImpl_ ( QMouseEvent evt)
protectedvirtual

Reimplemented from BALL::VIEW::InteractionMode.

virtual void BALL::VIEW::EditMode::mouseReleaseEventImpl_ ( QMouseEvent evt)
protectedvirtual

Reimplemented from BALL::VIEW::InteractionMode.

virtual void BALL::VIEW::EditMode::populateContextMenu ( QMenu *  menu)
virtual

Reimplemented from BALL::VIEW::InteractionMode.

virtual void BALL::VIEW::EditMode::setFormalCharge_ ( )
protectedvirtualslot
virtual void BALL::VIEW::EditMode::wheelEvent ( QWheelEvent *  evt)
virtual

Reimplemented from BALL::VIEW::InteractionMode.

Member Data Documentation

QMenu* BALL::VIEW::EditMode::add_menu_
protected

Definition at line 66 of file editMode.h.

int BALL::VIEW::EditMode::atom_number_
protected

Definition at line 55 of file editMode.h.

QAction* BALL::VIEW::EditMode::atom_properties_
protected

Definition at line 63 of file editMode.h.

QAction* BALL::VIEW::EditMode::bond_action_
protected

Definition at line 60 of file editMode.h.

int BALL::VIEW::EditMode::bond_order_
protected

Definition at line 56 of file editMode.h.

QAction* BALL::VIEW::EditMode::change_charge_
protected

Definition at line 62 of file editMode.h.

QMenu* BALL::VIEW::EditMode::charge_menu_
protected

Definition at line 64 of file editMode.h.

QAction* BALL::VIEW::EditMode::delete_atom_
protected

Definition at line 61 of file editMode.h.

QAction* BALL::VIEW::EditMode::element_action_
protected

Definition at line 59 of file editMode.h.

FragmentDB* BALL::VIEW::EditMode::fragment_db_
protected

Definition at line 58 of file editMode.h.

Qt::MouseButtons BALL::VIEW::EditMode::last_buttons_
protected

Definition at line 57 of file editMode.h.

std::vector<QAction*> BALL::VIEW::EditMode::order_actions_
protected

Definition at line 67 of file editMode.h.

QMenu* BALL::VIEW::EditMode::order_menu_
protected

Definition at line 65 of file editMode.h.

bool BALL::VIEW::EditMode::temp_move_
protected

Definition at line 54 of file editMode.h.