Commit graph

1256 commits

Author SHA1 Message Date
Damien Elmes
ef27280b08 remove obsolete spacing options from model properties 2010-12-02 03:51:09 +09:00
Damien Elmes
a7a7ae1cf2 only play audio once 2010-12-01 02:45:04 +09:00
Damien Elmes
56c5bafe97 fix options leaking into other fields 2010-12-01 02:41:52 +09:00
Damien Elmes
2a36c4aaaf allow study options to expand more 2010-12-01 02:41:40 +09:00
Damien Elmes
df2f09c253 fix links in card layout screen 2010-12-01 02:15:38 +09:00
Damien Elmes
69a684f059 disable collapsible children in splitters 2010-11-30 22:48:28 +09:00
Damien Elmes
9bbf2c1126 add rename card template ability 2010-11-30 04:24:49 +09:00
Damien Elmes
8835f079d4 make sure alignment set on load 2010-11-30 03:53:49 +09:00
Damien Elmes
8e8cd73d5d link editTemplates button, but hide for now 2010-11-30 03:51:13 +09:00
Damien Elmes
5945ecd115 fix bug/crash caused by a reset in tag focus lost 2010-11-30 03:47:43 +09:00
Damien Elmes
e8aa1432e2 add whitespace preservation option & stateChange handlers 2010-11-30 03:30:21 +09:00
Damien Elmes
59ab5f9abb make it a full blown window 2010-11-30 02:58:51 +09:00
Damien Elmes
f4ef8b5123 add help, limit to card in edit current, add back compat hack 2010-11-30 02:57:17 +09:00
Damien Elmes
b98e302c70 field section implemented 2010-11-30 02:17:36 +09:00
Damien Elmes
63b015fba5 card template section implemented 2010-11-30 00:09:29 +09:00
Damien Elmes
35a5569038 dialog refactor wip 2010-11-29 04:56:45 +09:00
Damien Elmes
5ecb4bde49 clear compiled plugin files; make some strings translatable 2010-11-28 18:44:56 +09:00
Damien Elmes
8074e7b5a8 more robust add cards fix 2010-11-28 18:03:00 +09:00
Damien Elmes
0c7988fc01 remove old keypress handler; qt seems to get it right now 2010-11-28 02:57:44 +09:00
Damien Elmes
54c1d253a3 make sure to save fields before previewing 2010-11-28 02:24:44 +09:00
Damien Elmes
d770008228 display new style formats, but keep old style on DB for now 2010-11-28 02:02:36 +09:00
Damien Elmes
054287445c workaround _programLayout missing bug 2010-11-27 23:59:05 +09:00
Damien Elmes
0110875a9d fix some issues with the fact editor
- don't save a fact to disk on keystroke timer
- update unique/required checking for the above
- don't try to set focus to old widget if it doesn't exist
2010-11-27 23:37:35 +09:00
Damien Elmes
8870adf528 if exiting a custom scheduler, need to reset to update counts 2010-11-27 22:41:05 +09:00
Damien Elmes
d897ff7a0b typo of 'download' 2010-11-27 07:39:24 +09:00
Damien Elmes
05baaaaf44 wipe original media path when exporting 2010-11-26 04:15:29 +09:00
Damien Elmes
1be2176b8e added find duplicate tool to the browser 2010-11-26 03:46:49 +09:00
Damien Elmes
7d799d8b57 don't display 'field mapping' if we're importing an anki file 2010-11-26 02:02:45 +09:00
Damien Elmes
9367570900 support updating of decks, simplify importing dialog
- can now choose 'update' instead of 'import', so users can maintain their
  data in a separate spreadsheet or file for bulk editing
- remove 'tags to append' option, as it makes the dialog a bit crowded. users
  can add 'tags:' to the start of their text files instead
- removed option to tag instead of suppress duplicates - a separate duplicate
  finding tool will be written instead
