Changeset 1630ce
- Timestamp:
- Jan 13, 2010, 11:05:17 AM (16 years ago)
- Children:
- 931903
- Parents:
- 3896fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/menu.cpp
r3896fc r1630ce 24 24 #include "periodentafel.hpp" 25 25 26 #include "UIElements/UIFactory.hpp" 27 #include "UIElements/Dialog.hpp" 26 28 #include "Menu/Menu.hpp" 27 29 #include "Menu/TextMenu.hpp" … … 912 914 913 915 void oldmenu::SimpleAddMolecules(MoleculeListClass *molecules) { 914 int src, dest;916 //int src, dest; 915 917 molecule *srcmol = NULL, *destmol = NULL; 916 {918 /*{ 917 919 do { 918 920 Log() << Verbose(0) << "Enter index of destination molecule: "; … … 927 929 if ((src != -1) && (dest != -1)) 928 930 molecules->SimpleAdd(srcmol, destmol); 931 }*/ 932 Dialog *dialog = UIFactory::get()->makeDialog(); 933 dialog->queryMolecule("Enter index of destination molecule: ",&destmol, molecules); 934 dialog->queryMolecule("Enter index of source molecule to add from: ",&srcmol, molecules); 935 if(dialog->display()) { 936 molecules->SimpleAdd(srcmol, destmol); 937 } 938 else { 939 Log() << Verbose(0) << "Adding of Molecules canceled" << endl; 929 940 } 930 941 }
Note:
See TracChangeset
for help on using the changeset viewer.