Changeset c96731
- Timestamp:
- Dec 16, 2009, 12:30:16 PM (15 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- a223a8
- Parents:
- 165d7d
- git-author:
- Tillmann Crueger <crueger@…> (12/16/09 12:21:27)
- git-committer:
- Frederik Heber <heber@…> (12/16/09 12:30:16)
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Menu/MenuItem.cpp
r165d7d rc96731 11 11 #include "Menu/Menu.hpp" 12 12 #include <sstream> 13 #include <iostream> 13 14 14 15 MenuItem::MenuItem(char _trigger, const char* _description,Menu* menu) : 15 trigger(_trigger) 16 trigger(_trigger), 17 added(false) 16 18 { 17 19 description = new string(_description); -
src/menu.cpp
r165d7d rc96731 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 1226 1235 void oldmenu::perform(MoleculeListClass *molecules, config *configuration, periodentafel *periode, char *ConfigFileName) 1227 1236 { … … 1233 1242 new SeperatorItem(main_menu); 1234 1243 1235 MethodAction *setMoleculeAction = new MethodAction(boost::bind(&oldmenu:: notImplementedYet,this));1244 MethodAction *setMoleculeAction = new MethodAction(boost::bind(&oldmenu::flipChosen,this,molecules)); 1236 1245 new ActionMenuItem('a',"set molecule (in)active",main_menu,setMoleculeAction); 1237 1246 -
src/menu.hpp
r165d7d rc96731 32 32 void EditMolecules(periodentafel *, MoleculeListClass *); 33 33 void FragmentAtoms(molecule *, config *); 34 void flipChosen(MoleculeListClass*); 34 35 void ManipulateAtoms(periodentafel *, MoleculeListClass *, config *); 35 36 void MeasureAtoms(periodentafel *, molecule *, config *);
Note:
See TracChangeset
for help on using the changeset viewer.