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:
liranbg 2014-10-16 14:50:03 +03:00
parent d4c8edf8de
commit 43383ded02
7 changed files with 25 additions and 27 deletions

View file

@ -17,7 +17,7 @@ coursesTableManager::coursesTableManager(QTableWidget *ptr, user *usrPtr)
courseTBL->verticalHeader()->setVisible(false);
courseTBL->setSelectionMode(QAbstractItemView::SingleSelection);
courseTBL->setShowGrid(true);
courseTBL->setStyleSheet("QTableView {selection-background-color: red;}");
courseTBL->setStyleSheet("QTableView {selection-background-color: #004080;}");
graph = new gradegraph(ptr);
}
@ -56,6 +56,7 @@ void coursesTableManager::setCoursesList(QString &html)
gp = new GradePage(html);
this->gpCpy = new GradePage(*gp);
insertJceCoursesIntoTable();
this->courseTBL->setCurrentCell(0,0);
}
/**
* @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;
}
}
this->courseTBL->setCurrentCell(row+1,col); //set focus to next grade
return isNumFlag;
}

View file

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Help Dialog</string>
<string>JCE Manager</string>
</property>
<property name="windowIcon">
<iconset resource="../../resources/connectionstatus.qrc">
@ -40,7 +40,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_2">
<widget class="QLabel" name="labelBody">
<property name="text">
<string>&lt;html&gt;
&lt;head&gt;&lt;/head&gt;
@ -127,7 +127,7 @@
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<widget class="QLabel" name="labelHead">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
@ -135,7 +135,7 @@
</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>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;center&gt;&lt;img src=&quot;:/icons/help.png&quot; height=&quot;18&quot; width=&quot;18&quot;/&gt;&lt;span style=&quot; font-size:18pt; font-weight:600;&quot;&gt; Help Dialog &lt;/span&gt;&lt;img src=&quot;:/icons/help.png&quot; height=&quot;18&quot; width=&quot;18&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>

View file

@ -383,19 +383,6 @@ void MainScreen::on_howtoButton_clicked()
{
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

@ -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>2</number>
<number>0</number>
</property>
<property name="documentMode">
<bool>false</bool>

View file

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>810</width>
<height>306</height>
<width>811</width>
<height>327</height>
</rect>
</property>
<property name="sizePolicy">
@ -17,7 +17,7 @@
</sizepolicy>
</property>
<property name="windowTitle">
<string>Exam Dialog</string>
<string>JCE Manager</string>
</property>
<property name="windowIcon">
<iconset resource="../../../../resources/connectionstatus.qrc">
@ -68,7 +68,7 @@
<item>
<widget class="QPushButton" name="pushButtonRevert">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Revert changes&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Revert all changes</string>
</property>
<property name="text">
<string>Revert</string>
@ -78,7 +78,7 @@
<item>
<widget class="QPushButton" name="pushButtonCancel">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Discard and hide&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Discard changes and close</string>
</property>
<property name="text">
<string>Cancel</string>
@ -88,7 +88,10 @@
<item>
<widget class="QPushButton" name="pushButtonOk">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Save and hide&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Keep changes and close</string>
</property>
<property name="statusTip">
<string/>
</property>
<property name="text">
<string>Ok</string>

View file

@ -23,7 +23,7 @@
</size>
</property>
<property name="windowTitle">
<string>Dates Dialog</string>
<string>JCE Manager</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
@ -185,6 +185,9 @@
</item>
<item row="0" column="3">
<widget class="QCheckBox" name="isExam">
<property name="toolTip">
<string>Include exams list in .CSV</string>
</property>
<property name="text">
<string>Include Exams</string>
</property>

View file

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>GPA Graph View</string>
<string>JCE Manager</string>
</property>
<property name="windowIcon">
<iconset resource="../../../../resources/connectionstatus.qrc">
@ -68,6 +68,9 @@
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="statusTip">
<string>Close</string>
</property>
<property name="text">
<string>Close</string>
</property>