Changeset 3b7dfb


Ignore:
Timestamp:
Jul 26, 2010, 5:15:04 PM (14 years ago)
Author:
Frederik Heber <heber@…>
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:
628b52
Parents:
215b89
Message:

All SelectionActions contain now a ActionCall.hpp function.

Location:
src/Actions/SelectionAction
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/SelectionAction/AllAtomsAction.cpp

    r215b89 r3b7dfb  
    99
    1010#include "Actions/SelectionAction/AllAtomsAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "Descriptors/AtomDescriptor.hpp"
    1213#include "atom.hpp"
     
    4344SelectionAllAtomsAction::~SelectionAllAtomsAction()
    4445{}
     46
     47void SelectionAllAtoms() {
     48  ActionRegistry::getInstance().getActionByName(SelectionAllAtomsAction::NAME)->call(Action::NonInteractive);
     49};
    4550
    4651Dialog* SelectionAllAtomsAction::createDialog() {
  • src/Actions/SelectionAction/AllAtomsAction.hpp

    r215b89 r3b7dfb  
    1212
    1313class SelectionAllAtomsAction : public Action {
     14  friend void SelectionAllAtoms();
     15
    1416public:
    1517  SelectionAllAtomsAction();
  • src/Actions/SelectionAction/AllMoleculesAction.cpp

    r215b89 r3b7dfb  
    99
    1010#include "Actions/SelectionAction/AllMoleculesAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "Descriptors/MoleculeDescriptor.hpp"
    1213#include "atom.hpp"
     
    4344SelectionAllMoleculesAction::~SelectionAllMoleculesAction()
    4445{}
     46
     47void SelectionAllMolecules() {
     48  ActionRegistry::getInstance().getActionByName(SelectionAllMoleculesAction::NAME)->call(Action::NonInteractive);
     49};
    4550
    4651Dialog* SelectionAllMoleculesAction::createDialog() {
  • src/Actions/SelectionAction/AllMoleculesAction.hpp

    r215b89 r3b7dfb  
    1212
    1313class SelectionAllMoleculesAction : public Action {
     14  friend void SelectionAllMolecules();
     15
    1416public:
    1517  SelectionAllMoleculesAction();
  • src/Actions/SelectionAction/AtomByIdAction.cpp

    r215b89 r3b7dfb  
    99
    1010#include "Actions/SelectionAction/AtomByIdAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "atom.hpp"
    1213#include "log.hpp"
     
    4243SelectionAtomByIdAction::~SelectionAtomByIdAction()
    4344{}
     45
     46void SelectionAtomById(atom *_atom) {
     47  ValueStorage::getInstance().setCurrentValue(SelectionAtomByIdAction::NAME, _atom);
     48  ActionRegistry::getInstance().getActionByName(SelectionAtomByIdAction::NAME)->call(Action::NonInteractive);
     49};
    4450
    4551Dialog* SelectionAtomByIdAction::createDialog() {
  • src/Actions/SelectionAction/AtomByIdAction.hpp

    r215b89 r3b7dfb  
    1111#include "Actions/Action.hpp"
    1212
     13class atom;
     14
    1315class SelectionAtomByIdAction : public Action {
     16  friend void SelectionAtomById(atom *_atom);
     17
    1418public:
    1519  SelectionAtomByIdAction();
  • src/Actions/SelectionAction/MoleculeByIdAction.cpp

    r215b89 r3b7dfb  
    99
    1010#include "Actions/SelectionAction/MoleculeByIdAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "molecule.hpp"
    1213#include "log.hpp"
     
    4243SelectionMoleculeByIdAction::~SelectionMoleculeByIdAction()
    4344{}
     45
     46void SelectionMoleculeById(molecule *_mol) {
     47  ValueStorage::getInstance().setCurrentValue(SelectionMoleculeByIdAction::NAME, _mol);
     48  ActionRegistry::getInstance().getActionByName(SelectionMoleculeByIdAction::NAME)->call(Action::NonInteractive);
     49};
    4450
    4551Dialog* SelectionMoleculeByIdAction::createDialog() {
  • src/Actions/SelectionAction/MoleculeByIdAction.hpp

    r215b89 r3b7dfb  
    1111#include "Actions/Action.hpp"
    1212
     13class molecule;
     14
    1315class SelectionMoleculeByIdAction : public Action {
     16  friend void SelectionMoleculeById(molecule *_mol);
     17
    1418public:
    1519  SelectionMoleculeByIdAction();
  • src/Actions/SelectionAction/NotAllAtomsAction.cpp

    r215b89 r3b7dfb  
    99
    1010#include "Actions/SelectionAction/NotAllAtomsAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "Descriptors/AtomDescriptor.hpp"
    1213#include "atom.hpp"
     
    4344SelectionNotAllAtomsAction::~SelectionNotAllAtomsAction()
    4445{}
     46
     47void SelectionNotAllAtoms() {
     48  ActionRegistry::getInstance().getActionByName(SelectionNotAllAtomsAction::NAME)->call(Action::NonInteractive);
     49};
    4550
    4651Dialog* SelectionNotAllAtomsAction::createDialog() {
  • src/Actions/SelectionAction/NotAllAtomsAction.hpp

    r215b89 r3b7dfb  
    1212
    1313class SelectionNotAllAtomsAction : public Action {
     14  friend void SelectionNotAllAtoms();
     15
    1416public:
    1517  SelectionNotAllAtomsAction();
  • src/Actions/SelectionAction/NotAllMoleculesAction.cpp

    r215b89 r3b7dfb  
    99
    1010#include "Actions/SelectionAction/NotAllMoleculesAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "Descriptors/MoleculeDescriptor.hpp"
    1213#include "atom.hpp"
     
    4344SelectionNotAllMoleculesAction::~SelectionNotAllMoleculesAction()
    4445{}
     46
     47void SelectionNotAllMolecules() {
     48  ActionRegistry::getInstance().getActionByName(SelectionNotAllMoleculesAction::NAME)->call(Action::NonInteractive);
     49};
    4550
    4651Dialog* SelectionNotAllMoleculesAction::createDialog() {
  • src/Actions/SelectionAction/NotAllMoleculesAction.hpp

    r215b89 r3b7dfb  
    1212
    1313class SelectionNotAllMoleculesAction : public Action {
     14  friend void SelectionNotAllMolecules();
     15
    1416public:
    1517  SelectionNotAllMoleculesAction();
  • src/Actions/SelectionAction/NotAtomByIdAction.cpp

    r215b89 r3b7dfb  
    99
    1010#include "Actions/SelectionAction/NotAtomByIdAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "atom.hpp"
    1213#include "log.hpp"
     
    4243SelectionNotAtomByIdAction::~SelectionNotAtomByIdAction()
    4344{}
     45
     46void SelectionNotAtomById(atom *_atom) {
     47  ValueStorage::getInstance().setCurrentValue(SelectionNotAtomByIdAction::NAME, _atom);
     48  ActionRegistry::getInstance().getActionByName(SelectionNotAtomByIdAction::NAME)->call(Action::NonInteractive);
     49};
    4450
    4551Dialog* SelectionNotAtomByIdAction::createDialog() {
  • src/Actions/SelectionAction/NotAtomByIdAction.hpp

    r215b89 r3b7dfb  
    1111#include "Actions/Action.hpp"
    1212
     13class atom;
     14
    1315class SelectionNotAtomByIdAction : public Action {
     16  friend void SelectionNotAtomById(atom *_atom);
     17
    1418public:
    1519  SelectionNotAtomByIdAction();
  • src/Actions/SelectionAction/NotMoleculeByIdAction.cpp

    r215b89 r3b7dfb  
    99
    1010#include "Actions/SelectionAction/NotMoleculeByIdAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "molecule.hpp"
    1213#include "log.hpp"
     
    4243SelectionNotMoleculeByIdAction::~SelectionNotMoleculeByIdAction()
    4344{}
     45
     46void SelectionNotMoleculeById(molecule *_mol) {
     47  ValueStorage::getInstance().setCurrentValue(SelectionNotMoleculeByIdAction::NAME, _mol);
     48  ActionRegistry::getInstance().getActionByName(SelectionNotMoleculeByIdAction::NAME)->call(Action::NonInteractive);
     49};
    4450
    4551Dialog* SelectionNotMoleculeByIdAction::createDialog() {
  • src/Actions/SelectionAction/NotMoleculeByIdAction.hpp

    r215b89 r3b7dfb  
    1111#include "Actions/Action.hpp"
    1212
     13class molecule;
     14
    1315class SelectionNotMoleculeByIdAction : public Action {
     16  friend void SelectionNotMoleculeById(molecule *_mol);
     17
    1418public:
    1519  SelectionNotMoleculeByIdAction();
Note: See TracChangeset for help on using the changeset viewer.