[738ae1] | 1 | /*
|
---|
| 2 | * TextQuery.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: Nov 8, 2010
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef TEXTQUERY_HPP_
|
---|
| 9 | #define TEXTQUERY_HPP_
|
---|
| 10 |
|
---|
[56f73b] | 11 | // include config.h
|
---|
| 12 | #ifdef HAVE_CONFIG_H
|
---|
| 13 | #include <config.h>
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
| 16 |
|
---|
[738ae1] | 17 | #include "TextUI/TextDialog.hpp"
|
---|
| 18 |
|
---|
| 19 | class TextDialog::AtomTextQuery : public Dialog::AtomQuery {
|
---|
| 20 | public:
|
---|
[f10b0c] | 21 | AtomTextQuery(Parameter<const atom *> &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 22 | virtual ~AtomTextQuery();
|
---|
| 23 | virtual bool handle();
|
---|
| 24 | };
|
---|
| 25 |
|
---|
| 26 | class TextDialog::AtomsTextQuery : public Dialog::AtomsQuery {
|
---|
| 27 | public:
|
---|
[f10b0c] | 28 | AtomsTextQuery(Parameter<std::vector<const atom *> > &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 29 | virtual ~AtomsTextQuery();
|
---|
| 30 | virtual bool handle();
|
---|
| 31 | };
|
---|
| 32 |
|
---|
| 33 | class TextDialog::BooleanTextQuery : public Dialog::BooleanQuery {
|
---|
| 34 | public:
|
---|
[f10b0c] | 35 | BooleanTextQuery(Parameter<bool> &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 36 | virtual ~BooleanTextQuery();
|
---|
| 37 | virtual bool handle();
|
---|
| 38 | };
|
---|
| 39 |
|
---|
[7d9416] | 40 | class TextDialog::RealSpaceMatrixTextQuery : public Dialog::RealSpaceMatrixQuery {
|
---|
[738ae1] | 41 | public:
|
---|
[7d9416] | 42 | RealSpaceMatrixTextQuery(Parameter<RealSpaceMatrix> &, std::string title, std::string _description = NULL);
|
---|
| 43 | virtual ~RealSpaceMatrixTextQuery();
|
---|
[738ae1] | 44 | virtual bool handle();
|
---|
| 45 | };
|
---|
| 46 |
|
---|
| 47 | class TextDialog::DoubleTextQuery : public Dialog::DoubleQuery {
|
---|
| 48 | public:
|
---|
[f10b0c] | 49 | DoubleTextQuery(Parameter<double> &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 50 | virtual ~DoubleTextQuery();
|
---|
| 51 | virtual bool handle();
|
---|
| 52 | };
|
---|
| 53 |
|
---|
| 54 | class TextDialog::DoublesTextQuery : public Dialog::DoublesQuery {
|
---|
| 55 | public:
|
---|
[f10b0c] | 56 | DoublesTextQuery(Parameter<std::vector<double> > &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 57 | virtual ~DoublesTextQuery();
|
---|
| 58 | virtual bool handle();
|
---|
| 59 | };
|
---|
| 60 |
|
---|
| 61 | class TextDialog::ElementTextQuery : public Dialog::ElementQuery {
|
---|
| 62 | public:
|
---|
[f10b0c] | 63 | ElementTextQuery(Parameter<const element *> &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 64 | virtual ~ElementTextQuery();
|
---|
| 65 | virtual bool handle();
|
---|
| 66 | };
|
---|
| 67 |
|
---|
| 68 | class TextDialog::ElementsTextQuery : public Dialog::ElementsQuery {
|
---|
| 69 | public:
|
---|
[f10b0c] | 70 | ElementsTextQuery(Parameter<std::vector<const element *> > &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 71 | virtual ~ElementsTextQuery();
|
---|
| 72 | virtual bool handle();
|
---|
| 73 | };
|
---|
| 74 |
|
---|
| 75 | class TextDialog::EmptyTextQuery : public Dialog::EmptyQuery {
|
---|
| 76 | public:
|
---|
| 77 | EmptyTextQuery(std::string title, std::string _description = NULL);
|
---|
| 78 | virtual ~EmptyTextQuery();
|
---|
| 79 | virtual bool handle();
|
---|
| 80 | };
|
---|
| 81 |
|
---|
| 82 | class TextDialog::FileTextQuery : public Dialog::FileQuery {
|
---|
| 83 | public:
|
---|
[f10b0c] | 84 | FileTextQuery(Parameter<boost::filesystem::path> &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 85 | virtual ~FileTextQuery();
|
---|
| 86 | virtual bool handle();
|
---|
| 87 | };
|
---|
| 88 |
|
---|
| 89 | class TextDialog::IntTextQuery : public Dialog::IntQuery {
|
---|
| 90 | public:
|
---|
[f10b0c] | 91 | IntTextQuery(Parameter<int> &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 92 | virtual ~IntTextQuery();
|
---|
| 93 | virtual bool handle();
|
---|
| 94 | };
|
---|
| 95 |
|
---|
| 96 | class TextDialog::IntsTextQuery : public Dialog::IntsQuery {
|
---|
| 97 | public:
|
---|
[f10b0c] | 98 | IntsTextQuery(Parameter<std::vector<int> > &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 99 | virtual ~IntsTextQuery();
|
---|
| 100 | virtual bool handle();
|
---|
| 101 | };
|
---|
| 102 |
|
---|
| 103 | class TextDialog::MoleculeTextQuery : public Dialog::MoleculeQuery {
|
---|
| 104 | public:
|
---|
[f10b0c] | 105 | MoleculeTextQuery(Parameter<const molecule *> &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 106 | virtual ~MoleculeTextQuery();
|
---|
| 107 | virtual bool handle();
|
---|
| 108 | };
|
---|
| 109 |
|
---|
| 110 | class TextDialog::MoleculesTextQuery : public Dialog::MoleculesQuery {
|
---|
| 111 | public:
|
---|
[f10b0c] | 112 | MoleculesTextQuery(Parameter<std::vector<const molecule *> > &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 113 | virtual ~MoleculesTextQuery();
|
---|
| 114 | virtual bool handle();
|
---|
| 115 | };
|
---|
| 116 |
|
---|
| 117 | class TextDialog::StringTextQuery : public Dialog::StringQuery {
|
---|
| 118 | public:
|
---|
[f10b0c] | 119 | StringTextQuery(Parameter<std::string> &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 120 | virtual ~StringTextQuery();
|
---|
| 121 | virtual bool handle();
|
---|
| 122 | };
|
---|
| 123 |
|
---|
| 124 | class TextDialog::StringsTextQuery : public Dialog::StringsQuery {
|
---|
| 125 | public:
|
---|
[f10b0c] | 126 | StringsTextQuery(Parameter<std::vector<std::string> > &, std::string title, std::string _description = NULL);
|
---|
[738ae1] | 127 | virtual ~StringsTextQuery();
|
---|
| 128 | virtual bool handle();
|
---|
| 129 | };
|
---|
| 130 |
|
---|
[838cd0] | 131 | class TextDialog::UnsignedIntTextQuery : public Dialog::UnsignedIntQuery {
|
---|
| 132 | public:
|
---|
[f10b0c] | 133 | UnsignedIntTextQuery(Parameter<unsigned int> &, std::string title, std::string _description = NULL);
|
---|
[838cd0] | 134 | virtual ~UnsignedIntTextQuery();
|
---|
| 135 | virtual bool handle();
|
---|
| 136 | };
|
---|
| 137 |
|
---|
[12948c] | 138 | class TextDialog::UnsignedIntsTextQuery : public Dialog::UnsignedIntsQuery {
|
---|
| 139 | public:
|
---|
[f10b0c] | 140 | UnsignedIntsTextQuery(Parameter<std::vector<unsigned int> > &, std::string title, std::string _description = NULL);
|
---|
[12948c] | 141 | virtual ~UnsignedIntsTextQuery();
|
---|
| 142 | virtual bool handle();
|
---|
| 143 | };
|
---|
| 144 |
|
---|
[738ae1] | 145 | class TextDialog::VectorTextQuery : public Dialog::VectorQuery {
|
---|
| 146 | public:
|
---|
[f10b0c] | 147 | VectorTextQuery(Parameter<Vector> &, std::string title,bool _check, std::string _description = NULL);
|
---|
[738ae1] | 148 | virtual ~VectorTextQuery();
|
---|
| 149 | virtual bool handle();
|
---|
| 150 | };
|
---|
| 151 |
|
---|
| 152 | class TextDialog::VectorsTextQuery : public Dialog::VectorsQuery {
|
---|
| 153 | public:
|
---|
[f10b0c] | 154 | VectorsTextQuery(Parameter<std::vector<Vector> > &, std::string title,bool _check, std::string _description = NULL);
|
---|
[738ae1] | 155 | virtual ~VectorsTextQuery();
|
---|
| 156 | virtual bool handle();
|
---|
| 157 | };
|
---|
| 158 |
|
---|
[0275ad] | 159 | class TextDialog::RandomNumberDistribution_ParametersTextQuery : public Dialog::RandomNumberDistribution_ParametersQuery {
|
---|
| 160 | public:
|
---|
[f10b0c] | 161 | RandomNumberDistribution_ParametersTextQuery(Parameter<RandomNumberDistribution_Parameters> &, std::string title, std::string _description = NULL);
|
---|
[0275ad] | 162 | virtual ~RandomNumberDistribution_ParametersTextQuery();
|
---|
| 163 | virtual bool handle();
|
---|
| 164 | };
|
---|
| 165 |
|
---|
[738ae1] | 166 | #endif /* TEXTQUERY_HPP_ */
|
---|