update help dialog. change color in gpa selection
also, next row selected after editing course's grade for bettern inserting
This commit is contained in:
parent
d4c8edf8de
commit
43383ded02
7 changed files with 25 additions and 27 deletions
|
@ -17,7 +17,7 @@ coursesTableManager::coursesTableManager(QTableWidget *ptr, user *usrPtr)
|
||||||
courseTBL->verticalHeader()->setVisible(false);
|
courseTBL->verticalHeader()->setVisible(false);
|
||||||
courseTBL->setSelectionMode(QAbstractItemView::SingleSelection);
|
courseTBL->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
courseTBL->setShowGrid(true);
|
courseTBL->setShowGrid(true);
|
||||||
courseTBL->setStyleSheet("QTableView {selection-background-color: red;}");
|
courseTBL->setStyleSheet("QTableView {selection-background-color: #004080;}");
|
||||||
|
|
||||||
graph = new gradegraph(ptr);
|
graph = new gradegraph(ptr);
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,7 @@ void coursesTableManager::setCoursesList(QString &html)
|
||||||
gp = new GradePage(html);
|
gp = new GradePage(html);
|
||||||
this->gpCpy = new GradePage(*gp);
|
this->gpCpy = new GradePage(*gp);
|
||||||
insertJceCoursesIntoTable();
|
insertJceCoursesIntoTable();
|
||||||
|
this->courseTBL->setCurrentCell(0,0);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @brief coursesTableManager::changes when user changes the table manually it updates it
|
* @brief coursesTableManager::changes when user changes the table manually it updates it
|
||||||
|
@ -144,6 +145,7 @@ bool coursesTableManager::changes(QString change, int row, int col)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this->courseTBL->setCurrentCell(row+1,col); //set focus to next grade
|
||||||
return isNumFlag;
|
return isNumFlag;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Help Dialog</string>
|
<string>JCE Manager</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
<property name="windowIcon">
|
||||||
<iconset resource="../../resources/connectionstatus.qrc">
|
<iconset resource="../../resources/connectionstatus.qrc">
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="labelBody">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html>
|
<string><html>
|
||||||
<head></head>
|
<head></head>
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="labelHead">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<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>
|
<string><html><head/><body><p><center><img src=":/icons/help.png" height="18" width="18"/><span style=" font-size:18pt; font-weight:600;"> Help Dialog </span><img src=":/icons/help.png" height="18" width="18"/></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -383,19 +383,6 @@ void MainScreen::on_howtoButton_clicked()
|
||||||
{
|
{
|
||||||
helpBox help(this);
|
helpBox help(this);
|
||||||
help.exec();
|
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()
|
void MainScreen::checkLocale()
|
||||||
|
|
|
@ -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>
|
<enum>QTabWidget::Rounded</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>2</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="documentMode">
|
<property name="documentMode">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>810</width>
|
<width>811</width>
|
||||||
<height>306</height>
|
<height>327</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Exam Dialog</string>
|
<string>JCE Manager</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
<property name="windowIcon">
|
||||||
<iconset resource="../../../../resources/connectionstatus.qrc">
|
<iconset resource="../../../../resources/connectionstatus.qrc">
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButtonRevert">
|
<widget class="QPushButton" name="pushButtonRevert">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><html><head/><body><p>Revert changes</p></body></html></string>
|
<string>Revert all changes</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Revert</string>
|
<string>Revert</string>
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButtonCancel">
|
<widget class="QPushButton" name="pushButtonCancel">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><html><head/><body><p>Discard and hide</p></body></html></string>
|
<string>Discard changes and close</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Cancel</string>
|
<string>Cancel</string>
|
||||||
|
@ -88,7 +88,10 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButtonOk">
|
<widget class="QPushButton" name="pushButtonOk">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><html><head/><body><p>Save and hide</p></body></html></string>
|
<string>Keep changes and close</string>
|
||||||
|
</property>
|
||||||
|
<property name="statusTip">
|
||||||
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Ok</string>
|
<string>Ok</string>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Dates Dialog</string>
|
<string>JCE Manager</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
|
@ -185,6 +185,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<widget class="QCheckBox" name="isExam">
|
<widget class="QCheckBox" name="isExam">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Include exams list in .CSV</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Include Exams</string>
|
<string>Include Exams</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>GPA Graph View</string>
|
<string>JCE Manager</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
<property name="windowIcon">
|
||||||
<iconset resource="../../../../resources/connectionstatus.qrc">
|
<iconset resource="../../../../resources/connectionstatus.qrc">
|
||||||
|
@ -68,6 +68,9 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton">
|
<widget class="QPushButton" name="pushButton">
|
||||||
|
<property name="statusTip">
|
||||||
|
<string>Close</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Close</string>
|
<string>Close</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Reference in a new issue