2010-11-26 01:57:29 +09:00
Damien Elmes
a3816b0e9e fix for bad filesystems not working with utime 2010-11-25 07:18:41 +09:00
Damien Elmes
5d41329e34 toolkit doesn't elide list items on osx, so don't limit size 2010-11-25 00:10:24 +09:00
Damien Elmes
ebbf32b750 keep focus when resetting fact editor 2010-11-24 05:06:29 +09:00
Damien Elmes
a46c9a8b26 sync updates (syncName, etc)
- remove text box from deck properties
- exiting deck properties after enabling syncing forces a sync
- instead of the arduous file>sync, enable checkbox, close dialog, file>sync
  again process users had to go through before, they can just file>sync now
  and the deck immediately syncs
- when downloading a deck, instead of downloading into a new name, prompt if
  the user wants to overwrite the deck, and cancel if they don't
- simplify deckChooser since we only have to deal with downloading now
- only display a clobber warning if the deck already existed on the server
- disable syncing if user declines to clobber the deck
- skip expensive summary generation if downloading or a conflict
2010-11-23 23:28:45 +09:00
Damien Elmes
3be42fbbfe suppress reset when editing current card 2010-11-23 19:28:58 +09:00
Damien Elmes
0414eed116 call .reset() where necessary due to libanki changes
- mw.reset() rebuilds the deck queue, and refetches the current card, so we
  don't try to answer a card that's not in the queue
- in a number of cases we were already explicitly calling reset; the libanki
  changes ensure we're not doing it twice now
- the editor no longer resets the current card when it's closed. Instead, all
  deck operations in the editor should reset when they are performed
2010-11-23 18:00:29 +09:00
Damien Elmes
5067577337 rebuild queues after editing current card 2010-11-23 16:39:25 +09:00
Damien Elmes
4313367efe show failed cards first when cramming restarted 2010-11-21 13:46:16 +09:00
Damien Elmes
80dcf3848c should be checking cardQueue, not cardType in status 2010-11-21 13:37:14 +09:00
Damien Elmes
c2d9ab9423 update deckproperties diag for new delay1 handling 2010-11-13 21:55:03 +09:00
Damien Elmes
9bfd6843bb update cutoff when sitting in study options / finish screen 2010-11-13 17:09:02 +09:00
Damien Elmes
6d53fdc327 more useful version info 2010-11-13 17:06:43 +09:00
Damien Elmes
41868f1c95 limit new day starts at to -24~24 2010-11-13 11:55:48 +09:00
Damien Elmes
bd08dc487b Revert "remove inactive tags from dialogs"
This reverts commit d2e454930d.
2010-11-02 02:16:18 +09:00
Damien Elmes
a6066d5033 be consistent in deck references 2010-11-01 18:53:37 +09:00
Damien Elmes
10550aa5bc update some obsolete qt signals 2010-10-29 22:39:54 +09:00
Damien Elmes
16413c0b3b tweak wording & sizes 2010-10-29 22:04:56 +09:00
Damien Elmes
5c45ea2600 tweak table sizes 2010-10-29 21:54:34 +09:00
Damien Elmes
d2e454930d remove inactive tags from dialogs 2010-10-29 21:06:45 +09:00
Damien Elmes
cbb538c741 remove model tags, treat name as tags like card templates 2010-10-29 19:26:02 +09:00
Damien Elmes
7a138927cc drop support for old full toolbar - can be done in a plugin 2010-10-27 21:34:08 +09:00
Damien Elmes
b0cf565e6f unfilteredcompletion->popup completion 2010-10-27 21:13:55 +09:00
Damien Elmes
2329baa789 if <c>...</c> in q/a format, limit display in card list to that 2010-10-27 20:11:08 +09:00
Damien Elmes
f5a931bb07 typo in bold fix 2010-10-25 13:08:39 +09:00
Damien Elmes
c03d634012 use libanki's bury support 2010-10-24 13:06:26 +09:00
Damien Elmes
5a71cd84a3 remove underline hack, more robust bold hack for osx 2010-10-24 12:50:20 +09:00
Damien Elmes
822d1f7609 refetch the card after editing 2010-10-24 12:21:40 +09:00
Damien Elmes
527c4220c2 strip old earliestTime debugging code, don't update pri on mark, w32 frame 2010-10-24 12:08:39 +09:00
Damien Elmes
2264703db9 don't apply toolbar hack on osx 2010-10-23 14:00:24 +09:00
Damien Elmes
5fcd2d6e9b suppress 'was due' messages while cramming, timebox screen on ses fin 2010-10-20 18:03:00 +09:00
Damien Elmes
f549dfcfa9 updates for new cram code; remove priority 0 highlight in browser 2010-10-20 13:15:19 +09:00
Damien Elmes
8032c4a66b don't check sources on sync; let ankionline handle it instead 2010-10-19 19:59:47 +09:00
Damien Elmes
cdab5318d1 remove sources from deck properties, as they can be configured online 2010-10-19 19:55:31 +09:00
Damien Elmes
aaaf025062 remember study options tab, make sure to hide bottom area 2010-10-19 19:27:21 +09:00
Damien Elmes
1abb47d973 new active/inactive tag handling, new study options screen
- break study options into multiple tabs
- inactive tags removed from menus and accessible via study options now
- save various study options immediately instead of requiring review button to
  be pressed
