Changeset 7c6f73
- Timestamp:
- Jan 2, 2010, 3:18:00 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:
- 096214
- Parents:
- 1020f0
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Menu/TextMenu.cpp
r1020f0 r7c6f73 57 57 char choice; 58 58 bool somethingChosen = false; 59 quit = false; 59 60 do { 60 61 int pre = floor((length - title.length()) /2.0); -
src/menu.cpp
r1020f0 r7c6f73 993 993 void oldmenu::EditMolecules(periodentafel *periode, MoleculeListClass *molecules) 994 994 { 995 TextMenu *edit_molecules_menu = new TextMenu(Log() << Verbose(0), "Edit Molecules"); 996 997 Action *createMoleculeAction = new MethodAction(boost::bind(&oldmenu::createNewMolecule,this,periode,molecules)); 998 new ActionMenuItem('c',"create new molecule",edit_molecules_menu,createMoleculeAction); 999 1000 Action *loadMoleculeAction = new MethodAction(boost::bind(&oldmenu::loadFromXYZ,this,periode,molecules)); 1001 new ActionMenuItem('l',"load molecule from xyz file",edit_molecules_menu,loadMoleculeAction); 1002 1003 Action *changeFilenameAction = new MethodAction(boost::bind(&oldmenu::changeName,this,molecules)); 1004 new ActionMenuItem('n',"change molecule's name",edit_molecules_menu,changeFilenameAction); 1005 1006 Action *giveFilenameAction = new MethodAction(boost::bind(&oldmenu::setMoleculeFilename,this,molecules)); 1007 new ActionMenuItem('N',"give molecules filename",edit_molecules_menu,giveFilenameAction); 1008 1009 Action *parseAtomsAction = new MethodAction(boost::bind(&oldmenu::parseXYZIntoMolecule,this,molecules)); 1010 new ActionMenuItem('p',"parse atoms in xyz file into molecule",edit_molecules_menu,parseAtomsAction); 1011 1012 Action *eraseMoleculeAction = new MethodAction(boost::bind(&oldmenu::eraseMolecule,this,molecules)); 1013 new ActionMenuItem('r',"remove a molecule",edit_molecules_menu,eraseMoleculeAction); 1014 1015 Action *returnAction = new MethodAction(boost::bind(&TextMenu::doQuit,edit_molecules_menu)); 1016 MenuItem *returnItem = new ActionMenuItem('q',"return to Main menu",edit_molecules_menu,returnAction); 1017 1018 edit_molecules_menu->addDefault(returnItem); 1019 1020 1021 edit_molecules_menu->display(); 1022 1023 delete edit_molecules_menu; 1024 delete createMoleculeAction; 1025 delete loadMoleculeAction; 1026 delete changeFilenameAction; 1027 delete giveFilenameAction; 1028 delete parseAtomsAction; 1029 delete eraseMoleculeAction; 1030 delete returnAction; 1031 1032 #if 0 995 1033 char choice; // menu choice char 996 1034 … … 1035 1073 break; 1036 1074 } 1075 #endif 1037 1076 }; 1038 1077 … … 1250 1289 void oldmenu::perform(MoleculeListClass *molecules, config *configuration, periodentafel *periode, char *ConfigFileName) 1251 1290 { 1291 1292 // build the main menu 1252 1293 TextMenu *main_menu = new TextMenu(Log() << Verbose(0), "Main Menu"); 1253 1294
Note:
See TracChangeset
for help on using the changeset viewer.