Commit graph

746 commits

Author SHA1 Message Date
Damien Elmes
4d945592dd fix save image link on win32 2011-04-28 09:28:03 +09:00
Damien Elmes
ef5caf5038 activated->triggered() 2011-04-28 09:28:03 +09:00
Damien Elmes
3a4443404b don't call toString() on registry results; don't cast QUrl.toString() 2011-04-28 09:28:03 +09:00
Damien Elmes
f0311d1ecb remove qstringlist ref from init, disable cram for now 2011-04-28 09:28:02 +09:00
Damien Elmes
a253d756e3 use pyqt api2; move all imports into a single file for pyside 2011-04-28 09:28:02 +09:00
Damien Elmes
d02cfa28d9 move latex conf into model 2011-04-28 09:28:02 +09:00
Damien Elmes
b5b24be530 add eta to overview 2011-04-28 09:28:02 +09:00
Damien Elmes
cfefbc92ad leech action is no longer an array 2011-04-28 09:28:02 +09:00
Damien Elmes
e28f5fe931 tweak config and startup 2011-04-28 09:28:02 +09:00
Damien Elmes
f4ee17a5c6 drop the deck list button from the congrats screen 2011-04-28 09:28:02 +09:00
Damien Elmes
1a0d273b78 plugins -> add-ons; ditch separate download menu
Because of the extensive changes almost all plugins will require an update to
work with 2.0, and add-ons is a slightly friendlier name.
2011-04-28 09:28:02 +09:00
Damien Elmes
8567a5d7ae drop the d shortcut from the overview 2011-04-28 09:28:02 +09:00
Damien Elmes
60001e41e4 rename support, titlebar, recent decks
- use libanki's new .rename(); don't need to close any deck windows anymore
- titlebar updated only on app load now. No longer shows card
  count or due count, as computing it is expensive, and drops the deck
  name as it's more effective to use groups than separate decks now
