363 Commits

Author SHA1 Message Date
Kelson
ca1a597cc8
Merge pull request #349 from kiwix/searchbar-open-completion-fix
fix searchbar that doesn't search after switching from another app
2020-01-14 15:02:35 +01:00
luddens
d92240e3ec fix searchbar that doesn't search after switching from another app
Same problem as this problem https://github.com/kiwix/kiwix-desktop/pull/180

The openCompletion has to be connected every time the searchbar gains the focus.
2020-01-14 14:57:14 +01:00
Kelson
a4844b6aea
Merge pull request #343 from kiwix/close-tab-scroll
closing a tab keeps the scroll position of the right tab
2020-01-14 14:44:31 +01:00
luddens
d7e0fcba59 closing a tab keeps the scroll position of the right tab
QTabBar::setSelectionBehaviorOnRemove seems to reset the scroll position of
the selected tab, set the current index manually keeps it.
2020-01-14 14:39:43 +01:00
Kelson
e7b986285a
Merge pull request #344 from kiwix/new-tab-button
new tab button style improvement
2020-01-14 14:38:15 +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
Kelson
6242d04288
Merge pull request #336 from kiwix/margin-toolbar-button
add margin for left and right icon in toolbar
2020-01-09 11:06:53 +01:00
luddens
e9420e10c7 add margin for left and right icon in toolbar 2019-12-19 00:41:36 +01:00
Kelson
cae10d9e39
Merge pull request #335 from kiwix/new-donate-shortcut
Donate shortcut is now Ctrl + d
2019-12-17 16:32:32 +01:00
luddens
2d4dcd9d99 Donate shortcut is now Ctrl + d 2019-12-17 16:22:52 +01:00
Kelson
40a9ea894d
Merge pull request #333 from kiwix/title-not-filename
Title not filename
2019-12-15 10:06:30 +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 2.0-rc4 2019-11-26 11:12:39 +01:00
Kelson
0b7c0186c8 Complete Github configuration 2019-11-26 09:40:16 +01:00
Kelson
d479d1bc3c
Remove empty line 2019-11-23 17:49:06 +01:00
Kelson
c3095e3269
Merge pull request #308 from kiwix/download-error
improve download error management
2019-11-22 10:38:19 -05: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
Kelson
5d0ac476ea Update Changelog 2019-11-22 11:57:07 +01:00
Kelson
71c4db2dd6
Merge pull request #306 from kiwix/remove-inspect-source
Remove view source from context menu
2019-11-21 09:28:06 -05:00
luddens
5fc1861420 remove view source option from context menu 2019-11-21 16:05:22 +02:00
luddens
af46035d58 remove save page option from context menu 2019-11-21 16:01:50 +02:00
Kelson
20494b5f97
Merge pull request #288 from kiwix/zoom-per-zim
Zoom per zim
2019-11-19 23:58:39 -05:00
luddens
c3172c058b save zoom factor per zim
Each time the zoom of a zim is changed, it is saved in the QSettings.

The SettingsManager class has new methods that wrap QSettings method :
- void setSettings(const QString &key, const QVariant &value);
- void deleteSettings(const QString &key);
- bool settingsExists(const QString &key);
- QVariant getSettings(const QString &key);
2019-11-19 18:31:54 +02: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
Kelson
cfd3531e79
Merge pull request #297 from kiwix/video-fullscreen
Add fullscreen mode for video
2019-11-18 10:49:00 -05: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
Kelson
bb0d462e39
Merge pull request #289 from kiwix/hide-content-type-filter
hide content type filter
2019-11-14 16:34:39 -05:00
luddens
3a298c568f hide content type filter 2019-11-14 16:34:11 -05:00
Kelson
42375e9d80
Update README.md 2019-11-05 15:27:12 +01:00
Kelson
7c4b5071bd
Update README.md 2019-11-05 15:25:43 +01:00
Kelson
0fcbd8a08a Update changelog 2019-11-01 16:12:59 +01:00
Kelson
6eb886208f
Merge pull request #262 from kiwix/settings
Implement settings page
2019-11-01 16:06:30 +01:00
luddens
96dd73c339 set shortcut to F12 2019-11-01 15:59:17 +01:00
luddens
8ea9dd3f43 settings page css improvements 2019-11-01 15:59:17 +01:00
luddens
49bad4bf59 use QSettings to save settings 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
Kelson
a816e0b460
Merge pull request #285 from kiwix/aria2-cmd-error
print aria2 command when error occurs at launch
2019-11-01 15:45:00 +01:00
luddens
6ca165f836 print aria2 command when error occurs at launch 2019-11-01 11:53:52 +02:00
Kelson
efd242407c
Merge pull request #263 from kiwix/fix-reading-list
Fix reading list
2019-10-31 16:22:48 +01:00
Kelson
a40688c1b7
Merge pull request #276 from kiwix/set-focus-find-in-page
Set focus on the search bar when "find in page" is open
2019-10-22 15:04:50 +01:00
luddens
4296caf746 set focus on the findLineEdit 2019-10-22 14:03:27 +02:00
luddens
0887528a30 add getFindLineEdit fct 2019-10-22 14:02:49 +02:00
luddens
f37c03bcab remove the book from the readersMap 2019-10-01 10:46:23 +02:00
luddens
79eb619990 use new api of getBookmarks 2019-09-28 21:57:21 +02:00
luddens
048e1d5d2e update the readinglist when a download is completed 2019-09-27 10:36:04 +02:00
Matthieu Gautier
b67577ac9a New version 2.0-rc3 2.0-rc3 2019-09-26 16:09:38 +02:00
Matthieu Gautier
47d1d8f0df Fix some debug information printed on the console 2019-09-26 16:08:36 +02:00