Commit graph

54 commits

Author SHA1 Message Date
Damien Elmes
19ec6b2a1b don't reset on edits in the add card dialog 2010-12-14 21:34:00 +09:00
Damien Elmes
69a684f059 disable collapsible children in splitters 2010-11-30 22:48:28 +09:00
Damien Elmes
b98e302c70 field section implemented 2010-11-30 02:17:36 +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
53df67738c update for libanki scheduling changes 2010-10-18 14:47:57 +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
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
ea76ddc9f3 honor styles in css in add/edit dialogs too 2010-01-26 01:23:53 +09:00
Damien Elmes
728d97104f redraw status after card add 2009-12-16 05:56:28 +09:00
Damien Elmes
e7223120ea always deinit modelchooser 2009-06-23 05:17:21 +09:00
Damien Elmes
bafa267c7c make sure to deinit guiReset hook in model chooser 2009-06-08 23:19:42 +09:00
Damien Elmes
73bc481236 fix changing model in editor not updating 2009-06-07 02:18:43 +09:00
Damien Elmes
636a661569 refresh add cards window & model chooser on gui reset 2009-06-05 16:10:12 +09:00
Damien Elmes
ca583a5230 force text to black, don't force in add cards status 2009-06-05 15:28:15 +09:00
Damien Elmes
af67f6fa9c hyperlink added cards 2009-05-30 18:22:30 +09:00
Damien Elmes
588a3feead make sure add items status is read-only, fix colour on osx 2009-05-09 07:19:30 +09:00
Damien Elmes
798fa82ed3 add deck name to add items/browser 2009-05-09 06:03:09 +09:00
Damien Elmes
a422ddb57b experiment with standalone windows 2009-04-21 02:16:17 +09:00
Damien Elmes
4d95b3487d scroll to top when adding, keep tags always shown, not tag up on field edit 2009-04-18 02:41:16 +09:00
Damien Elmes
090161e69f fix tab order for remaining buttons 2009-04-10 22:28:45 +09:00
Damien Elmes
fd57313d74 Reverting "if add button is focused and fact is complete, add" 2009-04-10 22:26:53 +09:00
Damien Elmes
8f2f01340a only trigger on keyboard focus 2009-04-07 09:45:59 +09:00
Damien Elmes
462b63576a if add button is focused and fact is complete, add 2009-04-07 09:36:43 +09:00
Damien Elmes
a601268d4c close(not hide) deck windows before deck close, remove stale hooks 2009-03-28 22:51:38 +09:00
Damien Elmes
ff2d1d1964 change tab order so 'add' comes after tags, make add default except in tags 2009-03-23 09:47:07 +09:00
Damien Elmes
550985984a mention add shortcut 2009-01-24 04:24:21 +09:00
Damien Elmes
1926d127f8 prevent saveas on autosave 2009-01-07 18:13:41 +09:00
Damien Elmes
39d59d4d99 clear audio queue when changing cards/editing 2009-01-05 14:39:03 +09:00
Damien Elmes
75af04b383 new 'new' and 'save' behaviour, document dir per platform
- 'new' now creates or opens mydeck on new install
- if not on a new install, open an in-memory database instead
- saveas refactored to require saving of an in-memory db
- autosave disabled until deck has an associated file
- openonline uses a tmp file as it depends on a file at the moment. this can
  go away if the sync code is refactored in the future
2009-01-04 09:16:53 +09:00
Damien Elmes
504749b741 default to optional answer, add config option to card model, tweak dialogs 2008-12-23 13:41:48 +09:00
Damien Elmes
798e0e255b fix reference to cards 2008-12-07 11:39:51 +09:00
Damien Elmes
458c69e3ff addFact() now returns fact, not cards 2008-12-07 11:38:54 +09:00
Damien Elmes
a3ac8e3c0a fix tag saving, remember added tags without having to reopen, fix ret in add 2008-12-05 19:25:09 +09:00
Damien Elmes
e6d77ebb6d remember splitter state, possible fix for focus error 2008-12-01 00:02:51 +09:00
Damien Elmes
fd14b3f2dd add undo/redo to editor, focus current card, del 2008-11-30 05:39:04 +09:00
Damien Elmes
37f96fb5a7 fix lookup, bug in addcards, tag completer 2008-11-28 18:52:39 +09:00
Damien Elmes
7563879093 make sure to save facts before closing editor, etc 2008-11-27 15:58:00 +09:00
Damien Elmes
1570f65c48 Reverting "remove obsolete call" 2008-11-21 20:13:01 +09:00
Damien Elmes
595a7deef4 remove obsolete call 2008-11-21 20:07:27 +09:00
Damien Elmes
518fcc3442 inline edit, fix images, css, scroll to bottom, status, etc
- new edit card inline mode
- provide file:// url for images for webkit
- look for the css file inside the anki dir
- make add cards dialog more compact
- launch clicked links in external window
2008-11-21 20:05:15 +09:00
Damien Elmes
1350c9c338 change shortcuts to avoid conflicts, remove alt-a indicator 2008-11-19 18:43:24 +09:00
Damien Elmes
b62f7e847b make sure initial card has correct css 2008-11-15 02:38:27 +09:00
Damien Elmes
add79296a8 copy fields in order, not by name, when changing models 2008-11-14 17:03:57 +09:00
Damien Elmes
5219783182 keep fields when changing model 2008-11-14 16:22:58 +09:00
Damien Elmes
afd03844e2 fix shortcut keys for mac, update help, change some shortcuts 2008-11-14 15:46:41 +09:00
Damien Elmes
a61d8d916a update fields on focus change 2008-10-20 00:00:17 +09:00