Sagi Dayan
5c92a3f112
all bugs that i found fixed. now when user selects "export to csv" he will be prompt to input the begining and the end of the semester. the csv file will populate the whole semester! just one click and you are done. @liranbg (Liran) please check on Windows and OSX. linux is rocking! let me know if you need anything else. sagi
30 lines
912 B
C++
30 lines
912 B
C++
#include "CalendarManager.h"
|
|
|
|
CalendarManager::CalendarManager(calendarSchedule *ptr)
|
|
{
|
|
this->caliSchedPtr = ptr;
|
|
}
|
|
|
|
void CalendarManager::setCalendar(std::string html)
|
|
{
|
|
caliSchedPtr->setPage(html);
|
|
}
|
|
void CalendarManager::exportCalendarCSV(CalendarDialog *calDialog)
|
|
{
|
|
if(CSV_Exporter::exportCalendar(this->caliSchedPtr, calDialog))
|
|
{
|
|
QMessageBox msgBox;
|
|
msgBox.setText("<center>Exported Successfuly!<br><b>HaazZaA!!");
|
|
msgBox.exec();
|
|
}else
|
|
{
|
|
QMessageBox msgBox;
|
|
msgBox.setIcon(QMessageBox::Critical);
|
|
msgBox.setText("<center>Something went wrong...<br></center>Maybe: <ul><li>You Canceled</li><li>Unable to save the File - try again</li></ul><br><br>"
|
|
"<b><center>In case of a serious problem, please file a bug report.<br>thank you. OpenJCE teem");
|
|
msgBox.exec();
|
|
}
|
|
|
|
}
|
|
|
|
|