jce-manager/main/CalendarTab/CalendarManager.h

45 lines
1.1 KiB
C
Raw Normal View History

2014-09-08 15:54:52 +00:00
#ifndef CALENDARMANAGER_H
#define CALENDARMANAGER_H
#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"
#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;
delete caliDialog;
2014-09-08 15:54:52 +00:00
}
void exportCalendarCSV();
void setCalendar(QString html);
void setExamsSchedule(QString html);
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