2011-04-28 09:28:02 +09:00
Damien Elmes
0b95bab30b catch ret in type ans area 2011-04-28 09:28:02 +09:00
Damien Elmes
6f8a3c5216 if clozing on a word boundary, ensure it's preserved 2011-04-28 09:28:02 +09:00
Damien Elmes
6af10e4d01 ensure we pass a real bool to setChecked(); fix due for lrn 2011-04-28 09:28:02 +09:00
Damien Elmes
a18b5c5075 fix study options saving & randomize/order; update reschedule 2011-04-28 09:28:02 +09:00
Damien Elmes
d89098b677 add reposition tool, make sure to bump mod on setgroup, don't show 0 reviews 2011-04-28 09:28:01 +09:00
Damien Elmes
2b326e5773 allow the user to paste with formatting by holding down; don't clobber clipboard 2011-04-28 09:28:01 +09:00
Damien Elmes
d0c9beddfd drop events from anywhere in anki should preserve formatting 2011-04-28 09:28:01 +09:00
Damien Elmes
157801621c 0s -> 0d 2011-04-28 09:28:01 +09:00
Damien Elmes
998ce99980 sensible default geom; allow units other than days 2011-04-28 09:28:01 +09:00
Damien Elmes
a64075916c add a review history dialog 2011-04-28 09:28:01 +09:00
Damien Elmes
3eb9212422 don't show interval if card is new 2011-04-28 09:28:01 +09:00
Damien Elmes
b7bd648762 remove some debugging 2011-04-28 09:28:01 +09:00
Damien Elmes
a45f2ceedc add autosave; improve undo state handling 2011-04-28 09:28:01 +09:00
Damien Elmes
64b9ba3da8 make sure sort indicator is updated on field hide, lowercase marked 2011-04-28 09:28:01 +09:00
Damien Elmes
4ab7185cc3 swap the deck list button with a groups button 2011-04-28 09:28:01 +09:00
Damien Elmes
9d5936f2b2 double-clicking a group selects only that group 2011-04-28 09:28:01 +09:00
Damien Elmes
4dd1071b44 clicking on initial group defaults to changing it 2011-04-28 09:28:01 +09:00
Damien Elmes
6950b1e64d group->initial group 2011-04-28 09:28:00 +09:00
Damien Elmes
5a5259971a after an undo, disable if empty 2011-04-28 09:28:00 +09:00
Damien Elmes
1c7cf73c5d split q/a line format up so it can be easily modified in a plugin 2011-04-28 09:28:00 +09:00
Damien Elmes
c7fb1146da tweak tab order 2011-04-28 09:28:00 +09:00
Damien Elmes
0c38354dae when editing a fact, use a group button instead of an input box 2011-04-28 09:28:00 +09:00
Damien Elmes
e26a735a49 remember tags & group on a per-model basis 2011-04-28 09:28:00 +09:00
Damien Elmes
a13b539819 fix resetRequired state getting stuck 2011-04-28 09:28:00 +09:00
Damien Elmes
2dcb86e4ac fix audio replay 2011-04-28 09:28:00 +09:00
Damien Elmes
59d3807c1c reenable centerQA 2011-04-28 09:28:00 +09:00
Damien Elmes
7b9b78fe63 make sure card stats is hidden when moving from review 2011-04-28 09:28:00 +09:00
Damien Elmes
863356badb fix about 2011-04-28 09:28:00 +09:00
Damien Elmes
c7cfbd1d35 fix deck switching 2011-04-28 09:28:00 +09:00
Damien Elmes
722645d4b7 option to delete unselected cards when generating 2011-04-28 09:28:00 +09:00
Damien Elmes
d9299a6793 ctrl+click to append filter 2011-04-28 09:28:00 +09:00
Damien Elmes
dac9f0584b group improvements
- set groups now supports setting cards from fact
- editor doesn't set cards when fact group is changed
- card group and fact group can be displayed separately
- window title doesn't bother to calculate total card count
2011-04-28 09:27:59 +09:00
Damien Elmes
b5df36f458 basic change group code 2011-04-28 09:27:59 +09:00
Damien Elmes
84f618cc46 show all possible tags again 2011-04-28 09:27:59 +09:00
Damien Elmes
612fefc347 remember search history 2011-04-28 09:27:59 +09:00
Damien Elmes
dd0a6563e7 reset conf after edit current 2011-04-28 09:27:59 +09:00
Damien Elmes
27f08a463a add->use a cloze deletion model 2011-04-28 09:27:59 +09:00
Damien Elmes
e3cba2c76a give a hint about full search when there are no matches 2011-04-28 09:27:59 +09:00
Damien Elmes
4fa0a68dd3 add a browser options dialog so the user can toggle full search 2011-04-28 09:27:59 +09:00
Damien Elmes
2c0d6b7425 make select facts show all cards 2011-04-28 09:27:59 +09:00
Damien Elmes
d081a3f864 option to toggle cloze behaviour in clayout 2011-04-28 09:27:59 +09:00
Damien Elmes
c3b0d51f1c style clozes 2011-04-28 09:27:59 +09:00
Damien Elmes
0530db216c fix modelchooser 2011-04-28 09:27:59 +09:00
Damien Elmes
9bae1503bb allow individual fields to be marked sticky instead of adding a separate button 2011-04-28 09:27:59 +09:00
Damien Elmes
4a931f811f add the toolbar config back to the prefs, so osx users can toggle 2011-04-28 09:27:58 +09:00
Damien Elmes
6efd9b9cbb add some js hooks 2011-04-28 09:27:58 +09:00
Damien Elmes
177fa8b052 option to show duplicate 2011-04-28 09:27:58 +09:00
Damien Elmes
ab3a84b984 add a new 'add&keep' button to add cards 2011-04-28 09:27:58 +09:00
Damien Elmes
f1a88e4fdd add tooltips back, now in utils 2011-04-28 09:27:58 +09:00
Damien Elmes
44fd672ef8 reenable closeAllWindows() 2011-04-28 09:27:58 +09:00
Damien Elmes
95fc3978a9 refresh current card on edit 2011-04-28 09:27:58 +09:00
Damien Elmes
270bfab5a7 drop useless start/end navigation keys; fix other keys to select properly 2011-04-28 09:27:58 +09:00
Damien Elmes
a51d51bca6 use new libanki temp funcs 2011-04-28 09:27:58 +09:00
Damien Elmes
f245c7651c use os check shortcuts 2011-04-28 09:27:58 +09:00
Damien Elmes
03092ab486 only update field name on focus change to prevent erroneous renames 2011-04-28 09:27:58 +09:00
Damien Elmes
f55c7492fd cleanup when leaving review state 2011-04-28 09:27:58 +09:00
Damien Elmes
d012bdc1a1 show + if 1000 or more 2011-04-28 09:27:58 +09:00
Damien Elmes
ec8f7d3856 use show() over exec_() due to osx bugs 2011-04-28 09:27:58 +09:00
Damien Elmes
74e5122717 modal open dialogs 2011-04-28 09:27:58 +09:00
Damien Elmes
7de4552b0e configurable document dir 2011-04-28 09:27:57 +09:00
Damien Elmes
ed3774ef7d changing sort field is w modal 2011-04-28 09:27:57 +09:00
Damien Elmes
f110ffbb5f add group field; instead of silently changing sort criteria, warn user 2011-04-28 09:27:57 +09:00
Damien Elmes
8f1e436c9a groups should delete in bulk too 2011-04-28 09:27:57 +09:00
Damien Elmes
6350f620ba reinit current state after reset 2011-04-28 09:27:57 +09:00
Damien Elmes
bb0b3d1823 don't save group/tags when there's no fact 2011-04-28 09:27:57 +09:00
Damien Elmes
f58110855b tweak some shortcuts 2011-04-28 09:27:57 +09:00
Damien Elmes
242b4be2f4 use a separate hook for current model changes so we don't have to rebuild 2011-04-28 09:27:57 +09:00
Damien Elmes
8ae7a8213d and find dialog 2011-04-28 09:27:57 +09:00
Damien Elmes
b770768a77 modalize gencards & change model 2011-04-28 09:27:57 +09:00
Damien Elmes
fdeb092a8d fix select all flicker 2011-04-28 09:27:57 +09:00
Damien Elmes
aadf9e2f87 re-search on reset 2011-04-28 09:27:57 +09:00
Damien Elmes
6d9f0a5c72 modal groups and study options 2011-04-28 09:27:57 +09:00
Damien Elmes
ae9a21167b modal info dialogs 2011-04-28 09:27:57 +09:00
Damien Elmes
04ffba2495 get text window modal 2011-04-28 09:27:56 +09:00
Damien Elmes
915798cf46 prevent flicker on modal dialogs 2011-04-28 09:27:56 +09:00
Damien Elmes
96a1802fc7 more edit current fixes 2011-04-28 09:27:56 +09:00
Damien Elmes
d9b08a8b28 reset on show to prevent changes in the background; fix editcurrent return 2011-04-28 09:27:56 +09:00
Damien Elmes
2c7a939073 require a reset after any edits 2011-04-28 09:27:56 +09:00
Damien Elmes
a07f62b507 ensure the fact area is focused on addcards 2011-04-28 09:27:56 +09:00
Damien Elmes
b4a7979157 fix enter advancing two 2011-04-28 09:27:56 +09:00
Damien Elmes
0c5c130f9f more robust deck load on startup 2011-04-28 09:27:56 +09:00
Damien Elmes
9da0a83735 edit current, hide 'close' button on osx 2011-04-28 09:27:56 +09:00
Damien Elmes
61cdea4865 make add card dialog window modal 2011-04-28 09:27:56 +09:00
Damien Elmes
9900b02795 mark/bury/etc in main window 2011-04-28 09:27:56 +09:00
Damien Elmes
5828081475 delay reset of main window after edits 2011-04-28 09:27:56 +09:00
Damien Elmes
a1db3e56a7 integer count in overview 2011-04-28 09:27:56 +09:00
Damien Elmes
02bc090828 jump to editor from add cards area 2011-04-28 09:27:56 +09:00
Damien Elmes
3855183213 find & replace 2011-04-28 09:27:56 +09:00
Damien Elmes
139048ad3f model changing 2011-04-28 09:27:55 +09:00
Damien Elmes
8865ca6131 _fields -> fields 2011-04-28 09:27:55 +09:00
Damien Elmes
2245be962a marking & suspending 2011-04-28 09:27:55 +09:00
Damien Elmes
fe17266b8d always refresh fact on row change; fix add/del cards 2011-04-28 09:27:55 +09:00
Damien Elmes
2db6bf51c2 fix getTag() 2011-04-28 09:27:55 +09:00
Damien Elmes
5831309280 card deletion, progress on genCards 2011-04-28 09:27:55 +09:00
Damien Elmes
a84cc55819 make excessive finish() calls a noop 2011-04-28 09:27:55 +09:00
Damien Elmes
437297c9b5 card generation 2011-04-28 09:27:55 +09:00
Damien Elmes
7da7894c89 add a progress handler to upgrade 2011-04-28 09:27:55 +09:00
Damien Elmes
2070a0ced9 make sure group and tags updated on new fact 2011-04-28 09:27:55 +09:00
Damien Elmes
e93a6379d3 update card gids on fact gid change 2011-04-28 09:27:55 +09:00
Damien Elmes
3c5277ca69 discard large selections 2011-04-28 09:27:55 +09:00
Damien Elmes
fe083e916f fix navigation 2011-04-28 09:27:55 +09:00
Damien Elmes
949dc9defd hide the editor when more than one card is selected 2011-04-28 09:27:55 +09:00
Damien Elmes
ae831408b2 undo, don't call cardCount() in titlebar, fix select facts 2011-04-28 09:27:55 +09:00
Damien Elmes
3bd8fd56b3 preserve selection when toggling columns 2011-04-28 09:27:54 +09:00
Damien Elmes
f97e096672 rework resetting and selection code
- now properly call begin/endresetmodel()
- restore not just the current card, but the whole selection
- do so in the model, for all operations like new searches, resorts, etc
2011-04-28 09:27:54 +09:00
Damien Elmes
598b22e18b add a template display 2011-04-28 09:27:54 +09:00
Damien Elmes
ee84335ed9 tweak header titles 2011-04-28 09:27:54 +09:00
Damien Elmes
f1059f21ee movable headers 2011-04-28 09:27:54 +09:00
Damien Elmes
d23b50dffe add refresh 2011-04-28 09:27:54 +09:00
Damien Elmes
db1695a19c tweak some icons; move the system tags to the top 2011-04-28 09:27:54 +09:00
Damien Elmes
1fda0a9bad put groups and tags on one line instead 2011-04-28 09:27:54 +09:00
Damien Elmes
82be9a432e more column work
- removed sort area; users can click on columns to sort now
- displayed columns are now loaded/saved from deck
2011-04-28 09:27:54 +09:00
Damien Elmes
4b1d377a40 remove bottom right splitter 2011-04-28 09:27:54 +09:00
Damien Elmes
cef60a1f9c changing fields via context menu 2011-04-28 09:27:54 +09:00
Damien Elmes
07c2591be0 update columns code and add support for multiple columns 2011-04-28 09:27:54 +09:00
Damien Elmes
1d9f0176a5 fix sorting, allow sort changing, catch attempts to modify schema 2011-04-28 09:27:54 +09:00
Damien Elmes
ae43b78faa reorganize, and remove placeholder which isn't available on older qt 2011-04-28 09:27:54 +09:00
Damien Elmes
8ed0c6ffea start with recent list; don't focus fields 2011-04-28 09:27:54 +09:00
Damien Elmes
73f056c17f respond to clicks on the tree 2011-04-28 09:27:53 +09:00
Damien Elmes
449b49f20b system/user tags 2011-04-28 09:27:53 +09:00
Damien Elmes
e029de6cf9 start of filter tree 2011-04-28 09:27:53 +09:00
Damien Elmes
5e4c469ecc fix due date 2011-04-28 09:27:53 +09:00
Damien Elmes
6816163c08 add the bridge after the page has loaded 2011-04-28 09:27:53 +09:00
Damien Elmes
b8f03c298b showing cards 2011-04-28 09:27:53 +09:00
Damien Elmes
d554fc22ba require python2.5+ 2011-04-28 09:27:53 +09:00
Damien Elmes
f41d8f7347 add/update user credits 2011-04-28 09:27:53 +09:00
Damien Elmes
f2865d7bf5 bare minimum to get the browser to show up 2011-04-28 09:27:53 +09:00
Damien Elmes
33d79a80ec prevent double message when fields empty 2011-04-28 09:27:53 +09:00
Damien Elmes
66c7d54931 add a triangle to the dropdown menu 2011-04-28 09:27:53 +09:00
Damien Elmes
82ad8d88f8 add cards history 2011-04-28 09:27:53 +09:00
Damien Elmes
7acc6a882b gpl>agpl 2011-04-28 09:27:53 +09:00
Damien Elmes
77c20341c1 tweak focus handling 2011-04-28 09:27:53 +09:00
Damien Elmes
4d694f0064 modelchooser and card adding 2011-04-28 09:27:52 +09:00
Damien Elmes
5b7daf5060 field fonts 2011-04-28 09:27:52 +09:00
Damien Elmes
b0d0faecf5 fixed group/tag saving/loading 2011-04-28 09:27:52 +09:00
Damien Elmes
fb36199b04 keyboard layout 2011-04-28 09:27:52 +09:00
Damien Elmes
c55660ef22 validity checking 2011-04-28 09:27:52 +09:00
Damien Elmes
1cdc92d7f5 shortcut() 2011-04-28 09:27:52 +09:00
Damien Elmes
6f0168aec1 html editor 2011-04-28 09:27:52 +09:00
Damien Elmes
5702ec2da1 change cloze del key; never unset currentField 2011-04-28 09:27:52 +09:00
Damien Elmes
c69d68e141 refactor focus/blur code; implement cloze via wrap() 2011-04-28 09:27:52 +09:00
Damien Elmes
cf6fccf454 latex; save after format update 2011-04-28 09:27:52 +09:00
Damien Elmes
c08e810503 recording 2011-04-28 09:27:52 +09:00
Damien Elmes
3337b42565 merge audio/picture adding buttons; enable/disable editing buttons on focus change 2011-04-28 09:27:52 +09:00
Damien Elmes
9496b161e0 text/html working 2011-04-28 09:27:52 +09:00
Damien Elmes
7b31fd6785 mime images; use cacheKey for duplicate pastes 2011-04-28 09:27:52 +09:00
Damien Elmes
f697858ebd resize images while editing 2011-04-28 09:27:51 +09:00
Damien Elmes
0499dd6cae catch pastes too 2011-04-28 09:27:51 +09:00
Damien Elmes
fadf6fd249 dragging and dropping of urls 2011-04-28 09:27:51 +09:00
Damien Elmes
5a2ee8f30e start of tags/groups; be more selective in drop accept/deny 2011-04-28 09:27:51 +09:00
Damien Elmes
ea515a5141 cloze basics 2011-04-28 09:27:51 +09:00
Damien Elmes
e0c4c9e896 added foreground setting / remove formatting and some icons
foreground setting is not sticky due to webkit issues
2011-04-28 09:27:51 +09:00
Damien Elmes
a2ea00ef43 subscript/superscript - may make these a plugin later 2011-04-28 09:27:51 +09:00
Damien Elmes
ac35d8330b card layout 2011-04-28 09:27:51 +09:00
Damien Elmes
cbbb5fd363 bold/underline/italics 2011-04-28 09:27:51 +09:00
Damien Elmes
ae1d7bf6fc saving of fields 2011-04-28 09:27:51 +09:00
Damien Elmes
7e50c32f65 beginnings of field loading 2011-04-28 09:27:51 +09:00
Damien Elmes
a4b08ff766 early work on new editor 2011-04-28 09:27:51 +09:00
Damien Elmes
bdf36c7d5a facteditor->editor 2011-04-28 09:27:51 +09:00
Damien Elmes
058f5e6efc split template selection into separate dialog, add manage button in card layout 2011-04-28 09:27:51 +09:00
Damien Elmes
56e6e3bb52 make sure we checkpoint correctly 2011-04-28 09:27:51 +09:00
Damien Elmes
b5e76f78cb fixed move down 2011-04-28 09:27:50 +09:00
Damien Elmes
01e6470c2a template load/add/delete implemented 2011-04-28 09:27:50 +09:00
Damien Elmes
9fd4003251 preserve position on model update; include fact count again 2011-04-28 09:27:50 +09:00
Damien Elmes
104c0a11cc fix add; update modelchooser 2011-04-28 09:27:50 +09:00
Damien Elmes
6459ed6396 move models from deckprops into separate models screen w/ card templates 2011-04-28 09:27:50 +09:00
Damien Elmes
b1ce366645 field repositioning 2011-04-28 09:27:50 +09:00
Damien Elmes
d0a9ec96c1 fields area half ported 2011-04-28 09:27:50 +09:00
Damien Elmes
96e3cf30aa fixed the rest of the templates tab 2011-04-28 09:27:50 +09:00
Damien Elmes
2f6867c4cc start of clayout port 2011-04-28 09:27:50 +09:00
Damien Elmes
37b7bb00d6 minimum necessary for the (empty) add cards dialog to open 2011-04-28 09:27:50 +09:00
Damien Elmes
5334fc0978 graphs->stats 2011-04-28 09:27:50 +09:00
Damien Elmes
3155384a9a allow group selection from graphs window 2011-04-28 09:27:50 +09:00
Damien Elmes
78808b4541 remember the old scroll position when refreshing 2011-04-28 09:27:50 +09:00
Damien Elmes
7ab89d2637 merge deck stats and graphs together 2011-04-28 09:27:50 +09:00
Damien Elmes
403286370c fix saving of groups; don't force review 2011-04-28 09:27:49 +09:00
Damien Elmes
7db7ef8df0 fix initial factor in group conf 2011-04-28 09:27:49 +09:00
Damien Elmes
d48813c743 clarify import new deck msg 2011-04-28 09:27:49 +09:00
Damien Elmes
ffbbb45b3f support double clicks on options/name 2011-04-28 09:27:49 +09:00
Damien Elmes
db0d7f45b2 update readme, add shortcut() for later 2011-04-28 09:27:49 +09:00
Damien Elmes
eadd5abf1a catch the copy event in downpress, not up 2011-04-28 09:27:49 +09:00
Damien Elmes
9fa640feca add progress to check (media) db, fix call 2011-04-28 09:27:49 +09:00
Damien Elmes
42052e6349 update deck properties, rename to deckopts 2011-04-28 09:27:49 +09:00
Damien Elmes
86c4934e31 dialog->form 2011-04-28 09:27:49 +09:00
Damien Elmes
37d04c1831 update preferences 2011-04-28 09:27:49 +09:00
Damien Elmes
6bab81c180 tweak button layout again 2011-04-28 09:26:52 +09:00
Damien Elmes
e0582dee2f actually save gconf selection; refresh; show conf in list; use 2 bboxes 2011-04-28 09:26:52 +09:00
Damien Elmes
f48b3b27da hack to prevent keys from leaking from other widgets 2011-04-28 09:26:52 +09:00
Damien Elmes
c8a43517c8 if no cards are due, show text instead of nothing 2011-04-28 09:26:52 +09:00
Damien Elmes
7283aba0dd tweak shortcuts; remove study/cram buttons from group screen 2011-04-28 09:26:52 +09:00
Damien Elmes
a70d7be25b add group deletion, add checkpoint() 2011-04-28 09:26:52 +09:00
Damien Elmes
309f98fcbb keep numbers as ints if they have no decimal portion 2011-04-28 09:26:52 +09:00
Damien Elmes
292f6403a1 update help references and some old links 2011-04-28 09:26:52 +09:00
Damien Elmes
2d76f2516e fix saving of steps, add missing help button 2011-04-28 09:26:51 +09:00
Damien Elmes
0213f8662e saving, restoring to defaults 2011-04-28 09:26:51 +09:00
Damien Elmes
5899b60b59 group conf startup 2011-04-28 09:26:51 +09:00
Damien Elmes
b6ff15b062 adding renaming of individual items and tree branches 2011-04-28 09:26:51 +09:00
Damien Elmes
d923753c4d groupsel->groupman 2011-04-28 09:26:51 +09:00
Damien Elmes
03d0348fd2 start of group configuration selector 2011-04-28 09:26:51 +09:00
Damien Elmes
61043f7ca9 check on click instead of disabling button
the latter only works for a single selection
2011-04-28 09:26:51 +09:00
Damien Elmes
7510c17245 show non-groups in grey, disable edit button when on non-group 2011-04-28 09:26:51 +09:00
Damien Elmes
9d12bc54b9 add study/cram 2011-04-28 09:26:51 +09:00
Damien Elmes
ccf3e0ae0d saving of state 2011-04-28 09:26:51 +09:00
Damien Elmes
783d8f2a5f use checkmarks instead of multi selection so we don't lose keyboard focus 2011-04-28 09:26:51 +09:00
Damien Elmes
c8aafa7edf tweak layout and add edit button 2011-04-28 09:26:51 +09:00
Damien Elmes
c9bd1deb27 initial work on group selection dialog 2011-04-28 09:26:51 +09:00
Damien Elmes
827b22c88c new undo links; disable individual actions instead of menus to work around osx issue 2011-04-28 09:26:51 +09:00
Damien Elmes
3142be2023 add esc to unblur type answer area, remove duplicate o shortcut 2011-04-28 09:26:51 +09:00
Damien Elmes
363571cc94 trigger on key release instead of press; add overview action+shortcut 2011-04-28 09:26:50 +09:00
Damien Elmes
a036b97a68 add new study options 2011-04-28 09:26:50 +09:00
Damien Elmes
7d2599cd27 period groupbox looks better without a label 2011-04-28 09:26:50 +09:00
Damien Elmes
91f11d0647 graphs are modal now 2011-04-28 09:26:50 +09:00
Damien Elmes
76633d9cce remove some old actions 2011-04-28 09:26:50 +09:00
Damien Elmes
d25bfd0e58 don't add extra newlines in error handler 2011-04-28 09:26:50 +09:00
Damien Elmes
bfa594a5d0 make sure css is always available in deck browser 2011-04-28 09:26:50 +09:00
Damien Elmes
698ba38e74 move various major functions into separate files 2011-04-28 09:26:50 +09:00
Damien Elmes
73edb5eb28 drop the tray 2011-04-28 09:26:50 +09:00
Damien Elmes
204cd3c824 remove obsolete small optimize option 2011-04-28 09:26:50 +09:00
Damien Elmes
a1e5a13f98 split plugin handling into separate file 2011-04-28 09:26:50 +09:00
Damien Elmes
e6b153df13 split error handling into separate file; remove dependency on recurring timer 2011-04-28 09:26:50 +09:00
Damien Elmes
fb0a0d5bdb Revert "addded cumulative graph on main screen"
This reverts commit 1f1fa4824a052a9446dfce78485c456263242e2a.
2011-04-28 09:26:50 +09:00
Damien Elmes
d6275d94c5 addded cumulative graph on main screen
saving code; but will revert
2011-04-28 09:26:50 +09:00
Damien Elmes
3b23275204 instead of opening page in browser, save to image file 2011-04-28 09:26:49 +09:00
Damien Elmes
1ddbc80053 use radio buttons instead of a popup menu 2011-04-28 09:26:49 +09:00
Damien Elmes
5682043427 give the graphs an option to change period 2011-04-28 09:26:49 +09:00
Damien Elmes
dcd603bbf0 use modal instead of disabling ui on progress; make smoother 2011-04-28 09:26:49 +09:00
Damien Elmes
4fbb63aad5 don't lock the interface unless a progress handler is already active 2011-04-28 09:26:49 +09:00
Damien Elmes
9e20c979fb remove the js resources and use the ones bundled with libanki instead 2011-04-28 09:26:49 +09:00
Damien Elmes
c5a109dca0 don't bother extracing graph libs from resources; they're provided in block 2011-04-28 09:26:49 +09:00
Damien Elmes
f20d730f3c new graph handling 2011-04-28 09:26:49 +09:00
Damien Elmes
5c337aa658 open remote links on cards 2011-04-28 09:26:49 +09:00
Damien Elmes
9d060df04c if space/ret hit on an ease button, activate that button 2011-04-28 09:26:49 +09:00
Damien Elmes
64d7a3e046 add type in the answer support back 2011-04-28 09:26:49 +09:00
Damien Elmes
8ea949db74 move the button links to actual buttons, fix some bugs
- by using normal buttons we get the native look&feel and space can activate
  the buttons which is what users expect. Unfortunately it seems that the
  buttons are currently hard-coded to a small font size; hopefully this will
  be fixed in a future toolkit release
