1 | /*
|
---|
2 | * Project: MoleCuilder
|
---|
3 | * Description: creates and alters molecular systems
|
---|
4 | * Copyright (C) 2010 University of Bonn. All rights reserved.
|
---|
5 | * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
|
---|
6 | */
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * TextDialog.cpp
|
---|
10 | *
|
---|
11 | * Created on: Jan 5, 2010
|
---|
12 | * Author: crueger
|
---|
13 | */
|
---|
14 |
|
---|
15 | // include config.h
|
---|
16 | #ifdef HAVE_CONFIG_H
|
---|
17 | #include <config.h>
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | #include "Helpers/MemDebug.hpp"
|
---|
21 |
|
---|
22 | #include "TextUI/TextDialog.hpp"
|
---|
23 |
|
---|
24 | using namespace std;
|
---|
25 |
|
---|
26 |
|
---|
27 | TextDialog::TextDialog()
|
---|
28 | {
|
---|
29 | }
|
---|
30 |
|
---|
31 | TextDialog::~TextDialog()
|
---|
32 | {
|
---|
33 | }
|
---|
34 |
|
---|
35 | void TextDialog::queryEmpty(const char* title, std::string description){
|
---|
36 | registerQuery(new EmptyTextQuery(title,description));
|
---|
37 | }
|
---|
38 |
|
---|
39 | void TextDialog::queryBoolean(const char* title, std::string description){
|
---|
40 | registerQuery(new BooleanTextQuery(title,description));
|
---|
41 | }
|
---|
42 |
|
---|
43 | void TextDialog::queryInt(const char* title, std::string description){
|
---|
44 | registerQuery(new IntTextQuery(title,description));
|
---|
45 | }
|
---|
46 |
|
---|
47 | void TextDialog::queryInts(const char* title, std::string description){
|
---|
48 | registerQuery(new IntsTextQuery(title,description));
|
---|
49 | }
|
---|
50 |
|
---|
51 | void TextDialog::queryDouble(const char* title, std::string description){
|
---|
52 | registerQuery(new DoubleTextQuery(title,description));
|
---|
53 | }
|
---|
54 |
|
---|
55 | void TextDialog::queryDoubles(const char* title, std::string description){
|
---|
56 | registerQuery(new DoublesTextQuery(title,description));
|
---|
57 | }
|
---|
58 |
|
---|
59 | void TextDialog::queryString(const char* title, std::string description){
|
---|
60 | registerQuery(new StringTextQuery(title,description));
|
---|
61 | }
|
---|
62 |
|
---|
63 | void TextDialog::queryStrings(const char* title, std::string description){
|
---|
64 | registerQuery(new StringsTextQuery(title,description));
|
---|
65 | }
|
---|
66 |
|
---|
67 | void TextDialog::queryAtom(const char* title, std::string description) {
|
---|
68 | registerQuery(new AtomTextQuery(title,description));
|
---|
69 | }
|
---|
70 |
|
---|
71 | void TextDialog::queryAtoms(const char* title, std::string description) {
|
---|
72 | registerQuery(new AtomsTextQuery(title,description));
|
---|
73 | }
|
---|
74 |
|
---|
75 | void TextDialog::queryMolecule(const char* title, std::string description) {
|
---|
76 | registerQuery(new MoleculeTextQuery(title,description));
|
---|
77 | }
|
---|
78 |
|
---|
79 | void TextDialog::queryMolecules(const char* title, std::string description) {
|
---|
80 | registerQuery(new MoleculesTextQuery(title,description));
|
---|
81 | }
|
---|
82 |
|
---|
83 | void TextDialog::queryVector(const char* title, bool check, std::string description) {
|
---|
84 | registerQuery(new VectorTextQuery(title,check,description));
|
---|
85 | }
|
---|
86 |
|
---|
87 | void TextDialog::queryVectors(const char* title, bool check, std::string description) {
|
---|
88 | registerQuery(new VectorsTextQuery(title,check,description));
|
---|
89 | }
|
---|
90 |
|
---|
91 | void TextDialog::queryBox(const char* title, std::string description) {
|
---|
92 | registerQuery(new BoxTextQuery(title,description));
|
---|
93 | }
|
---|
94 |
|
---|
95 | void TextDialog::queryElement(const char* title, std::string description){
|
---|
96 | registerQuery(new ElementTextQuery(title,description));
|
---|
97 | }
|
---|
98 |
|
---|
99 | void TextDialog::queryElements(const char* title, std::string description){
|
---|
100 | registerQuery(new ElementsTextQuery(title,description));
|
---|
101 | }
|
---|
102 |
|
---|
103 | void TextDialog::queryFile(const char* title, std::string description){
|
---|
104 | registerQuery(new FileTextQuery(title,description));
|
---|
105 | }
|
---|
106 |
|
---|
107 | /************************** Query Infrastructure ************************/
|
---|
108 | /* ---> shifted to folder Query */
|
---|
109 | /************************************************************************/
|
---|
110 |
|
---|