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/Qt4/Query/QtQueryList.hpp

    ra443e1 rcb5231  
    105105class QtQueryList<Vector> : public QtQueryListUntyped {
    106106public:
    107   QtQueryList(Parameter<std::vector<Vector> > &parentParam, QBoxLayout *parent, Dialog *_dialog, std::vector<Vector> &_temp) : QtQueryListUntyped(parent, _dialog), tempRef(_temp)
     107  QtQueryList(Parameter<std::vector<Vector> > &parentParam, QBoxLayout *parent, Dialog *_dialog, std::vector<std::string> &_temp) : QtQueryListUntyped(parent, _dialog), tempRef(_temp)
    108108  {
    109109    // do we have an STLVectorValidator?
     
    137137    // add item to both
    138138    addElementToListWidget(subParam->getAsString());
    139     tempRef.push_back(subParam->get());
     139    tempRef.push_back(subParam->getAsString());
    140140    onUpdate();
    141141  }
     
    151151  }
    152152protected:
    153   std::vector<Vector> &tempRef;
     153  std::vector<std::string> &tempRef;
    154154  Parameter<Vector> *subParam;
    155155};
Note: See TracChangeset for help on using the changeset viewer.