Changeset 9ee38b for src/UIElements/QT4/QTDialog.cpp
- Timestamp:
- Aug 28, 2010, 12:52:58 AM (15 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/QT4/QTDialog.cpp
r0b2ce9 r9ee38b 98 98 /************************** Query Infrastructure ************************/ 99 99 100 void QTDialog::queryEmpty(c har const*,string){100 void QTDialog::queryEmpty(const char*, std::string){ 101 101 // TODO 102 102 ASSERT(false, "Not implemented yet"); 103 103 } 104 104 105 void QTDialog::queryBoolean(c har const*,string){105 void QTDialog::queryBoolean(const char*,string){ 106 106 // TODO 107 107 ASSERT(false, "Not implemented yet"); 108 108 } 109 109 110 void QTDialog::queryAtom(c har const*,string){110 void QTDialog::queryAtom(const char*, std::string){ 111 111 // TODO 112 112 ASSERT(false, "Not implemented yet"); 113 113 } 114 114 115 void QTDialog::queryAtoms(c har const*,string){115 void QTDialog::queryAtoms(const char*, std::string){ 116 116 // TODO 117 117 ASSERT(false, "Not implemented yet"); 118 118 } 119 119 120 void QTDialog::queryBox(c har const*,string){120 void QTDialog::queryBox(const char*, std::string){ 121 121 // TODO 122 122 ASSERT(false, "Not implemented yet"); … … 172 172 } 173 173 174 void QTDialog::queryElement(const char* title, st ring){174 void QTDialog::queryElement(const char* title, std::string){ 175 175 registerQuery(new ElementQTQuery(title,inputLayout,this)); 176 176 } 177 177 178 void QTDialog::queryElements(const char* title, st ring){178 void QTDialog::queryElements(const char* title, std::string){ 179 179 // TODO 180 180 ASSERT(false, "Not implemented yet"); … … 353 353 } 354 354 355 // All values besides the empty st ring are valid355 // All values besides the empty std::string are valid 356 356 bool QTDialog::StringQTQuery::handle() 357 357 { … … 400 400 } 401 401 402 // All values besides the empty st ring are valid402 // All values besides the empty std::string are valid 403 403 bool QTDialog::StringsQTQuery::handle() 404 404 { 405 405 // dissect by "," 406 st ring::iterator olditer = temp.begin();406 std::string::iterator olditer = temp.begin(); 407 407 for(string::iterator iter = temp.begin(); iter != temp.end(); ++iter) { 408 408 if (*iter == ' ') { … … 429 429 iter != molecules.end(); 430 430 ++iter) { 431 st ringstream sstr;431 std::stringstream sstr; 432 432 sstr << (*iter)->IndexNr << "\t" << (*iter)->getName(); 433 433 inputBox->addItem(QString(sstr.str().c_str()),QVariant((*iter)->IndexNr)); … … 465 465 iter != molecules.end(); 466 466 ++iter) { 467 st ringstream sstr;467 std::stringstream sstr; 468 468 sstr << (*iter)->IndexNr << "\t" << (*iter)->getName(); 469 469 inputBox->addItem(QString(sstr.str().c_str()),QVariant((*iter)->IndexNr)); … … 565 565 ++iter) 566 566 { 567 st ringstream sstr;567 std::stringstream sstr; 568 568 sstr << (*iter).first << "\t" << (*iter).second->getName(); 569 569 inputBox->addItem(QString(sstr.str().c_str()),QVariant((*iter).first)); … … 600 600 ++iter) 601 601 { 602 st ringstream sstr;602 std::stringstream sstr; 603 603 sstr << (*iter).first << "\t" << (*iter).second->getName(); 604 604 inputBox->addItem(QString(sstr.str().c_str()),QVariant((*iter).first));
Note:
See TracChangeset
for help on using the changeset viewer.