Commit Graph

1012 Commits

Author SHA1 Message Date
Damien Elmes
d831bbee5f fix exporting & one bug in stats image export 2016-07-05 19:52:26 +10:00
Damien Elmes
d9fe0ef6e7 update dev docs 2016-07-05 19:38:54 +10:00
Damien Elmes
06169de6cd fix type answer 2016-07-05 13:14:45 +10:00
Damien Elmes
2d5affd3f2 Revert "hack around broken qwebchannel behaviour"
This reverts commit 447718c605.
2016-07-05 12:26:08 +10:00
Damien Elmes
44bf02d872 quieten beautifulsoup warning 2016-07-04 18:06:08 +10:00
Damien Elmes
ef89a0dadd update readme 2016-07-04 17:15:03 +10:00
Damien Elmes
85665bc18d fix latex check 2016-07-04 17:07:48 +10:00
Damien Elmes
1cebe4ee48 need portaudio dev 2016-07-04 16:51:25 +10:00
Damien Elmes
9ec32c8ebc add requirements.txt 2016-07-04 16:47:08 +10:00
Damien Elmes
ec1ee1255b update travis.yml 2016-07-04 16:45:49 +10:00
Damien Elmes
b80edee3c2 Merge pull request #105 from RawToast/ci-integration
Integrate test suite with Travis CI and Coveralls
2016-07-04 16:42:53 +10:00
Damien Elmes
d025fddfb4 Merge pull request #109 from subfusc/master
[Addons] Make it possible to distribute addons in a directory.
2016-07-04 16:35:49 +10:00
Damien Elmes
4175b6de5b Merge pull request #131 from ankitest/patch-5
next interval >= prev interval + 1
2016-07-04 16:32:57 +10:00
Damien Elmes
058fc373bd Merge branch 'master' of github.com:dae/anki 2016-07-04 16:33:03 +10:00
Damien Elmes
dfa479607c hook for showDeckOptions 2016-07-04 16:32:30 +10:00
Damien Elmes
d824f178cc Merge pull request #133 from hssm/browser-recenter
Fix automatic horizontal scrolling in browser
2016-07-04 16:29:45 +10:00
Damien Elmes
9de08e243e Merge pull request #134 from matthayes/master
Fix y axis tick rendering
2016-07-04 16:29:17 +10:00
Damien Elmes
447718c605 hack around broken qwebchannel behaviour
https://bugreports.qt.io/browse/QTBUG-53411
2016-07-04 16:25:24 +10:00
Damien Elmes
704610ef8f remove button styling
qt5.7 loses system styling when zoom applied
2016-07-04 16:24:43 +10:00
Damien Elmes
94463991bc basic sync support
currently no progress shown on large uploads/downloads
2016-07-04 15:45:53 +10:00
Damien Elmes
a1caa93054 fix mem leaks in dialogs
- ensure we're cleaning them up after they're rejected
- run the garbage collector afterwards so the qwebengineprocess
  instances get cleaned up
2016-07-04 13:22:35 +10:00
Damien Elmes
b65e8334d5 remove anki.bat 2016-06-30 22:23:54 +10:00
Damien Elmes
0c20da1069 fix conditional templates 2016-06-30 22:23:31 +10:00
Damien Elmes
ac7b081ece add support for a few more languages 2016-06-29 16:37:29 +10:00
Damien Elmes
2c227da603 set rpath for bundled mplayer on linux 2016-06-29 14:21:48 +10:00
Damien Elmes
eb3208e1e7 QKeySequence.Cancel is not in 5.5 2016-06-28 15:52:13 +10:00
Damien Elmes
de6ee8819f explicit python3 in runanki, remove /usr/share ref 2016-06-28 15:47:09 +10:00
Damien Elmes
e131b20afd tweak mplayer loc on osx 2016-06-28 13:26:19 +10:00
Damien Elmes
14ae3d5936 normalize version number 2016-06-28 12:49:54 +10:00
Matthew Hayes
d3d9ce24d5 Fix y axis tick rendering
Previously, y axis ticks could be fractional.  Fractional ticks were always rounded to the nearest whole number for display.  This leads to confusing graphs where the bar and ticks do not match up.  For example, if the bar is 3 and the tick is 2.5, then the bar renders just above the tick but the tick is rendered as 3. They both then appear to have value 3 but don't line up.

