documentation
This commit is contained in:
parent
8d5385f99e
commit
96751b6945
7 changed files with 145 additions and 126 deletions
|
@ -71,24 +71,24 @@ calendarExamCourse *calendarExam::lineToCourse(QString line)
|
|||
return NULL;
|
||||
|
||||
|
||||
serial = templinearray[calendarExamCourse::ExamScheme::SERIAL].toInt();
|
||||
name = templinearray[calendarExamCourse::ExamScheme::NAME];
|
||||
serial = templinearray[calendarExamCourse::CourseScheme::SERIAL].toInt();
|
||||
name = templinearray[calendarExamCourse::CourseScheme::NAME];
|
||||
|
||||
lecturer = templinearray[calendarExamCourse::ExamScheme::LECTURER];
|
||||
lecturer = templinearray[calendarExamCourse::CourseScheme::LECTURER];
|
||||
if (lecturer.isEmpty())
|
||||
lecturer = LECTURER_DEFAULT_STRING;
|
||||
|
||||
field = templinearray[calendarExamCourse::ExamScheme::FIELD];
|
||||
type = templinearray[calendarExamCourse::ExamScheme::TYPE];
|
||||
field = templinearray[calendarExamCourse::CourseScheme::FIELD];
|
||||
type = templinearray[calendarExamCourse::CourseScheme::TYPE];
|
||||
|
||||
firstDate = templinearray[calendarExamCourse::ExamScheme::FIRST_DATE];
|
||||
firstDate = templinearray[calendarExamCourse::CourseScheme::FIRST_DATE];
|
||||
if (firstDate.isEmpty())
|
||||
return NULL; //can't set a default date to an exam. must be an error
|
||||
|
||||
firstHourbegin = templinearray[calendarExamCourse::ExamScheme::FIRST_HOUR_BEGIN];
|
||||
firstHourbegin = templinearray[calendarExamCourse::CourseScheme::FIRST_HOUR_BEGIN];
|
||||
if (firstHourbegin.isEmpty())
|
||||
firstHourbegin = HOUR_DEFAULT_STRING;
|
||||
secondDate = templinearray[calendarExamCourse::ExamScheme::SECOND_DATE];
|
||||
secondDate = templinearray[calendarExamCourse::CourseScheme::SECOND_DATE];
|
||||
if (secondDate.isEmpty())
|
||||
{
|
||||
secondDate = SECOND_DATE_DEFAULT_STRING;
|
||||
|
@ -96,7 +96,7 @@ calendarExamCourse *calendarExam::lineToCourse(QString line)
|
|||
}
|
||||
else
|
||||
{
|
||||
secondHourbegin = templinearray[calendarExamCourse::ExamScheme::SECOND_HOUR_BEGIN];
|
||||
secondHourbegin = templinearray[calendarExamCourse::CourseScheme::SECOND_HOUR_BEGIN];
|
||||
if (secondHourbegin.isEmpty())
|
||||
secondHourbegin = HOUR_DEFAULT_STRING;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* @brief The calendarExamCourse class
|
||||
*
|
||||
* This class holds each exam course
|
||||
* the course scheme can be found below, inside the enum ExamScheme
|
||||
* the course scheme can be found below, inside the enum CourseScheme
|
||||
*
|
||||
* The class's constructor gets the data and manipulate it into an object
|
||||
* with its relevant information.
|
||||
|
@ -29,7 +29,7 @@ class calendarExamCourse : public Course
|
|||
|
||||
public:
|
||||
|
||||
enum ExamScheme
|
||||
enum CourseScheme
|
||||
{
|
||||
SERIAL,
|
||||
NAME,
|
||||
|
|
|
@ -15,6 +15,7 @@ gradeCourse::~gradeCourse()
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
double gradeCourse::getGrade() const
|
||||
{
|
||||
double noGrade = NO_GRADE_YET;
|
||||
|
|
|
@ -1,18 +1,25 @@
|
|||
#ifndef GRADE_COURSE_H
|
||||
#define GRADE_COURSE_H
|
||||
|
||||
/* This Code Made By Sagi Dayan
|
||||
* SagiDayan@gmail.com
|
||||
*
|
||||
* Minor changes has been made by Liran Ben Gida
|
||||
* LiranBG@gmail.com
|
||||
*/
|
||||
#include "../course.h"
|
||||
|
||||
#define COURSE_FIELDS 10
|
||||
#define NO_GRADE_YET 101;
|
||||
|
||||
|
||||
/**
|
||||
* @brief The gradeCourse class
|
||||
*
|
||||
* This class holds a list of course in GPA
|
||||
* the course scheme can be found below, inside the enum CourseScheme
|
||||
*
|
||||
* The class's constructor gets the data and manipulate it into an object
|
||||
* with its relevant information.
|
||||
*
|
||||
* Made By:
|
||||
* Sagi Dayan, SagiDayan@gmail.com
|
||||
* Liran Ben Gida, LiranBG@gmail.com
|
||||
* On 31/8/2014
|
||||
*/
|
||||
class gradeCourse : public Course {
|
||||
|
||||
public:
|
||||
|
|
|
@ -13,6 +13,17 @@
|
|||
|
||||
#include <QList>
|
||||
|
||||
/**
|
||||
* @brief The GradePage class
|
||||
*
|
||||
* This class generating html string to a list of gradeCourse
|
||||
* Each item in a list is a course with its information (grade, points, name, serial and etc)
|
||||
*
|
||||
* Made By:
|
||||
* Sagi Dayan, SagiDayan@gmail.com
|
||||
* Liran Ben Gida, LiranBG@gmail.com
|
||||
* On 31/8/2014
|
||||
*/
|
||||
class GradePage : public Page
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in a new issue