source: src/UIElements/Qt4/Query/QtQuery.hpp@ 85a23f

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
Last change on this file since 85a23f was 85b112, checked in by Frederik Heber <heber@…>, 13 years ago

made BooleanQtQuery a checkbox

  • Property mode set to 100644
File size: 8.6 KB
Line 
1/*
2 * QtQuery.hpp
3 *
4 * Created on: Nov 8, 2010
5 * Author: heber
6 */
7
8#ifndef QTQUERY_HPP_
9#define QTQUERY_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
17#include "Qt4/QtDialog.hpp"
18
19class QHBoxLayout;
20class QBoxLayout;
21class QDialogButtonBox;
22class QLabel;
23class QSpinBox;
24class QDoubleSpinBox;
25class QLineEdit;
26class QListWidget;
27class QPushButton;
28class QTableWidget;
29class QTextEdit;
30class QComboBox;
31class QCheckBox;
32
33// Forward declarations for plumbing
34template<typename T> class QtQueryListPipe;
35class AtomQtQueryPipe;
36class AtomsQtQueryPipe;
37class BooleanQtQueryPipe;
38class BoxQtQueryPipe;
39class DoubleQtQueryPipe;
40class DoublesQtQueryPipe;
41class ElementQtQueryPipe;
42class ElementsQtQueryPipe;
43class EmptyQtQueryPipe;
44class FileQtQueryPipe;
45class IntQtQueryPipe;
46class MoleculeQtQueryPipe;
47class MoleculesQtQueryPipe;
48class StringQtQueryPipe;
49class StringsQtQueryPipe;
50class UnsignedIntQtQueryPipe;
51class UnsignedIntsQtQueryPipe;
52class VectorQtQueryPipe;
53class VectorsQtQueryPipe;
54class RandomNumberDistribution_ParametersQtQueryPipe;
55
56class QtDialog::AtomQtQuery : public Dialog::AtomQuery {
57public:
58 AtomQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
59 virtual ~AtomQtQuery();
60 virtual bool handle();
61private:
62 QBoxLayout *parent;
63 QBoxLayout *thisLayout;
64 QLabel *titleLabel;
65 QComboBox *inputBox;
66
67 AtomQtQueryPipe *pipe;
68};
69
70class QtDialog::AtomsQtQuery : public Dialog::AtomsQuery {
71public:
72 AtomsQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
73 virtual ~AtomsQtQuery();
74 virtual bool handle();
75private:
76 QBoxLayout *parent;
77 QBoxLayout *thisLayout;
78 QLabel *titleLabel;
79 QLabel *inputLabel;
80 QListWidget *inputList;
81
82 AtomsQtQueryPipe *pipe;
83};
84
85class QtDialog::BooleanQtQuery : public Dialog::BooleanQuery {
86public:
87 BooleanQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
88 virtual ~BooleanQtQuery();
89 virtual bool handle();
90private:
91 QBoxLayout *parent;
92 QBoxLayout *thisLayout;
93 QLabel *titleLabel;
94 QCheckBox *booleanCheckBox;
95
96 BooleanQtQueryPipe *pipe;
97};
98
99class QtDialog::BoxQtQuery : public Dialog::BoxQuery {
100public:
101 BoxQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
102 virtual ~BoxQtQuery();
103 virtual bool handle();
104private:
105 QBoxLayout *parent;
106 QBoxLayout *thisLayout;
107 QLabel *titleLabel;
108 QTableWidget *inputTable;
109
110 BoxQtQueryPipe *pipe;
111};
112
113class QtDialog::DoubleQtQuery : public Dialog::DoubleQuery {
114public:
115 DoubleQtQuery(std::string title,QBoxLayout *_parent,QtDialog *_dialog);
116 virtual ~DoubleQtQuery();
117 virtual bool handle();
118private:
119 QBoxLayout *parent;
120 QBoxLayout *thisLayout;
121 QLabel *titleLabel;
122 QDoubleSpinBox *inputBox;
123
124 DoubleQtQueryPipe *pipe;
125};
126
127class QtDialog::DoublesQtQuery : public Dialog::DoublesQuery {
128public:
129 DoublesQtQuery(std::string title,QBoxLayout *_parent,QtDialog *_dialog);
130 virtual ~DoublesQtQuery();
131 virtual bool handle();
132private:
133 QBoxLayout *parent;
134 QBoxLayout *thisLayout;
135 QLabel *titleLabel;
136 QDoubleSpinBox *inputBox;
137
138 QtQueryListPipe<double> *pipe;
139};
140
141class QtDialog::ElementQtQuery : public Dialog::ElementQuery {
142public:
143 ElementQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
144 virtual ~ElementQtQuery();
145 virtual bool handle();
146private:
147 QBoxLayout *parent;
148 QBoxLayout *thisLayout;
149 QLabel *titleLabel;
150 QComboBox *inputBox;
151
152 ElementQtQueryPipe *pipe;
153};
154
155class QtDialog::ElementsQtQuery : public Dialog::ElementsQuery {
156public:
157 ElementsQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
158 virtual ~ElementsQtQuery();
159 virtual bool handle();
160private:
161 QBoxLayout *parent;
162 QBoxLayout *thisLayout;
163 QLabel *titleLabel;
164 QComboBox *inputBox;
165
166 ElementsQtQueryPipe *pipe;
167};
168
169class QtDialog::EmptyQtQuery : public Dialog::EmptyQuery {
170public:
171 EmptyQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
172 virtual ~EmptyQtQuery();
173 virtual bool handle();
174private:
175 QBoxLayout *parent;
176 QBoxLayout *thisLayout;
177 QLabel *titleLabel;
178
179 EmptyQtQueryPipe *pipe;
180};
181
182class QtDialog::FileQtQuery : public Dialog::FileQuery {
183public:
184 FileQtQuery(std::string _title, QBoxLayout *_parent, QtDialog *_dialog);
185 virtual ~FileQtQuery();
186 virtual bool handle();
187private:
188 QBoxLayout *parent;
189 QBoxLayout *thisLayout;
190 QLabel *filenameLabel;
191 QLineEdit *filenameLineEdit;
192 QPushButton *filedialogButton;
193
194 FileQtQueryPipe *pipe;
195};
196
197class QtDialog::IntQtQuery : public Dialog::IntQuery {
198public:
199 IntQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
200 virtual ~IntQtQuery();
201 virtual bool handle();
202private:
203 QBoxLayout *parent;
204 QBoxLayout *thisLayout;
205 QLabel *titleLabel;
206 QSpinBox *inputBox;
207
208 IntQtQueryPipe *pipe;
209};
210
211class QtDialog::IntsQtQuery : public Dialog::IntsQuery {
212public:
213 IntsQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
214 virtual ~IntsQtQuery();
215 virtual bool handle();
216 void IntegerEntered(const QString&);
217 void IntegerSelected();
218 void AddInteger();
219 void RemoveInteger();
220private:
221 QBoxLayout *parent;
222 QBoxLayout *thisLayout;
223 QLabel *titleLabel;
224
225 QtQueryListPipe<int> *pipe;
226};
227
228class QtDialog::MoleculeQtQuery : public Dialog::MoleculeQuery {
229public:
230 MoleculeQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
231 virtual ~MoleculeQtQuery();
232 virtual bool handle();
233private:
234 QBoxLayout *parent;
235 QBoxLayout *thisLayout;
236 QLabel *titleLabel;
237 QComboBox *inputBox;
238
239 MoleculeQtQueryPipe *pipe;
240};
241
242class QtDialog::MoleculesQtQuery : public Dialog::MoleculesQuery {
243public:
244 MoleculesQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
245 virtual ~MoleculesQtQuery();
246 virtual bool handle();
247private:
248 QBoxLayout *parent;
249 QBoxLayout *thisLayout;
250 QLabel *titleLabel;
251 QComboBox *inputBox;
252
253 MoleculesQtQueryPipe *pipe;
254};
255
256class QtDialog::StringQtQuery : public Dialog::StringQuery {
257public:
258 StringQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
259 virtual ~StringQtQuery();
260 virtual bool handle();
261private:
262 QBoxLayout *parent;
263 QBoxLayout *thisLayout;
264 QLabel *titleLabel;
265 QLineEdit *inputBox;
266
267 StringQtQueryPipe *pipe;
268};
269
270class QtDialog::StringsQtQuery : public Dialog::StringsQuery {
271public:
272 StringsQtQuery(std::string _title, QBoxLayout *_parent,QtDialog *_dialog);
273 virtual ~StringsQtQuery();
274 virtual bool handle();
275private:
276 QBoxLayout *parent;
277 QBoxLayout *thisLayout;
278 QLabel *titleLabel;
279 QLineEdit *inputBox;
280
281 QtQueryListPipe<std::string> *pipe;
282};
283
284class QtDialog::UnsignedIntQtQuery : public Dialog::UnsignedIntQuery {
285public:
286 UnsignedIntQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
287 virtual ~UnsignedIntQtQuery();
288 virtual bool handle();
289private:
290 QBoxLayout *parent;
291 QBoxLayout *thisLayout;
292 QLabel *titleLabel;
293 QSpinBox *inputBox;
294
295 UnsignedIntQtQueryPipe *pipe;
296};
297
298class QtDialog::UnsignedIntsQtQuery : public Dialog::UnsignedIntsQuery {
299public:
300 UnsignedIntsQtQuery(std::string _title,QBoxLayout *_parent,QtDialog *_dialog);
301 virtual ~UnsignedIntsQtQuery();
302 virtual bool handle();
303 void IntegerEntered(const QString&);
304 void IntegerSelected();
305 void AddInteger();
306 void RemoveInteger();
307private:
308 QBoxLayout *parent;
309 QBoxLayout *thisLayout;
310 QLabel *titleLabel;
311
312 QtQueryListPipe<unsigned int> *pipe;
313};
314
315
316class QtDialog::VectorQtQuery : public Dialog::VectorQuery {
317public:
318 VectorQtQuery(std::string title,bool _check,QBoxLayout *,QtDialog *);
319 virtual ~VectorQtQuery();
320 virtual bool handle();
321private:
322 QBoxLayout *parent;
323 QBoxLayout *mainLayout;
324 QLabel *titleLabel;
325 QBoxLayout *subLayout;
326 QBoxLayout *coordLayout;
327 QLabel *coordLabel;
328 QDoubleSpinBox *coordInputX;
329 QDoubleSpinBox *coordInputY;
330 QDoubleSpinBox *coordInputZ;
331
332 VectorQtQueryPipe *pipe;
333};
334
335class QtDialog::VectorsQtQuery : public Dialog::VectorsQuery {
336public:
337 VectorsQtQuery(std::string title,bool _check,QBoxLayout *,QtDialog *);
338 virtual ~VectorsQtQuery();
339 virtual bool handle();
340private:
341 QBoxLayout *parent;
342 QBoxLayout *mainLayout;
343 QLabel *titleLabel;
344 QBoxLayout *subLayout;
345 QBoxLayout *coordLayout;
346 QLabel *coordLabel;
347 QDoubleSpinBox *coordInput;
348
349 VectorsQtQueryPipe *pipe;
350};
351
352class QtDialog::RandomNumberDistribution_ParametersQtQuery : public Dialog::RandomNumberDistribution_ParametersQuery {
353public:
354 RandomNumberDistribution_ParametersQtQuery(std::string title,QBoxLayout *,QtDialog *);
355 virtual ~RandomNumberDistribution_ParametersQtQuery();
356 virtual bool handle();
357private:
358 QBoxLayout *parent;
359 QHBoxLayout *thisLayout;
360 QLabel *titleLabel;
361 QTextEdit *inputBox;
362 QPushButton *okButton;
363
364 RandomNumberDistribution_ParametersQtQueryPipe *pipe;
365};
366
367#endif /* QTQUERY_HPP_ */
Note: See TracBrowser for help on using the repository browser.