Commit graph

158 commits

Author SHA1 Message Date
Damien Elmes
954c5171e3 focus correct field on tab/backtab 2012-04-24 08:27:40 +09:00
Damien Elmes
c3c9156fdb allow non-latin chars in profile names 2012-04-24 05:05:23 +09:00
Damien Elmes
35b366872b use a better font for field names 2012-04-24 03:10:23 +09:00
Damien Elmes
bddba8079e check for highest cloze across all fields 2012-04-24 02:10:11 +09:00
Damien Elmes
2ad2244395 fix foreground colour issues
- use setFormat() again, as I can't reproduce crashes on any platform anymore,
  and wrap() didn't allow users to set a colour and then start typing.
- work around a qt bug where focus is not restored after native color dialog
  closes
2012-04-23 06:24:59 +09:00
Damien Elmes
7295bb829d rework saveNow() so html editor saves text properly 2012-04-23 05:43:23 +09:00
Damien Elmes
5cd6b830ed don't strip html when pasting from field to field 2012-04-23 04:52:18 +09:00
Damien Elmes
b3093ad336 option to use current deck when adding 2012-04-23 03:49:32 +09:00
Damien Elmes
2cd7240fd2 add hook to editor button setup 2012-04-22 10:48:20 +09:00
Damien Elmes
803e3059c7 simplify colour handling
Instead of maintaining a list of recent colours, remember last colour and
provide the option of picking a different colour, like in MS Word/LibreOffice.
2012-04-22 10:25:30 +09:00
Damien Elmes
53f6dacf62 don't allow adding of cards to cram deck 2012-04-22 08:24:50 +09:00
Damien Elmes
083caafd95 don't save the deck in add mode until the note is being added 2012-04-22 07:12:52 +09:00
Damien Elmes
55256d0f39 accept ctrl+alt+shift+c for reuse # cloze 2012-04-22 07:03:35 +09:00
Damien Elmes
dfbe5dbfa8 limit images in editor to the field size 2012-04-21 06:46:32 +09:00
Damien Elmes
91e59dc35b don't show tab add/close buttons in cloze model 2012-04-19 10:19:16 +09:00
Damien Elmes
0a0190103f shortcuts should be uppercase 2012-04-19 06:29:14 +09:00
Damien Elmes
d6a949bc49 revert deck combobox change
This commit reverts c1a16452d6
2012-04-19 03:44:02 +09:00
Damien Elmes
7d5d81f79c use the default deck if model did invalid 2012-04-18 02:05:06 +09:00
Damien Elmes
16ae17038e fix show duplicates and history buttons 2012-04-17 19:32:44 +09:00
Damien Elmes
8355a553fa url encode images in editor to fix foreign chars in images on linux 2012-04-15 14:27:00 +09:00
Damien Elmes
770036020a filter implicit html on field save; set color with wrap()
- using setFormat() to set the colour results in the text being marked as
  implicitly coloured, so we wrap() instead
2012-04-11 22:18:47 +09:00
Damien Elmes
c1a16452d6 use combobox for deck in add notes diag 2012-04-11 20:44:11 +09:00
Damien Elmes
e9ea56f931 make editor shortcuts translatable 2012-04-11 19:41:08 +09:00
Damien Elmes
8de899c3f7 save and restore selection when setting colour 2012-04-11 18:37:07 +09:00
Damien Elmes
cb56df2dab new clear formatting icon 2012-04-09 14:50:15 +09:00
Damien Elmes
9ed0535a8b set focus when adding/editing current 2012-04-08 20:08:00 +09:00
Damien Elmes
e81cfc616f focus lost hook needs to be a filter 2012-04-08 19:41:30 +09:00
Damien Elmes
cd4b1e894e focus elements on drag over so dropped images are saved 2012-04-07 21:43:47 +09:00
Damien Elmes
dc3ef60c75 ignore image drag if qt doesn't provide html for it 2012-04-07 18:41:29 +09:00
Damien Elmes
17a80e13c0 do it twice to prevent flicker 2012-04-07 18:05:31 +09:00
Damien Elmes
3828c43cd8 add the timeout back in for older qt versions 2012-04-07 18:01:03 +09:00
Damien Elmes
8f9a20c5a5 fix 'null' error when closing browser etc 2012-04-07 17:11:32 +09:00
Damien Elmes
d1507d5b63 click in middle of field doesn't scroll to end now 2012-04-07 16:36:47 +09:00
Damien Elmes
0e580a04d8 remove buggy ondragover handler
It was originally added to prevent text from being dropped outside the
editable areas, but I'm no longer able to reproduce the original problem.
2012-04-07 15:30:37 +09:00
Damien Elmes
cc606e180e ntype -> note 2012-04-07 13:54:35 +09:00
Damien Elmes
21464720d5 add tooltip to foreground colour 2012-04-06 17:00:53 +09:00
Damien Elmes
2107c1a9c0 when user tries to cloze a normal note type, show help 2012-04-06 16:56:36 +09:00
Damien Elmes
a9a0b1752d consistent nomenclature 2012-04-06 16:36:47 +09:00
Damien Elmes
a09cd3f7a0 prefer clipboard image over url 2012-04-06 13:22:25 +09:00
Damien Elmes
4c3008e25c don't error when an image is dropped on itself 2012-04-06 07:36:48 +09:00
Damien Elmes
05fe55231c drop events should save the note 2012-03-27 11:22:37 +09:00
Damien Elmes
43e28cb97f short advanced shortcuts 2012-03-27 06:39:19 +09:00
Damien Elmes
0bb4633b14 filter html editor html 2012-03-27 06:18:07 +09:00
Damien Elmes
1b489eea0b process events before any dom op 2012-03-25 02:41:32 +09:00
Damien Elmes
092eba2691 strip implicit webkit html on drop or paste 2012-03-24 23:17:05 +09:00
Damien Elmes
bf0caddccc ensure field area surrounds floated images 2012-03-24 03:01:41 +09:00
Damien Elmes
88df74ae9a work around \0 in string 2012-03-22 16:20:06 +09:00
Damien Elmes
24155cf337 work around another win32 crash 2012-03-20 05:53:18 +09:00
Damien Elmes
07d0d1ef80 strip trailing whitespace 2012-03-20 04:23:30 +09:00
Damien Elmes
cac5f9306f strip img path when dragging 2012-03-20 03:16:15 +09:00