- remove the space hack from webview
- move the times into the ease buttons
- set a default button on a few screens
- fix a bug with clearing progress after an error
2011-04-28 09:26:49 +09:00
Damien Elmes
b699226cfd congrats screen; add temporary hack for space bar and pass links through bridge 2011-04-28 09:26:49 +09:00
Damien Elmes
b5f393c7fe deck empty screen 2011-04-28 09:26:49 +09:00
Damien Elmes
90002a3073 note updated counts when returning to deck browser 2011-04-28 09:26:49 +09:00
Damien Elmes
b2a0398220 add support for hiding question when showing answer 2011-04-28 09:26:48 +09:00
Damien Elmes
0cdd487792 scroll back up to top for next card 2011-04-28 09:26:48 +09:00
Damien Elmes
fb8b1d26b2 update the existing page instead of reloading it for each card transition 2011-04-28 09:26:48 +09:00
Damien Elmes
f6319ce147 but the open in browser button on the left 2011-04-28 09:26:48 +09:00
Damien Elmes
2bdd66347b card statistics->card info 2011-04-28 09:26:48 +09:00
Damien Elmes
3404d0c3e5 don't run showQuestion hook twice 2011-04-28 09:26:48 +09:00
Damien Elmes
1b20f948f3 add the ability to open deck stats in the browser 2011-04-28 09:26:48 +09:00
Damien Elmes
1f98ef588f add deck stats 2011-04-28 09:26:48 +09:00
Damien Elmes
437da036ea add card stats 2011-04-28 09:26:48 +09:00
Damien Elmes
3c8763602c remove help, drop aqt.utils from frequently used functions 2011-04-28 09:26:48 +09:00
Damien Elmes
abe67f6faa tweak overview layout 2011-04-28 09:26:48 +09:00
Damien Elmes
edd04cffa8 fix progress handler 2011-04-28 09:26:48 +09:00
Damien Elmes
05432e1b32 add enter/space to proceed from overview 2011-04-28 09:26:48 +09:00
Damien Elmes
f561bd1473 move the key handler into the webview instead of the main window 2011-04-28 09:26:48 +09:00
Damien Elmes
7b2ff671e8 move status.py into reviewer.py 2011-04-28 09:26:48 +09:00
Damien Elmes
ccd49ece47 don't show deck browser when quitting 2011-04-28 09:26:47 +09:00
Damien Elmes
b6844ba817 handle card answering 2011-04-28 09:26:47 +09:00
Damien Elmes
8b537977a4 make sure there's enough space for 4 buttons, and prevent flicker on display 2011-04-28 09:26:47 +09:00
Damien Elmes
c09070df26 add ease buttons 2011-04-28 09:26:47 +09:00
Damien Elmes
e48e268ee5 add answer display 2011-04-28 09:26:47 +09:00
Damien Elmes
7fcaa98fa8 minor tweaks 2011-04-28 09:26:47 +09:00
Damien Elmes
d3a77c1c67 add answer button; more display tweaks; fix bold munging 2011-04-28 09:26:47 +09:00
Damien Elmes
46c14b5efc question displaying 2011-04-28 09:26:47 +09:00
Damien Elmes
265b598173 various layout tweaks 2011-04-28 09:26:47 +09:00
Damien Elmes
7604fa3797 move the overview into a separate file; rename noDeck state to deckBrowser 2011-04-28 09:26:47 +09:00
Damien Elmes
04040e60f2 fix bugs in hide/delete in the deck browser; use sel/allCounts() 2011-04-28 09:26:47 +09:00
Damien Elmes
d0b92313e8 skip overview graph if there's no data 2011-04-28 09:26:47 +09:00
Damien Elmes
2dc9878435 put 'today' in the middle of the bar 2011-04-28 09:26:47 +09:00
Damien Elmes
c9c7b8c25b start work on an overview; add flot to resources 2011-04-28 09:26:47 +09:00
Damien Elmes
81d29fedd5 tweak colours; fix counts 2011-04-28 09:26:47 +09:00
Damien Elmes
3f1ed1a566 move the toolback into the browser screen 2011-04-28 09:26:46 +09:00
Damien Elmes
045d92238d move view.py into reviewer.py 2011-04-28 09:26:46 +09:00
Damien Elmes
909e8fb05c don't allow shortcuts to load corrupt decks; remove toolbar 2011-04-28 09:26:46 +09:00
Damien Elmes
f96e03875a more deck browser work
- add a separate toolbar for the deck browser
- add a message when there are no decks
- change the progress handler not to lock the UI immediately, which causes
  flicker
