Changeset f10b0c for src/UIElements/Qt4/Query
- Timestamp:
- Jun 11, 2012, 9:53:19 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:
- 95f965
- Parents:
- b9c69d
- git-author:
- Michael Ankele <ankele@…> (04/24/12 13:55:16)
- git-committer:
- Frederik Heber <heber@…> (06/11/12 09:53:19)
- Location:
- src/UIElements/Qt4/Query
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/Query/AtomQtQuery.cpp
rb9c69d rf10b0c 30 30 #include "World.hpp" 31 31 32 QtDialog::AtomQtQuery::AtomQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :33 Dialog::AtomQuery( _title),32 QtDialog::AtomQtQuery::AtomQtQuery(Parameter<const atom *> ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : 33 Dialog::AtomQuery(param, _title), 34 34 parent(_parent) 35 35 { … … 46 46 thisLayout->addWidget(inputBox); 47 47 48 pipe = new AtomQtQueryPipe( &tmp,_dialog, inputBox);48 pipe = new AtomQtQueryPipe(tmp,_dialog, inputBox); 49 49 pipe->update(inputBox->currentIndex()); 50 50 connect(inputBox,SIGNAL(currentIndexChanged(int)),pipe,SLOT(update(int))); -
src/UIElements/Qt4/Query/AtomsQtQuery.cpp
rb9c69d rf10b0c 33 33 34 34 35 QtDialog::AtomsQtQuery::AtomsQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :36 Dialog::AtomsQuery( _title),35 QtDialog::AtomsQtQuery::AtomsQtQuery(Parameter<std::vector<const atom *> > ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : 36 Dialog::AtomsQuery(param, _title), 37 37 parent(_parent) 38 38 { … … 67 67 thisHLayout->addLayout(thisV2Layout); 68 68 69 pipe = new AtomsQtQueryPipe( &tmp,_dialog,inputList);69 pipe = new AtomsQtQueryPipe(tmp,_dialog,inputList); 70 70 connect(inputList,SIGNAL(itemSelectionChanged()),pipe,SLOT(IntegerSelected())); 71 71 connect(AddButton,SIGNAL(Clicked()),pipe,SLOT(add())); -
src/UIElements/Qt4/Query/BooleanQtQuery.cpp
rb9c69d rf10b0c 28 28 29 29 30 QtDialog::BooleanQtQuery::BooleanQtQuery( std::string _title, QBoxLayout *_parent, QtDialog *_dialog) :31 Dialog::BooleanQuery( _title),30 QtDialog::BooleanQtQuery::BooleanQtQuery(Parameter<bool> ¶m, std::string _title, QBoxLayout *_parent, QtDialog *_dialog) : 31 Dialog::BooleanQuery(param, _title), 32 32 parent(_parent) 33 33 { … … 40 40 thisLayout->addWidget(booleanCheckBox); 41 41 42 pipe = new BooleanQtQueryPipe( &tmp,_dialog,booleanCheckBox);42 pipe = new BooleanQtQueryPipe(tmp,_dialog,booleanCheckBox); 43 43 connect(booleanCheckBox, SIGNAL(stateChanged(int)), pipe, SLOT(update(int))); 44 44 } -
src/UIElements/Qt4/Query/BoxQtQuery.cpp
rb9c69d rf10b0c 30 30 #include "World.hpp" 31 31 32 QtDialog::BoxQtQuery::BoxQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :33 Dialog::BoxQuery( _title),32 QtDialog::BoxQtQuery::BoxQtQuery(Parameter<Box> ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : 33 Dialog::BoxQuery(param, _title), 34 34 parent(_parent) 35 35 { -
src/UIElements/Qt4/Query/DoubleQtQuery.cpp
rb9c69d rf10b0c 28 28 29 29 30 QtDialog::DoubleQtQuery::DoubleQtQuery( std::string title,QBoxLayout *_parent,QtDialog *_dialog) :31 Dialog::DoubleQuery( title),30 QtDialog::DoubleQtQuery::DoubleQtQuery(Parameter<double> ¶m, std::string title,QBoxLayout *_parent,QtDialog *_dialog) : 31 Dialog::DoubleQuery(param, title), 32 32 parent(_parent) 33 33 { … … 42 42 thisLayout->addWidget(inputBox); 43 43 44 pipe = new DoubleQtQueryPipe( &tmp,_dialog);44 pipe = new DoubleQtQueryPipe(tmp,_dialog); 45 45 pipe->update(inputBox->value()); 46 46 connect(inputBox,SIGNAL(valueChanged(double)),pipe,SLOT(update(double))); -
src/UIElements/Qt4/Query/DoublesQtQuery.cpp
rb9c69d rf10b0c 30 30 31 31 32 QtDialog::DoublesQtQuery::DoublesQtQuery( std::string title,QBoxLayout *_parent,QtDialog *_dialog) :33 Dialog::DoublesQuery( title),32 QtDialog::DoublesQtQuery::DoublesQtQuery(Parameter<std::vector<double> > ¶m, std::string title,QBoxLayout *_parent,QtDialog *_dialog) : 33 Dialog::DoublesQuery(param, title), 34 34 parent(_parent) 35 35 { … … 60 60 thisHLayout->addLayout(thisV2Layout); 61 61 62 pipe = new QtQueryListPipe<double>( &tmp,_dialog,inputBox,inputList,AddButton,RemoveButton);62 pipe = new QtQueryListPipe<double>(tmp,_dialog,inputBox,inputList,AddButton,RemoveButton); 63 63 connect(inputBox,SIGNAL(textChanged(const QString&)),pipe,SLOT(IntegerEntered(const QString&))); 64 64 connect(inputList,SIGNAL(itemSelectionChanged()),pipe,SLOT(IntegerSelected())); -
src/UIElements/Qt4/Query/ElementQtQuery.cpp
rb9c69d rf10b0c 31 31 #include "World.hpp" 32 32 33 QtDialog::ElementQtQuery::ElementQtQuery( std::string _title, QBoxLayout *_parent, QtDialog *_dialog) :34 Dialog::ElementQuery( _title),33 QtDialog::ElementQtQuery::ElementQtQuery(Parameter<const element *> ¶m, std::string _title, QBoxLayout *_parent, QtDialog *_dialog) : 34 Dialog::ElementQuery(param, _title), 35 35 parent(_parent) 36 36 { … … 51 51 thisLayout->addWidget(inputBox); 52 52 53 pipe = new ElementQtQueryPipe( &tmp,_dialog,inputBox);53 pipe = new ElementQtQueryPipe(tmp,_dialog,inputBox); 54 54 pipe->update(inputBox->currentIndex()); 55 55 connect(inputBox,SIGNAL(currentIndexChanged(int)),pipe,SLOT(update(int))); -
src/UIElements/Qt4/Query/ElementsQtQuery.cpp
rb9c69d rf10b0c 32 32 33 33 34 QtDialog::ElementsQtQuery::ElementsQtQuery( std::string _title, QBoxLayout *_parent, QtDialog *_dialog) :35 Dialog::ElementsQuery( _title),34 QtDialog::ElementsQtQuery::ElementsQtQuery(Parameter<std::vector<const element *> > ¶m, std::string _title, QBoxLayout *_parent, QtDialog *_dialog) : 35 Dialog::ElementsQuery(param, _title), 36 36 parent(_parent) 37 37 { … … 52 52 thisLayout->addWidget(inputBox); 53 53 54 pipe = new ElementsQtQueryPipe( &tmp,_dialog,inputBox);54 pipe = new ElementsQtQueryPipe(tmp,_dialog,inputBox); 55 55 pipe->update(inputBox->currentIndex()); 56 56 connect(inputBox,SIGNAL(currentIndexChanged(int)),pipe,SLOT(update(int))); -
src/UIElements/Qt4/Query/FileQtQuery.cpp
rb9c69d rf10b0c 29 29 30 30 31 QtDialog::FileQtQuery::FileQtQuery( std::string _title, QBoxLayout *_parent, QtDialog *_dialog) :32 Dialog::FileQuery( _title),31 QtDialog::FileQtQuery::FileQtQuery(Parameter<boost::filesystem::path> ¶m, std::string _title, QBoxLayout *_parent, QtDialog *_dialog) : 32 Dialog::FileQuery(param, _title), 33 33 parent(_parent) 34 34 { … … 43 43 filedialogButton = new QPushButton("&Choose", _dialog); 44 44 45 pipe = new FileQtQueryPipe( &tmp,_dialog,filenameLineEdit,filedialogButton);45 pipe = new FileQtQueryPipe(tmp,_dialog,filenameLineEdit,filedialogButton); 46 46 47 47 thisLayout = new QHBoxLayout(); -
src/UIElements/Qt4/Query/IntQtQuery.cpp
rb9c69d rf10b0c 28 28 29 29 30 QtDialog::IntQtQuery::IntQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :31 Dialog::IntQuery( _title),30 QtDialog::IntQtQuery::IntQtQuery(Parameter<int> ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : 31 Dialog::IntQuery(param, _title), 32 32 parent(_parent) 33 33 { … … 40 40 thisLayout->addWidget(inputBox); 41 41 42 pipe = new IntQtQueryPipe( &tmp,_dialog);42 pipe = new IntQtQueryPipe(tmp,_dialog); 43 43 pipe->update(inputBox->value()); 44 44 connect(inputBox,SIGNAL(valueChanged(int)),pipe,SLOT(update(int))); -
src/UIElements/Qt4/Query/IntsQtQuery.cpp
rb9c69d rf10b0c 30 30 31 31 32 QtDialog::IntsQtQuery::IntsQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :33 Dialog::IntsQuery( _title),32 QtDialog::IntsQtQuery::IntsQtQuery(Parameter<std::vector<int> > ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : 33 Dialog::IntsQuery(param, _title), 34 34 parent(_parent) 35 35 { … … 60 60 thisHLayout->addLayout(thisV2Layout); 61 61 62 pipe = new QtQueryListPipe<int>( &tmp,_dialog,inputBox,inputList,AddButton,RemoveButton);62 pipe = new QtQueryListPipe<int>(tmp,_dialog,inputBox,inputList,AddButton,RemoveButton); 63 63 connect(inputBox,SIGNAL(textChanged(const QString&)),pipe,SLOT(IntegerEntered(const QString&))); 64 64 connect(inputList,SIGNAL(itemSelectionChanged()),pipe,SLOT(IntegerSelected())); -
src/UIElements/Qt4/Query/MoleculeQtQuery.cpp
rb9c69d rf10b0c 31 31 32 32 33 QtDialog::MoleculeQtQuery::MoleculeQtQuery( std::string _title, QBoxLayout *_parent,QtDialog *_dialog) :34 Dialog::MoleculeQuery( _title),33 QtDialog::MoleculeQtQuery::MoleculeQtQuery(Parameter<const molecule *> ¶m, std::string _title, QBoxLayout *_parent,QtDialog *_dialog) : 34 Dialog::MoleculeQuery(param, _title), 35 35 parent(_parent) 36 36 { … … 51 51 thisLayout->addWidget(inputBox); 52 52 53 pipe = new MoleculeQtQueryPipe( &tmp,_dialog,inputBox);53 pipe = new MoleculeQtQueryPipe(tmp,_dialog,inputBox); 54 54 pipe->update(inputBox->currentIndex()); 55 55 connect(inputBox,SIGNAL(currentIndexChanged(int)),pipe,SLOT(update(int))); -
src/UIElements/Qt4/Query/MoleculesQtQuery.cpp
rb9c69d rf10b0c 31 31 32 32 33 QtDialog::MoleculesQtQuery::MoleculesQtQuery( std::string _title, QBoxLayout *_parent,QtDialog *_dialog) :34 Dialog::MoleculesQuery( _title),33 QtDialog::MoleculesQtQuery::MoleculesQtQuery(Parameter<std::vector<const molecule *> > ¶m, std::string _title, QBoxLayout *_parent,QtDialog *_dialog) : 34 Dialog::MoleculesQuery(param, _title), 35 35 parent(_parent) 36 36 { … … 51 51 thisLayout->addWidget(inputBox); 52 52 53 pipe = new MoleculesQtQueryPipe( &tmp,_dialog,inputBox);53 pipe = new MoleculesQtQueryPipe(tmp,_dialog,inputBox); 54 54 pipe->update(inputBox->currentIndex()); 55 55 connect(inputBox,SIGNAL(currentIndexChanged(int)),pipe,SLOT(update(int))); -
src/UIElements/Qt4/Query/QtQuery.hpp
rb9c69d rf10b0c 16 16 17 17 #include "Qt4/QtDialog.hpp" 18 #include "Parameters/Parameter.hpp" 18 19 19 20 class QHBoxLayout; … … 56 57 class QtDialog::AtomQtQuery : public Dialog::AtomQuery { 57 58 public: 58 AtomQtQuery( std::string _title, QBoxLayout *_parent,QtDialog *_dialog);59 AtomQtQuery(Parameter<const atom *> &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 59 60 virtual ~AtomQtQuery(); 60 61 virtual bool handle(); … … 70 71 class QtDialog::AtomsQtQuery : public Dialog::AtomsQuery { 71 72 public: 72 AtomsQtQuery( std::string _title, QBoxLayout *_parent,QtDialog *_dialog);73 AtomsQtQuery(Parameter<std::vector<const atom *> > &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 73 74 virtual ~AtomsQtQuery(); 74 75 virtual bool handle(); … … 85 86 class QtDialog::BooleanQtQuery : public Dialog::BooleanQuery { 86 87 public: 87 BooleanQtQuery( std::string _title, QBoxLayout *_parent, QtDialog *_dialog);88 BooleanQtQuery(Parameter<bool> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog); 88 89 virtual ~BooleanQtQuery(); 89 90 virtual bool handle(); … … 99 100 class QtDialog::BoxQtQuery : public Dialog::BoxQuery { 100 101 public: 101 BoxQtQuery( std::string _title, QBoxLayout *_parent,QtDialog *_dialog);102 BoxQtQuery(Parameter<Box> &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 102 103 virtual ~BoxQtQuery(); 103 104 virtual bool handle(); … … 113 114 class QtDialog::DoubleQtQuery : public Dialog::DoubleQuery { 114 115 public: 115 DoubleQtQuery( std::string title,QBoxLayout *_parent,QtDialog *_dialog);116 DoubleQtQuery(Parameter<double> &, std::string title,QBoxLayout *_parent,QtDialog *_dialog); 116 117 virtual ~DoubleQtQuery(); 117 118 virtual bool handle(); … … 127 128 class QtDialog::DoublesQtQuery : public Dialog::DoublesQuery { 128 129 public: 129 DoublesQtQuery( std::string title,QBoxLayout *_parent,QtDialog *_dialog);130 DoublesQtQuery(Parameter<std::vector<double> > &, std::string title,QBoxLayout *_parent,QtDialog *_dialog); 130 131 virtual ~DoublesQtQuery(); 131 132 virtual bool handle(); … … 141 142 class QtDialog::ElementQtQuery : public Dialog::ElementQuery { 142 143 public: 143 ElementQtQuery( std::string _title, QBoxLayout *_parent, QtDialog *_dialog);144 ElementQtQuery(Parameter<const element *> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog); 144 145 virtual ~ElementQtQuery(); 145 146 virtual bool handle(); … … 155 156 class QtDialog::ElementsQtQuery : public Dialog::ElementsQuery { 156 157 public: 157 ElementsQtQuery( std::string _title, QBoxLayout *_parent, QtDialog *_dialog);158 ElementsQtQuery(Parameter<std::vector<const element *> > &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog); 158 159 virtual ~ElementsQtQuery(); 159 160 virtual bool handle(); … … 182 183 class QtDialog::FileQtQuery : public Dialog::FileQuery { 183 184 public: 184 FileQtQuery( std::string _title, QBoxLayout *_parent, QtDialog *_dialog);185 FileQtQuery(Parameter<boost::filesystem::path> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog); 185 186 virtual ~FileQtQuery(); 186 187 virtual bool handle(); … … 197 198 class QtDialog::IntQtQuery : public Dialog::IntQuery { 198 199 public: 199 IntQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog);200 IntQtQuery(Parameter<int> &, std::string _title,QBoxLayout *_parent,QtDialog *_dialog); 200 201 virtual ~IntQtQuery(); 201 202 virtual bool handle(); … … 211 212 class QtDialog::IntsQtQuery : public Dialog::IntsQuery { 212 213 public: 213 IntsQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog);214 IntsQtQuery(Parameter<std::vector<int> > &, std::string _title,QBoxLayout *_parent,QtDialog *_dialog); 214 215 virtual ~IntsQtQuery(); 215 216 virtual bool handle(); … … 228 229 class QtDialog::MoleculeQtQuery : public Dialog::MoleculeQuery { 229 230 public: 230 MoleculeQtQuery( std::string _title, QBoxLayout *_parent,QtDialog *_dialog);231 MoleculeQtQuery(Parameter<const molecule *> &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 231 232 virtual ~MoleculeQtQuery(); 232 233 virtual bool handle(); … … 242 243 class QtDialog::MoleculesQtQuery : public Dialog::MoleculesQuery { 243 244 public: 244 MoleculesQtQuery( std::string _title, QBoxLayout *_parent,QtDialog *_dialog);245 MoleculesQtQuery(Parameter<std::vector<const molecule *> > &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 245 246 virtual ~MoleculesQtQuery(); 246 247 virtual bool handle(); … … 256 257 class QtDialog::StringQtQuery : public Dialog::StringQuery { 257 258 public: 258 StringQtQuery( std::string _title, QBoxLayout *_parent,QtDialog *_dialog);259 StringQtQuery(Parameter<std::string> &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 259 260 virtual ~StringQtQuery(); 260 261 virtual bool handle(); … … 270 271 class QtDialog::StringsQtQuery : public Dialog::StringsQuery { 271 272 public: 272 StringsQtQuery( std::string _title, QBoxLayout *_parent,QtDialog *_dialog);273 StringsQtQuery(Parameter<std::vector<std::string> > &, std::string _title, QBoxLayout *_parent,QtDialog *_dialog); 273 274 virtual ~StringsQtQuery(); 274 275 virtual bool handle(); … … 284 285 class QtDialog::UnsignedIntQtQuery : public Dialog::UnsignedIntQuery { 285 286 public: 286 UnsignedIntQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog);287 UnsignedIntQtQuery(Parameter<unsigned int> &, std::string _title,QBoxLayout *_parent,QtDialog *_dialog); 287 288 virtual ~UnsignedIntQtQuery(); 288 289 virtual bool handle(); … … 298 299 class QtDialog::UnsignedIntsQtQuery : public Dialog::UnsignedIntsQuery { 299 300 public: 300 UnsignedIntsQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog);301 UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > &, std::string _title,QBoxLayout *_parent,QtDialog *_dialog); 301 302 virtual ~UnsignedIntsQtQuery(); 302 303 virtual bool handle(); … … 316 317 class QtDialog::VectorQtQuery : public Dialog::VectorQuery { 317 318 public: 318 VectorQtQuery( std::string title,bool _check,QBoxLayout *,QtDialog *);319 VectorQtQuery(Parameter<Vector> &, std::string title,bool _check,QBoxLayout *,QtDialog *); 319 320 virtual ~VectorQtQuery(); 320 321 virtual bool handle(); … … 335 336 class QtDialog::VectorsQtQuery : public Dialog::VectorsQuery { 336 337 public: 337 VectorsQtQuery( std::string title,bool _check,QBoxLayout *,QtDialog *);338 VectorsQtQuery(Parameter<std::vector<Vector> > &, std::string title,bool _check,QBoxLayout *,QtDialog *); 338 339 virtual ~VectorsQtQuery(); 339 340 virtual bool handle(); … … 352 353 class QtDialog::RandomNumberDistribution_ParametersQtQuery : public Dialog::RandomNumberDistribution_ParametersQuery { 353 354 public: 354 RandomNumberDistribution_ParametersQtQuery( std::string title,QBoxLayout *,QtDialog *);355 RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> &, std::string title,QBoxLayout *,QtDialog *); 355 356 virtual ~RandomNumberDistribution_ParametersQtQuery(); 356 357 virtual bool handle(); -
src/UIElements/Qt4/Query/RandomNumberDistribution_ParametersQtQuery.cpp
rb9c69d rf10b0c 31 31 #include "World.hpp" 32 32 33 QtDialog::RandomNumberDistribution_ParametersQtQuery::RandomNumberDistribution_ParametersQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :34 Dialog::RandomNumberDistribution_ParametersQuery( _title),33 QtDialog::RandomNumberDistribution_ParametersQtQuery::RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : 34 Dialog::RandomNumberDistribution_ParametersQuery(param, _title), 35 35 parent(_parent) 36 36 { … … 50 50 okButton = new QPushButton(tr("Ok")); 51 51 52 pipe = new RandomNumberDistribution_ParametersQtQueryPipe( &tmp,_dialog, inputBox);52 pipe = new RandomNumberDistribution_ParametersQtQueryPipe(tmp,_dialog, inputBox); 53 53 connect(okButton,SIGNAL(clicked()),pipe,SLOT(update())); 54 54 } -
src/UIElements/Qt4/Query/StringQtQuery.cpp
rb9c69d rf10b0c 28 28 29 29 30 QtDialog::StringQtQuery::StringQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :31 Dialog::StringQuery( _title),30 QtDialog::StringQtQuery::StringQtQuery(Parameter<std::string> ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : 31 Dialog::StringQuery(param, _title), 32 32 parent(_parent) 33 33 { … … 39 39 thisLayout->addWidget(inputBox); 40 40 41 pipe = new StringQtQueryPipe( &tmp,_dialog);41 pipe = new StringQtQueryPipe(tmp,_dialog); 42 42 pipe->update(inputBox->text()); 43 43 connect(inputBox,SIGNAL(textChanged(const QString&)),pipe,SLOT(update(const QString&))); … … 52 52 bool QtDialog::StringQtQuery::handle() 53 53 { 54 return tmp !="";54 return tmp.get() != ""; 55 55 } 56 56 -
src/UIElements/Qt4/Query/StringsQtQuery.cpp
rb9c69d rf10b0c 30 30 31 31 32 QtDialog::StringsQtQuery::StringsQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :33 Dialog::StringsQuery( _title),32 QtDialog::StringsQtQuery::StringsQtQuery(Parameter<std::vector<std::string> > ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : 33 Dialog::StringsQuery(param, _title), 34 34 parent(_parent) 35 35 { … … 60 60 thisHLayout->addLayout(thisV2Layout); 61 61 62 pipe = new QtQueryListPipe<std::string>( &tmp,_dialog,inputBox,inputList,AddButton,RemoveButton);62 pipe = new QtQueryListPipe<std::string>(tmp,_dialog,inputBox,inputList,AddButton,RemoveButton); 63 63 connect(inputBox,SIGNAL(textChanged(const QString&)),pipe,SLOT(IntegerEntered(const QString&))); 64 64 connect(inputList,SIGNAL(itemSelectionChanged()),pipe,SLOT(IntegerSelected())); … … 76 76 // dissect by "," 77 77 std::string::iterator olditer = temp.begin(); 78 std::vector<std::string> temp_strings; 78 79 for(std::string::iterator iter = temp.begin(); iter != temp.end(); ++iter) { 79 80 if (*iter == ' ') { 80 t mp.push_back(std::string(iter, olditer));81 temp_strings.push_back(std::string(iter, olditer)); 81 82 olditer = iter; 82 83 } 83 84 } 84 85 if (olditer != temp.begin()) // insert last part also 85 tmp.push_back(std::string(olditer, temp.end())); 86 temp_strings.push_back(std::string(olditer, temp.end())); 87 tmp.set(temp_strings); 86 88 87 89 return temp!=""; -
src/UIElements/Qt4/Query/UnsignedIntQtQuery.cpp
rb9c69d rf10b0c 28 28 29 29 30 QtDialog::UnsignedIntQtQuery::UnsignedIntQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :31 Dialog::UnsignedIntQuery( _title),30 QtDialog::UnsignedIntQtQuery::UnsignedIntQtQuery(Parameter<unsigned int> ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : 31 Dialog::UnsignedIntQuery(param, _title), 32 32 parent(_parent) 33 33 { … … 40 40 thisLayout->addWidget(inputBox); 41 41 42 pipe = new UnsignedIntQtQueryPipe( &tmp,_dialog);42 pipe = new UnsignedIntQtQueryPipe(tmp,_dialog); 43 43 pipe->update(inputBox->value()); 44 44 connect(inputBox,SIGNAL(valueChanged(unsigned int)),pipe,SLOT(update(unsigned int))); -
src/UIElements/Qt4/Query/UnsignedIntsQtQuery.cpp
rb9c69d rf10b0c 30 30 31 31 32 QtDialog::UnsignedIntsQtQuery::UnsignedIntsQtQuery( std::string _title,QBoxLayout *_parent,QtDialog *_dialog) :33 Dialog::UnsignedIntsQuery( _title),32 QtDialog::UnsignedIntsQtQuery::UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > ¶m, std::string _title,QBoxLayout *_parent,QtDialog *_dialog) : 33 Dialog::UnsignedIntsQuery(param, _title), 34 34 parent(_parent) 35 35 { … … 60 60 thisHLayout->addLayout(thisV2Layout); 61 61 62 pipe = new QtQueryListPipe<unsigned int>( &tmp,_dialog,inputBox,inputList,AddButton,RemoveButton);62 pipe = new QtQueryListPipe<unsigned int>(tmp,_dialog,inputBox,inputList,AddButton,RemoveButton); 63 63 connect(inputBox,SIGNAL(textChanged(const QString&)),pipe,SLOT(IntegerEntered(const QString&))); 64 64 connect(inputList,SIGNAL(itemSelectionChanged()),pipe,SLOT(IntegerSelected())); -
src/UIElements/Qt4/Query/VectorQtQuery.cpp
rb9c69d rf10b0c 29 29 30 30 31 QtDialog::VectorQtQuery::VectorQtQuery( std::string title, bool _check,QBoxLayout *_parent,QtDialog *_dialog) :32 Dialog::VectorQuery( title,_check),31 QtDialog::VectorQtQuery::VectorQtQuery(Parameter<Vector> ¶m, std::string title, bool _check,QBoxLayout *_parent,QtDialog *_dialog) : 32 Dialog::VectorQuery(param, title,_check), 33 33 parent(_parent) 34 34 { 35 param.set(Vector(0,0,0)); 35 36 mainLayout= new QHBoxLayout(); 36 37 titleLabel = new QLabel(QString(getTitle().c_str())); … … 58 59 coordInputZ->setDecimals(3); 59 60 coordLayout->addWidget(coordInputZ); 60 pipe = new VectorQtQueryPipe( &(tmp),_dialog,inputBox);61 pipe = new VectorQtQueryPipe(tmp,_dialog,inputBox); 61 62 //pipe->update(coordInput->value()); 62 63 connect(coordInputX,SIGNAL(valueChanged(double)),pipe,SLOT(updateX(double))); -
src/UIElements/Qt4/Query/VectorsQtQuery.cpp
rb9c69d rf10b0c 29 29 30 30 31 QtDialog::VectorsQtQuery::VectorsQtQuery( std::string title, bool _check,QBoxLayout *_parent,QtDialog *_dialog) :32 Dialog::VectorsQuery( title,_check),31 QtDialog::VectorsQtQuery::VectorsQtQuery(Parameter<std::vector<Vector> > ¶m, std::string title, bool _check,QBoxLayout *_parent,QtDialog *_dialog) : 32 Dialog::VectorsQuery(param, title,_check), 33 33 parent(_parent) 34 34 { … … 47 47 coordInput->setDecimals(3); 48 48 coordLayout->addWidget(coordInput); 49 pipe = new VectorsQtQueryPipe( &(tmp),_dialog,inputBox);49 pipe = new VectorsQtQueryPipe(tmp,_dialog,inputBox); 50 50 //pipe->update(coordInput->value()); 51 51 connect(coordInput,SIGNAL(valueChanged(double)),pipe,SLOT(update(double)));
Note:
See TracChangeset
for help on using the changeset viewer.