Changeset 1d3563 for src/UIElements
- Timestamp:
- Sep 19, 2013, 8:23:52 PM (12 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:
- 690741
- Parents:
- 628577
- git-author:
- Frederik Heber <heber@…> (08/16/13 11:15:29)
- git-committer:
- Frederik Heber <heber@…> (09/19/13 20:23:52)
- Location:
- src/UIElements
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineWindow.cpp
r628577 r1d3563 65 65 66 66 void CommandLineWindow::display() { 67 Action Registry &AR = ActionQueue::getInstance().getActionRegistry();67 ActionQueue &AQ = ActionQueue::getInstance(); 68 68 //cout << AR; 69 69 … … 71 71 LOG(0, "Calling Actions ... "); 72 72 for (std::list<std::string>::iterator CommandRunner = CommandLineParser::getInstance().SequenceOfActions.begin(); CommandRunner != CommandLineParser::getInstance().SequenceOfActions.end(); ++CommandRunner) { 73 if (A R.isActionPresentByName(*CommandRunner)) {73 if (AQ.isActionKnownByName(*CommandRunner)) { 74 74 // LOG1, "INFO: Checking presence of " << *CommandRunner << ": " << "calling " << *CommandRunner); 75 A R.getActionByName(*CommandRunner)->call();75 AQ.getActionByName(*CommandRunner)->call(); 76 76 } else { 77 77 // LOG(1, "INFO: Checking presence of " << *CommandRunner << ": " << "absent."); -
src/UIElements/Menu/Qt4/QtMenuPipe.cpp
r628577 r1d3563 55 55 56 56 void QtMenuPipe::called() { 57 Action* action = ActionQueue::getInstance().getAction Registry().getActionByName(ActionName);57 Action* action = ActionQueue::getInstance().getActionByName(ActionName); 58 58 try{ 59 59 action->call(); -
src/UIElements/Menu/TextMenu/ActionMenuItem.cpp
r628577 r1d3563 53 53 54 54 void ActionMenuItem::doTrigger() { 55 Action* action = ActionQueue::getInstance().getAction Registry().getActionByName(ActionName);55 Action* action = ActionQueue::getInstance().getActionByName(ActionName); 56 56 action->call(); 57 57 } 58 58 59 59 bool ActionMenuItem::isActive() { 60 Action* action = ActionQueue::getInstance().getAction Registry().getActionByName(ActionName);60 Action* action = ActionQueue::getInstance().getActionByName(ActionName); 61 61 return action->isActive(); 62 62 } -
src/UIElements/Menu/TextMenu/TextMenu.hpp
r628577 r1d3563 148 148 MoleCuilder::OptionTrait("leave"+token, &typeid(void), "leave menu "+token), 149 149 token, 150 MoleCuilder::ActionQueue::getInstance().get ActionRegistry().getLastPosition(token)+2); // have a separator in between150 MoleCuilder::ActionQueue::getInstance().getLastPosition(token)+2); // have a separator in between 151 151 new TxMenu::LeaveAction(NewMenu->getMenuInstance(), leaveTrait); 152 152 NewMenu->init(); -
src/UIElements/Qt4/QtMainWindow.cpp
r628577 r1d3563 172 172 MoleCuilder::WorldOutput(); 173 173 else{ 174 Action* action = ActionQueue::getInstance().getAction Registry().getActionByName("output-as");174 Action* action = ActionQueue::getInstance().getActionByName("output-as"); 175 175 try{ 176 176 action->call(); -
src/UIElements/TextUI/TextWindow.cpp
r628577 r1d3563 86 86 87 87 // save has reserved key 's' 88 // Action *saveConfigAction = ActionQueue::getInstance().getAction Registry().getActionByName("output");88 // Action *saveConfigAction = ActionQueue::getInstance().getActionByName("output"); 89 89 new ActionMenuItem('s',"save current setup to config files",main_menu->getMenuInstance(),"output"); 90 90
Note:
See TracChangeset
for help on using the changeset viewer.