2014-09-08 15:54:52 +00:00
|
|
|
#ifndef COURSESTABLEMANAGER_H
|
|
|
|
#define COURSESTABLEMANAGER_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QDesktopWidget>
|
|
|
|
#include <QtCore/QCoreApplication>
|
|
|
|
#include <QHeaderView>
|
|
|
|
#include <QMessageBox>
|
|
|
|
#include <QTableWidget>
|
|
|
|
#include <QString>
|
|
|
|
#include <QMessageBox>
|
|
|
|
|
|
|
|
#include <list>
|
|
|
|
|
|
|
|
#include "./src/jceData/Grades/gradePage.h"
|
|
|
|
#include "./src/jceSettings/user.h"
|
|
|
|
|
|
|
|
class coursesTableManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
coursesTableManager(QTableWidget *, user *usrPtr);
|
|
|
|
~coursesTableManager();
|
|
|
|
void insertJceCoursesIntoTable();
|
2014-09-17 01:08:38 +00:00
|
|
|
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();
|
|
|
|
|
|
|
|
void influnceCourseChanged(bool status);
|
|
|
|
void clearTable();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QTableWidget *courseTBL;
|
|
|
|
GradePage *gp;
|
|
|
|
user *us;
|
|
|
|
|
|
|
|
gradeCourse * getCourseByRow(int row);
|
|
|
|
bool isCourseAlreadyInserted(double courseID);
|
|
|
|
bool isCourseInfluence(const gradeCourse *courseToCheck);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // COURSESTABLEMANAGER_H
|