Back to index

fet  5.18.0
Functions | Variables
timetablegenerateform.cpp File Reference
#include "generate.h"
#include "timetablegenerateform.h"
#include "timetable_defs.h"
#include "timetable.h"
#include "fet.h"
#include "timetableexport.h"
#include <QString>
#include <QPlainTextEdit>
#include <QDateTime>
#include <QLocale>
#include <iostream>
#include <fstream>
#include <QMessageBox>
#include <QMutex>
#include <QDir>
#include "longtextmessagebox.h"
#include <QSemaphore>

Go to the source code of this file.

Functions

QString getActivityDetailedDescription (Rules &r, int id)

Variables

QMutex mutex
static GenerateThread generateThread
QSemaphore semaphorePlacedActivity
QSemaphore finishedSemaphore
bool simulation_running
bool students_schedule_ready
bool teachers_schedule_ready
bool rooms_schedule_ready
Solution best_solution
Solution highestStageSolution
QString conflictsStringTitle
QString conflictsString
Generate gen
QString initialOrderOfActivities
int initialOrderOfActivitiesIndices [MAX_ACTIVITIES]
int maxActivitiesPlaced
QDateTime generationStartDateTime
QDateTime generationHighestStageDateTime
const QString settingsName = QString("TimetableGenerateUnsuccessfulForm")

Function Documentation

QString getActivityDetailedDescription ( Rules r,
int  id 
)

Definition at line 85 of file timeconstraint.cpp.

                                                        {
       QString s;

       int ai;
       for(ai=0; ai<r.activitiesList.size(); ai++)
              if(r.activitiesList[ai]->id==id)
                     break;
       
       if(ai==r.activitiesList.size()){
              s+=QCoreApplication::translate("Activity", "Invalid (inexistent) id for activity");
              return s;
       }
       assert(ai<r.activitiesList.size());
       
       Activity* act=r.activitiesList.at(ai);
       
       if(act->activityTagsNames.count()>0){
              s+=QCoreApplication::translate("Activity", "T:%1, S:%2, AT:%3, St:%4", "This is an important translation for an activity's detailed description, please take care (it appears in many places in constraints)."
               "The abbreviations are: Teachers, Subject, Activity tags, Students. This variant includes activity tags").arg(act->teachersNames.join(",")).arg(act->subjectName).arg(act->activityTagsNames.join(",")).arg(act->studentsNames.join(","));
       }
       else{
              s+=QCoreApplication::translate("Activity", "T:%1, S:%2, St:%3", "This is an important translation for an activity's detailed description, please take care (it appears in many places in constraints)."
               "The abbreviations are: Teachers, Subject, Students. There are no activity tags here").arg(act->teachersNames.join(",")).arg(act->subjectName).arg(act->studentsNames.join(","));
       }
       return s;
}

Variable Documentation

Definition at line 246 of file fetmainform.cpp.

QString conflictsString

Definition at line 248 of file fetmainform.cpp.

Definition at line 249 of file fetmainform.cpp.

QSemaphore finishedSemaphore

Definition at line 53 of file timetablegenerateform.cpp.

Definition at line 69 of file timetablegenerateform.cpp.

Definition at line 47 of file timetablegenerateform.cpp.

Definition at line 177 of file generate.cpp.

Definition at line 176 of file generate.cpp.

Definition at line 83 of file generate.cpp.

Definition at line 71 of file timetablegenerateform.cpp.

Definition at line 73 of file timetablegenerateform.cpp.

Definition at line 174 of file generate.cpp.

QMutex mutex

Definition at line 45 of file timetablegenerateform.cpp.

Definition at line 244 of file fetmainform.cpp.

Definition at line 51 of file timetablegenerateform.cpp.

const QString settingsName = QString("TimetableGenerateUnsuccessfulForm")

Definition at line 82 of file timetablegenerateform.cpp.

Definition at line 238 of file fetmainform.cpp.

Definition at line 242 of file fetmainform.cpp.

Definition at line 243 of file fetmainform.cpp.