Changeset 80951de for src/Actions
- Timestamp:
- Jul 22, 2010, 9:59:37 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:
- 30db64
- Parents:
- 4c5aaf
- Location:
- src/Actions
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionHistory.cpp
r4c5aaf r80951de 86 86 } 87 87 88 Dialog* ActionHistory::UndoAction::createDialog(){ 89 90 } 91 88 92 Action::state_ptr ActionHistory::UndoAction::performCall(){ 89 93 hist->undoLast(); … … 120 124 } 121 125 126 Dialog* ActionHistory::RedoAction::createDialog(){ 127 128 } 129 122 130 Action::state_ptr ActionHistory::RedoAction::performCall(){ 123 131 hist->redoLast(); -
src/Actions/ActionHistory.hpp
r4c5aaf r80951de 40 40 41 41 private: 42 virtual Dialog * createDialog(); 42 43 virtual Action::state_ptr performCall(); 43 44 virtual Action::state_ptr performUndo(Action::state_ptr); … … 58 59 59 60 private: 61 virtual Dialog * createDialog(); 60 62 virtual Action::state_ptr performCall(); 61 63 virtual Action::state_ptr performUndo(Action::state_ptr); -
src/Actions/ActionSequence.cpp
r4c5aaf r80951de 10 10 #include "Actions/ActionSequence.hpp" 11 11 #include "Actions/Action.hpp" 12 #include "UIElements/Dialog.hpp" 12 13 13 14 #include "Helpers/Assert.hpp" … … 36 37 return theAction; 37 38 } 39 } 40 41 // this method is used outside the ActionModule 42 // Each action registers itself with the history 43 void ActionSequence::callAllDialogs(){ 44 for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){ 45 // we want to have a global bookkeeping for all actions in the sequence, so 46 // we bypass the normal call 47 (*it)->createDialog()->display(); 48 } 49 } 50 51 // This method is used internally when MakroActions are constructed. 52 // In this case only the makro Action should be registered and 53 // handle the states 54 ActionSequence::stateSet ActionSequence::callAllDialogs(bool){ 55 stateSet states; 56 for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){ 57 // we want to have a global bookkeeping for all actions in the sequence, so 58 // we bypass the normal call 59 (*it)->createDialog()->display(); 60 } 61 return states; 38 62 } 39 63 -
src/Actions/ActionSequence.hpp
r4c5aaf r80951de 30 30 31 31 void callAll(); 32 void callAllDialogs(); 32 33 33 34 bool canUndo(); … … 36 37 protected: 37 38 stateSet callAll(bool); // Dummy parameter to allow overloading 39 stateSet callAllDialogs(bool); // Dummy parameter to allow overloading 38 40 stateSet undoAll(stateSet); 39 41 stateSet redoAll(stateSet); -
src/Actions/Calculation.hpp
r4c5aaf r80951de 64 64 virtual T* doCalc()=0; 65 65 private: 66 virtual Dialog* createDialog(); 66 67 virtual Action::state_ptr performCall(); 67 68 virtual Action::state_ptr performUndo(Action::state_ptr); -
src/Actions/Calculation_impl.hpp
r4c5aaf r80951de 27 27 28 28 // methods inherited from Action 29 30 template<typename T> 31 Dialog* Calculation<T>::createDialog(){ 32 return NULL; 33 } 29 34 30 35 template<typename T> -
src/Actions/ErrorAction.cpp
r4c5aaf r80951de 27 27 } 28 28 29 Dialog* ErrorAction::createDialog() { 30 } 31 29 32 Action::state_ptr ErrorAction::performCall() { 30 33 Log() << Verbose(0) << errorMsg << endl; -
src/Actions/ErrorAction.hpp
r4c5aaf r80951de 22 22 23 23 private: 24 24 virtual Dialog * createDialog(); 25 25 virtual Action::state_ptr performCall(); 26 26 virtual Action::state_ptr performUndo(Action::state_ptr); -
src/Actions/MakroAction.cpp
r4c5aaf r80951de 44 44 } 45 45 46 Dialog* MakroAction::createDialog() { 47 actions->callAllDialogs(); 48 } 46 49 47 50 Action::state_ptr MakroAction::performCall(){ -
src/Actions/MakroAction.hpp
r4c5aaf r80951de 30 30 31 31 private: 32 virtual Dialog * createDialog(); 32 33 virtual Action::state_ptr performCall(); 33 34 virtual Action::state_ptr performUndo(Action::state_ptr); -
src/Actions/ManipulateAtomsProcess.cpp
r4c5aaf r80951de 26 26 ManipulateAtomsProcess::~ManipulateAtomsProcess() 27 27 {} 28 29 Dialog* ManipulateAtomsProcess::createDialog(){ 30 31 } 28 32 29 33 Action::state_ptr ManipulateAtomsProcess::performCall(){ -
src/Actions/ManipulateAtomsProcess.hpp
r4c5aaf r80951de 29 29 private: 30 30 31 virtual Dialog* createDialog(); 31 32 virtual Action::state_ptr performCall(); 32 33 virtual Action::state_ptr performUndo(Action::state_ptr); -
src/Actions/MethodAction.cpp
r4c5aaf r80951de 26 26 {} 27 27 28 Dialog* MethodAction::createDialog() { 29 } 30 28 31 29 32 Action::state_ptr MethodAction::performCall() { -
src/Actions/MethodAction.hpp
r4c5aaf r80951de 26 26 27 27 private: 28 virtual Dialog * createDialog(); 28 29 virtual Action::state_ptr performCall(); 29 30 virtual Action::state_ptr performUndo(Action::state_ptr);
Note:
See TracChangeset
for help on using the changeset viewer.