74 Commits

Author SHA1 Message Date
Matthieu Gautier
df7f657a61 New version 2.3.0 2022-09-07 16:58:35 +02:00
Matthieu Gautier
0629251ad2 Use last version of libzim (8.0.0) 2022-09-07 16:58:13 +02:00
Matthieu Gautier
69a7277354 New version 2.2.2 2022-06-22 15:51:54 +02:00
Matthieu Gautier
b6934d707b kiwix-desktop now need libkiwix >= 11.0.0 2022-06-16 14:39:21 +02:00
Matthieu Gautier
b692debeab New version 2.2.1 2022-03-11 17:16:00 +01:00
Matthieu Gautier
27bd61c62f New version 2.2.0 2022-03-04 16:39:08 +01:00
Vitaly Zaitsev
e9855d7aeb
Fixed SVG icon installation.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2022-02-02 18:47:40 +01:00
Matthieu Gautier
8dc1984f0b Check for the version of kiwix and libzim. 2022-01-20 14:38:59 +01:00
Matthieu Gautier
7f5fe877f9 New version 2.1.0 2022-01-20 14:38:59 +01:00
Alexander Sashnov
9bb32e19f1 Fixes #525 Kiwix icon low resolution
Set white background to kiwix-desktop.svg, include it into .deb
2022-01-12 14:46:54 +07:00
Han Young
bace78ae1a add ui to qmake 2021-10-19 05:09:07 +02:00
Han Young
93854011eb port settings to Qt Widget 2021-10-19 05:09:07 +02:00
Pierre Neidhardt
a0d3b106b1
Fix printsupport in .pro file (#557)
This may be required to avoid errors like:

    src/kiwixapp.cpp:12:10: fatal error: QPrinter: No such file or directory
2020-12-12 16:28:53 +01:00
Matthieu Gautier
bd54ad9d79 New version 2.0.5 2020-11-17 16:40:45 +01:00
Kunal Mehta
89a5e7994e Fix version
The PPA integration will look at this version to determine what it's
packaging.
2020-07-28 21:45:45 -07:00
Matthieu Gautier
3193889dad Do not call date and git describe for reproducible build.
`GIT_VERSION` and `BUILD_DATE` are only displayed to the user.
It was useful pre-release to identify the exact version of the build in
bug report.

Now than, we are now releasing kiwix-desktop, we don't need the
`BUILD_DATE` and we must use the exact version instead of the git version.

Fix #476
2020-07-06 16:04:18 +02:00
luddens
efbfc3374e fluid suggestions list UX
- add a delay before searching suggestions
  A timer of 100ms is started each time the text is edited, if the timer
  time-outs the suggestion's search is executed.

- foreach search a worker with a token is launched in another thread
  Once the search is done, the worker sends the suggestions list and the corresponding urls list to the main thread.
  if the token of the worker matches with the last token used, the main thread displays the suggestions.
2020-06-30 16:22:30 +02:00
luddens
54d181fc43 add content type filter
The ContentTypeFilter Class is a custom QCheckBox.
These are stored in a QList that is sended to the ContentManager each time they are clicked.
The ContentManager sets the acceptedTags according to the state of the ContentTypeFilters
The "All" button resets the filters
2020-05-27 16:21:27 +02:00
luddens
03796affbe implement the qtsingleapplication solution 2020-05-12 06:20:20 +02:00
Matthieu Gautier
475061296b Remove old configuration of translation system. 2020-04-29 17:25:10 +02:00
Matthieu Gautier
77c14ee497 Do not build kiwix-desktop with the console on windows. 2020-04-08 17:20:51 +02:00
Matthieu Gautier
c804cc5d3b Move the list of all languages in another file. 2020-04-08 11:53:10 +02:00
luddens
7251c89c7d Translation class 2020-04-07 15:37:53 +02:00
jetownfeve21
135baf48cd
new Find in page in a bottom bar (#347)
Zimview is now a container for the webview and the find in page bar
Add a F3 shortcut
ESC hides the search bar and the highlighting
2020-04-01 19:29:28 +02:00
Matthieu Gautier
62a2b57795 Use a global profile to handle to configure scheme handler and download.
We don't need to configure the (default) profile each time we create a
new web page.

Let's create a specific profile for the application and use it everywhere.

This is the profile who is responsible to :

- configure itself with the schemeHandler for "zim"
- handle the download (this probably fix a bug if a user close the page
  while a download associated to the page is running)
2020-03-11 16:13:34 +01:00
luddens
840e409cec bigger menu icon
apply a custom proxystyle for the menu widget to change the icon size
2020-01-28 11:29:09 +01:00
Matthieu Gautier
4ea267fd59 Display the console on windows.
This will help to debug issue as we will have access to log output.
This should be revert before doing the last release.
2020-01-15 17:17:54 +01:00
luddens
f52d79cca4 Add fullscreen mode for video
Based on this example https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-videoplayer-example.html
2019-11-18 16:48:14 +01:00
luddens
175c46cddf settings page architecture 2019-11-01 15:59:17 +01:00
luddens
90b4ce1b19 add windows icon 2019-09-11 12:19:48 +02:00
Emmanuel Engelhart
743b49b6b2 Have to hardcode QMAKE_LUPDATE and QMAKE_LREALEASE, they might be otherwise undefined 2019-07-31 17:58:29 +02:00
luddens
785d2c72f3 kiwix-serve integration in kiwix-dekstop
Display the "local kiwix server" option in the menu
This option opens a Qdialog that have options to control the server (run, open
in browser, stop).
The KiwixServe::run() method use execvp to run the kiwix-serve binary.
2019-07-24 16:20:38 +02:00
Vitaly Zaitsev
2e6d5da1dc
Removed RPATH from compiled binaries.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-06-26 12:38:56 +02:00
luddens
b2c2004f72 new architecture for the remote library's update's request
Using Curl fct of the kiwix library is synchrone, so when the server accepts
the request but doesn't answer, the kiwix-desktop app is unresponsive.

To avoid that, this is a new architecture based on the Qt network request
management.

There is a new member in the contentmanager based on the new class
OpdsRequestManagerManager. It has two members : m_networkManager sends the
request and return a pointer stored in mp_reply which will receive the answer
of the request.

When the remote library has to be update, it calls
the doUpdate method. It checks if there already is a running request and
aborts it if yes. Then m_networkManager sends the
request and return a pointer stored in mp_reply which will receive the answer
of the request. The signal 'finished' of the mp_reply is connected to the slot
receiveContent. In this slot it checks if the signal 'finished' was emit
because of an abort, if not it reads and emit a signal bookChanged with the
content in parameter. This signal in connected in the ContentManager class
to the slot 'updateRemoteLibrary' which update the remote library member.
2019-05-02 16:15:55 +02:00
Matthieu Gautier
755ac40c04 Correctly set include path in CFLAGS and CXXFLAGS
It appears that setting `INCLUDEPATH` in qmake break things.
Because qmake add the include path using `-isystem`.

We don't need to extract include path and define  from PKGCONFIG_CFLAGS.
Updating `CFLAGS` and `CXXFLAGS` is enough. No need for complex things.

Fix #90
Fix kiwix/kiwix-build#260
2019-04-16 15:42:20 +02:00
luddens
7b49f08360 rename zim icon to "org.kiwix.desktop.x-zim"
flatpack doesn't export files that aren't prefixed like the app (org.kiwix.desktop)
so it has to be renamed and to be precised in the mimetype.xml file because it doesn't matched to the mimetype's name anymore
2019-04-15 17:12:54 +02:00
luddens
3cc06729d9 fix zim icon
named the mime icon like the mimetype
and installed it with the .pro file used by qt
2019-04-15 17:12:54 +02:00
Matthieu Gautier
05c64e620d Make the selected item bold.
css style font doesn't work for item. So we have to inherit the
QListWidgetItem to redefine the `data` method.
2019-03-06 18:07:35 +01:00
Matthieu Gautier
a6bcef230a Fixup installation of metainfo file. 2019-01-29 13:37:58 +01:00
Matthieu Gautier
16e01bd0e1 Add zim mimetype support.
The will allow a user to simply "double click" on the zim file and
let org.kiwix.desktop being launch automatically.

Fix #99
2019-01-23 11:33:22 +01:00
Matthieu Gautier
e16b521840 The appdata file is named org.kiwix.desktop.appdata.xml.
Not `org.kiwix.desktop.metainfo.xml`.
2019-01-23 11:29:51 +01:00
Matthieu Gautier
98da59d62b Add a appdata file.
To comply with appstream.
2018-12-12 17:50:18 +01:00
Matthieu Gautier
caae4e8124 Rename the .desktop file to follow recommendation.
We should use the "reverse dns" name : org.kiwix.desktop.
2018-12-12 17:47:05 +01:00
Matthieu Gautier
b1b0c1d2c3 Add a basic support for bookmarks. 2018-12-02 16:10:35 +01:00
Matthieu Gautier
a7710fd3e3 Install icons on unix. 2018-11-26 19:24:41 +01:00
Matthieu Gautier
079497e74e Correctly install kiwix-desktop.desktop file on unix 2018-11-26 19:24:00 +01:00
Matthieu Gautier
5ca4d8903f Remove the requestInterceptor.
This is useless. It was use to rewrite http request to zim request and
have the custumUrlShemeHandler handle the request.

However, we now want to open http request in a external browser.
And it is already the case, the http requests are never intercepted.
2018-11-13 18:32:18 +01:00
Matthieu Gautier
5a6bafc8e1 Move style.css in another resources file.
It speed up compilation when we modify the style.
2018-10-26 13:42:05 +02:00
Matthieu Gautier
1022136697 Move the contentManagare sidebar into a specific widget. 2018-10-18 16:45:47 +02:00
Matthieu Gautier
300540d4b8 The sidebar must be under the tabbar.
The tabbar must use the whole length and must not be pushed out by the
sidebar.

So we need to split the tabwidget into a tabbar and a stackedWidget.
2018-10-18 16:44:27 +02:00