2010-10-19 19:15:21 +09:00
Damien Elmes
d698c3d310 add perDay config option, more updates for libanki sched changes
- new review early / learn more handling
- reset() when showing study stats
- only run the update timer on study screen & finished screen
2010-10-18 18:02:37 +09:00
Damien Elmes
afba9529fe reset in status update timer - should check this is efficient enough 2010-10-18 14:48:52 +09:00
Damien Elmes
53df67738c update for libanki scheduling changes 2010-10-18 14:47:57 +09:00
Damien Elmes
dcd6e2dfc3 fix qt4.7 duplicate toolbars 2010-10-18 10:34:33 +09:00
Damien Elmes
1365557930 remove win32 importing hack, require target deck to be on disk 2010-10-02 14:43:09 +09:00
Damien Elmes
39ed7ff44e fix deckPath=none error for clockoff case 2010-10-02 11:38:19 +09:00
Damien Elmes
3a9bff8e11 add small sleep after multi sync 2010-09-16 14:38:24 +09:00
Damien Elmes
e1ecae0ecb facts missing warning 2010-09-12 12:21:18 +09:00
Damien Elmes
ac8da946e0 don't hide vert. scroll bar 2010-08-25 14:22:02 +09:00
Damien Elmes
b36b670043 older pysqlite can't auto-convert unicode to utf-8 2010-08-24 13:09:59 +09:00
Damien Elmes
5fc33ab143 don't report conflicts when decks have same mod time 2010-08-19 12:02:02 +09:00
Damien Elmes
9b15771d84 refresh undo options after undo finished 2010-08-16 19:26:50 +09:00
Damien Elmes
ee2d39938d use array ref when selecting facts 2010-08-16 19:10:40 +09:00
Damien Elmes
5e62fea9c8 remove conflicting close window shortcut 2010-08-09 08:45:32 +09:00
Damien Elmes
14c4dfeea2 patch from bernhard: revert to previous spell check behaviour 2010-08-05 06:51:43 +09:00
Damien Elmes
b3e47d836b overwrite->upload 2010-07-30 18:37:55 +09:00
Damien Elmes
1eac9b52a5 fail gracefully if db is locked on sync all 2010-07-30 16:41:20 +09:00
Damien Elmes
1204f977e5 do clock skew check on initial connect only 2010-07-30 16:37:37 +09:00
Damien Elmes
7f41973972 rework conflict algorithm to detect more conflict cases 2010-07-27 23:19:44 +09:00
Damien Elmes
24d45cf93c always reset hideWelcome after a close 2010-07-27 23:18:55 +09:00
Damien Elmes
9491acc088 process the widget deletions before deleting the layout 2010-07-27 21:02:45 +09:00
Damien Elmes
49c92b9605 remove debug statement 2010-07-27 16:59:49 +09:00
Damien Elmes
7a510cc111 add loadDeck hook, fix hideWelcome behaviour
- if hideWelcome is true after a sync, do nothing at all
- make sure to reset hideWelcome on deck load
2010-07-27 16:59:04 +09:00
Damien Elmes
18c8d6766d possible fix for recursion bug in maybeShow() 2010-07-27 16:20:22 +09:00
Damien Elmes
d9af6288e1 do clobber detection at sync time, fix sync bugs
- don't get stuck in event loop if user cancels deck selection
- prompt for any full sync upload with no last sync time, so this also warns
  about syncs after a DB check too
