Changeset 852ea3 for src/UIElements/TextUI
- Timestamp:
- Aug 27, 2012, 11:36:59 AM (13 years ago)
- 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:
- 7e6a1b
- Parents:
- 1c55b8
- git-author:
- Michael Ankele <ankele@…> (08/16/12 15:38:10)
- git-committer:
- Michael Ankele <ankele@…> (08/27/12 11:36:59)
- Location:
- src/UIElements/TextUI/Query
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/Query/AtomTextQuery.cpp
r1c55b8 r852ea3 55 55 std::cout << "Invalid Atom Index" << idxOfAtom << std::endl; 56 56 badInput = true; 57 }else 58 param.set(temp); 57 } 59 58 60 59 } while(badInput); -
src/UIElements/TextUI/Query/AtomsTextQuery.cpp
r1c55b8 r852ea3 67 67 } 68 68 } 69 param.set(temp);70 69 71 70 return (idxOfAtom!=-1); -
src/UIElements/TextUI/Query/BooleanTextQuery.cpp
r1c55b8 r852ea3 42 42 std::cin >> input; 43 43 if ((input == 'y' ) || (input == 'Y')) { 44 param.set(true);44 temp = true; 45 45 } else if ((input == 'n' ) || (input == 'N')) { 46 param.set(false);46 temp = false; 47 47 } else { 48 48 badInput=true; -
src/UIElements/TextUI/Query/DoubleTextQuery.cpp
r1c55b8 r852ea3 45 45 std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n'); 46 46 std::cout << "Input was not a number!" << std::endl; 47 }else 48 param.set(temp); 47 } 49 48 }while(badInput); 50 49 std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n'); -
src/UIElements/TextUI/Query/DoublesTextQuery.cpp
r1c55b8 r852ea3 54 54 temp.push_back(temp_element); 55 55 } 56 param.set(temp);57 56 58 57 return true; -
src/UIElements/TextUI/Query/ElementsTextQuery.cpp
r1c55b8 r852ea3 83 83 } 84 84 } 85 param.set(temp);86 85 87 86 return (Z!=-1); -
src/UIElements/TextUI/Query/FileTextQuery.cpp
r1c55b8 r852ea3 52 52 } while(badInput); 53 53 std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n'); 54 param.set(temp);55 54 return true; 56 55 } -
src/UIElements/TextUI/Query/FilesTextQuery.cpp
r1c55b8 r852ea3 38 38 39 39 bool TextDialog::FilesTextQuery::handle() { 40 std::vector<boost::filesystem::path> tempfiles;41 40 bool badInput = false; 42 41 bool continueflag = true; … … 61 60 if (tempstring != "y") 62 61 continueflag = false; 63 temp files.push_back(tempfile);62 temp.push_back(tempfile); 64 63 } while(continueflag); 65 64 std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n'); 66 param.set(tempfiles);67 65 return true; 68 66 } -
src/UIElements/TextUI/Query/IntTextQuery.cpp
r1c55b8 r852ea3 45 45 std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n'); 46 46 std::cout << "Input was not a number!" << std::endl; 47 }else 48 param.set(temp); 47 } 49 48 } while(badInput); 50 49 // clear the input buffer of anything still in the line -
src/UIElements/TextUI/Query/IntsTextQuery.cpp
r1c55b8 r852ea3 54 54 temp.push_back(temp_element); 55 55 } 56 param.set(temp);57 56 58 57 return true; -
src/UIElements/TextUI/Query/MoleculeTextQuery.cpp
r1c55b8 r852ea3 57 57 badInput = true; 58 58 } 59 param.set(temp);60 59 61 60 } while(badInput); -
src/UIElements/TextUI/Query/MoleculesTextQuery.cpp
r1c55b8 r852ea3 67 67 } 68 68 } 69 param.set(temp);70 69 71 70 return (idxOfMol!=-1); -
src/UIElements/TextUI/Query/RandomNumberDistribution_ParametersTextQuery.cpp
r1c55b8 r852ea3 51 51 continue; 52 52 } 53 param.set(temp);54 53 55 54 } while(badInput); -
src/UIElements/TextUI/Query/RealSpaceMatrixTextQuery.cpp
r1c55b8 r852ea3 55 55 temp.set(2,1, dtemp[4]); 56 56 temp.set(2,2, dtemp[5]); 57 param.set(temp);58 57 return true; 59 58 } -
src/UIElements/TextUI/Query/StringTextQuery.cpp
r1c55b8 r852ea3 37 37 std::cout << getDescription() << ": "; 38 38 getline(std::cin,temp); 39 param.set(temp);40 39 return true; 41 40 } -
src/UIElements/TextUI/Query/StringsTextQuery.cpp
r1c55b8 r852ea3 48 48 if (olditer != temp_element.begin()) // insert last part also 49 49 temp.push_back(std::string(olditer, temp_element.end())); 50 param.set(temp);51 50 52 51 return true; -
src/UIElements/TextUI/Query/UnsignedIntTextQuery.cpp
r1c55b8 r852ea3 45 45 std::cin.ignore(std::numeric_limits<streamsize>::max(),'\n'); 46 46 std::cout << "Input was not a number!" << std::endl; 47 }else 48 param.set(temp); 47 } 49 48 } while(badInput); 50 49 // clear the input buffer of anything still in the line -
src/UIElements/TextUI/Query/UnsignedIntsTextQuery.cpp
r1c55b8 r852ea3 54 54 temp.push_back(temp_element); 55 55 } 56 param.set(temp);57 56 58 57 return true; -
src/UIElements/TextUI/Query/VectorTextQuery.cpp
r1c55b8 r852ea3 54 54 for(std::string::iterator iter = line.begin(); (iter != line.end()) && (counter != 3); ++iter) { 55 55 if (*iter == ',') { 56 std::istringstream stream(std::string(iter, olditer)); 56 iter++; 57 std::istringstream stream(std::string(olditer, iter)); 57 58 stream >> coord; 58 59 temp[counter++] = coord; … … 65 66 temp[counter++] = coord; 66 67 } 67 param.set(temp);68 68 69 69 // check vector -
src/UIElements/TextUI/Query/VectorsTextQuery.cpp
r1c55b8 r852ea3 77 77 } 78 78 } 79 param.set(temp);80 79 81 80 return true;
Note:
See TracChangeset
for help on using the changeset viewer.