100 Commits

Author SHA1 Message Date
Matthieu Gautier
b388b13ba0 Disable contentManager button we do not handle. 2018-10-26 13:55:35 +02:00
Matthieu Gautier
b9e0c4037c Correctly hide the contentManager bar. 2018-10-26 13:54:53 +02:00
Matthieu Gautier
d6513d6329 fixup! Make the content 2018-10-26 13:53:11 +02:00
Matthieu Gautier
e010815b4f Handle request to remote opdsfeed.
The content of the feed is fetch only for what is displayed to reduce
size and is store in a kiwix::Library (never stored in the fs).
2018-10-26 13:52:21 +02:00
Matthieu Gautier
d72dc72a21 Better style for contentManager. 2018-10-26 13:43:40 +02: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
Matthieu Gautier
3410252837 Make the contentManager the only interface from C++ to js/html.
Move all methods used by contentManager html into the contentManager class.
We do not export anymore the kiwixapp, the library or the downloader.
As the downloader was use only to export the methods to html, we can
remove it (and use kiwix::Downloader).
2018-10-18 15:22:08 +02:00
Matthieu Gautier
235b82166e Add a bit of styling.
Still need a lot of works
2018-10-17 14:47:09 +02:00
Matthieu Gautier
7a83a1038d Handle downloading of remote books. 2018-10-17 11:16:57 +02:00
Matthieu Gautier
2923b19478 Display the size of the zim book in the contentManager. 2018-10-17 11:10:17 +02:00
Matthieu Gautier
f39254a6f1 Move the creation of a dict from a list of values in a specific function. 2018-10-17 11:01:27 +02:00
Matthieu Gautier
9ce41c06af Open book from the contentManager. 2018-10-17 11:01:21 +02:00
Matthieu Gautier
a6f8bbd6e5 Add a first version of the contentManager. 2018-10-17 11:00:09 +02:00
Matthieu Gautier
d294b16a12 Run lupdate and lrelease only on linux.
system cannot run on windows.
2.0-alpha3
2018-09-05 17:54:00 +02:00
Matthieu Gautier
30520fd1aa Merge pull request #25 from Ordissimo/master 2018-09-05 16:06:08 +02:00
Matthieu Gautier
bf8fab75d8 Add a translation for texts/about.html. 2018-09-05 16:05:03 +02:00
Matthieu Gautier
457d9aafef Update translations. 2018-09-05 16:05:03 +02:00
Matthieu Gautier
d37cdd6e2d Do not use QObject::tr but directly tr.
It simplify the code and allow the translation to keep the context
(the class of the object) instead of always having the `QObject` context.
2018-09-05 16:05:03 +02:00
Matthieu Gautier
171a307a7b Uniform the way we are loading translation files.
It is better to have the same mechanism to load the file instead of one
time using `load` method to find the right file and one time using the
resources system overloading the resource file.
2018-09-05 15:37:53 +02:00
Matthieu Gautier
2304987bcf Make the QTranslator members of KiwixApp.
If we pass their address to `installTranslator` we have to be sure they
exist after we quit the constructor.
2018-09-05 15:35:21 +02:00
Thierry
0c6cdc4ac4 Update translations 2018-09-04 17:52:02 +02:00
Thierry
594ec51110 Return of the maintenair 2018-09-04 17:52:02 +02:00
Thierry
75be2c9311 Partial functioning of translations 2018-09-04 17:51:20 +02:00
Thierry
3d930e5bd8 Add build locale. 2018-09-04 17:51:20 +02:00
Thierry
b71fc67032 Added translation mechanism, and added French translation. 2018-09-04 17:51:20 +02:00
Matthieu Gautier
6097c0fe99 Implement search in page actions.
- Create a TOCSideBar (name TOC because it will also show TOC)
- Remove `FindNextAction` and `FindPreviousAction`. They are handle
  directly by a button in the sidebar.
2018-09-04 17:27:58 +02:00
Matthieu Gautier
67f2d1f067 Implement zoom action. 2018-09-03 16:12:25 +02:00
Matthieu Gautier
089a1753eb [About message] Add a link to report bugs in the about message.
Fix #23
2.0-alpha2
2018-08-21 17:32:39 +02:00
Matthieu Gautier
19c991f8a9 [About message] fix typos 2018-08-21 17:32:04 +02:00
Matthieu Gautier
502154ac3d Hide donateAction. 2.0-alpha 2018-08-03 17:28:56 +02:00
Matthieu Gautier
ae155063a5 Add missing ; at end of Categories. 2018-08-03 14:21:03 +02:00
Matthieu Gautier
1554b90a2e Hide ReopenClosedTabAction and SettingAction.
We will not implement them for the alpha.
2018-08-03 14:20:47 +02:00
Matthieu Gautier
48aa87fb48 Display the kiwix version in the about dialog. 2018-08-02 19:26:54 +02:00
Matthieu Gautier
5824083382 Connect the AboutAction.
Show the about dialog when action is triggered.
2018-08-02 17:59:38 +02:00
Matthieu Gautier
76214e6f53 Add an about dialog. 2018-08-02 17:57:31 +02:00
Matthieu Gautier
96b23c5c1e Connect the toggleFullScreen action.
The topwidget now use the application's action instead of having
two different action.
2018-08-02 17:24:32 +02:00
Matthieu Gautier
dfc0a454ab Convert filepath to utf8.
Let's move to http://utf8everywhere.org/
2018-07-31 20:09:54 +02:00
Matthieu Gautier
07e80eefa5 Open external links in the system browser. 2018-07-27 18:33:59 +02:00
Matthieu Gautier
7900c1a4e1 Fix some crash when no tab is opened. 2018-07-26 14:50:32 +02:00
Matthieu Gautier
f8c6f18c0a Connect RandomArticleAction. 2018-07-26 14:49:33 +02:00
Matthieu Gautier
15f1492d96 Connect PrintAction.
This display a dialog to select the printer and its options.
The dialog is awful because it reuses the application stylesheet
but it works.
2018-07-26 13:47:05 +02:00
Matthieu Gautier
d2e32dbf79 We should use the zimId as host in search.
Fix bug instroduced with 7408bb0a
2018-07-26 10:41:05 +02:00
Matthieu Gautier
7fa49479a9 Correctly check the index with -1 not 1.
If `index == -1`, it means there is no more tab opened.
2018-07-25 17:34:14 +02:00
Matthieu Gautier
2ec1beb103 Connect OpenFileAction. 2018-07-25 17:30:32 +02:00
Matthieu Gautier
52f6b03da2 Connect closeTabAction. 2018-07-25 17:19:57 +02:00
Matthieu Gautier
0806faeb99 Connect NewTabAction. 2018-07-25 17:18:11 +02:00
Matthieu Gautier
2743568cef Connect ExitAction 2018-07-25 17:10:36 +02:00
Matthieu Gautier
61e566e318 Fix style of icon size of tabBar 2018-07-25 17:02:53 +02:00