Changeset f3dd95 for molecuilder/src


Ignore:
Timestamp:
Dec 17, 2009, 2:40:16 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
99bf23
Parents:
32df34
Message:

Removed legacy code from old menu structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/menu.cpp

    r32df34 rf3dd95  
    12901290
    12911291  delete main_menu;
    1292 
    1293 #if 0
    1294     char choice;
    1295     int j;
    1296     Log() << Verbose(0) << endl << "Now comes the real construction..." << endl;
    1297     do {
    1298     Log() << Verbose(0) << endl << endl;
    1299     Log() << Verbose(0) << "============Molecule list=======================" << endl;
    1300     molecules->Enumerate((ofstream *)&cout);
    1301     Log() << Verbose(0) << "============Menu===============================" << endl;
    1302     Log() << Verbose(0) << "a - set molecule (in)active" << endl; //to be moved
    1303     Log() << Verbose(0) << "e - edit molecules (load, parse, save)" << endl; // done
    1304     Log() << Verbose(0) << "g - globally manipulate atoms in molecule" << endl;
    1305     Log() << Verbose(0) << "M - Merge molecules" << endl;
    1306     Log() << Verbose(0) << "m - manipulate atoms" << endl;
    1307     Log() << Verbose(0) << "-----------------------------------------------" << endl;
    1308     Log() << Verbose(0) << "c - edit the current configuration" << endl;
    1309     Log() << Verbose(0) << "-----------------------------------------------" << endl;
    1310     Log() << Verbose(0) << "s - save current setup to config file" << endl;
    1311     Log() << Verbose(0) << "T - call the current test routine" << endl;
    1312     Log() << Verbose(0) << "q - quit" << endl; //done
    1313     Log() << Verbose(0) << "===============================================" << endl;
    1314     Log() << Verbose(0) << "Input: ";
    1315     cin >> choice;
    1316 
    1317     switch (choice) {
    1318       case 'a':  // (in)activate molecule
    1319         {
    1320           Log() << Verbose(0) << "Enter index of molecule: ";
    1321           cin >> j;
    1322           for(MoleculeList::iterator ListRunner = molecules->ListOfMolecules.begin(); ListRunner != molecules->ListOfMolecules.end(); ListRunner++)
    1323             if ((*ListRunner)->IndexNr == j)
    1324               (*ListRunner)->ActiveFlag = !(*ListRunner)->ActiveFlag;
    1325         }
    1326         break;
    1327 
    1328       case 'c': // edit each field of the configuration
    1329        configuration->Edit();
    1330        break;
    1331 
    1332       case 'e': // create molecule
    1333         EditMolecules(periode, molecules);
    1334         break;
    1335 
    1336       case 'g': // manipulate molecules
    1337         ManipulateMolecules(periode, molecules, configuration);
    1338         break;
    1339 
    1340       case 'M':  // merge molecules
    1341         MergeMolecules(periode, molecules);
    1342         break;
    1343 
    1344       case 'm': // manipulate atoms
    1345         ManipulateAtoms(periode, molecules, configuration);
    1346         break;
    1347 
    1348       case 'q': // quit
    1349         break;
    1350 
    1351       case 's': // save to config file
    1352         SaveConfig(ConfigFileName, configuration, periode, molecules);
    1353         break;
    1354 
    1355       case 'T':
    1356         testroutine(molecules);
    1357         break;
    1358 
    1359       default:
    1360         break;
    1361     };
    1362   } while (choice != 'q');
    1363 #endif
    13641292};
    13651293
Note: See TracChangeset for help on using the changeset viewer.