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 |
|
---|
15 | class atom;
|
---|
16 | class element;
|
---|
17 | class molecule;
|
---|
18 | class Vector;
|
---|
19 |
|
---|
20 | class TextDialog : public Dialog
|
---|
21 | {
|
---|
22 | public:
|
---|
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 |
|
---|
44 | protected:
|
---|
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_ */
|
---|