Logo Search packages:      
Sourcecode: fet version File versions

void Rules::init (  ) 

Initializes the rules (empty)

Definition at line 38 of file rules.cpp.

References activitiesList, comments, daysOfTheWeek, equipmentsList, hoursOfTheDay, initialized, institutionName, nDaysPerWeek, nHoursPerDay, roomsList, spaceConstraintsList, subjectsList, subjectTagsList, teachersList, timeConstraintsList, and yearsList.

Referenced by read().

{
      this->subjectsList.setAutoDelete(true);
      this->subjectTagsList.setAutoDelete(true);
      this->yearsList.setAutoDelete(true);
      this->teachersList.setAutoDelete(true);
      this->activitiesList.setAutoDelete(true);
      this->timeConstraintsList.setAutoDelete(true);
      this->spaceConstraintsList.setAutoDelete(true);
      this->equipmentsList.setAutoDelete(true);
      this->roomsList.setAutoDelete(true);

      //defaults
      this->nHoursPerDay=12;
      this->hoursOfTheDay[0]="0";
      this->hoursOfTheDay[1]="1";
      this->hoursOfTheDay[2]="2";
      this->hoursOfTheDay[3]="3";
      this->hoursOfTheDay[4]="4";
      this->hoursOfTheDay[5]="5";
      this->hoursOfTheDay[6]="6";
      this->hoursOfTheDay[7]="7";
      this->hoursOfTheDay[8]="8";
      this->hoursOfTheDay[9]="9";
      this->hoursOfTheDay[10]="10";
      this->hoursOfTheDay[11]="11";
      this->hoursOfTheDay[12]="12";

      this->nDaysPerWeek=5;
      this->daysOfTheWeek[0] = QObject::tr("Monday");
      this->daysOfTheWeek[1] = QObject::tr("Tuesday");
      this->daysOfTheWeek[2] = QObject::tr("Wednesday");
      this->daysOfTheWeek[3] = QObject::tr("Thursday");
      this->daysOfTheWeek[4] = QObject::tr("Friday");
      
      this->institutionName=QObject::tr("Default institution");
      this->comments=QObject::tr("Default comments");

      this->initialized=true;
}


Generated by  Doxygen 1.6.0   Back to index