Commit Graph

224 Commits

Author SHA1 Message Date
40d4d224be Viewer: Always start GoTo flow on correct page 2021-07-30 08:58:39 +02:00
df32cf01fb GoTo dialogs: Restrict input values to existing pages 2021-07-30 08:58:39 +02:00
54b9952253 YACReader: Show error when opening nonexistent open recent entry 2021-07-30 08:58:39 +02:00
5b66153390 YACReader/viewer: Convert a bunch of loosely related signals to new syntax 2021-06-29 13:53:12 +02:00
5dbbaad73b GoTo flows: Untangle and refactor goTo signal to new syntax 2021-06-29 13:53:12 +02:00
47324e7f22 Comic/Render: Use overloads refactor some SIGNAL/SLOT connections to new syntax 2021-06-29 13:53:12 +02:00
f813a018d2 Comic: Virtual prototype for process(), fix signal/slot 2021-06-29 13:53:12 +02:00
8377de7c3e Clazy: Use fixits to refactor some old style signal connections 2021-06-29 13:53:12 +02:00
82a94113e1 macOS Info.plis: remove deprecated CFBundleGetInfoString 2021-06-26 00:39:05 +01:00
3683ace654 Remove message box used during development 2021-05-29 10:34:42 +02:00
4fc60c72aa Update YACReaderLibrary <-> YACReader communication to support reading lists 2021-05-27 18:56:31 +02:00
dbe1da58dc Update Simplified Chinese GUI translation for YACReader &
YACReaderLibrary
2021-05-09 11:55:52 +02:00
497894c5bf Allow to configure Fit to page action shortcut in the UI 2021-03-11 11:14:24 +02:00
3c9ed6ef8f Deprecated qSort => std::sort
This change gets rid of some GCC's -Wdeprecated-declarations warnings.
2021-03-09 21:32:23 +01:00
81b4d25b5c Remove unneeded QtOpenGL dependency
Qt OpenGL in Qt5 is a deprecated module that is discouraged for
new code usage. We have been including this module in our builds
despite not relying on its functionality for a long time now -
probably an oversight from porting to the newer functions.

Time to remove it.

IMPORTANT INFORMATION: In Qt6, a lot of functionality that was
provided by Qt GUI was moved into the 'new' Qt6 Qt OpenGL module.
Thus, even if it makes perfectly sense to remove it for Qt5 builds
we will likely have to restore it for Qt6 builds at a later time.
2021-03-09 18:26:01 +01:00
92be3addda Sync and update translation files
In the past, translation files provided by the community
mostly came as pregenerated .qm files missing the corresponding
.ts sources. This has led to a situation where the translations
are out of sync with the sources and the sources have not been
updated for several release iterations.

To improve the situation, this commit syncs all .qm files back to
the sources by using the lconvert tool to create .ts files and
updating these files against our sources using lupdate.

