jce-manager/main/CalendarTab/CalendarManager.h

47 lines
1.2 KiB
C
Raw Permalink Normal View History

2014-09-08 15:54:52 +00:00
#ifndef CALENDARMANAGER_H
#define CALENDARMANAGER_H
2014-10-15 08:55:12 +00:00
#include "../../src/jceData/Calendar/coursesSchedule/calendarPage.h"
#include "../../src/jceData/Calendar/coursesSchedule/calendarSchedule.h"
#include "../../src/jceData/Calendar/coursesSchedule/calendarDialog.h"
#include "../../src/jceData/CSV/csv_exporter.h"
2014-10-15 08:55:12 +00:00
#include "../../src/jceData/Calendar/Exams/calendarExam.h"
#include "../../src/jceData/Calendar/Exams/examDialog.h"
#include <QObject>
#include <QWidget>
#include <QGridLayout>
2014-09-08 15:54:52 +00:00
#include <QMessageBox>
class CalendarManager : public QWidget
2014-09-08 15:54:52 +00:00
{
Q_OBJECT
2014-09-08 15:54:52 +00:00
public:
CalendarManager(QWidget *parent = 0, QGridLayout *ptr = 0);
2014-09-08 15:54:52 +00:00
~CalendarManager()
{
delete caliSchedPtr;
2014-10-24 00:20:16 +00:00
delete examSchePtr;
delete caliDialog;
2014-10-24 00:20:16 +00:00
delete examDialogPtr;
2014-09-08 15:54:52 +00:00
}
void exportCalendarCSV();
void setCalendar(QString html);
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:
calendarExam * examSchePtr;
examDialog * examDialogPtr;
2014-09-08 15:54:52 +00:00
calendarSchedule * caliSchedPtr;
CalendarDialog * caliDialog;
2014-09-08 15:54:52 +00:00
};
#endif // CALENDARMANAGER_H