mirror of
https://github.com/ankitects/anki.git
synced 2025-12-17 08:40:57 -05:00
add icon to review button, decrease graph intensity, fix creation time
This commit is contained in:
parent
8c95cfb0c9
commit
b2bb7c4288
5 changed files with 40 additions and 13 deletions
|
|
@ -67,6 +67,7 @@ class AnkiQt(QMainWindow):
|
||||||
# check for updates
|
# check for updates
|
||||||
self.setupAutoUpdate()
|
self.setupAutoUpdate()
|
||||||
self.setupErrorHandler()
|
self.setupErrorHandler()
|
||||||
|
self.setupMisc()
|
||||||
self.loadPlugins()
|
self.loadPlugins()
|
||||||
self.rebuildPluginsMenu()
|
self.rebuildPluginsMenu()
|
||||||
# run after-init hook
|
# run after-init hook
|
||||||
|
|
@ -1020,10 +1021,11 @@ day = :d""", d=yesterday)
|
||||||
# start reviewing button
|
# start reviewing button
|
||||||
self.mainWin.buttonStack.setCurrentIndex(3)
|
self.mainWin.buttonStack.setCurrentIndex(3)
|
||||||
self.mainWin.buttonStack.show()
|
self.mainWin.buttonStack.show()
|
||||||
|
t = " " * 5
|
||||||
if initial:
|
if initial:
|
||||||
self.mainWin.startReviewingButton.setText(_("Start &Reviewing"))
|
self.mainWin.startReviewingButton.setText(t+_("Start &Reviewing"))
|
||||||
else:
|
else:
|
||||||
self.mainWin.startReviewingButton.setText(_("Continue &Reviewing"))
|
self.mainWin.startReviewingButton.setText(t+_("Continue &Reviewing"))
|
||||||
self.mainWin.startReviewingButton.setFocus()
|
self.mainWin.startReviewingButton.setFocus()
|
||||||
self.connect(self.mainWin.startReviewingButton,
|
self.connect(self.mainWin.startReviewingButton,
|
||||||
SIGNAL("clicked()"),
|
SIGNAL("clicked()"),
|
||||||
|
|
@ -1939,3 +1941,11 @@ Consider backing up your media directory first."""))
|
||||||
self.documentDir = os.path.expanduser("~/Documents")
|
self.documentDir = os.path.expanduser("~/Documents")
|
||||||
else:
|
else:
|
||||||
self.documentDir = os.path.expanduser("~/.anki")
|
self.documentDir = os.path.expanduser("~/.anki")
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
##########################################################################
|
||||||
|
|
||||||
|
def setupMisc(self):
|
||||||
|
if time.time() - self.config['created'] < 60 and self.deck:
|
||||||
|
self.config['created'] = self.deck.created
|
||||||
|
print (time.time() - self.deck.created) / 60.0 / 60.0 / 24.0
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>428</width>
|
<width>428</width>
|
||||||
<height>563</height>
|
<height>546</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
@ -481,8 +481,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>542</width>
|
<width>428</width>
|
||||||
<height>49</height>
|
<height>66</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout" >
|
<layout class="QVBoxLayout" name="verticalLayout" >
|
||||||
|
|
@ -501,6 +501,12 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="showAnswerButton" >
|
<widget class="QPushButton" name="showAnswerButton" >
|
||||||
|
<property name="minimumSize" >
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>41</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="toolTip" >
|
<property name="toolTip" >
|
||||||
<string>Show the answer (shortcut key: space or enter)</string>
|
<string>Show the answer (shortcut key: space or enter)</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
@ -516,8 +522,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>542</width>
|
<width>428</width>
|
||||||
<height>49</height>
|
<height>66</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3" >
|
<layout class="QVBoxLayout" name="verticalLayout_3" >
|
||||||
|
|
@ -666,8 +672,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>542</width>
|
<width>428</width>
|
||||||
<height>49</height>
|
<height>66</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4" >
|
<layout class="QVBoxLayout" name="verticalLayout_4" >
|
||||||
|
|
@ -701,8 +707,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>542</width>
|
<width>428</width>
|
||||||
<height>49</height>
|
<height>66</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_6" >
|
<layout class="QVBoxLayout" name="verticalLayout_6" >
|
||||||
|
|
@ -724,6 +730,16 @@
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Review</string>
|
<string>Review</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="icon" >
|
||||||
|
<iconset resource="../icons.qrc" >
|
||||||
|
<normaloff>:/icons/player-time.png</normaloff>:/icons/player-time.png</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="iconSize" >
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
|
@ -734,7 +750,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>428</width>
|
<width>428</width>
|
||||||
<height>49</height>
|
<height>66</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_7" >
|
<layout class="QVBoxLayout" name="verticalLayout_7" >
|
||||||
|
|
@ -774,7 +790,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>428</width>
|
<width>428</width>
|
||||||
<height>49</height>
|
<height>66</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/" >
|
<qresource prefix="/" >
|
||||||
|
<file>icons/player-time.png</file>
|
||||||
<file>icons/find.png</file>
|
<file>icons/find.png</file>
|
||||||
<file>icons/editclear.png</file>
|
<file>icons/editclear.png</file>
|
||||||
<file>icons/view-statistics.png</file>
|
<file>icons/view-statistics.png</file>
|
||||||
|
|
|
||||||
BIN
icons/player-time.png
Normal file
BIN
icons/player-time.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in a new issue