source: src/UIElements/TextUI/TextDialog.hpp@ 4907a3

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 4907a3 was 84c494, checked in by Tillmann Crueger <crueger@…>, 15 years ago

Made the world store the cell_size within a Box object.

  • Property mode set to 100644
File size: 3.2 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 *, bool *, std::string = "");
28 virtual void queryInt(const char *, int *, std::string = "");
29 virtual void queryString(const char*, std::string *, std::string = "");
30 virtual void queryDouble(const char*, double*, std::string = "");
31 virtual void queryAtom(const char*,atom**,std::string = "");
32 virtual void queryMolecule(const char*,molecule**,std::string = "");
33 virtual void queryVector(const char*,Vector *,bool, std::string = "");
34 virtual void queryBox(const char*,Box*, std::string = "");
35 virtual void queryElement(const char*, std::vector<element *> *, std::string = "");
36
37protected:
38 // specialized stuff for text queries
39 class EmptyTextQuery : public Dialog::EmptyQuery {
40 public:
41 EmptyTextQuery(std::string title, std::string _description = NULL);
42 virtual ~EmptyTextQuery();
43 virtual bool handle();
44 };
45
46 class BooleanTextQuery : public Dialog::BooleanQuery {
47 public:
48 BooleanTextQuery(std::string title, bool *_target, std::string _description = NULL);
49 virtual ~BooleanTextQuery();
50 virtual bool handle();
51 };
52
53 class IntTextQuery : public Dialog::IntQuery {
54 public:
55 IntTextQuery(std::string title, int *_target, std::string _description = NULL);
56 virtual ~IntTextQuery();
57 virtual bool handle();
58 };
59
60 class DoubleTextQuery : public Dialog::DoubleQuery {
61 public:
62 DoubleTextQuery(std::string title, double *_target, std::string _description = NULL);
63 virtual ~DoubleTextQuery();
64 virtual bool handle();
65 };
66
67 class StringTextQuery : public Dialog::StringQuery {
68 public:
69 StringTextQuery(std::string title, std::string *_target, std::string _description = NULL);
70 virtual ~StringTextQuery();
71 virtual bool handle();
72 };
73
74 class AtomTextQuery : public Dialog::AtomQuery {
75 public:
76 AtomTextQuery(std::string title, atom **_target, std::string _description = NULL);
77 virtual ~AtomTextQuery();
78 virtual bool handle();
79 };
80
81 class MoleculeTextQuery : public Dialog::MoleculeQuery {
82 public:
83 MoleculeTextQuery(std::string title, molecule **_target, std::string _description = NULL);
84 virtual ~MoleculeTextQuery();
85 virtual bool handle();
86 };
87
88 class VectorTextQuery : public Dialog::VectorQuery {
89 public:
90 VectorTextQuery(std::string title,Vector *_target,bool _check, std::string _description = NULL);
91 virtual ~VectorTextQuery();
92 virtual bool handle();
93 };
94
95 class BoxTextQuery : public Dialog::BoxQuery {
96 public:
97 BoxTextQuery(std::string title,Box* _cellSize, std::string _description = NULL);
98 virtual ~BoxTextQuery();
99 virtual bool handle();
100 };
101
102 class ElementTextQuery : public Dialog::ElementQuery {
103 public:
104 ElementTextQuery(std::string title, std::vector<element *> *_target, std::string _description = NULL);
105 virtual ~ElementTextQuery();
106 virtual bool handle();
107 };
108};
109
110#endif /* TEXTDIALOG_HPP_ */
Note: See TracBrowser for help on using the repository browser.