Ignore:
Timestamp:
May 8, 2017, 1:54:50 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_goodresults, ForceAnnealing_tocheck
Children:
d7bd62
Parents:
a443e1
git-author:
Frederik Heber <heber@…> (03/30/17 21:59:00)
git-committer:
Frederik Heber <frederik.heber@…> (05/08/17 13:54:50)
Message:

Vector(s) are now stored as strings in Querys intermediately.

  • they get evaluated first after being stored in a Parameter/Value on request via get().
  • Needed to change all Vector(s)..Query's of all UIs and also the general base classes inside Dialog.
  • QtQueryList need to be specialized in order to allow a QtQueryList<Vector> to actually store a vector of strings.
  • we may use setAsString() in order to set the Parameter thankfully.
  • TESTS: All regression tests on Geometry Actions are now working.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Dialog.hpp

    ra443e1 rcb5231  
    304304  virtual ~TQuery(){}
    305305  virtual bool handle()=0;
    306   virtual bool isValid(){ return param.isValid(temp);  }
    307   virtual void setResult(){ param.set(temp);  }
     306  virtual bool isValid(){ return param.isValidAsString(temp);  }
     307  virtual void setResult(){ param.setAsString(temp);  }
    308308protected:
    309   Vector temp;
     309  std::string temp;
    310310  Parameter<Vector> &param;
    311311};
     
    318318  virtual ~TQuery(){}
    319319  virtual bool handle()=0;
    320   virtual bool isValid(){ return param.isValid(temp);  }
    321   virtual void setResult(){ param.set(temp);  }
     320  virtual bool isValid();
     321  virtual void setResult();
    322322protected:
    323   std::vector<Vector> temp;
     323  std::vector<std::string> temp;
    324324  Parameter< std::vector<Vector> > &param;
    325325};
Note: See TracChangeset for help on using the changeset viewer.