| 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 |  | 
|---|
| 11 | // include config.h | 
|---|
| 12 | #ifdef HAVE_CONFIG_H | 
|---|
| 13 | #include <config.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 |  | 
|---|
| 17 | #include "TextUI/TextDialog.hpp" | 
|---|
| 18 |  | 
|---|
| 19 | class TextDialog::AtomTextQuery : public Dialog::AtomQuery { | 
|---|
| 20 | public: | 
|---|
| 21 | AtomTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 22 | virtual ~AtomTextQuery(); | 
|---|
| 23 | virtual bool handle(); | 
|---|
| 24 | }; | 
|---|
| 25 |  | 
|---|
| 26 | class TextDialog::AtomsTextQuery : public Dialog::AtomsQuery { | 
|---|
| 27 | public: | 
|---|
| 28 | AtomsTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 29 | virtual ~AtomsTextQuery(); | 
|---|
| 30 | virtual bool handle(); | 
|---|
| 31 | }; | 
|---|
| 32 |  | 
|---|
| 33 | class TextDialog::BooleanTextQuery : public Dialog::BooleanQuery { | 
|---|
| 34 | public: | 
|---|
| 35 | BooleanTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 36 | virtual ~BooleanTextQuery(); | 
|---|
| 37 | virtual bool handle(); | 
|---|
| 38 | }; | 
|---|
| 39 |  | 
|---|
| 40 | class TextDialog::BoxTextQuery : public Dialog::BoxQuery { | 
|---|
| 41 | public: | 
|---|
| 42 | BoxTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 43 | virtual ~BoxTextQuery(); | 
|---|
| 44 | virtual bool handle(); | 
|---|
| 45 | }; | 
|---|
| 46 |  | 
|---|
| 47 | class TextDialog::DoubleTextQuery : public Dialog::DoubleQuery { | 
|---|
| 48 | public: | 
|---|
| 49 | DoubleTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 50 | virtual ~DoubleTextQuery(); | 
|---|
| 51 | virtual bool handle(); | 
|---|
| 52 | }; | 
|---|
| 53 |  | 
|---|
| 54 | class TextDialog::DoublesTextQuery : public Dialog::DoublesQuery { | 
|---|
| 55 | public: | 
|---|
| 56 | DoublesTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 57 | virtual ~DoublesTextQuery(); | 
|---|
| 58 | virtual bool handle(); | 
|---|
| 59 | }; | 
|---|
| 60 |  | 
|---|
| 61 | class TextDialog::ElementTextQuery : public Dialog::ElementQuery { | 
|---|
| 62 | public: | 
|---|
| 63 | ElementTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 64 | virtual ~ElementTextQuery(); | 
|---|
| 65 | virtual bool handle(); | 
|---|
| 66 | }; | 
|---|
| 67 |  | 
|---|
| 68 | class TextDialog::ElementsTextQuery : public Dialog::ElementsQuery { | 
|---|
| 69 | public: | 
|---|
| 70 | ElementsTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 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: | 
|---|
| 84 | FileTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 85 | virtual ~FileTextQuery(); | 
|---|
| 86 | virtual bool handle(); | 
|---|
| 87 | }; | 
|---|
| 88 |  | 
|---|
| 89 | class TextDialog::IntTextQuery : public Dialog::IntQuery { | 
|---|
| 90 | public: | 
|---|
| 91 | IntTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 92 | virtual ~IntTextQuery(); | 
|---|
| 93 | virtual bool handle(); | 
|---|
| 94 | }; | 
|---|
| 95 |  | 
|---|
| 96 | class TextDialog::IntsTextQuery : public Dialog::IntsQuery { | 
|---|
| 97 | public: | 
|---|
| 98 | IntsTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 99 | virtual ~IntsTextQuery(); | 
|---|
| 100 | virtual bool handle(); | 
|---|
| 101 | }; | 
|---|
| 102 |  | 
|---|
| 103 | class TextDialog::MoleculeTextQuery : public Dialog::MoleculeQuery { | 
|---|
| 104 | public: | 
|---|
| 105 | MoleculeTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 106 | virtual ~MoleculeTextQuery(); | 
|---|
| 107 | virtual bool handle(); | 
|---|
| 108 | }; | 
|---|
| 109 |  | 
|---|
| 110 | class TextDialog::MoleculesTextQuery : public Dialog::MoleculesQuery { | 
|---|
| 111 | public: | 
|---|
| 112 | MoleculesTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 113 | virtual ~MoleculesTextQuery(); | 
|---|
| 114 | virtual bool handle(); | 
|---|
| 115 | }; | 
|---|
| 116 |  | 
|---|
| 117 | class TextDialog::StringTextQuery : public Dialog::StringQuery { | 
|---|
| 118 | public: | 
|---|
| 119 | StringTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 120 | virtual ~StringTextQuery(); | 
|---|
| 121 | virtual bool handle(); | 
|---|
| 122 | }; | 
|---|
| 123 |  | 
|---|
| 124 | class TextDialog::StringsTextQuery : public Dialog::StringsQuery { | 
|---|
| 125 | public: | 
|---|
| 126 | StringsTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 127 | virtual ~StringsTextQuery(); | 
|---|
| 128 | virtual bool handle(); | 
|---|
| 129 | }; | 
|---|
| 130 |  | 
|---|
| 131 | class TextDialog::VectorTextQuery : public Dialog::VectorQuery { | 
|---|
| 132 | public: | 
|---|
| 133 | VectorTextQuery(std::string title,bool _check, std::string _description = NULL); | 
|---|
| 134 | virtual ~VectorTextQuery(); | 
|---|
| 135 | virtual bool handle(); | 
|---|
| 136 | }; | 
|---|
| 137 |  | 
|---|
| 138 | class TextDialog::VectorsTextQuery : public Dialog::VectorsQuery { | 
|---|
| 139 | public: | 
|---|
| 140 | VectorsTextQuery(std::string title,bool _check, std::string _description = NULL); | 
|---|
| 141 | virtual ~VectorsTextQuery(); | 
|---|
| 142 | virtual bool handle(); | 
|---|
| 143 | }; | 
|---|
| 144 |  | 
|---|
| 145 | class TextDialog::RandomNumberDistribution_ParametersTextQuery : public Dialog::RandomNumberDistribution_ParametersQuery { | 
|---|
| 146 | public: | 
|---|
| 147 | RandomNumberDistribution_ParametersTextQuery(std::string title, std::string _description = NULL); | 
|---|
| 148 | virtual ~RandomNumberDistribution_ParametersTextQuery(); | 
|---|
| 149 | virtual bool handle(); | 
|---|
| 150 | }; | 
|---|
| 151 |  | 
|---|
| 152 | #endif /* TEXTQUERY_HPP_ */ | 
|---|