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