Changeset 7dfd07 for src/UIElements/Qt4/Query/QtQuery.hpp
- Timestamp:
- Jul 20, 2012, 9:25:14 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, Candidate_v1.7.0, Candidate_v1.7.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:
- 7b8a8e
- Parents:
- 7c9921
- File:
-
- 1 edited
-
src/UIElements/Qt4/Query/QtQuery.hpp (modified) (43 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/Query/QtQuery.hpp
r7c9921 r7dfd07 34 34 class QFileDialog; 35 35 36 // Forward declarations for plumbing37 template<typename T> class QtQueryListPipe;38 class AtomQtQueryPipe;39 class AtomsQtQueryPipe;40 class BooleanQtQueryPipe;41 class RealSpaceMatrixQtQueryPipe;42 class DoubleQtQueryPipe;43 class DoublesQtQueryPipe;44 class ElementQtQueryPipe;45 class ElementsQtQueryPipe;46 class EmptyQtQueryPipe;47 class FileQtQueryPipe;48 class FilesQtQueryPipe;49 class IntQtQueryPipe;50 class MoleculeQtQueryPipe;51 class MoleculesQtQueryPipe;52 class StringQtQueryPipe;53 class StringsQtQueryPipe;54 class UnsignedIntQtQueryPipe;55 class UnsignedIntsQtQueryPipe;56 class VectorQtQueryPipe;57 class VectorsQtQueryPipe;58 class RandomNumberDistribution_ParametersQtQueryPipe;59 60 36 class QtDialog::AtomQtQuery : public QWidget, public Dialog::AtomQuery { 61 37 Q_OBJECT 62 38 public: 63 AtomQtQuery(Parameter<const atom *> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);39 AtomQtQuery(Parameter<const atom *> &, std::string _title, QBoxLayout *_parent,Dialog *_dialog); 64 40 virtual ~AtomQtQuery(); 65 41 virtual bool handle(); … … 73 49 QLabel *titleLabel; 74 50 QComboBox *inputBox; 75 QtDialog *dialog; 76 77 AtomQtQueryPipe *pipe; 51 Dialog *dialog; 78 52 }; 79 53 … … 81 55 Q_OBJECT 82 56 public: 83 AtomsQtQuery(Parameter<std::vector<const atom *> > &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);57 AtomsQtQuery(Parameter<std::vector<const atom *> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog); 84 58 virtual ~AtomsQtQuery(); 85 59 virtual bool handle(); … … 94 68 QLabel *inputLabel; 95 69 QListWidget *inputList; 96 QtDialog *dialog; 97 98 AtomsQtQueryPipe *pipe; 70 Dialog *dialog; 99 71 }; 100 72 … … 102 74 Q_OBJECT 103 75 public: 104 BooleanQtQuery(Parameter<bool> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);76 BooleanQtQuery(Parameter<bool> &, std::string _title, QBoxLayout *_parent, Dialog *_dialog); 105 77 virtual ~BooleanQtQuery(); 106 78 virtual bool handle(); … … 114 86 QLabel *titleLabel; 115 87 QCheckBox *booleanCheckBox; 116 QtDialog *dialog; 117 118 BooleanQtQueryPipe *pipe; 88 Dialog *dialog; 119 89 }; 120 90 … … 122 92 Q_OBJECT 123 93 public: 124 RealSpaceMatrixQtQuery(Parameter<RealSpaceMatrix> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);94 RealSpaceMatrixQtQuery(Parameter<RealSpaceMatrix> &, std::string _title, QBoxLayout *_parent,Dialog *_dialog); 125 95 virtual ~RealSpaceMatrixQtQuery(); 126 96 virtual bool handle(); … … 134 104 QLabel *titleLabel; 135 105 QTableWidget *inputTable; 136 QtDialog *dialog; 137 138 RealSpaceMatrixQtQueryPipe *pipe; 106 Dialog *dialog; 139 107 }; 140 108 … … 142 110 Q_OBJECT 143 111 public: 144 DoubleQtQuery(Parameter<double> &, std::string title,QBoxLayout *_parent, QtDialog *_dialog);112 DoubleQtQuery(Parameter<double> &, std::string title,QBoxLayout *_parent,Dialog *_dialog); 145 113 virtual ~DoubleQtQuery(); 146 114 virtual bool handle(); … … 154 122 QLabel *titleLabel; 155 123 QDoubleSpinBox *inputBox; 156 QtDialog *dialog; 157 158 DoubleQtQueryPipe *pipe; 124 Dialog *dialog; 159 125 }; 160 126 … … 162 128 Q_OBJECT 163 129 public: 164 DoublesQtQuery(Parameter<std::vector<double> > &, std::string title,QBoxLayout *_parent, QtDialog *_dialog);130 DoublesQtQuery(Parameter<std::vector<double> > &, std::string title,QBoxLayout *_parent,Dialog *_dialog); 165 131 virtual ~DoublesQtQuery(); 166 132 virtual bool handle(); … … 174 140 QLabel *titleLabel; 175 141 QDoubleSpinBox *inputBox; 176 QtDialog *dialog; 177 178 QtQueryListPipe<double> *pipe; 142 Dialog *dialog; 179 143 }; 180 144 … … 182 146 Q_OBJECT 183 147 public: 184 ElementQtQuery(Parameter<const element *> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);148 ElementQtQuery(Parameter<const element *> &, std::string _title, QBoxLayout *_parent, Dialog *_dialog); 185 149 virtual ~ElementQtQuery(); 186 150 virtual bool handle(); … … 194 158 QLabel *titleLabel; 195 159 QComboBox *inputBox; 196 QtDialog *dialog; 197 198 ElementQtQueryPipe *pipe; 160 Dialog *dialog; 199 161 }; 200 162 … … 202 164 Q_OBJECT 203 165 public: 204 ElementsQtQuery(Parameter<std::vector<const element *> > &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);166 ElementsQtQuery(Parameter<std::vector<const element *> > &, std::string _title, QBoxLayout *_parent, Dialog *_dialog); 205 167 virtual ~ElementsQtQuery(); 206 168 virtual bool handle(); … … 214 176 QLabel *titleLabel; 215 177 QComboBox *inputBox; 216 QtDialog *dialog; 217 218 ElementsQtQueryPipe *pipe; 178 Dialog *dialog; 219 179 }; 220 180 221 181 class QtDialog::EmptyQtQuery : public Dialog::EmptyQuery { 222 182 public: 223 EmptyQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);183 EmptyQtQuery(std::string _title, QBoxLayout *_parent, Dialog *_dialog); 224 184 virtual ~EmptyQtQuery(); 225 185 virtual bool handle(); … … 228 188 QBoxLayout *thisLayout; 229 189 QLabel *titleLabel; 230 QtDialog *dialog; 231 232 EmptyQtQueryPipe *pipe; 190 Dialog *dialog; 233 191 }; 234 192 … … 236 194 Q_OBJECT 237 195 public: 238 FileQtQuery(Parameter<boost::filesystem::path> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);196 FileQtQuery(Parameter<boost::filesystem::path> &, std::string _title, QBoxLayout *_parent, Dialog *_dialog); 239 197 virtual ~FileQtQuery(); 240 198 virtual bool handle(); … … 251 209 QPushButton *filedialogButton; 252 210 QFileDialog *theFileDialog; 253 QtDialog *dialog; 254 255 FileQtQueryPipe *pipe; 211 Dialog *dialog; 256 212 }; 257 213 … … 259 215 Q_OBJECT 260 216 public: 261 FilesQtQuery(Parameter<std::vector< boost::filesystem::path> > &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);217 FilesQtQuery(Parameter<std::vector< boost::filesystem::path> > &, std::string _title, QBoxLayout *_parent, Dialog *_dialog); 262 218 virtual ~FilesQtQuery(); 263 219 virtual bool handle(); … … 274 230 QBoxLayout *thisLayout; 275 231 QLabel *titleLabel; 276 QtDialog *dialog; 277 278 QtQueryListPipe<boost::filesystem::path> *pipe; 232 Dialog *dialog; 279 233 }; 280 234 … … 282 236 Q_OBJECT 283 237 public: 284 IntQtQuery(Parameter<int> &, std::string _title,QBoxLayout *_parent, QtDialog *_dialog);238 IntQtQuery(Parameter<int> &, std::string _title,QBoxLayout *_parent,Dialog *_dialog); 285 239 virtual ~IntQtQuery(); 286 240 virtual bool handle(); … … 294 248 QLabel *titleLabel; 295 249 QSpinBox *inputBox; 296 QtDialog *dialog; 297 298 IntQtQueryPipe *pipe; 250 Dialog *dialog; 299 251 }; 300 252 … … 302 254 Q_OBJECT 303 255 public: 304 IntsQtQuery(Parameter<std::vector<int> > &, std::string _title,QBoxLayout *_parent, QtDialog *_dialog);256 IntsQtQuery(Parameter<std::vector<int> > &, std::string _title,QBoxLayout *_parent,Dialog *_dialog); 305 257 virtual ~IntsQtQuery(); 306 258 virtual bool handle(); … … 317 269 QBoxLayout *thisLayout; 318 270 QLabel *titleLabel; 319 QtDialog *dialog; 320 321 QtQueryListPipe<int> *pipe; 271 Dialog *dialog; 322 272 }; 323 273 … … 325 275 Q_OBJECT 326 276 public: 327 MoleculeQtQuery(Parameter<const molecule *> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);277 MoleculeQtQuery(Parameter<const molecule *> &, std::string _title, QBoxLayout *_parent,Dialog *_dialog); 328 278 virtual ~MoleculeQtQuery(); 329 279 virtual bool handle(); … … 337 287 QLabel *titleLabel; 338 288 QComboBox *inputBox; 339 QtDialog *dialog; 340 341 MoleculeQtQueryPipe *pipe; 289 Dialog *dialog; 342 290 }; 343 291 … … 345 293 Q_OBJECT 346 294 public: 347 MoleculesQtQuery(Parameter<std::vector<const molecule *> > &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);295 MoleculesQtQuery(Parameter<std::vector<const molecule *> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog); 348 296 virtual ~MoleculesQtQuery(); 349 297 virtual bool handle(); … … 357 305 QLabel *titleLabel; 358 306 QComboBox *inputBox; 359 QtDialog *dialog; 360 361 MoleculesQtQueryPipe *pipe; 307 Dialog *dialog; 362 308 }; 363 309 … … 365 311 Q_OBJECT 366 312 public: 367 StringQtQuery(Parameter<std::string> &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);313 StringQtQuery(Parameter<std::string> &, std::string _title, QBoxLayout *_parent,Dialog *_dialog); 368 314 virtual ~StringQtQuery(); 369 315 virtual bool handle(); … … 377 323 QLabel *titleLabel; 378 324 QLineEdit *inputBox; 379 QtDialog *dialog; 380 381 StringQtQueryPipe *pipe; 325 Dialog *dialog; 382 326 }; 383 327 … … 385 329 Q_OBJECT 386 330 public: 387 StringsQtQuery(Parameter<std::vector<std::string> > &, std::string _title, QBoxLayout *_parent, QtDialog *_dialog);331 StringsQtQuery(Parameter<std::vector<std::string> > &, std::string _title, QBoxLayout *_parent,Dialog *_dialog); 388 332 virtual ~StringsQtQuery(); 389 333 virtual bool handle(); … … 397 341 QLabel *titleLabel; 398 342 QLineEdit *inputBox; 399 QtDialog *dialog; 400 401 StringsQtQueryPipe *pipe; 343 Dialog *dialog; 402 344 }; 403 345 … … 405 347 Q_OBJECT 406 348 public: 407 UnsignedIntQtQuery(Parameter<unsigned int> &, std::string _title,QBoxLayout *_parent, QtDialog *_dialog);349 UnsignedIntQtQuery(Parameter<unsigned int> &, std::string _title,QBoxLayout *_parent,Dialog *_dialog); 408 350 virtual ~UnsignedIntQtQuery(); 409 351 virtual bool handle(); … … 417 359 QLabel *titleLabel; 418 360 QSpinBox *inputBox; 419 QtDialog *dialog; 420 421 UnsignedIntQtQueryPipe *pipe; 361 Dialog *dialog; 422 362 }; 423 363 … … 425 365 Q_OBJECT 426 366 public: 427 UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > &, std::string _title,QBoxLayout *_parent, QtDialog *_dialog);367 UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > &, std::string _title,QBoxLayout *_parent,Dialog *_dialog); 428 368 virtual ~UnsignedIntsQtQuery(); 429 369 virtual bool handle(); … … 440 380 QBoxLayout *thisLayout; 441 381 QLabel *titleLabel; 442 QtDialog *dialog; 443 444 QtQueryListPipe<unsigned int> *pipe; 382 Dialog *dialog; 445 383 }; 446 384 … … 449 387 Q_OBJECT 450 388 public: 451 VectorQtQuery(Parameter<Vector> &, std::string title,QBoxLayout *, QtDialog *);389 VectorQtQuery(Parameter<Vector> &, std::string title,QBoxLayout *,Dialog *); 452 390 virtual ~VectorQtQuery(); 453 391 virtual bool handle(); … … 468 406 QDoubleSpinBox *coordInputY; 469 407 QDoubleSpinBox *coordInputZ; 470 QtDialog *dialog; 471 472 VectorQtQueryPipe *pipe; 408 Dialog *dialog; 473 409 }; 474 410 … … 476 412 Q_OBJECT 477 413 public: 478 VectorsQtQuery(Parameter<std::vector<Vector> > &, std::string title,QBoxLayout *, QtDialog *);414 VectorsQtQuery(Parameter<std::vector<Vector> > &, std::string title,QBoxLayout *,Dialog *); 479 415 virtual ~VectorsQtQuery(); 480 416 virtual bool handle(); … … 491 427 QLabel *coordLabel; 492 428 QDoubleSpinBox *coordInput; 493 QtDialog *dialog; 494 495 VectorsQtQueryPipe *pipe; 429 Dialog *dialog; 496 430 }; 497 431 … … 499 433 Q_OBJECT 500 434 public: 501 RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> &, std::string title,QBoxLayout *, QtDialog *);435 RandomNumberDistribution_ParametersQtQuery(Parameter<RandomNumberDistribution_Parameters> &, std::string title,QBoxLayout *,Dialog *); 502 436 virtual ~RandomNumberDistribution_ParametersQtQuery(); 503 437 virtual bool handle(); … … 512 446 QTextEdit *inputBox; 513 447 QPushButton *okButton; 514 QtDialog *dialog; 515 516 RandomNumberDistribution_ParametersQtQueryPipe *pipe; 448 Dialog *dialog; 517 449 }; 518 450
Note:
See TracChangeset
for help on using the changeset viewer.
