From d4c8edf8de95e9219a3ee4687db66c1814def03f Mon Sep 17 00:00:00 2001 From: liranbg Date: Thu, 16 Oct 2014 14:25:44 +0300 Subject: [PATCH] added help dialog changed tooltips inside mainscreen ui --- jceManager.pro | 9 ++- main/HelpBox/helpbox.cpp | 14 ++++ main/HelpBox/helpbox.h | 22 ++++++ main/HelpBox/helpbox.ui | 165 +++++++++++++++++++++++++++++++++++++++ main/mainscreen.cpp | 29 ++++--- main/mainscreen.h | 1 + main/mainscreen.ui | 72 ++++++++++++++++- 7 files changed, 293 insertions(+), 19 deletions(-) create mode 100644 main/HelpBox/helpbox.cpp create mode 100644 main/HelpBox/helpbox.h create mode 100644 main/HelpBox/helpbox.ui diff --git a/jceManager.pro b/jceManager.pro index 6855b35..ad7c6b8 100644 --- a/jceManager.pro +++ b/jceManager.pro @@ -28,7 +28,8 @@ FORMS += \ main/mainscreen.ui \ src/jceData/Grades/graph/gradegraph.ui \ src/jceData/Calendar/Exams/examDialog.ui \ - src/jceData/Calendar/coursesSchedule/calendarDialog.ui + src/jceData/Calendar/coursesSchedule/calendarDialog.ui \ + main/HelpBox/helpbox.ui RESOURCES += \ resources/connectionstatus.qrc @@ -59,7 +60,8 @@ HEADERS += \ src/jceData/Calendar/coursesSchedule/calendarPage.h \ src/jceData/Calendar/coursesSchedule/calendarPageCourse.h \ src/jceData/Calendar/coursesSchedule/calendarSchedule.h \ - main/jceWidgets/jcestatusbar.h + main/jceWidgets/jcestatusbar.h \ + main/HelpBox/helpbox.h SOURCES += \ main/CalendarTab/CalendarManager.cpp \ @@ -86,5 +88,6 @@ SOURCES += \ src/jceData/Calendar/coursesSchedule/calendarPage.cpp \ src/jceData/Calendar/coursesSchedule/calendarPageCourse.cpp \ src/jceData/Calendar/coursesSchedule/calendarSchedule.cpp \ - main/jceWidgets/jcestatusbar.cpp + main/jceWidgets/jcestatusbar.cpp \ + main/HelpBox/helpbox.cpp diff --git a/main/HelpBox/helpbox.cpp b/main/HelpBox/helpbox.cpp new file mode 100644 index 0000000..3461af0 --- /dev/null +++ b/main/HelpBox/helpbox.cpp @@ -0,0 +1,14 @@ +#include "helpbox.h" +#include "ui_helpbox.h" + +helpBox::helpBox(QWidget *parent) : + QDialog(parent), + ui(new Ui::helpBox) +{ + ui->setupUi(this); +} + +helpBox::~helpBox() +{ + delete ui; +} diff --git a/main/HelpBox/helpbox.h b/main/HelpBox/helpbox.h new file mode 100644 index 0000000..73af483 --- /dev/null +++ b/main/HelpBox/helpbox.h @@ -0,0 +1,22 @@ +#ifndef HELPBOX_H +#define HELPBOX_H + +#include + +namespace Ui { +class helpBox; +} + +class helpBox : public QDialog +{ + Q_OBJECT + +public: + explicit helpBox(QWidget *parent = 0); + ~helpBox(); + +private: + Ui::helpBox *ui; +}; + +#endif // HELPBOX_H diff --git a/main/HelpBox/helpbox.ui b/main/HelpBox/helpbox.ui new file mode 100644 index 0000000..743a8a7 --- /dev/null +++ b/main/HelpBox/helpbox.ui @@ -0,0 +1,165 @@ + + + helpBox + + + + 0 + 0 + 626 + 533 + + + + Help Dialog + + + + :/icons/logo.png:/icons/logo.png + + + false + + + true + + + + + + + 0 + 0 + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + <html> +<head></head> +<body> + <b>Help Guide</b> + <ul><p> + <li><b>Login:</b> + <ul> + <li>Type your username and password and click Login.</li> + <li>Once you are connected, you will see <img src=":/icons/connected.png" heigh="16" width="16"/> at the buttom right</li> + </ul> + </li></p> + <p><li><b>GPA:</b> + <ul> + <li><b>Getting GPA sheet</b> + <ul> + <li> Select your starting year & semester, ending year & semester and click on get GPA</li> + <li>Want to see only courses with grade point >0 ?, then check 'Only Main Courses'</li> + </ul> + </li> + <li><b>Average Changing</b> + <ul> + <li>Change one of course's grade and see the average changing in the buttom panel changing.</li> + <li>You can discard any change you made by click on 'Revert Changes'</li> + </ul> + </li> + <li><b>Graph View</b> + <ul> + <li> get your GPA sheet and click on 'Graph View'</li> + <li> The graph has 2 functions, semesterial and yearly average.</li> + </ul> + </li> + </ul> + </li></p> + <p><li><b>Schedule:</b> + <ul> + <li><b>Getting daily schedule & exams list</b> + <ul> + <li>Select your dates and click on 'Get Schedule & Exam'</li> + <li>You can see the exams lists and edit each exams time by clicking on 'Show exams'</li> + <li>**The program will automatically load the daily schedule and exams list**</li> + </ul> + </li> + <li><b>Exporting Schedule</b> + <ul> + <li>For exporting your calendar to a .CSV file: + <li>Do previous step and continue to next step</li> + <li> Click on Export to CSV</li> + <li>Select your dates and click OK</li> + <li>Once you're Done, go on your calendar and import your csv file</li> + </li> + </ul> + </li> + </ul> + </li></p> + </ul> + <p><b>Further information available at: <a href='http://liranbg.github.io/JceManager/'>Jce Manager site</a></b></p> +</body> +</html> + + + + Qt::AlignJustify|Qt::AlignVCenter + + + true + + + + + + + + + + + 0 + 0 + + + + QDialogButtonBox::Ok + + + + + + + + 0 + 0 + + + + <html><head/><body><p align="center"><span style=" font-size:18pt; font-weight:600; text-decoration: underline;">Help Dialog</span></p></body></html> + + + + + + + + + + + buttonBox + accepted() + helpBox + accept() + + + 492 + 306 + + + 488 + 2 + + + + + diff --git a/main/mainscreen.cpp b/main/mainscreen.cpp index e105f12..d42f611 100644 --- a/main/mainscreen.cpp +++ b/main/mainscreen.cpp @@ -371,7 +371,7 @@ void MainScreen::on_creditButton_clicked() "Jce Manager " + QString("Version: " + QString(VERSION)) +"

" +tr("License: ")+ "LGPL v2.1
" - "
JceManager Repository" + "
Our GitHub Page" +"

" + tr("Developed By: ")+ "