167 Commits

Author SHA1 Message Date
Matthieu Gautier
f1879b5c3f Add a filtering by language.
The current list of available language is a fixed list.
It is generated by the union of languages we have (on library.kiwix.org)
and languages Qt know of. So some languages for which we have content
are not available.

For now, the filtering is made only for remote catalog.
This probably have to be changed, but for now it is better to
display all the content the user has.
2019-03-06 18:07:35 +01:00
Matthieu Gautier
7e1ccb7511
Merge pull request #103 from kiwix/fix_appdata
Fix appdata
2019-02-05 18:03:47 +01:00
Matthieu Gautier
79b4dd95ab Add screenshots in appdata. 2019-02-05 15:03:15 +01:00
Matthieu Gautier
7e57312f59 Add content rating in appdata. 2019-02-05 15:02:40 +01:00
Matthieu Gautier
3bf03d55d8 Add release tag in appdata. 2019-02-05 15:02:30 +01:00
Matthieu Gautier
8899723480 Fix typos in appdata description and license. 2019-02-05 15:00:50 +01:00
Matthieu Gautier
a6bcef230a Fixup installation of metainfo file. 2.0-beta3 2019-01-29 13:37:58 +01:00
Matthieu Gautier
6d9b5a2942 Update to last kiwix-lib api.
`common` directory has been renamed to `tools`.
2019-01-23 17:17:49 +01:00
Matthieu Gautier
1ae8a8a6d3 Update Changelog. 2019-01-23 15:28:23 +01:00
Matthieu Gautier
902ebb3402 Update about.html to correctly list dependencies.
We are using `Mustache` instead of `CTTP2` now
2019-01-23 15:27:38 +01:00
Matthieu Gautier
5b5c25d2dd
Merge pull request #100 from kiwix/fix_flatpak_extra_files
Fix flatpak extra files
2019-01-23 11:34:24 +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
1cd83098e5 kiwix-lib new API : getIndexPath has been removed.
And it was not used anyway.
2019-01-08 17:10:55 +01:00
Kelson
310799f1d1
Merge pull request #89 from kiwix/legoktm-patch-1
README: Fix typo in package name
2018-12-28 09:01:39 +01:00
Kunal Mehta
64c1a6a8a6
README: Fix typo in package name
I assume it was supposed to be libqt5svg5-dev with a q, not a g.
2018-12-27 18:33:22 -08:00
Kelson
084e8510c5
Update README.md 2018-12-14 19:06:12 +01:00
Matthieu Gautier
ef51800f24 Update Changelog. 2.0-beta2 2018-12-14 16:56:30 +01:00
Matthieu Gautier
ccbabfec1b Remove highlighted text from a search
Fix #83
2018-12-13 18:11:55 +01:00
Matthieu Gautier
c081b3a665 Disable back/forward buttons when there is no history
Fix #82
2018-12-13 18:06:11 +01:00
Matthieu Gautier
2f2d66d45c Udpate style.css
- Add a small margin around the top button
- Change the button background on hover.
2018-12-13 17:41:02 +01:00
Matthieu Gautier
5ee665f049 Add README.md and COPYING files.
Fix #62
2018-12-13 17:36:05 +01:00
Matthieu Gautier
8ff3cead02 Add a Changelog.
Fix #30
2018-12-13 11:50:09 +01:00
Matthieu Gautier
2807597e11 Elide the title tab of the article.
Fix #75
2018-12-12 18:04:42 +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
5e3e7026ab Do not wrap the articles in the reading list.
We want to have all articles in only one column.
2018-12-12 11:17:06 +01:00
Matthieu Gautier
9314c88600 We need to add a .zim at end of url host. 2018-12-12 11:16:10 +01:00
Matthieu Gautier
3f9072f978 Correctly style the first tab (contentManager)
It would be nice to be able to style it using css (QTabBar::tab:first)
but I can't figure how :/

We need to :
- hardcore the size of the tabs using `tabSizeHint`.
- "deactivate" the tab button with `setTabButton`
- set the size of the icons.

