Changeset c96731


Ignore:
Timestamp:
Dec 16, 2009, 12:30:16 PM (15 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:
a223a8
Parents:
165d7d
git-author:
Tillmann Crueger <crueger@…> (12/16/09 12:21:27)
git-committer:
Frederik Heber <heber@…> (12/16/09 12:30:16)
Message:

Finished transformation of main menu. Signed-off-by: Tillmann Crueger <crueger@…>

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Menu/MenuItem.cpp

    r165d7d rc96731  
    1111#include "Menu/Menu.hpp"
    1212#include <sstream>
     13#include <iostream>
    1314
    1415MenuItem::MenuItem(char _trigger, const char* _description,Menu* menu) :
    15 trigger(_trigger)
     16trigger(_trigger),
     17added(false)
    1618{
    1719  description = new string(_description);
  • src/menu.cpp

    r165d7d rc96731  
    12241224}
    12251225
     1226void oldmenu::flipChosen(MoleculeListClass *molecules) {
     1227  int j;
     1228  Log() << Verbose(0) << "Enter index of molecule: ";
     1229  cin >> j;
     1230  for(MoleculeList::iterator ListRunner = molecules->ListOfMolecules.begin(); ListRunner != molecules->ListOfMolecules.end(); ListRunner++)
     1231    if ((*ListRunner)->IndexNr == j)
     1232      (*ListRunner)->ActiveFlag = !(*ListRunner)->ActiveFlag;
     1233}
     1234
    12261235void oldmenu::perform(MoleculeListClass *molecules, config *configuration, periodentafel *periode, char *ConfigFileName)
    12271236{
     
    12331242  new SeperatorItem(main_menu);
    12341243
    1235   MethodAction *setMoleculeAction = new MethodAction(boost::bind(&oldmenu::notImplementedYet,this));
     1244  MethodAction *setMoleculeAction = new MethodAction(boost::bind(&oldmenu::flipChosen,this,molecules));
    12361245  new ActionMenuItem('a',"set molecule (in)active",main_menu,setMoleculeAction);
    12371246
  • src/menu.hpp

    r165d7d rc96731  
    3232  void EditMolecules(periodentafel *, MoleculeListClass *);
    3333  void FragmentAtoms(molecule *, config *);
     34  void flipChosen(MoleculeListClass*);
    3435  void ManipulateAtoms(periodentafel *, MoleculeListClass *, config *);
    3536  void MeasureAtoms(periodentafel *, molecule *, config *);
Note: See TracChangeset for help on using the changeset viewer.