To fix this behavior, we now indicate to flot that for the y axis we don't want fractional tick values (by setting tickDecimals to 0).  flot will pick tick values to accommodate this setting.  If for some reason the ticks are fractional, which shouldn't happen, we will render to one decimal place.  Otherwise we render whole numbers without the decimal.  Since we are counting reviews, this behavior makes more sense, because reviews are always whole numbers and never fractional.
2016-06-24 17:59:46 -07:00
Damien Elmes
4b478cd3e9 unused imports 2016-06-23 12:09:18 +10:00
Damien Elmes
cf2ea47076 bump version 2016-06-23 12:07:17 +10:00
Damien Elmes
a4cab1d8f2 remove setupFonts(), disable syncing 2016-06-23 12:06:16 +10:00
Damien Elmes
1d75cff5e7 pyaudio is no longer optional 2016-06-23 12:04:48 +10:00
Damien Elmes
a001553f66 move the editor buttons into the webview
use new icons, which scale with dpi changes
2016-06-22 14:52:17 +10:00
Damien Elmes
8a7107ad8e tweak button appearance on osx 2016-06-22 14:43:59 +10:00
Damien Elmes
34b95514b5 import anki earlier so we can catch invalid python version 2016-06-22 14:42:41 +10:00
Damien Elmes
36c291c520 upgrade jquery & flot 2016-06-22 14:41:01 +10:00
Houssam Salem
7a60482269 Fix automatic horizontal scrolling in browser 2016-06-07 16:32:19 +10:00
Damien Elmes
4e2bd3f739 resize toolbars to fit content 2016-06-07 14:27:33 +10:00
Damien Elmes
d7339d9a27 update editor, key handling in webview
keyPressEvent/etc no longer work with qwebengineview, so we need to
install an event filter to catch things like ctrl+c. drag & drop
doesn't seem to be supported until 5.7
2016-06-06 17:54:39 +10:00
Damien Elmes
9abc9fde9f use a channel for bridge
acceptNavRequest was not being called for rapid updates, so it's not
usable
2016-06-06 15:50:03 +10:00
Damien Elmes
913f22a9f0 add requirements.txt 2016-05-31 18:52:23 +10:00
Damien Elmes
de7e40537d port majority of code to qt5.5+
- a few issues to work out still, and editor changes not done yet
- for communication between webengine and python code, we set window
.location to 'http://anki/<something>' - the leading http is
necessary for qt to call the link handler, which was introduced
in qt5.5
- the designer files now use a promoted qobject to create instances
of AnkiWebView
- we use the css zoom property to alter webengine font size based on
system dpi
- prefs and addons folder stored in new location (at least for now)
2016-05-31 18:51:40 +10:00
Damien Elmes
4d88b62fbf fix py3 issues with audio code 2016-05-31 17:51:16 +10:00
Dmitry Mikheev
2b922b3055 PEP8 2016-05-27 18:47:48 +05:00
Dmitry Mikheev
181c6f6f91 Refactoring a little bit
the current code just doesn't do it in the right order.
2016-05-27 01:33:46 +05:00
Dmitry Mikheev
cdfdffd608 To respect the max interval the user has set. 2016-05-27 00:55:05 +05:00
Dmitry Mikheev
c94b6a24bd next interval >= prev interval + 1
http://ankisrs.net/docs/manual.html#reviews

One final thing to note is that Anki forces a new interval to be at least 1 day longer than it was previously so that you don’t get stuck reviewing with the same interval forever. 

https://anki.tenderapp.com/discussions/ankidesktop/18382-new-interval-does-not-seem-to-be-updated-with-ease-at-130-and-current-interval-at-7-days

In some cases interval does not grow in fact.
2016-05-27 00:26:48 +05:00
Damien Elmes
63499fb7e9 fix entsToTxt() 2016-05-15 15:43:46 +10:00