luoliyan
bf8fddfabc
Add name to about screen
2017-02-24 21:41:47 +09:30
Damien Elmes
bcaf5762ec
fix errors when previewing
2017-02-23 16:21:00 +10:00
Damien Elmes
d1ebc8d805
add dmitry to about.py
...
Anyone else who's contributed anything to Anki - however small - is most
welcome to be listed in the about screen. Sending me a pull request that
adds your name or alias would be easiest, but if that is difficult
please let us know on the support site and we'll do it for you.
2017-02-23 14:41:07 +10:00
Damien Elmes
8085f8bc04
refuse to load on qt5.8.0 due to lack of IME support, etc
2017-02-22 18:36:46 +10:00
Damien Elmes
9c2c590de9
Merge pull request #170 from illia-v/super-no-arguments
...
Use `super()` without arguments
2017-02-22 18:34:08 +10:00
Damien Elmes
57c8e43327
change profile folder on windows and linux
...
onedrive seems to frequently screw up the permissions on the documents
folder. since we're stuck with more difficult to find folders on
mac/win, we may as well migrate linux as well, to a more
standards-compliant path.
2017-02-22 18:16:19 +10:00
Illia Volochii
ddc4c6a7e3
Use super()
without arguments
2017-02-21 23:08:41 +02:00
Damien Elmes
0f04744f7e
fix embedded fonts
2017-02-21 13:27:29 +10:00
Damien Elmes
745108bffd
make sure we close all windows prior to unloading the collection
2017-02-19 15:13:58 +10:00
Damien Elmes
7ebd66a1c8
add modeltest to browser; fix an issue with rowCount()/columnCount()
2017-02-19 14:30:35 +10:00
Damien Elmes
6335dcb90e
canonicalize to NFC form on edit/import
2017-02-19 12:49:52 +10:00
Glutanimate
d530d5fdef
Remove temporary note when switching note model
2017-02-16 05:00:49 +01:00
Damien Elmes
082448744d
Merge pull request #165 from luoliyan/fix-tooltip-import
...
Fix NameError caused by missing import
2017-02-16 12:57:19 +10:00
luoliyan
c7e5a618a5
Fix NameError caused by missing import
2017-02-15 23:08:37 +09:30
luoliyan
e892a30728
Fix error caused by converting delimiter to bytes
2017-02-15 18:45:04 +09:30
Damien Elmes
b58c082e29
tweaks to add-on downloading
...
- avoid opening and closing multiple progress dialogs
- report errors at the end; download what we can
- update dialog text
2017-02-15 15:55:31 +10:00
Damien Elmes
f483753b6c
Merge pull request #163 from ankitest/patch-7
...
Install addons by spaced list; showInfo -> tooltip
2017-02-15 15:37:20 +10:00
Damien Elmes
41dc837712
Merge pull request #162 from luoliyan/master
...
Handle invalid delimiters more gracefully
2017-02-15 13:42:21 +10:00
Damien Elmes
6d39c8f0cb
Merge branch 'master' of github.com:dae/anki
2017-02-15 13:41:40 +10:00
Damien Elmes
88d8be32d9
allow setting base via env var
2017-02-15 13:41:19 +10:00
Dmitry Mikheev
94894d3750
Install addons by spaced list; showInfo -> tooltip
...
Allow users to install multiple addons simultaneously listed by white spaces
without asking user to hit the key after installation.
2017-02-14 09:48:46 +05:00
luoliyan
7002a2a4f8
Handle invalid delimiters more gracefully
2017-02-13 21:42:19 +09:30
Simone Gaiarin
b52159edd0
Improve usability of increase new/review card limit dialog
...
*Show to the user the number of card left in the deck exceeding the ones under review
*Fix spin box max value accordingly
2017-02-11 20:11:31 +01:00
Simone Gaiarin
dfa183a461
Remove unuseful statement, it does nothing
2017-02-11 20:11:30 +01:00
Damien Elmes
e870468ad6
Merge pull request #159 from illia-v/stop-object-inheritance
...
Stop inheriting from `object`
2017-02-08 17:02:09 +10:00
Illia Volochii
13b7e01044
Stop inheriting from object
...
It is not needed in Python 3.
2017-02-07 00:21:33 +02:00
Henrik Enggaard Hansen
86c332e064
Typographic changes in history string
2017-02-05 09:13:14 +01:00
Henrik Enggaard Hansen
ce8ae436ea
Insert ellipsis in history string
2017-02-05 08:45:08 +01:00
Damien Elmes
2fc47773b6
show error on invalid search
2017-02-02 21:00:58 +10:00
Damien Elmes
9ed315cbb7
fix progress window getting stuck on ubuntu 16.10
...
https://anki.tenderapp.com/discussions/beta-testing/231-anki-210-alpha-9#comment_41810358
2017-01-25 16:50:57 +10:00
Damien Elmes
6ae21e86af
remove print statements that were causing unicode errors
2017-01-25 15:12:48 +10:00
Damien Elmes
b81998a374
stop logging gc
2017-01-20 15:12:48 +10:00
Damien Elmes
02975d43ad
partial sync cancellation
...
each time we send or receive a chunk of data we check to see if the
user wants to cancel sync
in the case of a hung connection, it will still take a minute to time
out
2017-01-17 17:15:50 +10:00
Damien Elmes
fe8f6d518a
embedded fonts should work on osx now; remove font-weight hack
2017-01-17 14:45:12 +10:00
Damien Elmes
9761e88ce5
ensure bottomWeb shown again when exiting resetRequired
2017-01-17 14:05:05 +10:00
Damien Elmes
c382a83395
stop forcing XP mode on windows
...
IIRC we were doing it to work around an issue in an older qt
2017-01-17 13:53:02 +10:00
Damien Elmes
a44dc7f174
prevent backspace key from going back a page
2017-01-17 13:39:38 +10:00
Damien Elmes
f68d5a4285
Merge pull request #154 from simgunz/editor-buttons
...
Editor buttons
2017-01-16 15:08:23 +10:00
Simone Gaiarin
b57ee28ae7
Add check on file existence
2017-01-14 21:16:50 +01:00
Damien Elmes
a76c6a1bcf
use 'Library/Application Support' to match 2.0.x
2017-01-13 21:14:04 +10:00
Damien Elmes
864fbdf469
turn off buffering on crash log, and log gc start/finish
2017-01-13 20:56:24 +10:00
Damien Elmes
ed07a147f9
support for saving stats to a pdf
2017-01-13 17:36:26 +10:00
Damien Elmes
a05ebdbefb
do GC on autosave
...
- ensures we're not called as part of the db progress callback
- minimises the chance of data loss if a gc causes a crash
2017-01-13 16:20:39 +10:00
Damien Elmes
7d1b894b45
add small bottom margin between "Fields"/"Cards" and field area
2017-01-10 19:02:29 +10:00
Damien Elmes
dd9acf0145
remove delete shortcut from More menu
2017-01-10 18:39:31 +10:00
Damien Elmes
6e933793f6
Merge branch 'master' of github.com:dae/anki
2017-01-10 18:35:31 +10:00
Damien Elmes
08747747bf
prevent preview stealing focus in clayout
...
setHtml() steals focus due to webengine bug - fixes
https://anki.tenderapp.com/discussions/beta-testing/206-anki-210-alpha-7#comment_41700440
2017-01-10 18:32:48 +10:00
David Bailey
620db69544
Fix bug caused when deleting a card just added and clicking History
2017-01-09 10:55:30 +00:00
Damien Elmes
75c22c999b
Merge branch 'master' of github.com:dae/anki
2017-01-09 14:35:15 +10:00
Damien Elmes
fb349a0a16
Merge pull request #150 from techdavid/fix-history
...
Show latest data under History in the Add dialog
2017-01-09 14:35:02 +10:00
David Bailey
4b83ba50f5
Show latest data under History in the Add dialog
2017-01-08 13:48:58 +00:00
Simone Gaiarin
a5c24aaca0
Add option to make button toggleable
2017-01-08 14:34:18 +01:00
Simone Gaiarin
67246f8c80
Add method to convert resource to data uri, add button image with this
2017-01-08 13:52:47 +01:00
Simone Gaiarin
81ed10faee
Add id param name and fix typo on duperscript id
2017-01-08 13:52:47 +01:00
Damien Elmes
fe0954beba
make it clear to use why anki's suggesting a download
...
avoid showing the upload button to prevent accidental data loss; user
can add a card if they want to upload
2017-01-08 22:21:58 +10:00
Damien Elmes
0dc08bbacc
fix error appearing when undo shortcut pressed when nothing to undo
2017-01-08 20:47:26 +10:00
Damien Elmes
70e751f6ec
disable the delete card shortcut
...
is being triggered when user has focus in text input due to webengine
bug
2017-01-08 20:45:27 +10:00
Damien Elmes
e2573d6a1a
fix error when writing to deleted.txt
2017-01-08 20:44:52 +10:00
Damien Elmes
9fbdca26a4
hack to preload images
...
this doesn't always work, presumably due to sibling burying
2017-01-08 20:37:20 +10:00
Damien Elmes
7ac1f6d3fe
fix DEBUG=1
...
the errors.py code was overwriting the excepthook installed in qt.py
2017-01-08 20:30:34 +10:00
Damien Elmes
a172af11a1
use in-memory cache for webengine
...
no need to persist things to disk, as we have a local copy in most
cases anyway
2017-01-08 20:02:49 +10:00
Damien Elmes
1405cddc6e
require qt5.7.1+
2017-01-08 19:34:31 +10:00
Damien Elmes
259023f369
write backups in thread; remove strip html & compress options
...
we do the backup compression/writing in a separate thread so it
doesn't slow down profile switching/syncing, and remove the option
to write uncompressed backups
the strip html option is no longer used, so remove it from preferences
2017-01-08 19:29:57 +10:00
Damien Elmes
f6245cdfd1
use requests for http; add progress info back
...
- wrap request in AnkiRequestsClient so we can keep track of
upload/download bytes without having to monkey patch anything
- force a 64kB buffer size instead of the default 8kB
- show one decimal point in up/down so small requests still give
visual feedback
- update add-on downloading and update check to use requests
- remove the update throttling in aqt/sync.py, as it's not really
necessary anymore
2017-01-08 19:06:32 +10:00
Damien Elmes
147e09a6cb
run the gc only in the main thread
...
if it fires in the mediasrv/sync thread it could cause a crash
2017-01-08 14:42:50 +10:00
Damien Elmes
9f28d5a638
set up fault handler
2017-01-08 13:39:57 +10:00
Simone Gaiarin
42ea7c53dd
Add optional id in parameters
2017-01-06 16:43:05 +01:00
Simone Gaiarin
1c8c34b443
Add padding among buttons
...
For some reason after using the new _addButton method the padding among the buttons is not there any more. So I add it manually.
2017-01-06 16:43:05 +01:00
Simone Gaiarin
abc3224fe3
Remove old tooltips
2017-01-06 16:43:05 +01:00
Simone Gaiarin
4e4947bd92
Run filter on right buttons list
2017-01-06 16:43:05 +01:00
Simone Gaiarin
5051dcedb6
Add anki buttons using the new method
...
The html of each anki button is stored in a list that is joined in a string at the end. This make it easier to run the filter.
Drawback: Only buttons on the right side of the editor can be added using the filter.
2017-01-06 15:57:02 +01:00
Simone Gaiarin
37e345ffe8
Replace _addButton method with HTML based one
...
Support loading icon from anki qrc resource file or using the absolute path
2017-01-06 15:57:02 +01:00
Simone Gaiarin
5775c3f92e
Add filter on topbuts to allow addons to add buttons
2017-01-05 12:42:19 +01:00
Simone Gaiarin
81b60c6dc4
Add css id to editor buttons div
...
This facilitate the processing with beutifulsoup or similar parser
2017-01-05 12:42:19 +01:00
Damien Elmes
5b71b720c2
Merge branch 'master' of github.com:dae/anki
2016-12-26 13:04:32 +10:00
Marcio Mazza
a1f29c2bd2
Remove editor dependency on ECMAScript 6
...
It seems that ES6 is not available on Qt 5.5.
2016-12-19 12:59:20 -02:00
Damien Elmes
7871949a6a
fix window not resizing properly
...
#12 of https://anki.tenderapp.com/discussions/beta-testing/203-anki-210-alpha-5#comment_41542208
2016-12-19 10:18:47 +10:00
Damien Elmes
9c04ac6a8e
fix opening of explorer folders on windows
2016-12-17 13:23:05 +10:00
Damien Elmes
b56ca60d2f
remove mac setLibraryPaths() call
2016-12-16 21:20:08 +10:00
Damien Elmes
0bd79abe11
work around https://bugreports.qt.io/browse/QTBUG-54755
2016-12-15 21:12:51 +10:00
Damien Elmes
fb81f63fe3
work around broken debug console shortcut
...
this will likely break the shortcut on keyboards where : is not a
shifted ;. can revert when qt fixes the issue
2016-12-15 21:00:59 +10:00
Damien Elmes
9b6a21126d
drag&drop support, and paste refactor
...
- insert resulting html directly into fields instead of relying on
fragile clipboard rewriting
- catch paste events in js and send them back to python so we cover
all possible ways of pasting
- use checksum in pasted image filenames instead of .cacheKey(),
which was not unique across runs
- try each _processX() in turn instead of having special cases inside
them
- rewrite the HTML filtering:
- img rewriting and stripping of certain tags handled in bs4; other
processing handled in js for easier sharing with other clients
- use a whitelist of HTML tags and properties instead of focusing
mainly on webkit cruft
- don't run filter when focus lost, as it no longer seems to
be necessary
- the "strip html" option is currently ignored
2016-12-15 18:14:47 +10:00
Marcio Mazza
e7eaf5f378
Fix open addon folder
...
The open folder operation would break if the environment variable
LD_LIBRARY_PATH was not set
2016-11-28 18:02:30 -02:00
Damien Elmes
6131b149da
Merge pull request #142 from goapunk/master
...
Fix the lambda function for changing the mapping of the fields
2016-10-20 17:16:09 +10:00
noobie
1a665cc185
Suppress the BeautifulSoup filename warning
...
Bs4 will raise a warning if the markup (field input) starts with '/'. Suppressing the warning is probably the easiest solution, as Bs4 will still process it (no disadvantages?).
2016-10-20 04:00:34 +02:00
noobie
90128cf2d5
Fix the lambda function for changing the mapping of the fields
...
The connect signal passes a bool to the given function by default, we need to ignore it.
use underscore for the sake of idiomology
2016-10-19 22:45:46 +02:00
Damien Elmes
54ea891564
another fix for add-on downloading
2016-08-02 11:51:44 +10:00
Damien Elmes
6377dd161f
fix mesa driver being loaded on nvidia driver machines
2016-08-01 12:16:06 +10:00
Damien Elmes
f465dbd8ad
use helvetica on mac
2016-07-26 10:34:16 +10:00
Damien Elmes
adda80fc33
refuse to run on qt5.7.0
2016-07-18 13:59:45 +10:00
Damien Elmes
6a109caa7c
dialogs.open() needs to un-minimize as well
2016-07-18 13:02:21 +10:00
Damien Elmes
7c76a23cce
we can revert to fix#1 for the modSchema issue now
...
as we save at start of change note type screen, instead of in
beginReset()
2016-07-14 21:49:40 +10:00
Damien Elmes
3be25cf900
fix nautilus failing to load in linux build
2016-07-14 21:06:33 +10:00
Damien Elmes
8e71554ac4
saveNow() now requires a callback
...
the current code was freezing when clicking on 'cards' in the
browser - it looks like like the javascript callback was never
being called despite calling processEvents(). so we need to
refactor the code to call saveNow() with a callback that does the
subsequent processing.
a lot of the browser code was implicitly calling saveNow() via
beginReset(), so we've had to change all that code to save
immediately before it begins any processing. found a probable bug in
the process - it doesn't look like onRowChange() was saving before
overwriting the note, so theoretically edits could be lost if the
user switched to another card very quickly after typing something.
onSearch() has been split into a GUI-activated onSearchActivated()
that takes care of saving, and a lower level search() that refreshes
the current search. it keeps track of the last search via an instance
variable so that it refreshes properly if a user accidentally adds
some characters to their search without activating the search, then
does something like reverse the sort order.
2016-07-14 20:23:44 +10:00
Damien Elmes
37bac3979c
select all shortcut in fields
2016-07-14 11:56:18 +10:00
Damien Elmes
8fdda2bb9c
tweak win button size
2016-07-12 16:40:13 +10:00
Damien Elmes
74de1face7
specify font size again on osx
...
we lose the native button appearance, but the text is too small to
read on OSX otherwise
2016-07-12 16:28:14 +10:00
Damien Elmes
85215018a5
another approach to fixing modSchema bug
...
start the progress dialog immediately so that askUser()
becomes part of the progress dialog's modality
the problem with the previous approach was that beginReset() attempts
to save the note again, leading to schema mismatches
2016-07-12 13:53:59 +10:00
Damien Elmes
166c6f4b3c
remove debug statement
2016-07-12 13:43:21 +10:00
Damien Elmes
3fa597ed1a
wait until saveNow() is done
...
fixes content missing if typed right before save, and add window
complaining that fields aren't empty when they appear so
2016-07-12 13:30:10 +10:00