753 Commits

Author SHA1 Message Date
Matthieu Gautier
55e290630f
Merge pull request #408 from kiwix/search-ux-improvement 2020-04-17 17:25:49 +02:00
luddens
4fa58f3514 fix fulltext search that breaks the research article
Once the user makes a fulltext search, the currentWidget URL contains ".search"
that breaks the next suggestions URLs. Use the ZimId fixes that
2020-04-15 17:05:50 +02:00
luddens
02c1275d47 searchbar loads an article only on perfect match otherwise makes fulltext search 2020-04-15 17:05:50 +02:00
luddens
cf6a338d49 expand max size search suggestion popup 2020-04-15 10:54:45 +02:00
Matthieu Gautier
5f432ff683
Merge pull request #420 from kiwix/migration_dataDir
Migrate the data to new window's dataDirectory if needed.
2020-04-15 10:19:07 +02:00
Matthieu Gautier
1951084ad8 Migrate the data to new window's dataDirectory if needed. 2020-04-15 09:44:31 +02:00
jetownfeve21
a9a424a2e2
remove hide button's text (#414) 2020-04-14 09:33:22 +02:00
Matthieu Gautier
7cec6cbef0 New release 2.0 2.0 2020-04-08 17:22:18 +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
c38e43de87
Merge pull request #366 from kiwix/new_tag
New tag system
2020-04-08 12:28:52 +02:00
Matthieu Gautier
ea3224b646 Use new translation system for the categories. 2020-04-08 11:55:56 +02:00
Matthieu Gautier
4f4cfb16aa Correctly display tags in the content manager.
Correctly display the "Videos", "Picture", "Introduction only",
"fulltext index" depending on the value of tags.
2020-04-08 11:53:10 +02:00
Matthieu Gautier
d775b2e95f Revamp categories handling.
Move categories list in `static_content.cpp`
We use two "string" to handle each category. The first one is the
tag to use to do the opds request. The second one is the one displayed to
the user. The later is translatable.
The list is taken from issue kiwix/kiwix-tools#317

Fix #193
2020-04-08 11:53:10 +02:00
Matthieu Gautier
c804cc5d3b Move the list of all languages in another file. 2020-04-08 11:53:10 +02:00
Matthieu Gautier
638d3816a5
Merge pull request #400 from kiwix/fix_translation
Don't use `gt` in the contructor.
2020-04-08 11:52:16 +02:00
Matthieu Gautier
9f346f5f75 Don't use gt function in the constructor of kiwixApp.
The `gt` function get the instance of the kiwixApp.

So we cannot call this function in the constructor of kiwixApp itself.
Move all the (complex) initialization step in another method call after
the kiwixApp is created.
2020-04-07 16:10:57 +02:00
Matthieu Gautier
c8ed41dea5
Merge pull request #387 from kiwix/wiki-translate
Prepare string files for Translatewiki
2020-04-07 15:47:13 +02:00
luddens
ffdfff514e remove Qt translation files 2020-04-07 15:40:08 +02:00
luddens
1325d52d77 many ui translations 2020-04-07 15:40:08 +02:00
luddens
f203eb63e8 local kiwix server page translation 2020-04-07 15:40:08 +02:00
luddens
c113787abb about page translation 2020-04-07 15:40:08 +02:00
luddens
3b300f90e5 translate settingsmanager html page 2020-04-07 15:40:07 +02:00
luddens
fb582627dc translate contentmanager html page 2020-04-07 15:39:48 +02:00
luddens
716d7b59cb replace translations 2020-04-07 15:39:46 +02:00
luddens
7251c89c7d Translation class 2020-04-07 15:37:53 +02:00
luddens
0c64f615bf english translations file 2020-04-07 15:37:07 +02:00
Matthieu Gautier
0f95397a70
Merge pull request #398 from kiwix/fix_delete_twice
Do not delete twice mp_errorDialog.
2020-04-07 12:37:52 +02:00
Matthieu Gautier
2b67d3bc62
Merge pull request #397 from kiwix/open-folder-toolbar
add open file button in toolbar
2020-04-07 12:05:43 +02:00
Matthieu Gautier
985671211b Do not delete twice mp_errorDialog.
The mp_errorDialog is created as a child of mp_mainWindow.
It means that is is deleted by mp_mainWindow when we delete it, so
we must not delete mp_errorDialog.

