"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/engine/rules.cpp" between
fet-5.45.0.tar.bz2 and fet-5.45.1.tar.bz2

About: FET allows to automatically schedule a timetable for e.g. of a school, high-school or university.

rules.cpp  (fet-5.45.0.tar.bz2):rules.cpp  (fet-5.45.1.tar.bz2)
skipping to change at line 8100 skipping to change at line 8100
int i=searchActivityTag(activityTagName); int i=searchActivityTag(activityTagName);
assert(i>=0 && i<activityTagsList.count()); assert(i>=0 && i<activityTagsList.count());
ActivityTag* at=activityTagsList[i]; ActivityTag* at=activityTagsList[i];
if(at->printable==false){ if(at->printable==false){
at->printable=true; at->printable=true;
this->internalStructureComputed=false; this->internalStructureComputed=false;
setRulesModifiedAndOtherThings(this); setRulesModifiedAndOtherThings(this);
teachers_schedule_ready=false;
students_schedule_ready=false;
rooms_schedule_ready=false;
} }
} }
void Rules::makeActivityTagNotPrintable(const QString& activityTagName) void Rules::makeActivityTagNotPrintable(const QString& activityTagName)
{ {
int i=searchActivityTag(activityTagName); int i=searchActivityTag(activityTagName);
assert(i>=0 && i<activityTagsList.count()); assert(i>=0 && i<activityTagsList.count());
ActivityTag* at=activityTagsList[i]; ActivityTag* at=activityTagsList[i];
if(at->printable==true){ if(at->printable==true){
at->printable=false; at->printable=false;
this->internalStructureComputed=false; this->internalStructureComputed=false;
setRulesModifiedAndOtherThings(this); setRulesModifiedAndOtherThings(this);
teachers_schedule_ready=false;
students_schedule_ready=false;
rooms_schedule_ready=false;
} }
} }
TimeConstraint* Rules::readBasicCompulsoryTime(QXmlStreamReader& xmlReader, Fake String& xmlReadingLog){ TimeConstraint* Rules::readBasicCompulsoryTime(QXmlStreamReader& xmlReader, Fake String& xmlReadingLog){
assert(xmlReader.isStartElement() && xmlReader.name()=="ConstraintBasicCo mpulsoryTime"); assert(xmlReader.isStartElement() && xmlReader.name()=="ConstraintBasicCo mpulsoryTime");
ConstraintBasicCompulsoryTime* cn=new ConstraintBasicCompulsoryTime(); ConstraintBasicCompulsoryTime* cn=new ConstraintBasicCompulsoryTime();
while(xmlReader.readNextStartElement()){ while(xmlReader.readNextStartElement()){
xmlReadingLog+=" Found "+xmlReader.name().toString()+" tag\n"; xmlReadingLog+=" Found "+xmlReader.name().toString()+" tag\n";
if(xmlReader.name()=="Weight"){ if(xmlReader.name()=="Weight"){
//cn->weight=customFETStrToDouble(text); //cn->weight=customFETStrToDouble(text);
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)