Changeset 9ee38b for src/UIElements/TextUI/TextDialog.cpp
- Timestamp:
- Aug 28, 2010, 12:52:58 AM (14 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:
- b4fa106
- Parents:
- 0b2ce9
- git-author:
- Frederik Heber <heber@…> (08/25/10 17:20:37)
- git-committer:
- Frederik Heber <heber@…> (08/28/10 00:52:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/TextDialog.cpp
r0b2ce9 r9ee38b 57 57 } 58 58 59 60 void TextDialog::queryEmpty(const char* title, string description){ 59 void TextDialog::queryEmpty(const char* title, std::string description){ 61 60 registerQuery(new EmptyTextQuery(title,description)); 62 61 } 63 62 64 void TextDialog::queryBoolean(const char* title, st ring description){63 void TextDialog::queryBoolean(const char* title, std::string description){ 65 64 registerQuery(new BooleanTextQuery(title,description)); 66 65 } 67 66 68 void TextDialog::queryInt(const char* title, st ring description){67 void TextDialog::queryInt(const char* title, std::string description){ 69 68 registerQuery(new IntTextQuery(title,description)); 70 69 } 71 70 72 void TextDialog::queryInts(const char* title, st ring description){71 void TextDialog::queryInts(const char* title, std::string description){ 73 72 registerQuery(new IntsTextQuery(title,description)); 74 73 } 75 74 76 void TextDialog::queryDouble(const char* title, st ring description){75 void TextDialog::queryDouble(const char* title, std::string description){ 77 76 registerQuery(new DoubleTextQuery(title,description)); 78 77 } 79 78 80 void TextDialog::queryDoubles(const char* title, st ring description){79 void TextDialog::queryDoubles(const char* title, std::string description){ 81 80 registerQuery(new DoublesTextQuery(title,description)); 82 81 } 83 82 84 void TextDialog::queryString(const char* title, st ring description){83 void TextDialog::queryString(const char* title, std::string description){ 85 84 registerQuery(new StringTextQuery(title,description)); 86 85 } 87 86 88 void TextDialog::queryStrings(const char* title, st ring description){87 void TextDialog::queryStrings(const char* title, std::string description){ 89 88 registerQuery(new StringsTextQuery(title,description)); 90 89 } 91 90 92 void TextDialog::queryAtom(const char* title, st ring description) {91 void TextDialog::queryAtom(const char* title, std::string description) { 93 92 registerQuery(new AtomTextQuery(title,description)); 94 93 } 95 94 96 void TextDialog::queryAtoms(const char* title, st ring description) {95 void TextDialog::queryAtoms(const char* title, std::string description) { 97 96 registerQuery(new AtomsTextQuery(title,description)); 98 97 } 99 98 100 void TextDialog::queryMolecule(const char* title, st ring description) {99 void TextDialog::queryMolecule(const char* title, std::string description) { 101 100 registerQuery(new MoleculeTextQuery(title,description)); 102 101 } 103 102 104 void TextDialog::queryMolecules(const char* title, st ring description) {103 void TextDialog::queryMolecules(const char* title, std::string description) { 105 104 registerQuery(new MoleculesTextQuery(title,description)); 106 105 } 107 106 108 void TextDialog::queryVector(const char* title, bool check, st ring description) {107 void TextDialog::queryVector(const char* title, bool check, std::string description) { 109 108 registerQuery(new VectorTextQuery(title,check,description)); 110 109 } 111 110 112 void TextDialog::queryVectors(const char* title, bool check, st ring description) {111 void TextDialog::queryVectors(const char* title, bool check, std::string description) { 113 112 registerQuery(new VectorsTextQuery(title,check,description)); 114 113 } 115 114 116 void TextDialog::queryBox(const char* title, st ring description) {115 void TextDialog::queryBox(const char* title, std::string description) { 117 116 registerQuery(new BoxTextQuery(title,description)); 118 117 } 119 118 120 void TextDialog::queryElement(const char* title, st ring description){119 void TextDialog::queryElement(const char* title, std::string description){ 121 120 registerQuery(new ElementTextQuery(title,description)); 122 121 } 123 122 124 void TextDialog::queryElements(const char* title, st ring description){123 void TextDialog::queryElements(const char* title, std::string description){ 125 124 registerQuery(new ElementsTextQuery(title,description)); 126 125 } … … 174 173 getline(cin,line); 175 174 // dissect by " " 176 st ring::iterator olditer = line.begin();175 std::string::iterator olditer = line.begin(); 177 176 for(string::iterator iter = line.begin(); iter != line.end(); ++iter) { 178 177 if (*iter == ' ') { … … 243 242 getline(cin,temp); 244 243 // dissect by " " 245 st ring::iterator olditer = temp.begin();244 std::string::iterator olditer = temp.begin(); 246 245 for(string::iterator iter = temp.begin(); iter != temp.end(); ++iter) { 247 246 if (*iter == ' ') { … … 291 290 getline(cin,line); 292 291 // dissect by " " 293 st ring::iterator olditer = line.begin();292 std::string::iterator olditer = line.begin(); 294 293 for(string::iterator iter = line.begin(); iter != line.end(); ++iter) { 295 294 if (*iter == ' ') { … … 354 353 getline(cin,line); 355 354 // dissect by " " 356 st ring::iterator olditer = line.begin();355 std::string::iterator olditer = line.begin(); 357 356 for(string::iterator iter = line.begin(); iter != line.end(); ++iter) { 358 357 if (*iter == ' ') { … … 426 425 getline(cin,line); 427 426 // dissect by " " 428 st ring::iterator olditer = line.begin();427 std::string::iterator olditer = line.begin(); 429 428 for(string::iterator iter = line.begin(); iter != line.end(); ++iter) { 430 429 if (*iter == ' ') { … … 473 472 double coord = 0.; 474 473 int counter = 0; 475 st ring::iterator olditer = line.begin();474 std::string::iterator olditer = line.begin(); 476 475 for(string::iterator iter = line.begin(); (iter != line.end()) && (counter != 3); ++iter) { 477 476 if (*iter == ',') { … … 511 510 // dissect by "," 512 511 double coord = 0.; 513 st ring::iterator olditerspace = line.begin();514 st ring::iterator olditercomma = line.begin();512 std::string::iterator olditerspace = line.begin(); 513 std::string::iterator olditercomma = line.begin(); 515 514 int counter = 0; 516 515 for(string::iterator vectoriter = line.begin(); vectoriter != line.end(); ++vectoriter) { … … 608 607 // Try to read as shorthand 609 608 // the last buffer content was not removed, so we read the 610 // same thing again, this time as a st ring611 st ring shorthand;609 // same thing again, this time as a std::string 610 std::string shorthand; 612 611 cin >> shorthand; 613 612 if(!cin.fail()){ … … 649 648 getline(cin,line); 650 649 // dissect by " " 651 st ring::iterator olditer = line.begin();650 std::string::iterator olditer = line.begin(); 652 651 for(string::iterator iter = line.begin(); iter != line.end(); ++iter) { 653 652 if (*iter == ' ') {
Note:
See TracChangeset
for help on using the changeset viewer.