Ignore:
Timestamp:
Dec 16, 2009, 12:30:16 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
a5eee6
Parents:
62e23d
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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/menu.cpp

    r62e23d r212c827  
    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
Note: See TracChangeset for help on using the changeset viewer.