Fix #73
2018-12-11 18:03:03 +01:00
Matthieu Gautier
4b9cc80f66 Do not do an extra request to search book in the remote library.
When doing a search in the library, we know for sure that the result will
be a subset of the library we have (without query). So we can do the
search locally (through the books we already have in cache) instead of
doing another request.
2018-12-11 12:08:22 +01:00
Matthieu Gautier
3582ab03e3 Get the favicon from the book instead of from the reader.
- It avoid us to open the zim file to get the favicon.
- It allow us to have the favicon for partially downloaded zim.
2018-12-10 17:50:14 +01:00
Matthieu Gautier
639d16586f Use the encoded url when doing a request to the server. 2018-12-10 17:48:54 +01:00
Matthieu Gautier
f45ab71923 Emit currentTitleChanged when we change tab.
To allow the searchBar to follow tab change and adapt itself.
2018-12-10 16:55:48 +01:00
Matthieu Gautier
d52dab04ce Do not resize zimId.
If there is no ".zim" at the end, we don't need to remove it.
2018-12-10 16:55:00 +01:00
Matthieu Gautier
ce71fe0275 Correctly handle the sideBar.
The side bar has some constraints :
- If the contentManager is displayed, we cannot change or hide the side
  bar.
- The readingList button must follow the currentside bar, not its
  internal status (checked/unchecked).
2018-12-10 16:40:42 +01:00
Matthieu Gautier
6a0296f0f2 Use the real zimId instead of "zimId+.zim".
The real zimId is `xxxx` (stored in the zim itself), not `xxxx.zim` (we
use as host url).

Store the host as an id means that we always need to convert from `xxxx` to
`xxxx.zim` (and the contrary). It is prone to mistake when we forget to
convert to the correct format.

We must use `xxxx.zim` only in the url as is it use to identify what is
asked in the urlschemehandler. Everywhere else, we only need the real
zimId.
2018-12-10 15:17:55 +01:00
Matthieu Gautier
f0e61d31bf Do not do too many request as we try the search in the contentManager.
Wait 200ms before doing the request. It will avoid contentManager to do
too many (and useless) requests.
2018-12-10 15:17:55 +01:00
Matthieu Gautier
7b1d302a78 Do not crash if contentManager view and backend are out of sync.
In case of rapid input in the contentManager's search entry, the
search request will be launch rapidly. As the view is updated async, the
`getBookInfos` may be used to get information on a book not in the
library anymore. We must handle this to avoid crashing.

Fix #65
2018-12-10 15:17:45 +01:00
Matthieu Gautier
91421c6a84 Correctly change the title of the searchbar when user change tabs. 2.0-beta1 2018-12-03 17:41:39 +01:00
Matthieu Gautier
8000fea1dc not is not a valid operator.
gcc accepts it and it is not a good thing to code both in C++ and Python :)
2018-12-03 11:39:53 +01:00
Matthieu Gautier
3007d1a9f6 Update style to visualize clickable items. 2018-12-02 17:11:00 +01:00
Matthieu Gautier
0b1296cc86 Implement search in the contentManager. 2018-12-02 17:09:39 +01:00
Matthieu Gautier
b1b0c1d2c3 Add a basic support for bookmarks. 2018-12-02 16:10:35 +01:00
Matthieu Gautier
67d56f1d03 Remove contentManager pagination.
The pagination was added as a workaround to a too slow display of
the content.

Now that with commit 4cbf001 we are displaying the icons async, the
pagination is no more usefull.
2018-11-30 16:01:27 +01:00
Matthieu Gautier
09bfbf1476 Fix .desktop file
- The version key is the version of the feedesktop specification, not the
  application one
- `Keywords` and `MimeType` must end with `;`
2018-11-30 15:58:16 +01:00
Matthieu Gautier
87b1e25240 Connect the address bar to the tab bar.
The search bar display the title of the current displayed article.
As the icon must change depending we are displaying the article's title or
we are doing a search, the icon is bit more complex :
- It is an embedded button in the searchbar, not a simple icon.
- The search bar is connect to the new signal "currentTitleChanged" to
  display the current title.

Fix #35
2018-11-30 15:49:16 +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
0a2c65211e
Merge pull request #56 from kiwix/speedup_contentManager
Speedup content manager
2018-11-13 18:33:06 +01:00
Matthieu Gautier
4cbf001de4 Use real url for icon in the contentManager instead of data url.
The update of book info are made somehow sync. (They are async, but
somehow, the view update hangout).

Getting the favicon content is pretty long and it seems that the view
(and getting remote content) take a long time.

By using a real url, QWebViewEngine handle everything nicely and it speed
up everything.
2018-11-13 18:32:18 +01:00