added help dialog
changed tooltips inside mainscreen ui
This commit is contained in:
parent
faade294ab
commit
d4c8edf8de
7 changed files with 293 additions and 19 deletions
|
@ -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
|
||||
|
||||
|
|
14
main/HelpBox/helpbox.cpp
Normal file
14
main/HelpBox/helpbox.cpp
Normal file
|
@ -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;
|
||||
}
|
22
main/HelpBox/helpbox.h
Normal file
22
main/HelpBox/helpbox.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef HELPBOX_H
|
||||
#define HELPBOX_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class helpBox;
|
||||
}
|
||||
|
||||
class helpBox : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit helpBox(QWidget *parent = 0);
|
||||
~helpBox();
|
||||
|
||||
private:
|
||||
Ui::helpBox *ui;
|
||||
};
|
||||
|
||||
#endif // HELPBOX_H
|
165
main/HelpBox/helpbox.ui
Normal file
165
main/HelpBox/helpbox.ui
Normal file
|
@ -0,0 +1,165 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>helpBox</class>
|
||||
<widget class="QDialog" name="helpBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>626</width>
|
||||
<height>533</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Help Dialog</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../../resources/connectionstatus.qrc">
|
||||
<normaloff>:/icons/logo.png</normaloff>:/icons/logo.png</iconset>
|
||||
</property>
|
||||
<property name="sizeGripEnabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="modal">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="0">
|
||||
<widget class="QFrame" name="frame">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string><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>
|
||||
</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignJustify|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p align="center"><span style=" font-size:18pt; font-weight:600; text-decoration: underline;">Help Dialog</span></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../../resources/connectionstatus.qrc"/>
|
||||
</resources>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>helpBox</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>492</x>
|
||||
<y>306</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>488</x>
|
||||
<y>2</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
|
@ -371,7 +371,7 @@ void MainScreen::on_creditButton_clicked()
|
|||
"<a href='http://liranbg.github.io/JceManager/'>Jce Manager</a> "
|
||||
+ QString("Version: " + QString(VERSION)) +"<br><br>"
|
||||
+tr("License: ")+ "LGPL v2.1<br>"
|
||||
"<br><a href='https://github.com/liranbg/JceManager'>JceManager Repository</a>"
|
||||
"<br><a href='https://github.com/liranbg/JceManager'>Our GitHub Page</a>"
|
||||
+"<br><br>" + tr("Developed By: ")+
|
||||
"<ul>"+
|
||||
"<li><a href='mailto:liranbg@gmail.com'>"+tr("Liran Ben Gida")+"</a></li>"+
|
||||
|
@ -381,18 +381,21 @@ void MainScreen::on_creditButton_clicked()
|
|||
|
||||
void MainScreen::on_howtoButton_clicked()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
QMessageBox::information(this,"How To",
|
||||
"<b>"
|
||||
+tr("Help Guide")+
|
||||
"</b><ul>"
|
||||
+tr("<br><li>Login: <ul><li>Type your username and password and click Login.</li><li>Once you are connected, you will see a green ball in the right buttom panel.</li></ul></li>")
|
||||
+tr("<br><li>Getting GPA sheet<ul><li>Click on GPA Tab</li><li> Select your dates and click on Add</li></ul></li>")
|
||||
+tr("<br><li>Average Changing<ul><li>Change one of your grade and see the average in the buttom panel changing.</li></ul></li>")
|
||||
+tr("<br><li>Getting Calendar<ul><li>Click on Calendar Tab</li><li> Select your dates and click on Get Calendar</li></ul></li>")
|
||||
+tr("<br><li>For exporting your calendar to a .CSV file:<ul><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>")+
|
||||
"<br><br>"
|
||||
+tr("<b>For more information, please visit us at: <a href='http://liranbg.github.io/JceManager/'>Jce Manager site</a></b>"));
|
||||
helpBox help(this);
|
||||
help.exec();
|
||||
// qDebug() << Q_FUNC_INFO;
|
||||
// QMessageBox::information(
|
||||
// this,"How To",
|
||||
// "<b>"
|
||||
// +tr("Help Guide")+
|
||||
// "</b><ul>"
|
||||
// +tr("<br><li>Login: <ul><li>Type your username and password and click Login.</li><li>Once you are connected, you will see a blue icon in the right buttom panel.</li></ul></li>")
|
||||
// +tr("<br><li>Getting GPA sheet<ul><li>Click on GPA Tab</li><li> Select your dates and click on Add</li></ul></li>")
|
||||
// +tr("<br><li>Average Changing<ul><li>Change one of your grade and see the average in the buttom panel changing.</li></ul></li>")
|
||||
// +tr("<br><li>Getting Calendar<ul><li>Click on Calendar Tab</li><li> Select your dates and click on Get Calendar</li></ul></li>")
|
||||
// +tr("<br><li>For exporting your calendar to a .CSV file:<ul><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>")+
|
||||
// "<br><br>"
|
||||
// +tr("<b>For more information, please visit us at: <a href='http://liranbg.github.io/JceManager/'>Jce Manager site</a></b>"));
|
||||
}
|
||||
|
||||
void MainScreen::checkLocale()
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include <QMessageBox>
|
||||
#include <QTextEdit>
|
||||
|
||||
#include "./HelpBox/helpbox.h"
|
||||
#include "./CourseTab/coursestablemanager.h"
|
||||
#include "./LoginTab/loginhandler.h"
|
||||
#include "./CalendarTab/CalendarManager.h"
|
||||
|
|
|
@ -64,7 +64,7 @@ background: qlineargradient(spread:pad, x1:0.496, y1:0, x2:0.508, y2:1, stop:0 r
|
|||
<enum>QTabWidget::Rounded</enum>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="documentMode">
|
||||
<bool>false</bool>
|
||||
|
@ -391,6 +391,9 @@ font-size: 15px;
|
|||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QSpinBox" name="spinBoxCoursesToSemester">
|
||||
<property name="toolTip">
|
||||
<string>Ending semester</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -420,6 +423,9 @@ font-size: 15px;
|
|||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QSpinBox" name="spinBoxCoursesToYear">
|
||||
<property name="toolTip">
|
||||
<string>Ending year</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>2008</number>
|
||||
</property>
|
||||
|
@ -521,7 +527,7 @@ font-size: 15px;
|
|||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p><span style=" font-weight:600;">Clear table</span></p></body></html></string>
|
||||
<string>Clear courses table</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Clear Table</string>
|
||||
|
@ -539,8 +545,14 @@ font-size: 15px;
|
|||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Get GPA sheet</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string><html><head/><body><p><span style=" font-weight:600;">Get your grades</span></p></body></html></string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Get GPA</string>
|
||||
|
@ -558,6 +570,12 @@ font-size: 15px;
|
|||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="revertBtn">
|
||||
<property name="toolTip">
|
||||
<string>Revert all changes</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Revert Changes</string>
|
||||
</property>
|
||||
|
@ -599,6 +617,9 @@ font-size: 15px;
|
|||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Check to show only courses with grade point > 0</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Only Main Courses</string>
|
||||
</property>
|
||||
|
@ -686,6 +707,9 @@ font-size: 15px;
|
|||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QSpinBox" name="spinBoxCoursesFromYear">
|
||||
<property name="toolTip">
|
||||
<string>Starting year</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>2008</number>
|
||||
</property>
|
||||
|
@ -715,6 +739,9 @@ font-size: 15px;
|
|||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QSpinBox" name="spinBoxCoursesFromSemester">
|
||||
<property name="toolTip">
|
||||
<string>Starting semester</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -765,6 +792,9 @@ font-size: 15px;
|
|||
<layout class="QGridLayout" name="gridLayoutAverage">
|
||||
<item row="0" column="0">
|
||||
<widget class="QPushButton" name="graphButton">
|
||||
<property name="toolTip">
|
||||
<string>Show average graph view</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Graph View</string>
|
||||
</property>
|
||||
|
@ -845,6 +875,12 @@ font-size: 15px;
|
|||
<layout class="QHBoxLayout" name="horizontalLayoutScheduleControl">
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBoxYear">
|
||||
<property name="toolTip">
|
||||
<string>Year</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>2013</number>
|
||||
</property>
|
||||
|
@ -858,6 +894,12 @@ font-size: 15px;
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBoxSemester">
|
||||
<property name="toolTip">
|
||||
<string>Semester</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -871,6 +913,12 @@ font-size: 15px;
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="getCalendarBtn">
|
||||
<property name="toolTip">
|
||||
<string>Get schedule and exams list</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Get Schedule && Exam</string>
|
||||
</property>
|
||||
|
@ -878,6 +926,12 @@ font-size: 15px;
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="examsBtn">
|
||||
<property name="toolTip">
|
||||
<string>Show exams list</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Exams</string>
|
||||
</property>
|
||||
|
@ -885,6 +939,12 @@ font-size: 15px;
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="exportToCVSBtn">
|
||||
<property name="toolTip">
|
||||
<string>Export schedule to .CSV file.</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string>You can import this file with your Google calendar</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Export to CSV</string>
|
||||
</property>
|
||||
|
@ -915,6 +975,12 @@ font-size: 15px;
|
|||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="labelMadeBy">
|
||||
<property name="toolTip">
|
||||
<string>Credits</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><p align="center">Made By <a href="http://liranbg.github.io/JceManager/"><span style=" text-decoration: underline; color:#0000ff;">JceManager</span></a></p></string>
|
||||
</property>
|
||||
|
|
Loading…
Reference in a new issue