337 Commits

Author SHA1 Message Date
Matthieu Gautier
d4028e95e8 Release 2.0.4
- Add "open link in web browser" action in context menu.
- Improve setting UX (no apply button. Download directory dialog).
- Change fonts to the free "Selawik".
- Do not call `date` and `git describe` during build step to allow
  reproducible build.
- Better about.html text.
- Update translations.
2020-07-15 16:48:19 +02:00
Matthieu Gautier
ee452bd005 Update translations.qrc with new translations. 2020-07-15 12:15:00 +02:00
Matthieu Gautier
8cc59e42cf Do not translate {{VERSION}} token 2020-07-15 12:14:31 +02:00
translatewiki.net
32bef4a129 Localisation updates from https://translatewiki.net. 2020-07-14 10:19:28 +02:00
Matthieu Gautier
b91be76815 Fix styling of the settingManager
- Button are not limited in size to contain all the text.
- Zoom factor is correctly positioned.
- Download directory is display without border, left aligned.
2020-07-10 17:42:01 +02:00
Matthieu Gautier
bfe08ade84 Better download directory confirmation dialog.
- Set the title
- Use OK button instead of SAVE
- Use better textual string to allow correct translation.
- rename the function name to have something closer to an action.
- Do the action (setting the directory) outside of the checking function.
2020-07-10 12:11:21 +02:00
luddens
8f1d870553 change download directory setting UX
- remove "apply" button
- kiwixPort and zoomFactor are saved onchange
- download directory has a confirm dialog
2020-07-10 12:11:21 +02:00
Kelson
cc1a664aef
Replace non-free font by Selawik (#485) 2020-07-10 10:52:51 +02:00
luddens
b2dff19e6f add "open link in web browser" action in context menu
reimplement the contextMenuEvent : if the link hovered is an external link
it removes from the standard context menu the "openLinkinNewTab" action and
and add the "open link in web browser"
2020-07-10 10:45:35 +02:00
Matthieu Gautier
913b5abff6 Better about text for better translation.
Update a bit the "about.html" text to not split sentences in several parts
and allow translator to translate the whole sentence at once.

Change the template format to use `{{}}` to be closer than mustache
templating system we already use in kiwix-lib.

Fix #399
2020-07-09 11:22:33 +02: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
Matthieu Gautier
3ac6a953a6 Remove old translation file. 2020-07-06 16:04:18 +02:00
Kunal Mehta
9b9ff8ab8f
Fix typo in about.html (#475) 2020-07-05 09:06:18 +02:00
Matthieu Gautier
0e08e18b3e Release 2.0.3 2020-07-02 15:26:59 +02:00
Kelson
1c4246ccf7
Put white background on new icon (#469) 2020-07-02 09:29:41 +02:00
Matthieu Gautier
897cd3a49e Release 2.0.2 2020-06-30 17:31:20 +02:00
Matthieu Gautier
d3c73209b8 Update translations.qrc to include all translation files.
The file is generated using the new script `generate_translation_qrc.py`.
2020-06-16 14:25:24 +02:00
translatewiki.net
628eef27a5 Localisation updates from https://translatewiki.net. 2020-06-15 22:15:02 +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
jetownfeve21
897e36ef1b
update logo (#441) 2020-05-06 11:26:49 +02:00
Abijeet Patro
76a4ecb72b
Fix article spelling in Search article 2020-05-04 19:09:19 +05:30
Matthieu Gautier
14ce4b226e Readd french translation.
Fix #427
2020-04-29 17:25:10 +02:00
Matthieu Gautier
fc9e9a1b51 Release 2.0.1 2020-04-20 10:06:25 +02:00
luddens
02c1275d47 searchbar loads an article only on perfect match otherwise makes fulltext search 2020-04-15 17:05:50 +02:00
Matthieu Gautier
7cec6cbef0 New release 2.0 2020-04-08 17:22:18 +02:00
Matthieu Gautier
ea3224b646 Use new translation system for the categories. 2020-04-08 11:55:56 +02:00
luddens
ffdfff514e remove Qt translation files 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
0c64f615bf english translations file 2020-04-07 15:37:07 +02:00
luddens
1c9fd27e29 add open file button in toolbar 2020-04-07 11:39:43 +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
luddens
8eb3e2691c kiwix icon change 2020-03-25 14:02:07 +01:00
luddens
870dba20b0 add the possibility to set the download path in the settings
New field "download path" in the settings page.

To start a download it now uses the download path stored in the settings. Use the new api
of https://github.com/kiwix/kiwix-lib/pull/310 to work.
2020-03-03 15:27:17 +01:00
jetownfeve21
a9a299c8ad
change library icon (#377) 2020-02-19 08:33:02 +01:00
luddens
944cbf5ac8 close tab button style improvement
bigger icon
background when mouse over it
2020-01-23 16:25:56 +01:00
Kelson
89dae6ff5e Use standart colors 2020-01-14 14:37:19 +01:00
luddens
468cba66e3 new tab button style improvement
use an icon instead of a text "+"
add a background when mouse over it
better centered position
2020-01-14 14:28:03 +01:00
luddens
e9420e10c7 add margin for left and right icon in toolbar 2019-12-19 00:41:36 +01:00
Kelson
a279b8fc21 Title, not File name (label) 2019-12-15 10:05:13 +01:00
Kelson
8628edf393 Remove useless trailing spaces 2019-12-15 10:04:13 +01:00
Kelson
9e3385ecf5 Bump-up to rc3 2019-11-26 11:12:39 +01:00
luddens
bc481f56fe improve download error management
Display an error messsage if Download* Downloader::startDownload(const std::string& uri)
fails because aria2 doesn't succeed to start the download.

Display an error message if a download get the "error status".
2019-11-22 16:34:03 +01:00
luddens
0289709771 Add a default zoom field in the settings
The SettingsManager class has a new member m_zoomFactor with a getter and
a setter. Its value is set at launch and saved with the QSettings.

There is a new field in the settings page where the zoom factor can be
changed, it is multiplied by 100 to be displayed as a percentage.

Each time a file is opened, the zoomfactor of the view is set with the
member m_zoomFactor of the SettingsManager class.
2019-11-19 18:31:54 +02:00
luddens
8ea9dd3f43 settings page css improvements 2019-11-01 15:59:17 +01:00
luddens
aab3d123a0 kiwix server port can be set
Add an input in the settings page which allows the user to change the Kiwix
server port.

The SettingsManager sets the value(s) of the settings in the setSettings()
method at the start of the app. This method for now sets a default value
but it will use a config file later too.
The setKiwixServerPort() method is called when the user indicates a valid
port. It sets the m_kiwixServerPort member and emit the portChanged() signal
which is connected in the LocalKiwixServer class to update the m_port member.
The server port is now always set before its launch in the runOrStopServer method.
The LocalKiwixServer::openInBrowser() now uses the mp_server->getPort() to
always use the right port. In fact if the user changes the port in the
settings while the server is running the m_port member doesn't match anymore
the port used by the running server so the openInBrowser will use a wrong port.

The KiwixApp class uses now the SettingsManager::getKiwixServerPort() method
to set the port of the kiwix-server
2019-11-01 15:59:17 +01:00
luddens
175c46cddf settings page architecture 2019-11-01 15:59:17 +01:00