Changeset fab853
- Timestamp:
- Dec 29, 2009, 11:57:09 AM (16 years ago)
- Children:
- aa117c
- Parents:
- 8d24e2
- Location:
- molecuilder/src
- Files:
-
- 4 edited
-
menu.cpp (modified) (2 diffs)
-
menu.hpp (modified) (1 diff)
-
molecule.hpp (modified) (1 diff)
-
moleculelist.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/menu.cpp
r8d24e2 rfab853 1224 1224 } 1225 1225 1226 void oldmenu::flipChosen(MoleculeListClass *molecules) {1227 int j;1228 Log() << Verbose(0) << "Enter index of molecule: ";1229 cin >> j;1230 for(MoleculeList::iterator ListRunner = molecules->ListOfMolecules.begin(); ListRunner != molecules->ListOfMolecules.end(); ListRunner++)1231 if ((*ListRunner)->IndexNr == j)1232 (*ListRunner)->ActiveFlag = !(*ListRunner)->ActiveFlag;1233 }1234 1235 1226 void oldmenu::perform(MoleculeListClass *molecules, config *configuration, periodentafel *periode, char *ConfigFileName) 1236 1227 { … … 1242 1233 new SeperatorItem(main_menu); 1243 1234 1244 Action *setMoleculeAction = new MethodAction(boost::bind(& oldmenu::flipChosen,this,molecules));1235 Action *setMoleculeAction = new MethodAction(boost::bind(&MoleculeListClass::flipChosen,molecules)); 1245 1236 new ActionMenuItem('a',"set molecule (in)active",main_menu,setMoleculeAction); 1246 1237 -
molecuilder/src/menu.hpp
r8d24e2 rfab853 32 32 void EditMolecules(periodentafel *, MoleculeListClass *); 33 33 void FragmentAtoms(molecule *, config *); 34 void flipChosen(MoleculeListClass*);35 34 void ManipulateAtoms(periodentafel *, MoleculeListClass *, config *); 36 35 void MeasureAtoms(periodentafel *, molecule *, config *); -
molecuilder/src/molecule.hpp
r8d24e2 rfab853 327 327 int CountAllAtoms() const; 328 328 329 void flipChosen(); 330 329 331 // merging of molecules 330 332 bool SimpleMerge(molecule *mol, molecule *srcmol); -
molecuilder/src/moleculelist.cpp
r8d24e2 rfab853 839 839 840 840 841 void MoleculeListClass::flipChosen() { 842 int j; 843 Log() << Verbose(0) << "Enter index of molecule: "; 844 cin >> j; 845 for(MoleculeList::iterator ListRunner = ListOfMolecules.begin(); ListRunner != ListOfMolecules.end(); ListRunner++) 846 if ((*ListRunner)->IndexNr == j) 847 (*ListRunner)->ActiveFlag = !(*ListRunner)->ActiveFlag; 848 } 849 850 841 851 /******************************************* Class MoleculeLeafClass ************************************************/ 842 852
Note:
See TracChangeset
for help on using the changeset viewer.
