Changes in src/UIElements/TextDialog.hpp [5605032:97ebf8]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextDialog.hpp
r5605032 r97ebf8 13 13 #include "UIElements/Dialog.hpp" 14 14 15 class atom; 16 class element; 17 class molecule; 18 class Vector; 19 15 20 class TextDialog : public Dialog 16 21 { … … 19 24 virtual ~TextDialog(); 20 25 21 virtual void queryInt(const char *, int *); 22 virtual void queryString(const char*, std::string *); 23 virtual void queryDouble(const char*, double*); 24 virtual void queryMolecule(const char*,molecule**,MoleculeListClass*); 25 virtual void queryVector(const char*,Vector *,const double * const,bool); 26 virtual void queryElement(const char*,const element **); 26 virtual void queryEmpty(const char *, std::string = ""); 27 virtual void queryBoolean(const char *, bool *, std::string = ""); 28 virtual void queryInt(const char *, int *, std::string = ""); 29 virtual void queryString(const char*, std::string *, std::string = ""); 30 virtual void queryDouble(const char*, double*, std::string = ""); 31 virtual void queryAtom(const char*,atom**,std::string = ""); 32 virtual void queryMolecule(const char*,molecule**,std::string = ""); 33 virtual void queryVector(const char*,Vector *,const double * const,bool, std::string = ""); 34 virtual void queryBox(const char*,double ** const, std::string = ""); 35 virtual void queryElement(const char*,const element **, std::string = ""); 27 36 28 37 protected: 29 38 // specialized stuff for text queries 39 class EmptyTextQuery : public Dialog::EmptyQuery { 40 public: 41 EmptyTextQuery(std::string title, std::string _description = NULL); 42 virtual ~EmptyTextQuery(); 43 virtual bool handle(); 44 }; 45 46 class BooleanTextQuery : public Dialog::BooleanQuery { 47 public: 48 BooleanTextQuery(std::string title, bool *_target, std::string _description = NULL); 49 virtual ~BooleanTextQuery(); 50 virtual bool handle(); 51 }; 52 30 53 class IntTextQuery : public Dialog::IntQuery { 31 54 public: 32 IntTextQuery(std::string title, int *_target );55 IntTextQuery(std::string title, int *_target, std::string _description = NULL); 33 56 virtual ~IntTextQuery(); 34 57 virtual bool handle(); … … 37 60 class DoubleTextQuery : public Dialog::DoubleQuery { 38 61 public: 39 DoubleTextQuery(std::string title, double *_target );62 DoubleTextQuery(std::string title, double *_target, std::string _description = NULL); 40 63 virtual ~DoubleTextQuery(); 41 64 virtual bool handle(); … … 44 67 class StringTextQuery : public Dialog::StringQuery { 45 68 public: 46 StringTextQuery(std::string title, std::string *_target );69 StringTextQuery(std::string title, std::string *_target, std::string _description = NULL); 47 70 virtual ~StringTextQuery(); 71 virtual bool handle(); 72 }; 73 74 class AtomTextQuery : public Dialog::AtomQuery { 75 public: 76 AtomTextQuery(std::string title, atom **_target, std::string _description = NULL); 77 virtual ~AtomTextQuery(); 48 78 virtual bool handle(); 49 79 }; … … 51 81 class MoleculeTextQuery : public Dialog::MoleculeQuery { 52 82 public: 53 MoleculeTextQuery(std::string title, molecule **_target, MoleculeListClass *_molecules);83 MoleculeTextQuery(std::string title, molecule **_target, std::string _description = NULL); 54 84 virtual ~MoleculeTextQuery(); 55 85 virtual bool handle(); … … 58 88 class VectorTextQuery : public Dialog::VectorQuery { 59 89 public: 60 VectorTextQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check );90 VectorTextQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check, std::string _description = NULL); 61 91 virtual ~VectorTextQuery(); 92 virtual bool handle(); 93 }; 94 95 class BoxTextQuery : public Dialog::BoxQuery { 96 public: 97 BoxTextQuery(std::string title,double ** const _cellSize, std::string _description = NULL); 98 virtual ~BoxTextQuery(); 62 99 virtual bool handle(); 63 100 }; … … 65 102 class ElementTextQuery : public Dialog::ElementQuery { 66 103 public: 67 ElementTextQuery(std::string title, const element **_target );104 ElementTextQuery(std::string title, const element **_target, std::string _description = NULL); 68 105 virtual ~ElementTextQuery(); 69 106 virtual bool handle();
Note:
See TracChangeset
for help on using the changeset viewer.