added help dialog

changed tooltips inside mainscreen ui
This commit is contained in:
liranbg 2014-10-16 14:25:44 +03:00
parent faade294ab
commit d4c8edf8de
7 changed files with 293 additions and 19 deletions

View file

@ -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
View 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
View 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
View 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>&lt;html&gt;
&lt;head&gt;&lt;/head&gt;
&lt;body&gt;
&lt;b&gt;Help Guide&lt;/b&gt;
&lt;ul&gt;&lt;p&gt;
&lt;li&gt;&lt;b&gt;Login:&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;Type your username and password and click Login.&lt;/li&gt;
&lt;li&gt;Once you are connected, you will see &lt;img src=&quot;:/icons/connected.png&quot; heigh=&quot;16&quot; width=&quot;16&quot;/&gt; at the buttom right&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;&lt;/p&gt;
&lt;p&gt;&lt;li&gt;&lt;b&gt;GPA:&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Getting GPA sheet&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt; Select your starting year &amp; semester, ending year &amp; semester and click on get GPA&lt;/li&gt;
&lt;li&gt;Want to see only courses with grade point &gt;0 ?, then check 'Only Main Courses'&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Average Changing&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;Change one of course's grade and see the average changing in the buttom panel changing.&lt;/li&gt;
&lt;li&gt;You can discard any change you made by click on 'Revert Changes'&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Graph View&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt; get your GPA sheet and click on 'Graph View'&lt;/li&gt;
&lt;li&gt; The graph has 2 functions, semesterial and yearly average.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;&lt;/p&gt;
&lt;p&gt;&lt;li&gt;&lt;b&gt;Schedule:&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Getting daily schedule &amp; exams list&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;Select your dates and click on 'Get Schedule &amp; Exam'&lt;/li&gt;
&lt;li&gt;You can see the exams lists and edit each exams time by clicking on 'Show exams'&lt;/li&gt;
&lt;li&gt;**The program will automatically load the daily schedule and exams list**&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Exporting Schedule&lt;/b&gt;
&lt;ul&gt;
&lt;li&gt;For exporting your calendar to a .CSV file:
&lt;li&gt;Do previous step and continue to next step&lt;/li&gt;
&lt;li&gt; Click on Export to CSV&lt;/li&gt;
&lt;li&gt;Select your dates and click OK&lt;/li&gt;
&lt;li&gt;Once you're Done, go on your calendar and import your csv file&lt;/li&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;&lt;/p&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;b&gt;Further information available at: &lt;a href='http://liranbg.github.io/JceManager/'&gt;Jce Manager site&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</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>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:18pt; font-weight:600; text-decoration: underline;&quot;&gt;Help Dialog&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</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>

View file

@ -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()

View file

@ -7,6 +7,7 @@
#include <QMessageBox>
#include <QTextEdit>
#include "./HelpBox/helpbox.h"
#include "./CourseTab/coursestablemanager.h"
#include "./LoginTab/loginhandler.h"
#include "./CalendarTab/CalendarManager.h"

View file

@ -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>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Clear table&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</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>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Get your grades&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</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 &gt; 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 &amp;&amp; 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>&lt;p align=&quot;center&quot;&gt;Made By &lt;a href=&quot;http://liranbg.github.io/JceManager/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;JceManager&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</string>
</property>