Changeset b787af for molecuilder/src


Ignore:
Timestamp:
Mar 25, 2010, 1:01:35 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
cbc639
Parents:
eb129c
Message:

Repaired code that was broken by merge

Location:
molecuilder/src/UIElements
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/UIElements/Dialog.cpp

    reb129c rb787af  
    135135
    136136// Element Queries
    137 Dialog::ElementQuery::ElementQuery(std::string title, element **_target) :
     137Dialog::ElementQuery::ElementQuery(std::string title, const element **_target) :
    138138  Query(title),
    139   target(_target),
    140   tmp(0)
     139  tmp(0),
     140  target(_target)
    141141  {}
    142142
  • molecuilder/src/UIElements/Dialog.hpp

    reb129c rb787af  
    2828  virtual void queryMolecule(const char*,molecule**,MoleculeListClass*)=0;
    2929  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;
    3131
    3232  virtual bool display();
     
    123123  class ElementQuery : public Query {
    124124  public:
    125     ElementQuery(std::string title, element**_target);
     125    ElementQuery(std::string title, const element**_target);
    126126    virtual ~ElementQuery();
    127127    virtual bool handle()=0;
    128128    virtual void setResult();
    129129  protected:
    130     element *tmp;
     130    const element *tmp;
    131131  private:
    132     element **target;
     132    const element **target;
    133133  };
    134134
  • molecuilder/src/UIElements/TextDialog.cpp

    reb129c rb787af  
    4949}
    5050
    51 void TextDialog::queryElement(const char* title, element **target){
     51void TextDialog::queryElement(const char* title, const element **target){
    5252  registerQuery(new ElementTextQuery(title,target));
    5353}
     
    125125
    126126
    127 TextDialog::ElementTextQuery::ElementTextQuery(std::string title, element **target) :
     127TextDialog::ElementTextQuery::ElementTextQuery(std::string title, const element **target) :
    128128    Dialog::ElementQuery(title,target)
    129129{}
     
    136136  Log() << Verbose(0) << getTitle();
    137137  cin >> Z;
    138   tmp = World::get()->getPeriode()->FindElement(Z);
     138  tmp = World::getInstance().getPeriode()->FindElement(Z);
    139139  return tmp;
    140140}
  • molecuilder/src/UIElements/TextDialog.hpp

    reb129c rb787af  
    2424  virtual void queryMolecule(const char*,molecule**,MoleculeListClass*);
    2525  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 **);
    2727
    2828protected:
     
    6565  class ElementTextQuery : public Dialog::ElementQuery {
    6666  public:
    67     ElementTextQuery(std::string title, element **_target);
     67    ElementTextQuery(std::string title, const element **_target);
    6868    virtual ~ElementTextQuery();
    6969    virtual bool handle();
Note: See TracChangeset for help on using the changeset viewer.