- fixes erroneous warning with file>download>personal deck
2010-07-27 15:47:15 +09:00
Damien Elmes
4eacbec78b possible solution to w32 deck browser crashes 2010-07-27 15:03:46 +09:00
Damien Elmes
fbe7e12160 if an error happens during connect, terminate multi sync 2010-07-26 19:39:56 +09:00
Damien Elmes
ac735c9a34 tweak formatting 2010-07-21 20:25:39 +09:00
Damien Elmes
b006b08af1 tweak wrapping 2010-07-21 19:06:20 +09:00
Damien Elmes
e5bb3b38f1 double check with the user before allowing them to clobber their deck 2010-07-21 19:05:20 +09:00
Damien Elmes
c9010e984e fix race condition in deck browser signal handlers 2010-07-21 18:53:43 +09:00
Damien Elmes
e3f50540d5 detect sync conflicts and offer choice of direction 2010-07-21 18:35:55 +09:00
Damien Elmes
f93910128f multi-deck sync and related improvements
- deck open & browser refresh done after splash screen hidden now
- splash reduced to 3 steps
- new options sync on program load/close
- per-deck auto sync disabled on upgrade
- plugins are now always loaded before a deck has been opened
- don't prompt for sync params in auto sync, for both all and single deck
- refresh deck browser after multi sync
- wait on sync thread until syncFinished called, could fix crashes
- after a full sync, ensure interface is still disabled
- sync menu option now available in deck browser
- new option to tell a progress window it should appear immediately
2010-07-21 13:16:07 +09:00
Damien Elmes
77ede46ebb fix closing logic 2010-07-19 22:46:35 +09:00
Damien Elmes
8199799249 warn about cram for edit current too 2010-07-19 20:31:11 +09:00
Damien Elmes
40c0741133 tweak wording 2010-07-14 15:07:54 +09:00
Damien Elmes
75fb9a111e make the close button an application shortcut, raise window for osx terminal 2010-07-11 17:13:43 +09:00
Damien Elmes
a2713450a7 clear audio before previewing card 2010-07-11 16:49:23 +09:00
Damien Elmes
014c993688 colour times by default, add another mac build script 2010-07-11 16:43:24 +09:00
Damien Elmes
e3ab11213d make sure to move to noDeck at least once 2010-07-08 21:55:56 +09:00
Damien Elmes
1b7d0ac7ee adjust offset to account for extra sort key 2010-07-01 13:32:11 +09:00
Damien Elmes
79831c4861 patch from Bernhard Ibertsberger to ignore some chars in type to ans 2010-06-29 08:10:37 +09:00
Damien Elmes
722227050a don't save closed deck on sync failure, don't refresh deck browser twice 2010-06-29 08:03:26 +09:00
Damien Elmes
0b3cf9f91e add occitan to list of languages 2010-06-28 14:36:50 +09:00
Damien Elmes
634db40e56 don't try to localize traceback 2010-06-28 11:31:54 +09:00
Damien Elmes
88581105d4 add flac to supported audio formats 2010-06-27 07:53:51 +09:00
Shawn M Moore
4317388225 Index firstAnswered 2010-06-12 10:14:48 -04:00
Shawn M Moore
ea5caa504b Add "First Review" to sort columns in card editor 2010-06-12 10:05:48 -04:00
Damien Elmes
0cab72ef1e remove string exceptions for python2.6 2010-06-10 13:24:35 +09:00
Damien Elmes
7d22ef3c8d add fixme 2010-05-19 22:08:11 +09:00
Damien Elmes
4f03bdd94b don't force maxFailed=2 when the user wants unlimited 2010-05-10 22:31:08 +09:00
Damien Elmes
3e739e7698 make sure to return newly created media path 2010-05-01 16:11:37 +09:00
Damien Elmes
a563109e53 don't assume media directory exists 2010-04-15 22:18:41 +09:00
Damien Elmes
3db9c0f937 update error message 2010-04-15 22:08:16 +09:00
Damien Elmes
f0236932b9 correct capitalization 2010-04-12 11:49:13 +09:00
Damien Elmes
7698d36f84 catch media adding errors 2010-04-06 19:15:30 +09:00
Damien Elmes
4928c21914 delete media folder too 2010-04-06 18:59:43 +09:00
Damien Elmes
9266a3b204 delegate all links 2010-04-05 19:09:12 +09:00
Damien Elmes
02003ff1ed remove pyqt broken check hack 2010-04-01 23:04:15 +09:00
Damien Elmes
fce5fd73e8 sort by combined due 2010-03-23 17:59:43 +09:00
Damien Elmes
d7075ecae9 add support for custom document dir 2010-03-23 17:15:00 +09:00
Damien Elmes
032ab3fb49 last completion change broke completion - fix 2010-03-23 17:10:55 +09:00
Damien Elmes
ed948ee810 use unicode for error 2010-03-23 17:06:27 +09:00
Christian Krause
e4d4ecf221 Fix crash with enabled sys tray icon
If sys tray icon is enabled anki crash when e.g. the graphs
view is opened. Removing the lambda functions used for the
signal registration fixes the problem.
2010-02-28 15:06:48 +09:00
Damien Elmes
21969b1549 add swf+flv 2010-02-26 16:44:35 +09:00
Damien Elmes
2da5c6c4e9 don't force the user to fix a duplicate field anymore 2010-02-23 17:33:58 +09:00
Damien Elmes
a94e0ed29e ensure actions are updated after plugins loaded 2010-02-22 18:09:45 +09:00
Damien Elmes
c2186f2a59 don't bump deck modified until fact is commited 2010-02-22 18:00:10 +09:00
Damien Elmes
f083d95282 fix page reload 2010-02-22 16:22:51 +09:00
Damien Elmes
edc680b2ea don't error out if ret hit in tag list before selection visible 2010-02-18 17:23:21 +09:00
Shawn M Moore
3f551e70f9 Keep track of whether the FactEditor is used for Add or Edit 2010-02-15 13:49:43 -05:00
Shawn M Moore
c234423f04 Forgot to return the new fact from initializeNewFact 2010-02-15 12:51:15 -05:00
Shawn M Moore
c0003c4c03 Factor out drawField 2010-02-14 18:41:26 -05:00
Shawn M Moore
f3b81d0024 Factor out initializeNewFact 2010-02-14 18:21:57 -05:00
Shawn M Moore
fe82902d5d Factor out clearOldFact method 2010-02-14 18:13:01 -05:00
Shawn M Moore
02c6e0c2bb Factor out addFact logic 2010-02-14 17:50:45 -05:00
Shawn M Moore
79579676c5 Factor out reportAddedFact 2010-02-14 17:49:20 -05:00
Damien Elmes
bd595a1e0d update hungarian name 2010-02-14 12:49:24 +09:00
Damien Elmes
1daf8f9601 if an error occurs during progress op, reactivate main window 2010-02-12 16:46:10 +09:00
Damien Elmes
0f3a083278 convert reverse order menu item to toggle button 2010-02-12 16:35:11 +09:00
Damien Elmes
20f9e69b79 capitalization tweak 2010-02-12 15:51:11 +09:00
Damien Elmes
64cd0499ba make sure to open a browser when link clicked in preview 2010-02-12 15:16:20 +09:00
Damien Elmes
d320c01372 separate button labels and default buttons 2010-02-12 14:02:29 +09:00
Damien Elmes
1c858f48b0 move cloze & preview to first line, enable preview & expand always 2010-02-12 03:05:03 +09:00
Damien Elmes
b7cd8a1385 add hack for qt underline bug back in 2010-02-10 23:00:50 +09:00
Damien Elmes
11357d5736 add ogv/ogx/oga, separate from translation 2010-02-10 00:49:53 +09:00