- ensure the webview is focused after stdHtml()
2011-04-28 09:26:46 +09:00
Damien Elmes
87f5fe8769 tidy up deckbrowser code 2011-04-28 09:26:46 +09:00
Damien Elmes
2897f0a54a tweak hr appearance 2011-04-28 09:26:46 +09:00
Damien Elmes
8e7ed0acc9 make sure we're only writing the config once; fix speed regressions in browser 2011-04-28 09:26:46 +09:00
Damien Elmes
2e327f4fe9 more deck browser improvements
- shortcut keys
- options menu items implemented
- fixed handling of locked decks
- limit accels to 35
2011-04-28 09:26:46 +09:00
Damien Elmes
3b085c486e tweak layout 2011-04-28 09:26:46 +09:00
Damien Elmes
19af7ef67e load the summary by default
it was much slower in benchmarks, but that was due to a problem in libanki
2011-04-28 09:26:46 +09:00
Damien Elmes
0a4efd018f add js/py bridge, jquery 2011-04-28 09:26:46 +09:00
Damien Elmes
d948b00c54 start refactoring main window
- moved progress handling into separate progress.py
- moved deck browser code into separate deckbrowser.py
- started reworking the state code; views will be rolled into this in the
  future
- the main window has been stripped of the study options, inline editor,
  congrats screen and so on, and now consists of a single main widget which
  has a webview placed inside it. The stripped features will be implemented
  either in separate windows, or as part of the web view
2011-04-28 09:26:46 +09:00
Damien Elmes
798b0af128 remove closing delay on progress dialogs 2011-04-28 09:26:46 +09:00
Damien Elmes
c01c6cb79a update config.py
- move into an sqlite file so we don't have to worry about db corruption
  anymore, and can share the deck list among multiple instances
- remove some old options
2011-04-28 09:26:46 +09:00
Damien Elmes
fbb7fe8a3e tidy up __init__.py 2011-04-28 09:26:45 +09:00
Damien Elmes
103871a5b1 refactor file layout
- ankiqt->aqt
- move all the files in ui into the top level
- move icons_rc.py into aqt/forms, and the qrc into designer/
- remove setuptools
2011-04-28 09:26:45 +09:00