Commit Graph

207 Commits

Author SHA1 Message Date
Soren I. Bjornstad
083d9e8aa5 remove search text when ctrl-clicking a left panel item 2014-06-25 13:46:21 -05:00
Soren I. Bjornstad
d659d9cff7 add 'replay audio' button to previewer 2014-06-21 15:35:45 -05:00
Soren I. Bjornstad
436f257e36 dialog box size and position improvements
- keep track of size and position for a number of dialogs
- make sure addons dialog opens at an appropriate size for the system
  font size
- add optional argument to showText to restore geom on creation and save
  on reject (other buttons, if used, need to be programmed to save
  individually)
2014-06-20 10:31:52 -05:00
Houssam Salem
7fa346c2a2 Re-check favourites status on any text change
Updates the favourites button when the search text is updated programmatically as well as user input. Fixes a bug where using the recent search drop-down doesn't update the favourites button state correctly.
2014-05-27 07:04:10 +10:00
Houssam Salem
96a294039e Don't manually specify tab order.
The default order is more logical:
Text input -> Search -> Preview -> Results table
2014-05-25 11:06:30 +10:00
Houssam Salem
07426a883c Replace search lineEdit before we connect signals.
Avoids overriding the setup work we do on it.
2014-05-22 21:53:35 +10:00
Damien Elmes
7134da4cd6 enable houssam's fav code 2014-05-12 15:45:21 +09:00
Houssam Salem
3aeb5d86da Added search saving feature to card browser. 2014-04-09 04:35:00 +10:00
Damien Elmes
9f6b073def allow copy context item in info view 2014-03-27 16:48:26 +09:00
Damien Elmes
b562b8c6dc Revert "fix some memory leaks"
This reverts commit b9ba2375a1.

testing assumption that this is causing the windows crashes
2014-03-27 13:58:30 +09:00
Damien Elmes
29026b08e2 fix crashes and corruption in column headers
set all columns to interactive at once to work around qt5 issues
2014-03-14 15:41:00 +09:00
Damien Elmes
f9d93fa888 Revert "use a new header key on qt5 to fix drawing bug"
This reverts commit e063123218.
2014-03-14 15:29:48 +09:00
Damien Elmes
b9ba2375a1 fix some memory leaks 2014-03-14 12:51:38 +09:00
Damien Elmes
e063123218 use a new header key on qt5 to fix drawing bug 2014-03-06 09:07:03 +09:00
Damien Elmes
776168b2ea Merge pull request #62 from hssm/998
Issue #998: Allow copy/paste and context menu in all card windows.
2014-02-15 23:43:15 +09:00
Houssam Salem
a12e6f6b65 Issue #998: Allow copy/paste and context menu in all card windows. 2014-02-15 17:26:03 +11:00
Houssam Salem
770c6e9c4a Add expand/collapse support for decks in browser tree.
The state is preserved in a new deck configuration key named 'browserCollapsed'.
2014-02-15 13:32:14 +11:00
Damien Elmes
513b0ca8d7 ignore filtered cards when determining new card pos boundaries 2014-01-14 15:06:22 +09:00
Damien Elmes
c5df294a28 fix "local variable 'txt' referenced before assignment" 2014-01-13 19:07:34 +09:00
Damien Elmes
5bc25e494c add fixme 2013-12-02 10:26:18 +09:00
Damien Elmes
dd1899bcc6 cascading column resize must be set after resize 2013-11-26 04:57:39 +09:00
Damien Elmes
3348b091d0 tweak logging
- log only sched getCard(), not all getCard calls
- don't log sched.today unless it's changed
2013-10-30 22:42:32 +09:00
Damien Elmes
0fbc94c186 more logging tweaks
- disable in browser, note.cards()
- in getCard() we want the calling frame, not us
- log current day
- show card/note id in card info stat
2013-10-18 14:20:20 +09:00
Damien Elmes
d503b62cd1 fix display of non-latin tags 2013-10-08 07:42:06 +09:00
Damien Elmes
174914b7dc scroll to newly added column in browser (#978) 2013-10-04 08:43:46 +09:00
Damien Elmes
b55761190f option to tag notes in find dupes function 2013-10-04 00:07:11 +09:00
Damien Elmes
b49d52393e add tags column in browser 2013-09-04 03:21:19 +09:00
Damien Elmes
51121f6e86 escape image links in clayout and preview as well (#903) 2013-06-10 15:28:34 +09:00
Damien Elmes
9101867224 only show browser close menu item on mac 2013-05-31 14:16:37 +09:00
Damien Elmes
d74338b6e9 allow font sizes > 20 in browser (#492) 2013-05-23 14:12:04 +09:00
Damien Elmes
8594c65510 treat preview window as a separate main window 2013-05-22 10:08:39 +09:00
Damien Elmes
d44348ea47 remove broken accelerator from preview button; add tooltip 2013-05-22 10:04:34 +09:00
Damien Elmes
85dfa4e5a4 ensure fmax>=fmin when rescheduling 2013-05-17 16:27:58 +09:00
Damien Elmes
f6f6537967 fix regression caused by preview code
we shouldn't blank out self.card when multiple cards selected, as a number of
other routines take it to mean the most recently selected card.
2013-05-10 15:02:58 +09:00
Damien Elmes
dbfe9529f9 fix race in preview mode, and fix preview shortcut keys in qt5 2013-05-09 15:32:30 +09:00
Damien Elmes
2c1194658e remove unused onRevlog() 2013-05-04 15:45:57 +09:00
Damien Elmes
5951ccb09e preliminary preview support 2013-05-04 15:45:57 +09:00
Damien Elmes
ce9e09d4c5 changes for qt5 on mac
- setShown() -> setVisible()
- qt_mac_set_menubar_icons() no longer exported, use alternative method
2013-04-15 13:46:07 +09:00
Damien Elmes
0994bd332c cancel sync if user elects to keep unsaved card content (#705) 2013-04-11 19:23:32 +09:00
Damien Elmes
dcf38f2f10 allow shift click for OR query (#688) 2013-04-11 17:07:08 +09:00
Flavio Lerda
bc8b9d5110 Remove the right hook.
The code was removing a hook that was not added, with the result that
the hook was not actually being removed.
2013-04-09 22:58:04 +01:00
Andreas Klauer
5b768c03d2 surplus newline typo 2013-03-03 00:19:16 +01:00
Damien Elmes
c8d3d5a337 Merge branch 'master' of github.com:dae/anki 2013-02-26 19:11:56 +09:00
Andreas Klauer
6ddc276d57 workaround for filter tree onclick not working (#729) 2013-02-25 22:04:38 +01:00
Damien Elmes
8d2d998168 use question/answer for browser labels
by using a different label to the default front/back fields, it will hopefully make it clearer that a reversed card has the back side for the question
2013-02-22 11:13:59 +09:00
Damien Elmes
a2ad76dbb4 default to current deck when selecting (#693) 2013-02-20 15:25:59 +09:00
Damien Elmes
83cbace080 use double quotes for browser search quoting (#623)
when I did a search of AW decks a while back, double quotes were far less
prevalent than single quotes. ideally we'll add a way of quoting them in the
future.
2013-02-20 15:15:27 +09:00
Damien Elmes
02531e1db3 fix focus note option (#563) 2013-01-29 09:49:04 +09:00
Damien Elmes
0055d31d04 block gui updates while painting browser rows
If we processEvents() in the middle of a QItemDelegate, the recursion can
cause a crash on some OSes
2013-01-29 06:45:29 +09:00
Damien Elmes
ead1f005ec fix concat of mid searches 2013-01-15 10:26:54 +09:00
Damien Elmes
120c1d4136 match a single note type in browser even if duplicate names 2013-01-15 06:15:27 +09:00
Damien Elmes
444e02f568 default browser line font to system default 2013-01-08 10:44:46 +09:00
Soren Bjornstad
96fd3de6e5 Apply same fix to "leech" as "marked".
"Leech" does not need to be displayed in the taglist as a tag, as it is
already listed as a special item further up the list.
2012-12-25 17:40:02 -06:00
Damien Elmes
d11a1e0d54 allow browser font customization on a per-template basis 2012-12-22 10:10:52 +09:00
Damien Elmes
eced132aa2 don't lose selection when changing deck 2012-12-22 09:44:52 +09:00
Damien Elmes
b2457811a2 optimize imports 2012-12-22 09:17:10 +09:00
Damien Elmes
d477df8c28 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00