May fix #123
2020-04-07 11:47:30 +02:00
luddens
1c9fd27e29 add open file button in toolbar 2020-04-07 11:39:43 +02:00
Kelson
3c6a8be870
Run Github actions on any push (not only in PR) (#394) 2020-04-04 18:32:09 +02:00
Kelson
738fc1f5fb
Add Github Actions CI badge 2020-04-04 17:31:44 +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
jetownfeve21
99ac7ab090
clean border between tabbar and content (#392) 2020-04-01 19:23:35 +02:00
Matthieu Gautier
2efdfeb842
Correctly handle redirection in zim file. (#390)
Sotoki zim file use redirection to article not in the same "directory".
So it breaks relative urls.

Instead of providing the content of the target entry, we must redirect
to the target entry. So, relative url are not broken.

Fixes #384, #206
2020-03-27 12:05:42 +01:00
Matthieu Gautier
33cdfb1145
Merge pull request #386 from kiwix/external-link-ctrl-click
Ctrl + Click on external link doesn't open a new empty tab
2020-03-25 16:21:36 +01:00
luddens
285417a2d8 Ctrl + Click and middle click on external link don't open a new empty tab
Connect the &QWebEnginePage::linkHovered signal to set the m_linkHovered
member.
The Ctrl + Click and middle click events are intercepted to directly open the m_linkHovered
variable if it's an external link
2020-03-25 16:17:25 +01:00
Matthieu Gautier
df9db1317a
Merge pull request #389 from kiwix/kiwix-icon
kiwix icon change
2020-03-25 16:15:53 +01:00
luddens
8eb3e2691c kiwix icon change 2020-03-25 14:02:07 +01:00
jetownfeve21
d236d238c6
remove reload action in context menu (not working) (#385) 2020-03-25 11:30:36 +01:00
Kelson
bf1139bfd6
Merge pull request #381 from kiwix/search_page
Search page
2020-03-11 17:19:02 +01:00
Matthieu Gautier
dfe8a4c75e Add a "completion entry" do to a full search. 2020-03-11 16:13:34 +01:00
Matthieu Gautier
9049ac7bbf Handle search request.
We know this is a search request base on the "tld" of the domain.
We render the search using the kiwix::SearchRenederer.

As now we can have a tld (".search") of more than 4 char, we must get
the zimId by spliting the url on "." instead of removing 4 char.
2020-03-11 16:13:34 +01:00
Matthieu Gautier
ff60343a05 Store the full url to open in the urllist for the completion.
Instead of storing only the path and recreate the url when we open the
completion, lets directly store the url and use it later.
2020-03-11 16:13:34 +01:00
Matthieu Gautier
7401926f17 Add a method to get (create) a searcher for a zimId. 2020-03-11 16:13:34 +01:00
Matthieu Gautier
a10281960b Use QUrl's fileName method 2020-03-11 16:13:34 +01: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
Matthieu Gautier
f1fb16466a Use the map of reader in the kiwix::Library.
`kiwix::Library` now have a feature to directly get a reader from
the library. It also use a map to avoid creating several readers.

Use it instead of managing our own reader map.
2020-03-11 16:13:34 +01:00
Matthieu Gautier
8907999c21
Merge pull request #382 from kiwix/settings-crash-fix
[Urgent]  Fix crash settings page
2020-03-04 17:18:12 +01:00
luddens
4154369ed3 Tabbar::currentWidget return nullptr if current widget is the settingstab 2020-03-04 16:53:53 +01:00