Changeset 83afe0 for molecuilder/src/UIElements/Dialog.hpp
- Timestamp:
- May 8, 2010, 6:30:53 PM (15 years ago)
- Children:
- 7ac765
- Parents:
- 401b97
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/UIElements/Dialog.hpp
r401b97 r83afe0 23 23 virtual ~Dialog(); 24 24 25 virtual void queryInt(const char *, int * )=0;26 virtual void queryDouble(const char*,double * )=0;27 virtual void queryString(const char*, std::string * )=0;28 virtual void queryMolecule(const char*,molecule**,MoleculeListClass* )=0;29 virtual void queryVector(const char*,Vector *,const double *const,bool )=0;30 virtual void queryElement(const char*,const element ** )=0;25 virtual void queryInt(const char *, int *, std::string = "")=0; 26 virtual void queryDouble(const char*,double *, std::string = "")=0; 27 virtual void queryString(const char*, std::string *, std::string = "")=0; 28 virtual void queryMolecule(const char*,molecule**,MoleculeListClass*, std::string = "")=0; 29 virtual void queryVector(const char*,Vector *,const double *const,bool, std::string = "")=0; 30 virtual void queryElement(const char*,const element **, std::string = "")=0; 31 31 32 32 virtual bool display(); … … 46 46 class Query { 47 47 public: 48 Query(std::string _title );48 Query(std::string _title, std::string _description = ""); 49 49 virtual ~Query(); 50 50 virtual bool handle()=0; … … 52 52 protected: 53 53 const std::string getTitle() const; 54 const std::string getDescription() const; 54 55 private: 55 std::string title; 56 std::string title; //!< short title of the query 57 std::string description; //!< longer description for tooltips or for help 56 58 }; 57 59 … … 59 61 class IntQuery : public Query { 60 62 public: 61 IntQuery(std::string title,int *_target );63 IntQuery(std::string title,int *_target, std::string _description = ""); 62 64 virtual ~IntQuery(); 63 65 virtual bool handle()=0; … … 71 73 class DoubleQuery : public Query { 72 74 public: 73 DoubleQuery(std::string title,double *_target );75 DoubleQuery(std::string title,double *_target, std::string _description = ""); 74 76 virtual ~DoubleQuery(); 75 77 virtual bool handle()=0; … … 83 85 class StringQuery : public Query { 84 86 public: 85 StringQuery(std::string title,std::string *_target );87 StringQuery(std::string title,std::string *_target, std::string _description = ""); 86 88 virtual ~StringQuery(); 87 89 virtual bool handle()=0; … … 96 98 class MoleculeQuery : public Query { 97 99 public: 98 MoleculeQuery(std::string title, molecule **_target, MoleculeListClass *_molecules );100 MoleculeQuery(std::string title, molecule **_target, MoleculeListClass *_molecules, std::string _description = ""); 99 101 virtual ~MoleculeQuery(); 100 102 virtual bool handle()=0; … … 109 111 class VectorQuery : public Query { 110 112 public: 111 VectorQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check );113 VectorQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check, std::string _description = ""); 112 114 virtual ~VectorQuery(); 113 115 virtual bool handle()=0; … … 123 125 class ElementQuery : public Query { 124 126 public: 125 ElementQuery(std::string title, const element**_target );127 ElementQuery(std::string title, const element**_target, std::string _description = ""); 126 128 virtual ~ElementQuery(); 127 129 virtual bool handle()=0; … … 140 142 }; 141 143 144 142 145 #endif /* DIALOG_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.