For future updates, a CI solution would be preferable.
2021-03-09 18:22:52 +01:00
a315021a22 Update qmake files 2021-03-09 18:22:52 +01:00
e5526de0af Render: Protect against race condition in setNumPages (#220)
* Render: Use sendPostedEvents to force processing of queued events when removing old comic objects
2021-03-04 16:45:52 +01:00
6f182b2bb3 Extract CONFIG += c++11 into common config.pri 2021-02-18 19:49:43 +01:00
74840f9914 Enable SVG explicitly 2021-01-22 10:48:13 +01:00
58fdf0af23 Add what's new dialog 2021-01-21 21:39:22 +01:00
dee557c518 Use a constant reference for passing QKeySequence to moveAction 2021-01-17 11:11:25 +01:00
08ce8c3c65 Fixed move action shortcuts 2021-01-17 11:06:45 +01:00
c73f28cca1 KeySequence passed by reference 2021-01-17 11:06:45 +01:00
fccf9ab0af Fixed shortcuts for move actions 2021-01-17 11:06:45 +01:00
a911a4fc53 Update action names in macos menus 2021-01-16 18:45:47 +01:00
2a3f7668ba Rename method 2021-01-16 18:27:16 +01:00
d07de8fb2e Rename prev/next actions to reflect its positional behaviour 2021-01-16 14:59:37 +01:00
c7cf012d51 Remove commented code 2021-01-16 14:34:28 +01:00
611d4c5e26 Add support for detecting manga issues in YACReader
When an issues is open from YACReaderLibrary we can check if it is a manga an update the UI to enable manga reading.

This also fixes going previous/next from the ui/shortcuts
2021-01-16 14:29:00 +01:00
ccf1e4cb56 Updated Dutch translation 2020-10-01 11:56:35 +02:00
4739376f5b Use new methods 2020-09-07 18:13:55 +02:00
6738827798 Add methods to access ENLARGE_IMAGES setting 2020-09-07 18:13:43 +02:00
acce89ef78 Update viewer.cpp 2020-09-07 08:54:23 +02:00
5bb6ab276a Reader: Add option to show covers as single pages in double page mode 2020-09-03 15:32:45 +02:00
232181eef7 Reader: Add option to stop enlarging images in fit to width and height 2020-09-02 09:27:53 +02:00
a2b4b88801 Format 2020-08-31 16:04:26 +02:00
0da59285cf Reader: fix QTimer-related memory leaks 2020-08-31 15:44:50 +02:00
b0082101d3 Reader: don't forget comic info visibility
The timer used to time out and invoke Viewer::informationSwitch() twice
before getting destroyed. This caused the following bug:
    1. Press 'I' to Show Info in YACReader.
    2. Restart YACReader (exit and run again). Info is visible.
    3. Restart YACReader one more time. Info is hidden.

Apparently, when informationSwitch() was called a second time soon after
the first one, informationLabel didn't hide for some reason, but the
wrong value (false) was stored at the SHOW_INFO key in Configuration.
2020-08-31 15:44:50 +02:00
fc8c1080da Add a message handler
This ensures that Qt debug messages actually end up in our logfiles,
even if we didn't use QsLog to create them.
2020-08-20 17:41:56 +02:00
56e6f8fdcc Allow setting YACReader loglevel from console 2020-08-20 17:41:56 +02:00
ac4d2f4804 Fix QsLog integration in reader too. 2020-08-20 17:41:56 +02:00
c13ec618d0 Move QsLog to third_party directory 2020-08-20 17:41:56 +02:00
eea96f6fa2 Improve file association in YACReader Info.plist 2019-10-20 09:19:49 +02:00
1f8be886ec Add new action to create a new instance of the viewer in macos 2019-09-28 16:55:28 +02:00
e1b0e7c96f Fix full screen mode in windows with qt 5.12.4+ 2019-09-28 10:11:44 +02:00
0b83764734 Revert "Thread ping pong" 2019-09-24 12:00:21 +02:00
cc71f419cc Revert "Backout changeset c42e71e42d7968ddb6c63fd39011669503b9122c"
This reverts commit 040664d3ba.
2019-09-24 08:12:38 +02:00
6efc31682c Reader: eliminate duplicate calls to GoToFlow::preload()
GoToFlow::setNumSlides() is called each time a comic is opened. So when
e.g. three comics were opened one after another without restarting
YACReader, each of the PictureFlow::centerIndexChanged* signals was
connected to GoToFlow::preload three times, which multiplied the number
of calls to preload() accordingly.

During my testing PictureFlow::centerIndexChanged* signals were never
emitted before the first call to GoToFlow::setNumSlides(), so connecting
in GoToFlow::GoToFlow() should not cause extra calls to preload().
2019-09-18 18:12:03 +02:00
28b8fca729 Reader: make PageLoader::working atomic to fix a data race
This data member is modified in PageLoader's own thread and accessed
without locking from an external thread in the public busy() function.

Reorder setting working and img in PageLoader::run() to avoid a data
race in PageLoader::result() called from GoToFlow::updateImageData().
2019-09-18 18:12:03 +02:00