David Rosca
ba2ea9cb09
AbstractButtonInterface: Rename badgeLabelText -> badgeText
2018-01-11 19:36:54 +01:00
David Rosca
15a2afb4b6
NavigationBar: Add support for badge text in tool buttons
2018-01-11 19:36:49 +01:00
David Rosca
8827b1fb90
NetworkUrlInterceptor: Also guard adding/removing other interceptors
2018-01-11 19:36:44 +01:00
David Rosca
ee02d7716a
AdBlockIcon: Remove unused popupBlocked
2018-01-11 19:36:39 +01:00
David Rosca
ff1171abf0
AdBlock: Make it as self-contained as possible
...
It could be easy now to turn it into real loadable plugin.
2018-01-11 19:36:32 +01:00
David Rosca
401e600821
AdBlock: Remove action from Tools menu
2018-01-11 19:34:52 +01:00
David Rosca
9c17277dd5
NetworkUrlInterceptor: Add proper locking
2018-01-11 19:34:45 +01:00
David Rosca
394221c5c0
AdBlockManager: Disable blocking on view-source scheme
2018-01-11 19:33:51 +01:00
David Rosca
0ff1ebc584
Fix build
2018-01-11 19:33:22 +01:00
David Rosca
3d171275d2
AdBlockIcon: Indicate AdBlock state on current page with icon state
...
Icon is inactive when AdBlock is disabled or can't run on current page.
2018-01-11 19:33:17 +01:00
David Rosca
74f45f6028
NavigationBarToolButton: Add support for inactive state
2018-01-11 19:33:13 +01:00
David Rosca
7f00b51fea
Preferences: Remove last Navigation Toolbar option
...
It is now configurable directly from navigation toolbar.
2018-01-11 19:33:06 +01:00
David Rosca
2d698edd21
BrowserWindow: Fix crash when restoring geometry of fullscreen window
2018-01-11 19:32:59 +01:00
David Rosca
4a4d5b72ad
Add NavigationBarConfigDialog
...
Allows to change layout of navigation bar and hide/show search bar.
2018-01-11 19:32:54 +01:00
David Rosca
4c494ebfb0
ComboTabBar: Improve drop indicator drawing
...
Code was taken and modified from KFilePlacesView
2018-01-11 19:31:41 +01:00
David Rosca
546e777c7c
NavigationContainer: Also add bottom margin with tabs on top
2018-01-11 19:31:33 +01:00
David Rosca
8cbaa19dd1
Use correct margins from style in NavigationBar and BookmarksToolbar
2018-01-11 19:31:17 +01:00
David Rosca
09d2a2017d
ButtonWithMenu: Don't show menu on right click
2018-01-11 19:31:00 +01:00
David Rosca
c5b59d1011
ToolButton: Disable showing button menu on right click by default
2018-01-11 19:30:05 +01:00
David Rosca
23279f6e10
GreaseMonkey: Move icon from statusbar to navigationbar as tool button
2018-01-11 19:29:35 +01:00
David Rosca
0cbbd197ca
AdBlockIcon: Move from statusbar to navigationbar as tool button
2018-01-11 19:29:09 +01:00
David Rosca
6824ea17f2
NavigationBar: Add support for adding additional tool buttons
2018-01-11 19:28:32 +01:00
David Rosca
c0ac5ce0a2
BrowserWindow: Use QActionGroup for encoding menu
2018-01-11 19:26:06 +01:00
David Rosca
8eeba9e1df
SideBarManager: Use QActionGroup for sidebars menu
2018-01-11 19:26:00 +01:00
David Rosca
0b8a693bca
NavigationBar: Add Tools button
...
It now contains toolbars and sidebars menus and configure
action that doesn't work yet.
2018-01-11 19:25:54 +01:00
David Rosca
65d1493f0a
Fix closing tabs - regression from last commits
...
Closes #2534
2018-01-11 19:25:48 +01:00
David Rosca
d380d54ef8
NavigationBar: Add support for loading layout from config
...
There is no ui to configure it for now.
2018-01-11 19:25:41 +01:00
David Rosca
2e7a77a6b4
NavigationBar: Remove exit fullscreen button
2018-01-11 19:24:58 +01:00
David Rosca
54282af88f
ClosedWindowsManager: Only save last 3 windows in session file
...
Prevents growing session file indefinitely.
2018-01-11 19:24:07 +01:00
David Rosca
d1d99e3b71
PopupWindow: Add margins around locationbar and line between webview
2018-01-11 19:24:00 +01:00
David Rosca
fa4fba5f49
BrowserWindow: Add tabCount() method
2018-01-11 19:23:43 +01:00
David Rosca
5cc41d219e
Always open new window when restoring session after crash
...
Also remove special handling for qupzilla:restore tabs.
2018-01-11 19:23:36 +01:00
David Rosca
679268dbd1
ClosedTabsManager: Move check for saving restore tab from TabWidget
2018-01-11 19:22:43 +01:00
David Rosca
3f60c554ee
ClosedWindowsManager: Save closed windows into session file
2018-01-11 19:21:59 +01:00
David Rosca
0b6c555c62
Only show restore page when crashing during session restore
...
If app crashes during one minute after restoring crashed session,
show the restore page with options to the user next time instead
of showing restore page after every crash.
2018-01-11 19:21:54 +01:00
David Rosca
c85d33e92a
MainApplication: Completely remove isRestoring state
...
Restoring session should not be any different from simply opening
regular session.
2018-01-11 19:21:47 +01:00
David Rosca
f2002892aa
Save previous crashed session that were not restored to session file
...
Closes #2331
2018-01-11 19:21:17 +01:00
David Rosca
d1becc23e9
And fix build on all platforms ...
2018-01-11 19:20:30 +01:00
David Rosca
e512cc7433
Fix build on Windows - export ExternalJsObject
2018-01-11 19:20:25 +01:00
David Rosca
139a8dc8f1
LocationCompleter: Only allow to delete bookmarks and history items
2018-01-11 19:20:16 +01:00
David Rosca
89aa7259f9
LocationCompleter: Only update original text when first item is selected
...
Fixes issue where search/visit item would be incorrectly updated after
deleting item from completions.
2018-01-11 19:19:28 +01:00
David Rosca
c97d077f67
TabBar: Make updatePinnedTabCloseButton private
...
It is no longer needed to call it after changing tab pinned state.
2018-01-11 19:19:04 +01:00
David Rosca
ebed38e1c4
GreaseMonkey: Don't export wrappedJSObject
...
It seems to confuse some userscripts thinking that this is Firefox.
This, along with recent values changes should fix compatibility issues
with large portion of userscripts.
Tested with 4chanX as one of the very complex userscript.
2018-01-11 19:18:57 +01:00
David Rosca
30bad61eea
GreaseMonkey: Rewrite values bridge to pass values as QString
...
Passing QVariant/QJsonValue is broken in QWebChannel (QtWebEngine?)
2018-01-11 19:18:31 +01:00
David Rosca
b8f9c7e15d
KWalletPasswords: Pass window id to Wallet::openWallet
...
Closes #2441
2018-01-11 19:15:30 +01:00
David Rosca
8a6547b39c
Use window._qupzilla_external property to check if web channel is connected
...
Instead of checking for window.external as that is now defined with
at least QtWebEngine 5.10.
2018-01-11 19:15:02 +01:00
David Rosca
7ce93354c8
GreaseMonkey: Add support for GreaseMonkey 4.0 API
...
Properly implement values functions in 4.0 API version.
Closes #2355
2018-01-11 19:12:53 +01:00
David Rosca
6a5b7d30e3
ExternalJsObject: Add support for registering extra objects
...
Extra objects will be available as window.external.extra.objectName
2018-01-11 19:11:02 +01:00
David Rosca
87527762f8
IconProvider: Use encodeUrl also when searching for existing icon
...
As suggested by @srazi
2018-01-11 19:10:14 +01:00
David Rosca
482f446712
RestoreManager: Make RestoreData into a struct with stream operators
...
This makes it possible to extend it while keeping backwards compatibility.
2018-01-11 19:09:44 +01:00