source: src/UIElements/TextUI/TextDialog.hpp@ 2d292d

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 2d292d was 7cd6e7, checked in by Frederik Heber <heber@…>, 14 years ago

Add all possible versions of queries where the user is asked for multiples of the same.

  • Note that these are correctly implemented in TextUI and CommandLineUI, but not yet in QT4.
  • Property mode set to 100644
File size: 4.8 KB
Line 
1/*
2 * TextDialog.hpp
3 *
4 * Created on: Jan 5, 2010
5 * Author: crueger
6 */
7
8#ifndef TEXTDIALOG_HPP_
9#define TEXTDIALOG_HPP_
10
11#include <string>
12
13#include "Dialog.hpp"
14
15class atom;
16class element;
17class molecule;
18class Vector;
19
20class TextDialog : public Dialog
21{
22public:
23 TextDialog();
24 virtual ~TextDialog();
25
26 virtual void queryEmpty(const char *, std::string = "");
27 virtual void queryBoolean(const char *, std::string = "");
28 virtual void queryInt(const char *, std::string = "");
29 virtual void queryInts(const char *, std::string = "");
30 virtual void queryString(const char*, std::string = "");
31 virtual void queryStrings(const char*, std::string = "");
32 virtual void queryDouble(const char*, std::string = "");
33 virtual void queryDoubles(const char*, std::string = "");
34 virtual void queryAtom(const char*,std::string = "");
35 virtual void queryAtoms(const char*,std::string = "");
36 virtual void queryMolecule(const char*,std::string = "");
37 virtual void queryMolecules(const char*,std::string = "");
38 virtual void queryVector(const char*,bool, std::string = "");
39 virtual void queryVectors(const char*,bool, std::string = "");
40 virtual void queryBox(const char*, std::string = "");
41 virtual void queryElement(const char*, std::string = "");
42 virtual void queryElements(const char*, std::string = "");
43
44protected:
45 // specialized stuff for text queries
46 class EmptyTextQuery : public Dialog::EmptyQuery {
47 public:
48 EmptyTextQuery(std::string title, std::string _description = NULL);
49 virtual ~EmptyTextQuery();
50 virtual bool handle();
51 };
52
53 class BooleanTextQuery : public Dialog::BooleanQuery {
54 public:
55 BooleanTextQuery(std::string title, std::string _description = NULL);
56 virtual ~BooleanTextQuery();
57 virtual bool handle();
58 };
59
60 class IntTextQuery : public Dialog::IntQuery {
61 public:
62 IntTextQuery(std::string title, std::string _description = NULL);
63 virtual ~IntTextQuery();
64 virtual bool handle();
65 };
66
67 class IntsTextQuery : public Dialog::IntsQuery {
68 public:
69 IntsTextQuery(std::string title, std::string _description = NULL);
70 virtual ~IntsTextQuery();
71 virtual bool handle();
72 };
73
74 class DoubleTextQuery : public Dialog::DoubleQuery {
75 public:
76 DoubleTextQuery(std::string title, std::string _description = NULL);
77 virtual ~DoubleTextQuery();
78 virtual bool handle();
79 };
80
81 class DoublesTextQuery : public Dialog::DoublesQuery {
82 public:
83 DoublesTextQuery(std::string title, std::string _description = NULL);
84 virtual ~DoublesTextQuery();
85 virtual bool handle();
86 };
87
88 class StringTextQuery : public Dialog::StringQuery {
89 public:
90 StringTextQuery(std::string title, std::string _description = NULL);
91 virtual ~StringTextQuery();
92 virtual bool handle();
93 };
94
95 class StringsTextQuery : public Dialog::StringsQuery {
96 public:
97 StringsTextQuery(std::string title, std::string _description = NULL);
98 virtual ~StringsTextQuery();
99 virtual bool handle();
100 };
101
102 class AtomTextQuery : public Dialog::AtomQuery {
103 public:
104 AtomTextQuery(std::string title, std::string _description = NULL);
105 virtual ~AtomTextQuery();
106 virtual bool handle();
107 };
108
109 class AtomsTextQuery : public Dialog::AtomsQuery {
110 public:
111 AtomsTextQuery(std::string title, std::string _description = NULL);
112 virtual ~AtomsTextQuery();
113 virtual bool handle();
114 };
115
116 class MoleculeTextQuery : public Dialog::MoleculeQuery {
117 public:
118 MoleculeTextQuery(std::string title, std::string _description = NULL);
119 virtual ~MoleculeTextQuery();
120 virtual bool handle();
121 };
122
123 class MoleculesTextQuery : public Dialog::MoleculesQuery {
124 public:
125 MoleculesTextQuery(std::string title, std::string _description = NULL);
126 virtual ~MoleculesTextQuery();
127 virtual bool handle();
128 };
129
130 class VectorTextQuery : public Dialog::VectorQuery {
131 public:
132 VectorTextQuery(std::string title,bool _check, std::string _description = NULL);
133 virtual ~VectorTextQuery();
134 virtual bool handle();
135 };
136
137 class VectorsTextQuery : public Dialog::VectorsQuery {
138 public:
139 VectorsTextQuery(std::string title,bool _check, std::string _description = NULL);
140 virtual ~VectorsTextQuery();
141 virtual bool handle();
142 };
143
144 class BoxTextQuery : public Dialog::BoxQuery {
145 public:
146 BoxTextQuery(std::string title, std::string _description = NULL);
147 virtual ~BoxTextQuery();
148 virtual bool handle();
149 };
150
151 class ElementTextQuery : public Dialog::ElementQuery {
152 public:
153 ElementTextQuery(std::string title, std::string _description = NULL);
154 virtual ~ElementTextQuery();
155 virtual bool handle();
156 };
157
158 class ElementsTextQuery : public Dialog::ElementsQuery {
159 public:
160 ElementsTextQuery(std::string title, std::string _description = NULL);
161 virtual ~ElementsTextQuery();
162 virtual bool handle();
163 };
164};
165
166#endif /* TEXTDIALOG_HPP_ */
Note: See TracBrowser for help on using the repository browser.