Commit graph

746 commits

Author SHA1 Message Date
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