Back to index

fet  5.18.0
Public Member Functions | Static Public Member Functions
StartActivityPlanning Class Reference

#include <activityplanningform.h>

List of all members.

Public Member Functions

 StartActivityPlanning ()
 ~StartActivityPlanning ()

Static Public Member Functions

static void startActivityPlanning (QWidget *parent)

Detailed Description

Definition at line 45 of file activityplanningform.h.


Constructor & Destructor Documentation

Definition at line 132 of file activityplanningform.cpp.

{
}

Definition at line 136 of file activityplanningform.cpp.

{
}

Member Function Documentation

void StartActivityPlanning::startActivityPlanning ( QWidget *  parent) [static]

Definition at line 140 of file activityplanningform.cpp.

                                                                {
       assert(gt.rules.initialized);
       teachersTargetNumberOfHours.clear();
       
       allStudentsNames.clear();
       studentsDuplicates.clear();
       yearORgroupORsubgroup.clear();
       foreach(StudentsYear* sty, gt.rules.yearsList){
              if(allStudentsNames.contains(sty->name)){
                     studentsDuplicates<<true;
              } else {
                     studentsDuplicates<<false;
              }
              allStudentsNames<<sty->name;
              yearORgroupORsubgroup<<IS_YEAR;
              foreach(StudentsGroup* stg, sty->groupsList){
                     if(allStudentsNames.contains(stg->name)){
                            studentsDuplicates<<true;
                     } else {
                            studentsDuplicates<<false;
                     }
                     allStudentsNames<<stg->name;
                     yearORgroupORsubgroup<<IS_GROUP;
                     foreach(StudentsSubgroup* sts, stg->subgroupsList){
                            if(allStudentsNames.contains(sts->name)){
                                   studentsDuplicates<<true;
                            } else {
                                   studentsDuplicates<<false;
                            }
                            allStudentsNames<<sts->name;
                            yearORgroupORsubgroup<<IS_SUBGROUP;
                     }
              }
       }
       
       allTeachersNames.clear();                        // just needed, because i don't need to care about correct iTeacherList if i do it this way.
       foreach(Teacher* t, gt.rules.teachersList){             //  So i don't need gt.rules.computeInternalStructure();
              allTeachersNames<<t->name;
              teachersTargetNumberOfHours<<0;
       }

       allSubjectsNames.clear();                        // just done, because i always want to do it the same way + it is faster
       foreach(Subject* s, gt.rules.subjectsList){             // Also don't display empty subjects is easier
              allSubjectsNames<<s->name;
       }
       
       ActivityPlanningForm apfd(parent);
       setParentAndOtherThings(&apfd, parent);
       apfd.exec();
       
       allStudentsNames.clear();
       allTeachersNames.clear();
       allSubjectsNames.clear();
       
       studentsDuplicates.clear();
       yearORgroupORsubgroup.clear();

       teachersTotalNumberOfHours.clear();
       teachersTotalNumberOfHours2.clear();
       studentsTotalNumberOfHours.clear();
       studentsTotalNumberOfHours2.clear();
       subjectsTotalNumberOfHours.clear();
       subjectsTotalNumberOfHours4.clear();
}

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: