Damien Elmes
7755eb408c
fix incorrect qt constructor call
2019-03-04 15:59:53 +10:00
Damien Elmes
da2ddcc6e2
explicitly import _ and ngettext
2019-03-04 11:58:34 +10:00
Damien Elmes
a389b8b4a0
move versionWithBuild into anki module
2019-02-28 08:37:42 +10:00
Damien Elmes
2e70c56248
fix regression in showInfo() et al
2019-02-27 14:16:35 +10:00
Damien Elmes
139e04c7c3
be explicit about text format when showing add-on errors
...
fixes br codes showing in error messages
2019-02-26 09:36:02 +10:00
Glutanimate
569f42c0f5
Move supportText() to utils in order to allow use outside of errors
2019-02-24 14:50:39 +01:00
Aristotelis
ff7b06fbda
Merge branch 'master' into install-local-addons
2019-02-23 09:27:17 +01:00
Glutanimate
85955722c7
Extend getFile with support for multi-file selection
2019-02-18 07:10:43 +01:00
Glutanimate
5deb905b27
Extend showInfo with ability to copy text to clipboard
...
Use this in error dialog
2019-02-16 23:05:06 +01:00
Damien Elmes
4acebfdf52
ensure full window is on screen when restoring
2019-02-14 13:47:44 +10:00
Damien Elmes
7f8b4b89ae
experimental fix for qt placing windows off screen
...
https://anki.tenderapp.com/discussions/ankidesktop/32402-issues-when-using-anki-on-system-with-multi-monitor
2019-02-12 07:49:35 +10:00
Damien Elmes
c8c55c893d
tooltip timer doesn't need collection
2019-02-07 13:59:24 +10:00
Damien Elmes
1603a5224e
fix context menu in editor, and move workaround into shared function
2019-02-05 14:37:07 +10:00
Damien Elmes
372d5ed6e8
update copyright and clarify licenses
2019-02-05 14:01:33 +10:00
Damien Elmes
488c867afb
info/warning/etc need to be be application modal
...
WindowModal was allowing multiple popups in the browser on Windows:
https://anki.tenderapp.com/discussions/beta-testing/1378-error-does-not-go-away
2019-02-04 07:32:49 +10:00
Damien Elmes
4c6c0d428b
detect and refuse to run on nouveau
2018-12-18 19:29:34 +10:00
Damien Elmes
0769bf7ac9
apply stylesheet app wide, and add border to win10 menu
...
the night mode add-on may need updating with this change, but with
a global stylesheet it may be easier to style widgets in the future
menu bar issue:
https://anki.tenderapp.com/discussions/beta-testing/1313-anki-216-beta-1#comment_46664932
2018-12-14 20:35:12 +10:00
Damien Elmes
053b286398
include git hash in version info
2018-12-13 20:59:06 +10:00
Damien Elmes
a4edc57dc5
run latex commands without bundled libs
...
https://anki.tenderapp.com/discussions/ankidesktop/30531-latex-wont-generate-svgs-automatically-but-will-generate-pngs
2018-10-28 11:41:43 +10:00
Damien Elmes
23a3413c23
don't save window geom when window is fullscreen
...
fixes windows being shown in extra workspaces instead of tabs on osx
https://anki.tenderapp.com/discussions/ankidesktop/29094-anki-21-issue
2018-08-08 12:30:58 +10:00
Damien Elmes
13b529e77a
save file selector state
2018-07-23 13:57:17 +10:00
Damien Elmes
118326df1e
remove format literals so we can support python 3.5
2018-01-16 16:07:30 +10:00
Damien Elmes
905bd10efe
use documents instead of desktop as default location
...
have observed users doing a collection export to their desktop, then
thinking that double clicking the collection file was the way to
start Anki in the future
2017-09-10 17:01:52 +10:00
Damien Elmes
b454d6f169
default to desktop in getSaveFile; don't force desktop in stats
2017-09-10 16:42:29 +10:00
Damien Elmes
2e7da0f3c6
provide more info in error screen, and link to support site
2017-09-06 16:40:35 +10:00
Damien Elmes
7b1747d650
don't throw an error when closing with tooltip or debug window open
2017-08-25 12:14:59 +10:00
Damien Elmes
b558712976
filter menu tweaks
...
- make the chunking and menu code more generic
- decks and note types now chunk menus too
- chunked menu now shows start and end prefix
2017-08-15 18:41:36 +10:00
Damien Elmes
ba16b8714b
remove images and move away from qt resources
...
- the bulk of image use is in webviews, so we move almost all used
images to web/imgs, as it's easier to manage
- change AnkiWebView to always use the local media server as a base, as
much of the UI has come to depend on it
- remove images from a few areas, as they felt dated
- delete a bunch of unused images
- href=# links were being opened in a browser window, so the code now
ignores them - the HTML should really be updated to return false in the
onclick handler
- update a few icons
2017-08-11 20:59:43 +10:00
Damien Elmes
412d37fc13
another workaround for the KDE accelerator issue
2017-07-31 15:48:34 +10:00
Damien Elmes
2b8987f654
fix browse add-ons command failing to load on linux
2017-06-27 12:04:42 +10:00
Damien Elmes
22ca4c24de
Merge pull request #186 from wetriner/master
...
'QDialogButtonBox' object has no attribute 'finished'
2017-05-04 11:59:49 +10:00
wetriner
80418c0fb7
'QDialogButtonBox' object has no attribute 'finished'
2017-05-02 23:22:01 -10:00
Dmitry Mikheev
50736ecf1d
What about this one?
2017-05-03 13:55:24 +05:00
Dmitry Mikheev
b5fac33cc4
Otherwise showText never saves Geometry
2017-04-27 01:25:16 +05:00
Damien Elmes
fe8f6d518a
embedded fonts should work on osx now; remove font-weight hack
2017-01-17 14:45:12 +10:00
Damien Elmes
9c04ac6a8e
fix opening of explorer folders on windows
2016-12-17 13:23:05 +10:00
Marcio Mazza
e7eaf5f378
Fix open addon folder
...
The open folder operation would break if the environment variable
LD_LIBRARY_PATH was not set
2016-11-28 18:02:30 -02:00
Damien Elmes
3be25cf900
fix nautilus failing to load in linux build
2016-07-14 21:06:33 +10:00
Damien Elmes
a8e2f992c8
image support
2016-07-07 23:39:48 +10:00
Damien Elmes
de7e40537d
port majority of code to qt5.5+
...
- a few issues to work out still, and editor changes not done yet
- for communication between webengine and python code, we set window
.location to 'http://anki/ <something>' - the leading http is
necessary for qt to call the link handler, which was introduced
in qt5.5
- the designer files now use a promoted qobject to create instances
of AnkiWebView
- we use the css zoom property to alter webengine font size based on
system dpi
- prefs and addons folder stored in new location (at least for now)
2016-05-31 18:51:40 +10:00
Damien Elmes
15b349e3a8
start port to python 3
...
unit tests pass and main screens of GUI load
2016-05-12 14:45:35 +10:00
Damien Elmes
640d906230
fix bug in contributed patch
2016-05-01 13:32:17 +10:00
Dmitry Mikheev
75e574cb9f
parameters to specify a desired title and size
...
Let's give authors of add-ons the ability to specify a desired title and minimum width and height of the message window.
2016-04-30 10:44:41 +05:00
Damien Elmes
781e592339
don't set current dir in file selector if it doesn't exist
...
some users were reporting hangs
2016-03-21 09:57:45 +10:00
Damien Elmes
6f95527758
use the larger arrow only on windows, and in other screens
2015-09-28 23:09:30 +10:00
Damien Elmes
6b65cfc08f
disable embedded fonts on osx
2014-09-27 10:26:14 +09: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
black silence
4529fa4513
fix tooltip for inverted color schemes
2014-06-02 20:02:26 +02:00
Damien Elmes
2802d074bb
disable previous osx workaround that may be causing crash on file dialog
2014-04-10 14:01:24 +09:00
Damien Elmes
51121f6e86
escape image links in clayout and preview as well ( #903 )
2013-06-10 15:28:34 +09:00