- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/Qt3D/GLWorldView.cpp
r3927ef r57a770 42 42 connect(this, SIGNAL(atomInserted(const atom *)), worldscene, SLOT(atomInserted(const atom *))); 43 43 connect(this, SIGNAL(atomRemoved(const atom *)), worldscene, SLOT(atomRemoved(const atom *))); 44 connect(this, SIGNAL(worldSelectionChanged()), worldscene, SLOT(worldSelectionChanged()));45 connect(this, SIGNAL(moleculeRemoved(const molecule *)), worldscene, SLOT(moleculeRemoved(const molecule *)));46 44 connect(this, SIGNAL(changed()), this, SLOT(updateGL())); 47 45 … … 50 48 World::getInstance().signOn(this, World::AtomInserted); 51 49 World::getInstance().signOn(this, World::AtomRemoved); 52 World::getInstance().signOn(this, World::AtomPositionChanged);53 World::getInstance().signOn(this, World::MoleculeRemoved);54 World::getInstance().signOn(this, World::SelectionChanged);55 50 } 56 51 … … 60 55 World::getInstance().signOff(this, World::AtomInserted); 61 56 World::getInstance().signOff(this, World::AtomRemoved); 62 World::getInstance().signOff(this, World::AtomPositionChanged);63 World::getInstance().signOff(this, World::MoleculeRemoved);64 World::getInstance().signOff(this, World::SelectionChanged);65 57 delete worldscene; 66 58 } … … 104 96 #endif 105 97 emit atomRemoved(_atom); 106 break;107 }108 case World::AtomPositionChanged:109 {110 const atom *_atom = World::getInstance().lastChanged<atom>();111 #ifdef LOG_OBSERVER112 observerLog().addMessage() << "++ Observer " << observerLog().getName(this) << " received notification that atom "+toString(_atom->getId())+" has changed its position.";113 #endif114 emit changed();115 break;116 }117 case World::SelectionChanged:118 {119 #ifdef LOG_OBSERVER120 observerLog().addMessage() << "++ Observer " << observerLog().getName(this) << " received notification that selection has changed.";121 #endif122 emit worldSelectionChanged();123 break;124 }125 case World::MoleculeRemoved:126 {127 const molecule *_molecule = World::getInstance().lastChanged<molecule>();128 #ifdef LOG_OBSERVER129 observerLog().addMessage() << "++ Observer " << observerLog().getName(this) << " received notification that molecule "+toString(_molecule->getId())+" has been removed.";130 #endif131 emit moleculeRemoved(_molecule);132 98 break; 133 99 }
Note:
See TracChangeset
for help on using the changeset viewer.