Changeset 353e82 for src/Actions
- Timestamp:
- Aug 9, 2010, 6:34:36 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:
- 0d02fb, 4e6d74, e41c48
- Parents:
- b5c53d (diff), 1cc87e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/Actions
- Files:
-
- 22 added
- 4 deleted
- 13 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionHistory.cpp
rb5c53d r353e82 67 67 68 68 /****************** Contained actions *******************/ 69 70 const char ActionHistory::UndoAction::NAME[] = "undo"; 71 69 72 ActionHistory::UndoAction::UndoAction(ActionHistory *_hist) : 70 Action( "Undo"),73 Action(NAME), 71 74 hist(_hist) 72 75 {} … … 92 95 93 96 Action::state_ptr ActionHistory::UndoAction::performCall(){ 97 std::cout << "Undo" << std::endl; 94 98 hist->undoLast(); 95 99 return Action::success; … … 106 110 } 107 111 112 const char ActionHistory::RedoAction::NAME[] = "redo"; 113 108 114 ActionHistory::RedoAction::RedoAction(ActionHistory *_hist) : 109 Action( "Redo"),115 Action(NAME), 110 116 hist(_hist) 111 117 {} … … 122 128 123 129 bool ActionHistory::RedoAction::isActive(){ 130 std::cout << "Redo" << std::endl; 124 131 return hist->hasRedo(); 125 132 } -
src/Actions/ActionHistory.hpp
rb5c53d r353e82 46 46 47 47 ActionHistory *hist; 48 49 static const char NAME[]; 48 50 }; 49 51 … … 66 68 67 69 ActionHistory *hist; 70 71 static const char NAME[]; 68 72 }; 69 73 -
src/Actions/AtomAction/RotateAroundOriginByAngleAction.hpp
rb5c53d r353e82 11 11 #include "Actions/Action.hpp" 12 12 13 class MoleculeListClass;14 13 class Vector; 15 14 16 void MoleculeRotateOrigin(Vector &Axis);15 void AtomRotateOrigin(Vector &Axis); 17 16 18 class MoleculeRotateAroundOriginByAngleAction : public Action {19 friend void MoleculeRotateAroundOriginByAngle(const Vector &Axis, double angle);17 class AtomRotateAroundOriginByAngleAction : public Action { 18 friend void AtomRotateAroundOriginByAngle(const Vector &Axis, double angle); 20 19 21 20 public: 22 MoleculeRotateAroundOriginByAngleAction();23 virtual ~ MoleculeRotateAroundOriginByAngleAction();21 AtomRotateAroundOriginByAngleAction(); 22 virtual ~AtomRotateAroundOriginByAngleAction(); 24 23 25 24 bool canUndo(); -
src/Actions/AtomAction/TranslateAction.hpp
rb5c53d r353e82 12 12 #include "LinearAlgebra/Vector.hpp" 13 13 14 class MoleculeListClass;14 void AtomTranslate(Vector &x, bool periodic); 15 15 16 void MoleculeTranslate(Vector &x, bool periodic); 17 18 class MoleculeTranslateAction : public Action { 19 friend void MoleculeTranslate(Vector &x, bool periodic); 16 class AtomTranslateAction : public Action { 17 friend void AtomTranslate(Vector &x); 20 18 21 19 public: 22 MoleculeTranslateAction();23 virtual ~ MoleculeTranslateAction();20 AtomTranslateAction(); 21 virtual ~AtomTranslateAction(); 24 22 25 23 bool canUndo(); -
src/Actions/CmdAction/FastParsingAction.cpp
rb5c53d r353e82 52 52 ASSERT(dialog,"No Dialog given when filling action dialog"); 53 53 54 dialog->queryBoolean(NAME, MapOfActions::getInstance().getDescription(NAME));54 dialog->queryBoolean(NAME, ValueStorage::getInstance().getDescription(NAME)); 55 55 56 56 return dialog; -
src/Actions/CmdAction/HelpAction.cpp
rb5c53d r353e82 19 19 #include "UIElements/UIFactory.hpp" 20 20 #include "UIElements/Dialog.hpp" 21 #include "Actions/ MapOfActions.hpp"21 #include "Actions/ValueStorage.hpp" 22 22 23 23 const char CommandLineHelpAction::NAME[] = "help"; … … 61 61 62 62 bool CommandLineHelpAction::shouldUndo() { 63 return true;63 return false; 64 64 } 65 65 -
src/Actions/CmdAction/VersionAction.cpp
rb5c53d r353e82 59 59 60 60 bool CommandLineVersionAction::shouldUndo() { 61 return true;61 return false; 62 62 } 63 63 -
src/Actions/Makefile.am
rb5c53d r353e82 50 50 AtomAction/AddAction.cpp \ 51 51 AtomAction/ChangeElementAction.cpp \ 52 AtomAction/RemoveAction.cpp 52 AtomAction/RemoveAction.cpp \ 53 AtomAction/RotateAroundOriginByAngleAction.cpp \ 54 AtomAction/TranslateAction.cpp 53 55 ATOMACTIONHEADER = \ 54 56 AtomAction/AddAction.hpp \ 55 57 AtomAction/ChangeElementAction.hpp \ 56 AtomAction/RemoveAction.cpp 58 AtomAction/RemoveAction.cpp \ 59 AtomAction/RotateAroundOriginByAngleAction.hpp \ 60 AtomAction/TranslateAction.hpp 57 61 58 62 CMDACTIONSOURCE = \ … … 85 89 MoleculeAction/FillWithMoleculeAction.cpp \ 86 90 MoleculeAction/LinearInterpolationofTrajectoriesAction.cpp \ 87 MoleculeAction/RotateAroundOriginByAngleAction.cpp \88 91 MoleculeAction/RotateAroundSelfByAngleAction.cpp \ 89 92 MoleculeAction/RotateToPrincipalAxisSystemAction.cpp \ … … 92 95 MoleculeAction/SaveTemperatureAction.cpp \ 93 96 MoleculeAction/SuspendInWaterAction.cpp \ 94 MoleculeAction/TranslateAction.cpp \95 97 MoleculeAction/VerletIntegrationAction.cpp 96 98 MOLECULEACTIONHEADER = \ … … 99 101 MoleculeAction/FillWithMoleculeAction.hpp \ 100 102 MoleculeAction/LinearInterpolationofTrajectoriesAction.hpp \ 101 MoleculeAction/RotateAroundOriginByAngleAction.hpp \102 103 MoleculeAction/RotateAroundSelfByAngleAction.hpp \ 103 104 MoleculeAction/RotateToPrincipalAxisSystemAction.hpp \ … … 106 107 MoleculeAction/SaveTemperatureAction.hpp \ 107 108 MoleculeAction/SuspendInWaterAction.hpp \ 108 MoleculeAction/TranslateAction.hpp \109 109 MoleculeAction/VerletIntegrationAction.hpp 110 110 … … 118 118 SELECTIONACTIONSOURCE = \ 119 119 SelectionAction/AllAtomsAction.cpp \ 120 SelectionAction/AllAtomsInsideCuboidAction.cpp \ 121 SelectionAction/AllAtomsInsideSphereAction.cpp \ 122 SelectionAction/AllAtomsOfMoleculeAction.cpp \ 120 123 SelectionAction/AllMoleculesAction.cpp \ 121 124 SelectionAction/AtomByIdAction.cpp \ 125 SelectionAction/ClearAllAtomsAction.cpp \ 126 SelectionAction/ClearAllMoleculesAction.cpp \ 122 127 SelectionAction/MoleculeByIdAction.cpp \ 128 SelectionAction/MoleculeOfAtomAction.cpp \ 123 129 SelectionAction/NotAllAtomsAction.cpp \ 130 SelectionAction/NotAllAtomsInsideCuboidAction.cpp \ 131 SelectionAction/NotAllAtomsInsideSphereAction.cpp \ 132 SelectionAction/NotAllAtomsOfMoleculeAction.cpp \ 124 133 SelectionAction/NotAllMoleculesAction.cpp \ 125 134 SelectionAction/NotAtomByIdAction.cpp \ 126 SelectionAction/NotMoleculeByIdAction.cpp 135 SelectionAction/NotMoleculeByIdAction.cpp \ 136 SelectionAction/NotMoleculeOfAtomAction.cpp 127 137 SELECTIONACTIONHEADER = \ 128 138 SelectionAction/AllAtomsAction.hpp \ 139 SelectionAction/AllAtomsInsideCuboidAction.hpp \ 140 SelectionAction/AllAtomsInsideSphereAction.hpp \ 141 SelectionAction/AllAtomsOfMoleculeAction.hpp \ 129 142 SelectionAction/AllMoleculesAction.hpp \ 130 143 SelectionAction/AtomByIdAction.hpp \ 144 SelectionAction/ClearAllAtomsAction.hpp \ 145 SelectionAction/ClearAllMoleculesAction.hpp \ 131 146 SelectionAction/MoleculeByIdAction.hpp \ 147 SelectionAction/MoleculeOfAtomAction.hpp \ 132 148 SelectionAction/NotAllAtomsAction.hpp \ 149 SelectionAction/NotAllAtomsInsideCuboidAction.hpp \ 150 SelectionAction/NotAllAtomsInsideSphereAction.hpp \ 151 SelectionAction/NotAllAtomsOfMoleculeAction.hpp \ 133 152 SelectionAction/NotAllMoleculesAction.hpp \ 134 153 SelectionAction/NotAtomByIdAction.hpp \ 135 SelectionAction/NotMoleculeByIdAction.hpp 154 SelectionAction/NotMoleculeByIdAction.hpp \ 155 SelectionAction/NotMoleculeOfAtomAction.cpp 136 156 137 157 TESSELATIONACTIONSOURCE = \ … … 150 170 WorldAction/InputAction.cpp \ 151 171 WorldAction/OutputAction.cpp \ 152 WorldAction/RemoveSphereOfAtomsAction.cpp \153 172 WorldAction/RepeatBoxAction.cpp \ 154 173 WorldAction/ScaleBoxAction.cpp \ … … 164 183 WorldAction/InputAction.hpp \ 165 184 WorldAction/OutputAction.hpp \ 166 WorldAction/RemoveSphereOfAtomsAction.hpp \167 185 WorldAction/RepeatBoxAction.hpp \ 168 186 WorldAction/ScaleBoxAction.hpp \ -
src/Actions/MapOfActions.cpp
rb5c53d r353e82 42 42 #include "Actions/AtomAction/ChangeElementAction.hpp" 43 43 #include "Actions/AtomAction/RemoveAction.hpp" 44 #include "Actions/AtomAction/RotateAroundOriginByAngleAction.hpp" 45 #include "Actions/AtomAction/TranslateAction.hpp" 44 46 #include "Actions/CmdAction/BondLengthTableAction.hpp" 45 47 #include "Actions/CmdAction/ElementDbAction.hpp" … … 55 57 #include "Actions/MoleculeAction/FillWithMoleculeAction.hpp" 56 58 #include "Actions/MoleculeAction/LinearInterpolationofTrajectoriesAction.hpp" 57 #include "Actions/MoleculeAction/RotateAroundOriginByAngleAction.hpp"58 59 #include "Actions/MoleculeAction/RotateAroundSelfByAngleAction.hpp" 59 60 #include "Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.hpp" … … 62 63 #include "Actions/MoleculeAction/SaveTemperatureAction.hpp" 63 64 #include "Actions/MoleculeAction/SuspendInWaterAction.hpp" 64 #include "Actions/MoleculeAction/TranslateAction.hpp"65 65 #include "Actions/MoleculeAction/VerletIntegrationAction.hpp" 66 66 #include "Actions/ParserAction/LoadXyzAction.hpp" 67 67 #include "Actions/ParserAction/SaveXyzAction.hpp" 68 68 #include "Actions/SelectionAction/AllAtomsAction.hpp" 69 #include "Actions/SelectionAction/AllAtomsInsideCuboidAction.hpp" 70 #include "Actions/SelectionAction/AllAtomsInsideSphereAction.hpp" 71 #include "Actions/SelectionAction/AllAtomsOfMoleculeAction.hpp" 69 72 #include "Actions/SelectionAction/AllMoleculesAction.hpp" 70 73 #include "Actions/SelectionAction/AtomByIdAction.hpp" 74 #include "Actions/SelectionAction/ClearAllAtomsAction.hpp" 75 #include "Actions/SelectionAction/ClearAllMoleculesAction.hpp" 71 76 #include "Actions/SelectionAction/MoleculeByIdAction.hpp" 77 #include "Actions/SelectionAction/MoleculeOfAtomAction.hpp" 72 78 #include "Actions/SelectionAction/NotAllAtomsAction.hpp" 79 #include "Actions/SelectionAction/NotAllAtomsInsideCuboidAction.hpp" 80 #include "Actions/SelectionAction/NotAllAtomsInsideSphereAction.hpp" 81 #include "Actions/SelectionAction/NotAllAtomsOfMoleculeAction.hpp" 73 82 #include "Actions/SelectionAction/NotAllMoleculesAction.hpp" 74 83 #include "Actions/SelectionAction/NotAtomByIdAction.hpp" 75 84 #include "Actions/SelectionAction/NotMoleculeByIdAction.hpp" 85 #include "Actions/SelectionAction/NotMoleculeOfAtomAction.hpp" 76 86 #include "Actions/TesselationAction/ConvexEnvelopeAction.hpp" 77 87 #include "Actions/TesselationAction/NonConvexEnvelopeAction.hpp" … … 83 93 #include "Actions/WorldAction/InputAction.hpp" 84 94 #include "Actions/WorldAction/OutputAction.hpp" 85 #include "Actions/WorldAction/RemoveSphereOfAtomsAction.hpp"86 95 #include "Actions/WorldAction/RepeatBoxAction.hpp" 87 96 #include "Actions/WorldAction/ScaleBoxAction.hpp" … … 184 193 DescriptionMap["change-element"] = "change the element of an atom"; 185 194 DescriptionMap["change-molname"] = "change the name of a molecule"; 195 DescriptionMap["clear-atom-selection"] = "clear the atom selection"; 196 DescriptionMap["clear-molecule-selection"] = "clear the molecule selection"; 186 197 DescriptionMap["convex-envelope"] = "create the convex envelope for a molecule"; 187 198 DescriptionMap["default-molname"] = "set the default name of new molecules"; … … 202 213 DescriptionMap["point-correlation"] = "pair correlation analysis between element and point"; 203 214 DescriptionMap["principal-axis-system"] = "calculate the principal axis system of the specified molecule"; 215 DescriptionMap["redo"] = "redo last action"; 204 216 DescriptionMap["remove-atom"] = "remove a specified atom"; 205 DescriptionMap["remove-sphere"] = "remove sphere of atoms of around a specified atom";206 217 DescriptionMap["repeat-box"] = "create periodic copies of the simulation box per axis"; 207 DescriptionMap["rotate-origin"] = "rotate s molecules by a specific angle around origin";218 DescriptionMap["rotate-origin"] = "rotate selected atoms by a specific angle around origin"; 208 219 DescriptionMap["rotate-self"] = "rotates molecules by a specific angle around own center of gravity"; 209 220 DescriptionMap["rotate-to-pas"] = "calculate the principal axis system of the specified molecule and rotate specified axis to align with main axis"; … … 216 227 DescriptionMap["select-all-molecules"] = "select all molecules"; 217 228 DescriptionMap["select-atom-by-id"] = "select an atom by index"; 229 DescriptionMap["select-atoms-inside-cuboid"] = "select all atoms inside a cuboid"; 230 DescriptionMap["select-atoms-inside-sphere"] = "select all atoms inside a sphere"; 218 231 DescriptionMap["select-molecule-by-id"] = "select a molecule by index"; 232 DescriptionMap["select-molecule-of-atom"] = "select a molecule to which a given atom belongs"; 233 DescriptionMap["select-molecules-atoms"] = "select all atoms of a molecule"; 219 234 DescriptionMap["set-basis"] = "set the name of the gaussian basis set for MPQC"; 220 235 DescriptionMap["set-output"] = "specify output formats"; … … 222 237 DescriptionMap["surface-correlation"] = "pair correlation analysis between element and surface"; 223 238 DescriptionMap["suspend-in-water"] = "suspend the given molecule in water such that in the domain the mean density is as specified"; 224 DescriptionMap["translate-mol"] = "translate molecule by given vector"; 239 DescriptionMap["translate-atoms"] = "translate all selected atoms by given vector"; 240 DescriptionMap["undo"] = "undo last action"; 225 241 DescriptionMap["unselect-all-atoms"] = "unselect all atoms"; 226 242 DescriptionMap["unselect-all-molecules"] = "unselect all molecules"; 227 243 DescriptionMap["unselect-atom-by-id"] = "unselect an atom by index"; 244 DescriptionMap["unselect-atoms-inside-cuboid"] = "unselect all atoms inside a cuboid"; 245 DescriptionMap["unselect-atoms-inside-sphere"] = "unselect all atoms inside a sphere"; 228 246 DescriptionMap["unselect-molecule-by-id"] = "unselect a molecule by index"; 247 DescriptionMap["unselect-molecule-of-atom"] = "unselect a molecule to which a given atom belongs"; 248 DescriptionMap["unselect-molecules-atoms"] = "unselect all atoms of a molecule"; 229 249 DescriptionMap["verbose"] = "set verbosity level"; 230 250 DescriptionMap["verlet-integrate"] = "perform verlet integration of a given force file"; … … 279 299 ShortFormMap["parse-xyz"] = "p"; 280 300 ShortFormMap["remove-atom"] = "r"; 281 ShortFormMap["remove-sphere"] = "R";282 301 ShortFormMap["repeat-box"] = "d"; 283 302 ShortFormMap["rotate-to-pas"] = "m"; … … 290 309 ShortFormMap["subgraph-dissect"] = "I"; 291 310 ShortFormMap["suspend-in-water"] = "u"; 292 ShortFormMap["translate- mol"] = "t";311 ShortFormMap["translate-atoms"] = "t"; 293 312 ShortFormMap["verbose"] = "v"; 294 313 ShortFormMap["verlet-integrate"] = "P"; … … 304 323 TypeMap["change-element"] = &typeid(const element); 305 324 TypeMap["change-molname"] = &typeid(std::string); 325 TypeMap["clear-atom-selection"] = &typeid(void); 326 TypeMap["clear-molecule-selection"] = &typeid(void); 306 327 TypeMap["convex-envelope"] = &typeid(void); 307 328 TypeMap["default-molname"] = &typeid(std::string); … … 320 341 TypeMap["point-correlation"] = &typeid(void); 321 342 TypeMap["principal-axis-system"] = &typeid(void); 343 TypeMap["redo"] = &typeid(void); 322 344 TypeMap["remove-atom"] = &typeid(void); 323 TypeMap["remove-sphere"] = &typeid(double);324 345 TypeMap["repeat-box"] = &typeid(VectorValue); 325 346 TypeMap["rotate-origin"] = &typeid(double); … … 330 351 TypeMap["save-temperature"] = &typeid(std::string); 331 352 TypeMap["scale-box"] = &typeid(VectorValue); 353 TypeMap["select-all-atoms"] = &typeid(void); 354 TypeMap["select-all-molecules"] = &typeid(void); 355 TypeMap["select-atom-by-id"] = &typeid(atom); 356 TypeMap["select-atoms-inside-cuboid"] = &typeid(VectorValue); 357 TypeMap["select-atoms-inside-sphere"] = &typeid(double); 358 TypeMap["select-molecule-by-id"] = &typeid(molecule); 359 TypeMap["select-molecule-of-atom"] = &typeid(atom); 360 TypeMap["select-molecules-atoms"] = &typeid(molecule); 332 361 TypeMap["set-basis"] = &typeid(std::string); 333 362 TypeMap["set-output"] = &typeid(std::vector<std::string>); … … 335 364 TypeMap["surface-correlation"] = &typeid(void); 336 365 TypeMap["suspend-in-water"] = &typeid(double); 337 TypeMap["translate-mol"] = &typeid(VectorValue); 366 TypeMap["translate-atoms"] = &typeid(VectorValue); 367 TypeMap["undo"] = &typeid(void); 368 TypeMap["unselect-all-atoms"] = &typeid(void); 369 TypeMap["unselect-all-molecules"] = &typeid(void); 370 TypeMap["unselect-atom-by-id"] = &typeid(atom); 371 TypeMap["unselect-atoms-inside-cuboid"] = &typeid(VectorValue); 372 TypeMap["unselect-atoms-inside-sphere"] = &typeid(double); 373 TypeMap["unselect-molecule-by-id"] = &typeid(molecule); 374 TypeMap["unselect-molecule-of-atom"] = &typeid(atom); 375 TypeMap["unselect-molecules-atoms"] = &typeid(molecule); 338 376 TypeMap["verlet-integrate"] = &typeid(std::string); 339 377 TypeMap["verbose"] = &typeid(int); … … 361 399 TypeMap["periodic"] = &typeid(bool); 362 400 TypeMap["position"] = &typeid(VectorValue); 363 TypeMap["select-all-atoms"] = &typeid(void);364 TypeMap["select-all-molecules"] = &typeid(void);365 TypeMap["select-atom-by-id"] = &typeid(atom);366 TypeMap["select-molecule-by-id"] = &typeid(molecule);367 401 TypeMap["start-step"] = &typeid(int); 368 TypeMap["unselect-all-atoms"] = &typeid(void);369 TypeMap["unselect-all-molecules"] = &typeid(void);370 TypeMap["unselect-atom-by-id"] = &typeid(atom);371 TypeMap["unselect-molecule-by-id"] = &typeid(molecule);372 402 373 403 TypeEnumMap[&typeid(void)] = None; … … 414 444 MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "change-element") ); 415 445 MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "remove-atom") ); 446 MenuContainsActionMap.insert( pair<std::string, std::string> ("atom", "translate-atoms") ); 416 447 417 448 MenuContainsActionMap.insert( pair<std::string, std::string> ("command", "bond-table") ); … … 436 467 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "save-temperature") ); 437 468 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "suspend-in-water") ); 438 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "translate-mol") );439 469 MenuContainsActionMap.insert( pair<std::string, std::string> ("molecule", "verlet-integrate") ); 440 470 … … 442 472 MenuContainsActionMap.insert( pair<std::string, std::string> ("parser", "SaveXyz") ); 443 473 474 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "clear-atom-selection") ); 475 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "clear-molecule-selection") ); 476 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-all-atoms") ); 477 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-all-molecules") ); 444 478 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-atom-by-id") ); 479 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-atoms-inside-cuboid") ); 480 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-atoms-inside-sphere") ); 445 481 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecule-by-id") ); 482 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecule-of-atom") ); 483 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "select-molecules-atoms") ); 484 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-all-atoms") ); 485 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-all-molecules") ); 446 486 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-atom-by-id") ); 487 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-atoms-inside-cuboid") ); 488 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-atoms-inside-sphere") ); 447 489 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecule-by-id") ); 490 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecule-of-atom") ); 491 MenuContainsActionMap.insert( pair<std::string, std::string> ("selection", "unselect-molecules-atoms") ); 448 492 449 493 MenuContainsActionMap.insert( pair<std::string, std::string> ("tesselation", "convex-envelope") ); … … 457 501 MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "input") ); 458 502 MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "output") ); 459 MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "remove-sphere") );460 503 MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "repeat-box") ); 461 504 MenuContainsActionMap.insert( pair<std::string, std::string> ("world", "scale-box") ); … … 474 517 generic.insert("change-box"); 475 518 // generic.insert("change-molname"); 476 generic.insert("change-element"); 519 generic.insert("change-element"); 520 generic.insert("clear-atom-selection"); 521 generic.insert("clear-molecule-selection"); 477 522 generic.insert("convex-envelope"); 478 523 generic.insert("default-molname"); … … 492 537 generic.insert("point-correlation"); 493 538 // generic.insert("principal-axis-system"); 539 generic.insert("redo"); 494 540 generic.insert("remove-atom"); 495 generic.insert("remove-sphere");496 541 generic.insert("repeat-box"); 497 542 generic.insert("rotate-origin"); … … 505 550 generic.insert("select-all-molecules"); 506 551 generic.insert("select-atom-by-id"); 552 generic.insert("select-atoms-inside-cuboid"); 553 generic.insert("select-atoms-inside-sphere"); 507 554 generic.insert("select-molecule-by-id"); 555 generic.insert("select-molecule-of-atom"); 556 generic.insert("select-molecules-atoms"); 508 557 generic.insert("set-basis"); 509 558 generic.insert("set-output"); … … 511 560 generic.insert("surface-correlation"); 512 561 generic.insert("suspend-in-water"); 513 generic.insert("translate-mol"); 562 generic.insert("translate-atoms"); 563 generic.insert("undo"); 514 564 generic.insert("unselect-all-atoms"); 515 565 generic.insert("unselect-all-molecules"); 516 566 generic.insert("unselect-atom-by-id"); 567 generic.insert("unselect-atoms-inside-cuboid"); 568 generic.insert("unselect-atoms-inside-sphere"); 517 569 generic.insert("unselect-molecule-by-id"); 570 generic.insert("unselect-molecule-of-atom"); 571 generic.insert("unselect-molecules-atoms"); 518 572 generic.insert("verbose"); 519 573 generic.insert("verlet-integrate"); … … 801 855 new AtomChangeElementAction(); 802 856 new AtomRemoveAction(); 857 new AtomRotateAroundOriginByAngleAction(); 858 new AtomTranslateAction(); 803 859 804 860 new CommandLineBondLengthTableAction(); … … 817 873 new MoleculeFillWithMoleculeAction(); 818 874 new MoleculeLinearInterpolationofTrajectoriesAction(); 819 new MoleculeRotateAroundOriginByAngleAction();820 875 new MoleculeRotateAroundSelfByAngleAction(); 821 876 new MoleculeRotateToPrincipalAxisSystemAction(); … … 824 879 new MoleculeSaveTemperatureAction(); 825 880 new MoleculeSuspendInWaterAction(); 826 new MoleculeTranslateAction();827 881 new MoleculeVerletIntegrationAction(); 828 882 … … 830 884 new ParserSaveXyzAction(); 831 885 886 new SelectionClearAllAtomsAction(); 887 new SelectionClearAllMoleculesAction(); 832 888 new SelectionAllAtomsAction(); 889 new SelectionAllAtomsInsideCuboidAction(); 890 new SelectionAllAtomsInsideSphereAction(); 891 new SelectionAllAtomsOfMoleculeAction(); 833 892 new SelectionAllMoleculesAction(); 834 893 new SelectionAtomByIdAction(); 835 894 new SelectionMoleculeByIdAction(); 895 new SelectionMoleculeOfAtomAction(); 836 896 new SelectionNotAllAtomsAction(); 897 new SelectionNotAllAtomsInsideCuboidAction(); 898 new SelectionNotAllAtomsInsideSphereAction(); 899 new SelectionNotAllAtomsOfMoleculeAction(); 837 900 new SelectionNotAllMoleculesAction(); 838 901 new SelectionNotAtomByIdAction(); 839 902 new SelectionNotMoleculeByIdAction(); 903 new SelectionNotMoleculeOfAtomAction(); 840 904 841 905 new TesselationConvexEnvelopeAction(); … … 849 913 new WorldInputAction(); 850 914 new WorldOutputAction(); 851 new WorldRemoveSphereOfAtomsAction();852 915 new WorldRepeatBoxAction(); 853 916 new WorldScaleBoxAction(); -
src/Actions/MoleculeAction/BondFileAction.cpp
rb5c53d r353e82 57 57 ASSERT(dialog,"No Dialog given when filling action dialog"); 58 58 59 dialog->queryString(NAME, MapOfActions::getInstance().getDescription(NAME));59 dialog->queryString(NAME, ValueStorage::getInstance().getDescription(NAME)); 60 60 61 61 return dialog; -
src/Actions/MoleculeAction/LinearInterpolationofTrajectoriesAction.cpp
rb5c53d r353e82 62 62 ASSERT(dialog,"No Dialog given when filling action dialog"); 63 63 64 dialog->queryString(NAME, MapOfActions::getInstance().getDescription(NAME));65 dialog->queryInt("start-step", MapOfActions::getInstance().getDescription("start-step"));66 dialog->queryInt("end-step", MapOfActions::getInstance().getDescription("end-step"));67 dialog->queryBoolean("id-mapping", MapOfActions::getInstance().getDescription("id-mapping"));64 dialog->queryString(NAME, ValueStorage::getInstance().getDescription(NAME)); 65 dialog->queryInt("start-step", ValueStorage::getInstance().getDescription("start-step")); 66 dialog->queryInt("end-step", ValueStorage::getInstance().getDescription("end-step")); 67 dialog->queryBoolean("id-mapping", ValueStorage::getInstance().getDescription("id-mapping")); 68 68 69 69 return dialog; -
src/Actions/MoleculeAction/RotateAroundSelfByAngleAction.cpp
rb5c53d r353e82 62 62 ASSERT(dialog,"No Dialog given when filling action dialog"); 63 63 64 dialog->queryDouble(NAME, MapOfActions::getInstance().getDescription(NAME));65 dialog->queryVector("position", false, MapOfActions::getInstance().getDescription(NAME));64 dialog->queryDouble(NAME, ValueStorage::getInstance().getDescription(NAME)); 65 dialog->queryVector("position", false, ValueStorage::getInstance().getDescription(NAME)); 66 66 67 67 return dialog; -
src/Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.cpp
rb5c53d r353e82 60 60 ASSERT(dialog,"No Dialog given when filling action dialog"); 61 61 62 dialog->queryVector(NAME, false, MapOfActions::getInstance().getDescription(NAME));62 dialog->queryVector(NAME, false, ValueStorage::getInstance().getDescription(NAME)); 63 63 64 64 return dialog; -
src/Actions/TesselationAction/NonConvexEnvelopeAction.cpp
rb5c53d r353e82 59 59 ASSERT(dialog,"No Dialog given when filling action dialog"); 60 60 61 dialog->queryDouble(NAME, MapOfActions::getInstance().getDescription(NAME));62 dialog->queryString("nonconvex-file", MapOfActions::getInstance().getDescription("nonconvex-file"));61 dialog->queryDouble(NAME, ValueStorage::getInstance().getDescription(NAME)); 62 dialog->queryString("nonconvex-file", ValueStorage::getInstance().getDescription("nonconvex-file")); 63 63 64 64 return dialog; -
src/Actions/WorldAction/SetDefaultNameAction.cpp
rb5c53d r353e82 53 53 string defaultname = World::getInstance().getDefaultName(); 54 54 ValueStorage::getInstance().setCurrentValue(NAME, defaultname); 55 dialog->queryString(NAME, MapOfActions::getInstance().getDescription(NAME));55 dialog->queryString(NAME, ValueStorage::getInstance().getDescription(NAME)); 56 56 57 57 return dialog;
Note:
See TracChangeset
for help on using the changeset viewer.