Ejemplo n.º 1
0
 void operator() (KEduVocExpression& x)
   {
      if (lesson == 0 || lesson == x.getLesson() ) {
        x.setGrade(index, KV_NORM_GRADE, false);
        x.setGrade(index, KV_NORM_GRADE, true);
        x.setQueryCount (index, 0, true);
        x.setQueryCount (index, 0, false);
        x.setBadCount (index, 0, true);
        x.setBadCount (index, 0, false);
        x.setQueryDate (index, 0, true);
        x.setQueryDate (index, 0, false);
      }
   }
Ejemplo n.º 2
0
 void operator() (KEduVocExpression& x)
   {
      for (int i = 0; i <= x.numTranslations(); i++) {
        if (lesson == 0 || lesson == x.getLesson() ) {
           x.setGrade(i, KV_NORM_GRADE, false);
           x.setGrade(i, KV_NORM_GRADE, true);
           x.setQueryCount (i, 0, true);
           x.setQueryCount (i, 0, false);
           x.setBadCount (i, 0, true);
           x.setBadCount (i, 0, false);
           x.setQueryDate (i, 0, true);
           x.setQueryDate (i, 0, false);
        }
      }
   }