add icon the date dialog. dates changed by default. translate update. still bugged
This commit is contained in:
parent
078f885909
commit
375b72feac
12 changed files with 332 additions and 157 deletions
BIN
jce_en.qm
BIN
jce_en.qm
Binary file not shown.
89
jce_en.ts
89
jce_en.ts
|
@ -1,6 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="en_US">
|
||||
<context>
|
||||
<name>CalendarDialog</name>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.ui" line="14"/>
|
||||
<source>Dialog</source>
|
||||
<translation>Dates</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.ui" line="22"/>
|
||||
<source><h1><b>For The Best CSV Export, Please Enter Correctly</source>
|
||||
<translation><h1><b>For The Best CSV Export, Please Enter Correctly</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.ui" line="35"/>
|
||||
<source>Semester Starts At:</source>
|
||||
<translation><b>Semester Starts At:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.ui" line="42"/>
|
||||
<source>Semester Ends At:</source>
|
||||
<translation><b>Semester Ends At:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.ui" line="73"/>
|
||||
<source>[ ! ] Start & End cannot be the same</source>
|
||||
<translation>[ ! ] Start & End cannot be set at the same day</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.cpp" line="46"/>
|
||||
<location filename="src/jceData/Calendar/calendardialog.cpp" line="78"/>
|
||||
<source>The End of the semester can NOT be equal or before semester begins.</source>
|
||||
<translation>The End of the semester can NOT be equal or before semester begins.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.cpp" line="52"/>
|
||||
<location filename="src/jceData/Calendar/calendardialog.cpp" line="84"/>
|
||||
<source>Looks ok, Press OK</source>
|
||||
<translation>Looks ok, Press OK</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainScreen</name>
|
||||
<message>
|
||||
|
@ -189,80 +229,80 @@
|
|||
<translation>Missmatching Data</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="284"/>
|
||||
<location filename="main/mainscreen.cpp" line="286"/>
|
||||
<source>CREDITS-ROOL-UP1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="285"/>
|
||||
<location filename="main/mainscreen.cpp" line="287"/>
|
||||
<source>CREDITS-ROOL-UP2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="286"/>
|
||||
<location filename="main/mainscreen.cpp" line="288"/>
|
||||
<source>CREDITS-ROOL-UP3</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="288"/>
|
||||
<location filename="main/mainscreen.cpp" line="290"/>
|
||||
<source>CREDITS-ROOL-UP4</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="289"/>
|
||||
<location filename="main/mainscreen.cpp" line="291"/>
|
||||
<source>DevBy</source>
|
||||
<translation>Developed By</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="291"/>
|
||||
<location filename="main/mainscreen.cpp" line="293"/>
|
||||
<source>Liran</source>
|
||||
<translation>Liran Ben Gida</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="292"/>
|
||||
<location filename="main/mainscreen.cpp" line="294"/>
|
||||
<source>Sagi</source>
|
||||
<translation>Sagi Dayan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="304"/>
|
||||
<location filename="main/mainscreen.cpp" line="306"/>
|
||||
<source>HELP1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="305"/>
|
||||
<location filename="main/mainscreen.cpp" line="307"/>
|
||||
<source>HELP2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="306"/>
|
||||
<location filename="main/mainscreen.cpp" line="308"/>
|
||||
<source>HELP3</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="307"/>
|
||||
<location filename="main/mainscreen.cpp" line="309"/>
|
||||
<source>HELP4</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="308"/>
|
||||
<location filename="main/mainscreen.cpp" line="310"/>
|
||||
<source>HELP5</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="309"/>
|
||||
<location filename="main/mainscreen.cpp" line="311"/>
|
||||
<source>HELP6</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="322"/>
|
||||
<location filename="main/mainscreen.cpp" line="351"/>
|
||||
<location filename="main/mainscreen.cpp" line="327"/>
|
||||
<location filename="main/mainscreen.cpp" line="356"/>
|
||||
<source>Settings</source>
|
||||
<translation>Settings</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="322"/>
|
||||
<location filename="main/mainscreen.cpp" line="336"/>
|
||||
<location filename="main/mainscreen.cpp" line="351"/>
|
||||
<location filename="main/mainscreen.cpp" line="327"/>
|
||||
<location filename="main/mainscreen.cpp" line="341"/>
|
||||
<location filename="main/mainscreen.cpp" line="356"/>
|
||||
<source>Your settings will take effect next time you start the program</source>
|
||||
<translation>Your settings will take effect next time you start the program</translation>
|
||||
</message>
|
||||
|
@ -270,14 +310,19 @@
|
|||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="main/CalendarTab/CalendarManager.cpp" line="17"/>
|
||||
<location filename="main/CalendarTab/CalendarManager.cpp" line="25"/>
|
||||
<source>Exported Successfuly!</source>
|
||||
<translation>Exported Successfuly!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/CalendarTab/CalendarManager.cpp" line="23"/>
|
||||
<source><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</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<location filename="main/CalendarTab/CalendarManager.cpp" line="30"/>
|
||||
<source>Error on exporting. please check your file system.</source>
|
||||
<translation>Error on exporting. Please check your file system.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/CalendarTab/CalendarManager.cpp" line="38"/>
|
||||
<source>Dates not valid</source>
|
||||
<translation>Invalid Dates</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/CourseTab/coursestablemanager.cpp" line="15"/>
|
||||
|
|
BIN
jce_he.qm
BIN
jce_he.qm
Binary file not shown.
91
jce_he.ts
91
jce_he.ts
|
@ -1,6 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="he_IL">
|
||||
<context>
|
||||
<name>CalendarDialog</name>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.ui" line="14"/>
|
||||
<source>Dialog</source>
|
||||
<translation>בחירת תאריכים</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.ui" line="22"/>
|
||||
<source><h1><b>For The Best CSV Export, Please Enter Correctly</source>
|
||||
<translation><h1><b>על מנת לקבל קובץ נכון, הקפד על התאריכים</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.ui" line="35"/>
|
||||
<source>Semester Starts At:</source>
|
||||
<translation><b> הסמסטר מתחיל ב:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.ui" line="42"/>
|
||||
<source>Semester Ends At:</source>
|
||||
<translation><b>הסמסטר נגמר ב:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.ui" line="73"/>
|
||||
<source>[ ! ] Start & End cannot be the same</source>
|
||||
<translation>[!] התחלה וסוף לא יכולים להיות באותו היום</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.cpp" line="46"/>
|
||||
<location filename="src/jceData/Calendar/calendardialog.cpp" line="78"/>
|
||||
<source>The End of the semester can NOT be equal or before semester begins.</source>
|
||||
<translation>סוף סמסטר לא יכול להיות לפני או באותו היום בו הסמסטר מתחיל.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="src/jceData/Calendar/calendardialog.cpp" line="52"/>
|
||||
<location filename="src/jceData/Calendar/calendardialog.cpp" line="84"/>
|
||||
<source>Looks ok, Press OK</source>
|
||||
<translation>נראה טוב, לחץ על המשך</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainScreen</name>
|
||||
<message>
|
||||
|
@ -103,7 +143,7 @@
|
|||
<message>
|
||||
<location filename="main/mainscreen.ui" line="602"/>
|
||||
<source>Export to CSV</source>
|
||||
<translation type="unfinished">CSV ייצא אל קובץ</translation>
|
||||
<translation>.CSV ייצא אל קובץ</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.ui" line="642"/>
|
||||
|
@ -189,80 +229,80 @@
|
|||
<translation>שגיאה בהכנסת נתונים</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="284"/>
|
||||
<location filename="main/mainscreen.cpp" line="286"/>
|
||||
<source>CREDITS-ROOL-UP1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="285"/>
|
||||
<location filename="main/mainscreen.cpp" line="287"/>
|
||||
<source>CREDITS-ROOL-UP2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="286"/>
|
||||
<location filename="main/mainscreen.cpp" line="288"/>
|
||||
<source>CREDITS-ROOL-UP3</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="288"/>
|
||||
<location filename="main/mainscreen.cpp" line="290"/>
|
||||
<source>CREDITS-ROOL-UP4</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="289"/>
|
||||
<location filename="main/mainscreen.cpp" line="291"/>
|
||||
<source>DevBy</source>
|
||||
<translation>פותח על ידי</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="291"/>
|
||||
<location filename="main/mainscreen.cpp" line="293"/>
|
||||
<source>Liran</source>
|
||||
<translation>לירן בן גידה</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="292"/>
|
||||
<location filename="main/mainscreen.cpp" line="294"/>
|
||||
<source>Sagi</source>
|
||||
<translation>שגיא דיין</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="304"/>
|
||||
<location filename="main/mainscreen.cpp" line="306"/>
|
||||
<source>HELP1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="305"/>
|
||||
<location filename="main/mainscreen.cpp" line="307"/>
|
||||
<source>HELP2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="306"/>
|
||||
<location filename="main/mainscreen.cpp" line="308"/>
|
||||
<source>HELP3</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="307"/>
|
||||
<location filename="main/mainscreen.cpp" line="309"/>
|
||||
<source>HELP4</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="308"/>
|
||||
<location filename="main/mainscreen.cpp" line="310"/>
|
||||
<source>HELP5</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="309"/>
|
||||
<location filename="main/mainscreen.cpp" line="311"/>
|
||||
<source>HELP6</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="322"/>
|
||||
<location filename="main/mainscreen.cpp" line="351"/>
|
||||
<location filename="main/mainscreen.cpp" line="327"/>
|
||||
<location filename="main/mainscreen.cpp" line="356"/>
|
||||
<source>Settings</source>
|
||||
<translation>הגדרות</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/mainscreen.cpp" line="322"/>
|
||||
<location filename="main/mainscreen.cpp" line="336"/>
|
||||
<location filename="main/mainscreen.cpp" line="351"/>
|
||||
<location filename="main/mainscreen.cpp" line="327"/>
|
||||
<location filename="main/mainscreen.cpp" line="341"/>
|
||||
<location filename="main/mainscreen.cpp" line="356"/>
|
||||
<source>Your settings will take effect next time you start the program</source>
|
||||
<translation>ההגדרות שלך ייכנסו לתוקפן בפעם הבאה שתפעיל את התוכנה</translation>
|
||||
</message>
|
||||
|
@ -270,14 +310,19 @@
|
|||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="main/CalendarTab/CalendarManager.cpp" line="17"/>
|
||||
<location filename="main/CalendarTab/CalendarManager.cpp" line="25"/>
|
||||
<source>Exported Successfuly!</source>
|
||||
<translation>הייצוא הושלם!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/CalendarTab/CalendarManager.cpp" line="23"/>
|
||||
<source><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</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<location filename="main/CalendarTab/CalendarManager.cpp" line="30"/>
|
||||
<source>Error on exporting. please check your file system.</source>
|
||||
<translation>טעות בעת ייצוא הקובץ. אנא בדוק אם הקובץ פתוח.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/CalendarTab/CalendarManager.cpp" line="38"/>
|
||||
<source>Dates not valid</source>
|
||||
<translation>תאריכים לא חוקיים</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main/CourseTab/coursestablemanager.cpp" line="15"/>
|
||||
|
|
|
@ -27,11 +27,10 @@ void CalendarManager::exportCalendarCSV()
|
|||
}else
|
||||
{
|
||||
msgBox.setIcon(QMessageBox::Critical);
|
||||
msgBox.setText(QObject::tr("Error on exporting. please check your file system."));
|
||||
msgBox.setText(QObject::tr("Error on exporting."));
|
||||
msgBox.exec();
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
msgBox.setIcon(QMessageBox::Critical);
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
<file>redStatusIcon.png</file>
|
||||
<file>icon.ico</file>
|
||||
<file>iconX.png</file>
|
||||
<file>iconV.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
BIN
resources/iconV.png
Normal file
BIN
resources/iconV.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 580 B |
Binary file not shown.
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 683 B |
|
@ -50,7 +50,7 @@ bool CSV_Exporter::exportCalendar(calendarSchedule *calSched, CalendarDialog *ca
|
|||
if(line != NULL)
|
||||
out << line << char(0x0A);
|
||||
#endif
|
||||
#ifdef Q_OS_OSX
|
||||
#ifdef Q_OS_OSX
|
||||
if(line != NULL)
|
||||
out << line << char(0x0A);
|
||||
#endif
|
||||
|
@ -59,11 +59,9 @@ bool CSV_Exporter::exportCalendar(calendarSchedule *calSched, CalendarDialog *ca
|
|||
out << line << char(0x0D) << char(0x0A);
|
||||
#endif
|
||||
}
|
||||
out.flush();
|
||||
}
|
||||
|
||||
here:
|
||||
out.flush();
|
||||
|
||||
|
||||
file.close();
|
||||
qDebug() << "Saved Successfuly! - HazZaA!";
|
||||
|
|
|
@ -7,10 +7,8 @@ CalendarDialog::CalendarDialog(QWidget *parent) :
|
|||
ui(new Ui::CalendarDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->calEnd->showToday();
|
||||
ui->calStart->showToday();
|
||||
|
||||
this->isOK = false;
|
||||
changeLabeStatusIcon(true);//be default the dates are ok, i Updated it according to jce official dates
|
||||
this->isOK = true;
|
||||
}
|
||||
|
||||
CalendarDialog::~CalendarDialog()
|
||||
|
@ -32,22 +30,18 @@ bool CalendarDialog::ok()
|
|||
{
|
||||
return this->isOK;
|
||||
}
|
||||
|
||||
void CalendarDialog::on_calStart_clicked(const QDate &date)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CalendarDialog::on_calStart_selectionChanged()
|
||||
{
|
||||
if(ui->calStart->selectedDate() > ui->calEnd->selectedDate()){
|
||||
ui->lbl_status->setText("[ X ] The End of the semester is before it starts... ");
|
||||
if(ui->calStart->selectedDate() >= ui->calEnd->selectedDate())
|
||||
{
|
||||
changeLabeStatusIcon(false);
|
||||
ui->lbl_status->setText(tr("The End of the semester can NOT be equal or before semester begins."));
|
||||
this->isOK = false;
|
||||
}else if(ui->calStart->selectedDate() == ui->calEnd->selectedDate()){
|
||||
ui->lbl_status->setText("[ ! ] Semester Cannot start and end on the same date... Where are you studying?! :)");
|
||||
this->isOK = false;
|
||||
}else{
|
||||
ui->lbl_status->setText("[ V ] Looks ok, Press OK");
|
||||
}
|
||||
else
|
||||
{
|
||||
changeLabeStatusIcon(true);
|
||||
ui->lbl_status->setText(tr("Looks ok, Press OK"));
|
||||
this->isOK = true;
|
||||
}
|
||||
}
|
||||
|
@ -58,26 +52,28 @@ void CalendarDialog::on_buttonBox_accepted()
|
|||
qDebug() << "start bigger than end!";
|
||||
}
|
||||
|
||||
void CalendarDialog::on_calEnd_clicked(const QDate &date)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CalendarDialog::on_calStart_activated(const QDate &date)
|
||||
{
|
||||
//null
|
||||
}
|
||||
|
||||
void CalendarDialog::on_calEnd_selectionChanged()
|
||||
{
|
||||
if(ui->calStart->selectedDate() > ui->calEnd->selectedDate()){
|
||||
ui->lbl_status->setText("[ X ] The End of the semester is before it starts... ");
|
||||
if(ui->calStart->selectedDate() >= ui->calEnd->selectedDate())
|
||||
{
|
||||
changeLabeStatusIcon(false);
|
||||
ui->lbl_status->setText(tr("The End of the semester can NOT be equal or before semester begins."));
|
||||
this->isOK = false;
|
||||
}else if(ui->calStart->selectedDate() == ui->calEnd->selectedDate()){
|
||||
ui->lbl_status->setText("[ ! ] Semester Cannot start and end on the same date... Where are you studying?! :)");
|
||||
this->isOK = false;
|
||||
}else{
|
||||
ui->lbl_status->setText("[ V ] Looks ok, Press OK");
|
||||
}
|
||||
else
|
||||
{
|
||||
changeLabeStatusIcon(true);
|
||||
ui->lbl_status->setText(tr("Looks ok, Press OK"));
|
||||
this->isOK = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CalendarDialog::changeLabeStatusIcon(bool goodOrBad)
|
||||
{
|
||||
if (goodOrBad == true) //good date!
|
||||
iconPixStatus.load(":/icons/iconV.png");
|
||||
else
|
||||
iconPixStatus.load(":/icons/iconX.png");
|
||||
this->ui->labelIconStatus->setPixmap(iconPixStatus);
|
||||
}
|
||||
|
|
|
@ -21,16 +21,15 @@ public:
|
|||
bool ok();
|
||||
|
||||
private slots:
|
||||
void on_calStart_activated(const QDate &date);
|
||||
void on_calStart_selectionChanged();
|
||||
void on_calStart_clicked(const QDate &date);
|
||||
void on_buttonBox_accepted();
|
||||
void on_calEnd_clicked(const QDate &date);
|
||||
void on_calEnd_selectionChanged();
|
||||
void on_buttonBox_accepted();
|
||||
|
||||
private:
|
||||
void changeLabeStatusIcon(bool goodOrBad);
|
||||
Ui::CalendarDialog *ui;
|
||||
bool isOK;
|
||||
QPixmap iconPixStatus;
|
||||
};
|
||||
|
||||
#endif // CALENDARDIALOG_H
|
||||
|
|
|
@ -6,79 +6,171 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>671</width>
|
||||
<height>343</height>
|
||||
<width>577</width>
|
||||
<height>268</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string><h1><b>For The Best CSV Export, Please Enter Correctly</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Semester Starts At:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Semester Ends At:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QCalendarWidget" name="calStart"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCalendarWidget" name="calEnd"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_status">
|
||||
<property name="text">
|
||||
<string>[ ! ] Start & End cannot be the same</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
<widget class="QWidget" name="">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>551</width>
|
||||
<height>235</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string><body><p><span style=" font-size:9pt; font-weight:600;">The dates were chosen according to JCE General Academic Calendar for the first semester</span></p></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="labelSemesterStart">
|
||||
<property name="text">
|
||||
<string>Semester Starts At:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labelSemesterEnd">
|
||||
<property name="text">
|
||||
<string>Semester Ends At:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QCalendarWidget" name="calStart">
|
||||
<property name="locale">
|
||||
<locale language="Hebrew" country="Israel"/>
|
||||
</property>
|
||||
<property name="inputMethodHints">
|
||||
<set>Qt::ImhNone</set>
|
||||
</property>
|
||||
<property name="selectedDate">
|
||||
<date>
|
||||
<year>2014</year>
|
||||
<month>10</month>
|
||||
<day>26</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="minimumDate">
|
||||
<date>
|
||||
<year>2000</year>
|
||||
<month>9</month>
|
||||
<day>14</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="maximumDate">
|
||||
<date>
|
||||
<year>2080</year>
|
||||
<month>12</month>
|
||||
<day>31</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="gridVisible">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="verticalHeaderFormat">
|
||||
<enum>QCalendarWidget::NoVerticalHeader</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCalendarWidget" name="calEnd">
|
||||
<property name="selectedDate">
|
||||
<date>
|
||||
<year>2015</year>
|
||||
<month>2</month>
|
||||
<day>1</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="minimumDate">
|
||||
<date>
|
||||
<year>2000</year>
|
||||
<month>9</month>
|
||||
<day>14</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="maximumDate">
|
||||
<date>
|
||||
<year>2080</year>
|
||||
<month>12</month>
|
||||
<day>31</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="gridVisible">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="verticalHeaderFormat">
|
||||
<enum>QCalendarWidget::NoVerticalHeader</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<widget class="QLabel" name="labelIconStatus">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_status">
|
||||
<property name="text">
|
||||
<string><b>Please chose your dates correctly</b></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
|
|
Loading…
Reference in a new issue