jce-manager/main/CourseTab/coursestablemanager.h

49 lines
1.1 KiB
C
Raw Normal View History

2014-09-08 15:54:52 +00:00
#ifndef COURSESTABLEMANAGER_H
#define COURSESTABLEMANAGER_H
#include <QtGlobal>
2014-09-08 15:54:52 +00:00
#include <QHeaderView>
#include <QMessageBox>
#include <QTableWidget>
#include <QString>
#include <QMessageBox>
2014-10-05 11:16:01 +00:00
#include "./src/jceData/Grades/graph/gradegraph.h"
2014-09-08 15:54:52 +00:00
#include "./src/jceData/Grades/gradePage.h"
#include "./src/jceSettings/user.h"
class coursesTableManager
{
public:
coursesTableManager(QTableWidget *, user *usrPtr);
~coursesTableManager();
void insertJceCoursesIntoTable();
void setCoursesList(QString &htmlPage);
2014-09-08 15:54:52 +00:00
bool changes(QString change, int row, int col);
void addRow(const gradeCourse * courseToAdd = 0);
double getAvg();
bool showGraph();
2014-10-05 11:16:01 +00:00
2014-09-08 15:54:52 +00:00
void influnceCourseChanged(bool status);
void clearTable();
2014-10-13 02:12:00 +00:00
void revertChanges();
2014-09-08 15:54:52 +00:00
private:
2014-10-05 11:16:01 +00:00
gradegraph *graph;
2014-09-08 15:54:52 +00:00
QTableWidget *courseTBL;
GradePage *gp;
2014-10-13 02:12:00 +00:00
GradePage *gpCpy;
2014-09-08 15:54:52 +00:00
user *us;
gradeCourse * getCourseByRow(int row);
bool isCourseAlreadyInserted(double courseID);
bool isCourseInfluence(const gradeCourse *courseToCheck);
void colorTheGrade(int rowIndex);
2014-09-08 15:54:52 +00:00
};
#endif // COURSESTABLEMANAGER_H