2014-09-08 15:54:52 +00:00
|
|
|
#ifndef CALENDARMANAGER_H
|
|
|
|
#define CALENDARMANAGER_H
|
|
|
|
|
2014-10-08 04:14:50 +00:00
|
|
|
#include "./src/jceData/Calendar/coursesSchedule/calendarPage.h"
|
|
|
|
#include "./src/jceData/Calendar/coursesSchedule/calendarSchedule.h"
|
|
|
|
#include "./src/jceData/Calendar/coursesSchedule/calendarDialog.h"
|
2014-09-08 15:54:52 +00:00
|
|
|
#include "./src/jceData/CSV/csv_exporter.h"
|
2014-10-08 04:14:50 +00:00
|
|
|
|
|
|
|
#include "./src/jceData/Calendar/Exams/calendarExam.h"
|
|
|
|
#include "./src/jceData/Calendar/Exams/examDialog.h"
|
2014-09-22 22:17:05 +00:00
|
|
|
|
|
|
|
#include <QObject>
|
2014-10-08 04:14:50 +00:00
|
|
|
#include <QWidget>
|
2014-09-22 22:17:05 +00:00
|
|
|
#include <QGridLayout>
|
2014-09-08 15:54:52 +00:00
|
|
|
#include <QMessageBox>
|
|
|
|
|
2014-10-08 04:14:50 +00:00
|
|
|
class CalendarManager : public QWidget
|
2014-09-08 15:54:52 +00:00
|
|
|
{
|
2014-09-22 22:17:05 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2014-09-08 15:54:52 +00:00
|
|
|
public:
|
2014-10-08 04:14:50 +00:00
|
|
|
CalendarManager(QWidget *parent = 0, QGridLayout *ptr = 0);
|
2014-09-08 15:54:52 +00:00
|
|
|
~CalendarManager()
|
|
|
|
{
|
|
|
|
delete caliSchedPtr;
|
2014-09-11 12:48:23 +00:00
|
|
|
delete caliDialog;
|
2014-09-08 15:54:52 +00:00
|
|
|
}
|
2014-09-17 02:47:12 +00:00
|
|
|
void exportCalendarCSV();
|
2014-09-17 01:08:38 +00:00
|
|
|
void setCalendar(QString html);
|
2014-10-08 04:14:50 +00:00
|
|
|
void setExamsSchedule(QString html);
|
2014-10-12 02:52:07 +00:00
|
|
|
void showExamDialog();
|
2014-09-08 15:54:52 +00:00
|
|
|
void resetTable() { if (caliSchedPtr != NULL) caliSchedPtr->clearTableItems(); }
|
|
|
|
|
|
|
|
private:
|
2014-10-08 04:14:50 +00:00
|
|
|
calendarExam * examSchePtr;
|
|
|
|
examDialog * examDialogPtr;
|
|
|
|
|
|
|
|
|
2014-09-08 15:54:52 +00:00
|
|
|
calendarSchedule * caliSchedPtr;
|
2014-09-11 12:48:23 +00:00
|
|
|
CalendarDialog * caliDialog;
|
2014-09-09 11:40:11 +00:00
|
|
|
|
2014-09-08 15:54:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CALENDARMANAGER_H
|