Changeset b787af for molecuilder/src
- Timestamp:
- Mar 25, 2010, 1:01:35 PM (15 years ago)
- Children:
- cbc639
- Parents:
- eb129c
- Location:
- molecuilder/src/UIElements
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/UIElements/Dialog.cpp
reb129c rb787af 135 135 136 136 // Element Queries 137 Dialog::ElementQuery::ElementQuery(std::string title, element **_target) :137 Dialog::ElementQuery::ElementQuery(std::string title, const element **_target) : 138 138 Query(title), 139 t arget(_target),140 t mp(0)139 tmp(0), 140 target(_target) 141 141 {} 142 142 -
molecuilder/src/UIElements/Dialog.hpp
reb129c rb787af 28 28 virtual void queryMolecule(const char*,molecule**,MoleculeListClass*)=0; 29 29 virtual void queryVector(const char*,Vector *,const double *const,bool)=0; 30 virtual void queryElement(const char*, element **)=0;30 virtual void queryElement(const char*,const element **)=0; 31 31 32 32 virtual bool display(); … … 123 123 class ElementQuery : public Query { 124 124 public: 125 ElementQuery(std::string title, element**_target);125 ElementQuery(std::string title, const element**_target); 126 126 virtual ~ElementQuery(); 127 127 virtual bool handle()=0; 128 128 virtual void setResult(); 129 129 protected: 130 element *tmp;130 const element *tmp; 131 131 private: 132 element **target;132 const element **target; 133 133 }; 134 134 -
molecuilder/src/UIElements/TextDialog.cpp
reb129c rb787af 49 49 } 50 50 51 void TextDialog::queryElement(const char* title, element **target){51 void TextDialog::queryElement(const char* title, const element **target){ 52 52 registerQuery(new ElementTextQuery(title,target)); 53 53 } … … 125 125 126 126 127 TextDialog::ElementTextQuery::ElementTextQuery(std::string title, element **target) :127 TextDialog::ElementTextQuery::ElementTextQuery(std::string title, const element **target) : 128 128 Dialog::ElementQuery(title,target) 129 129 {} … … 136 136 Log() << Verbose(0) << getTitle(); 137 137 cin >> Z; 138 tmp = World::get ()->getPeriode()->FindElement(Z);138 tmp = World::getInstance().getPeriode()->FindElement(Z); 139 139 return tmp; 140 140 } -
molecuilder/src/UIElements/TextDialog.hpp
reb129c rb787af 24 24 virtual void queryMolecule(const char*,molecule**,MoleculeListClass*); 25 25 virtual void queryVector(const char*,Vector *,const double * const,bool); 26 virtual void queryElement(const char*, element **);26 virtual void queryElement(const char*,const element **); 27 27 28 28 protected: … … 65 65 class ElementTextQuery : public Dialog::ElementQuery { 66 66 public: 67 ElementTextQuery(std::string title, element **_target);67 ElementTextQuery(std::string title, const element **_target); 68 68 virtual ~ElementTextQuery(); 69 69 virtual bool handle();
Note:
See TracChangeset
for help on using the changeset viewer.