Changeset 3731b4 for src/UIElements/QT4
- Timestamp:
- Jul 22, 2010, 10:02:01 PM (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:
- c46d63
- Parents:
- 7cd469
- Location:
- src/UIElements/QT4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/QT4/QTDialog.cpp
r7cd469 r3731b4 85 85 } 86 86 87 void QTDialog::queryBoolean(char const*, bool*,string){87 void QTDialog::queryBoolean(char const*,string){ 88 88 // TODO 89 89 ASSERT(false, "Not implemented yet"); 90 90 } 91 91 92 void QTDialog::queryAtom(char const*, atom**,string){92 void QTDialog::queryAtom(char const*, string){ 93 93 // TODO 94 94 ASSERT(false, "Not implemented yet"); 95 95 } 96 96 97 void QTDialog::queryBox(char const*, Box*,string){97 void QTDialog::queryBox(char const*, string){ 98 98 // TODO 99 99 ASSERT(false, "Not implemented yet"); … … 101 101 102 102 103 void QTDialog::queryInt(const char *title, int *target,string)104 { 105 registerQuery(new IntQTQuery(title, target,inputLayout,this));106 } 107 108 void QTDialog::queryDouble(const char* title, double* target,string){109 registerQuery(new DoubleQTQuery(title, target,inputLayout,this));110 } 111 112 void QTDialog::queryString(const char* title, std::string *target,string)113 { 114 registerQuery(new StringQTQuery(title, target,inputLayout,this));115 } 116 117 void QTDialog::queryStrings(const char* title, std::vector<std::string> *target,string)118 { 119 registerQuery(new StringsQTQuery(title, target,inputLayout,this));120 } 121 122 void QTDialog::queryMolecule(const char *title, molecule **target,string)123 { 124 registerQuery(new MoleculeQTQuery(title, target,inputLayout,this));125 } 126 127 void QTDialog::queryVector(const char* title, Vector *target,bool check,string) {128 registerQuery(new VectorQTQuery(title, target,check,inputLayout,this));129 } 130 131 void QTDialog::queryElement(const char* title, st d::vector<element *> *target,string){132 registerQuery(new ElementQTQuery(title, target,inputLayout,this));103 void QTDialog::queryInt(const char *title,string) 104 { 105 registerQuery(new IntQTQuery(title,inputLayout,this)); 106 } 107 108 void QTDialog::queryDouble(const char* title,string){ 109 registerQuery(new DoubleQTQuery(title,inputLayout,this)); 110 } 111 112 void QTDialog::queryString(const char* title,string) 113 { 114 registerQuery(new StringQTQuery(title,inputLayout,this)); 115 } 116 117 void QTDialog::queryStrings(const char* title,string) 118 { 119 registerQuery(new StringsQTQuery(title,inputLayout,this)); 120 } 121 122 void QTDialog::queryMolecule(const char *title,string) 123 { 124 registerQuery(new MoleculeQTQuery(title,inputLayout,this)); 125 } 126 127 void QTDialog::queryVector(const char* title, bool check,string) { 128 registerQuery(new VectorQTQuery(title,check,inputLayout,this)); 129 } 130 131 void QTDialog::queryElement(const char* title, string){ 132 registerQuery(new ElementQTQuery(title,inputLayout,this)); 133 133 } 134 134 135 135 /************************** Query Objects *******************************/ 136 136 137 QTDialog::IntQTQuery::IntQTQuery(string _title, int *_target,QBoxLayout *_parent,QTDialog *_dialog) :138 Dialog::IntQuery(_title ,_target),137 QTDialog::IntQTQuery::IntQTQuery(string _title,QBoxLayout *_parent,QTDialog *_dialog) : 138 Dialog::IntQuery(_title), 139 139 parent(_parent) 140 140 { … … 163 163 } 164 164 165 QTDialog::DoubleQTQuery::DoubleQTQuery(string title, double *_target,QBoxLayout *_parent,QTDialog *_dialog) :166 Dialog::DoubleQuery(title ,_target),165 QTDialog::DoubleQTQuery::DoubleQTQuery(string title,QBoxLayout *_parent,QTDialog *_dialog) : 166 Dialog::DoubleQuery(title), 167 167 parent(_parent) 168 168 { … … 192 192 193 193 194 QTDialog::StringQTQuery::StringQTQuery(string _title, string *_target,QBoxLayout *_parent,QTDialog *_dialog) :195 Dialog::StringQuery(_title ,_target),194 QTDialog::StringQTQuery::StringQTQuery(string _title,QBoxLayout *_parent,QTDialog *_dialog) : 195 Dialog::StringQuery(_title), 196 196 parent(_parent) 197 197 { … … 219 219 } 220 220 221 QTDialog::StringsQTQuery::StringsQTQuery(string _title, vector<string> *_target,QBoxLayout *_parent,QTDialog *_dialog) :222 Dialog::StringsQuery(_title ,_target),221 QTDialog::StringsQTQuery::StringsQTQuery(string _title,QBoxLayout *_parent,QTDialog *_dialog) : 222 Dialog::StringsQuery(_title), 223 223 parent(_parent) 224 224 { … … 257 257 } 258 258 259 QTDialog::MoleculeQTQuery::MoleculeQTQuery(string _title, molecule **_target,QBoxLayout *_parent,QTDialog *_dialog) :260 Dialog::MoleculeQuery(_title ,_target),259 QTDialog::MoleculeQTQuery::MoleculeQTQuery(string _title, QBoxLayout *_parent,QTDialog *_dialog) : 260 Dialog::MoleculeQuery(_title), 261 261 parent(_parent) 262 262 { … … 293 293 } 294 294 295 QTDialog::VectorQTQuery::VectorQTQuery(std::string title, Vector *_target,bool _check,QBoxLayout *_parent,QTDialog *_dialog) :296 Dialog::VectorQuery(title,_ target,_check),295 QTDialog::VectorQTQuery::VectorQTQuery(std::string title, bool _check,QBoxLayout *_parent,QTDialog *_dialog) : 296 Dialog::VectorQuery(title,_check), 297 297 parent(_parent) 298 298 { … … 329 329 330 330 331 QTDialog::ElementQTQuery::ElementQTQuery(std::string _title, vector<element *> *_target,QBoxLayout *_parent, QTDialog *_dialog) :332 Dialog::ElementQuery(_title ,_target),331 QTDialog::ElementQTQuery::ElementQTQuery(std::string _title, QBoxLayout *_parent, QTDialog *_dialog) : 332 Dialog::ElementQuery(_title), 333 333 parent(_parent) 334 334 { … … 349 349 thisLayout->addWidget(inputBox); 350 350 351 pipe = new ElementQTQueryPipe(& elements,_dialog,inputBox);351 pipe = new ElementQTQueryPipe(&tmp,_dialog,inputBox); 352 352 pipe->update(inputBox->currentIndex()); 353 353 connect(inputBox,SIGNAL(currentIndexChanged(int)),pipe,SLOT(update(int))); -
src/UIElements/QT4/QTDialog.hpp
r7cd469 r3731b4 36 36 37 37 virtual void queryEmpty(const char*, std::string); 38 virtual void queryBoolean(const char *, bool *,std::string = "");39 virtual void queryInt(const char *, int *,std::string = "");40 virtual void queryDouble(const char*, double *,std::string = "");41 virtual void queryString(const char*, std::string *,std::string = "");42 virtual void queryStrings(const char*, std::vector<std::string> *,std::string = "");43 virtual void queryAtom(const char*, atom**,std::string = "");44 virtual void queryMolecule(const char*, molecule**,std::string = "");45 virtual void queryVector(const char*, Vector *,bool,std::string = "");46 virtual void queryBox(const char*, Box*,std::string = "");47 virtual void queryElement(const char*,std:: vector<element *> *_target,std::string = "");38 virtual void queryBoolean(const char *, std::string = ""); 39 virtual void queryInt(const char *,std::string = ""); 40 virtual void queryDouble(const char*,std::string = ""); 41 virtual void queryString(const char*,std::string = ""); 42 virtual void queryStrings(const char*,std::string = ""); 43 virtual void queryAtom(const char*,std::string = ""); 44 virtual void queryMolecule(const char*,std::string = ""); 45 virtual void queryVector(const char*,bool,std::string = ""); 46 virtual void queryBox(const char*, std::string = ""); 47 virtual void queryElement(const char*,std::string = ""); 48 48 49 49 virtual bool display(); … … 54 54 class IntQTQuery : public Dialog::IntQuery { 55 55 public: 56 IntQTQuery(std::string _title, int *_target,QBoxLayout *_parent,QTDialog *_dialog);56 IntQTQuery(std::string _title,QBoxLayout *_parent,QTDialog *_dialog); 57 57 virtual ~IntQTQuery(); 58 58 virtual bool handle(); … … 68 68 class DoubleQTQuery : public Dialog::DoubleQuery { 69 69 public: 70 DoubleQTQuery(std::string title, double *_target,QBoxLayout *_parent,QTDialog *_dialog);70 DoubleQTQuery(std::string title,QBoxLayout *_parent,QTDialog *_dialog); 71 71 virtual ~DoubleQTQuery(); 72 72 virtual bool handle(); … … 82 82 class StringQTQuery : public Dialog::StringQuery { 83 83 public: 84 StringQTQuery(std::string _title, std::string *_target,QBoxLayout *_parent,QTDialog *_dialog);84 StringQTQuery(std::string _title, QBoxLayout *_parent,QTDialog *_dialog); 85 85 virtual ~StringQTQuery(); 86 86 virtual bool handle(); … … 96 96 class StringsQTQuery : public Dialog::StringsQuery { 97 97 public: 98 StringsQTQuery(std::string _title, std::vector<std::string> *_target,QBoxLayout *_parent,QTDialog *_dialog);98 StringsQTQuery(std::string _title, QBoxLayout *_parent,QTDialog *_dialog); 99 99 virtual ~StringsQTQuery(); 100 100 virtual bool handle(); … … 110 110 class MoleculeQTQuery : public Dialog::MoleculeQuery { 111 111 public: 112 MoleculeQTQuery(std::string _title, molecule **_target,QBoxLayout *_parent,QTDialog *_dialog);112 MoleculeQTQuery(std::string _title, QBoxLayout *_parent,QTDialog *_dialog); 113 113 virtual ~MoleculeQTQuery(); 114 114 virtual bool handle(); … … 124 124 class VectorQTQuery : public Dialog::VectorQuery { 125 125 public: 126 VectorQTQuery(std::string title, Vector *_target,bool _check,QBoxLayout *,QTDialog *);126 VectorQTQuery(std::string title,bool _check,QBoxLayout *,QTDialog *); 127 127 virtual ~VectorQTQuery(); 128 128 virtual bool handle(); … … 141 141 class ElementQTQuery : public Dialog::ElementQuery { 142 142 public: 143 ElementQTQuery(std::string _title, std::vector<element *> *_target,QBoxLayout *_parent, QTDialog *_dialog);143 ElementQTQuery(std::string _title, QBoxLayout *_parent, QTDialog *_dialog); 144 144 virtual ~ElementQTQuery(); 145 145 virtual bool handle();
Note:
See TracChangeset
for help on using the changeset viewer.