David Rosca
2138978ab7
[LocationBar] Make sure text format is correct even when text doesn't change
...
refreshTextFormat() is using page's url to determine which part of
displayed text is host. Url of page may not change immediately when
starting loading.
This commit makes sure that text format is correct with every
WebView::urlChanged() signal.
2014-04-20 09:51:20 +02:00
David Rosca
d25847cfce
[ToolButton] Added property "toolbar-look"
...
This property makes it possible for themes to customize look of
additional ToolButtons in Navigation Toolbar.
2014-04-20 09:32:35 +02:00
David Rosca
f21be271b2
[ReloadStopButton] It is now only one button
...
Instead of hiding and showing two buttons (reload and stop), use
only one ToolButton and change the object name accordingly.
2014-04-19 14:40:54 +02:00
David Rosca
5782de0387
[ToolButton] New function to set look of button as it was in toolbar
...
Currently, it only sets the correct icon size
2014-04-19 13:46:23 +02:00
David Rosca
b3a9b99ac7
[ToolButton] Manually handle showing menu
...
ToolButtons now don't have menu indicators.
This fixes issue with Back/Forward buttons in Navigation Toolbar
being more wide than other buttons.
2014-04-19 13:12:04 +02:00
nowrep
6874df57d7
[Coding Style] Edited coding style (use linux style brackets)
...
Linux style brackets are now used also for source files.
One line blocks can now be without brackets.
Example:
if (test)
foo();
Multi-line if statements are now written with conditionals (||, &&, ...)
at the end of line. The last line of if body does not ends with closing
bracket, instead the closing bracket is written on separate line.
One line blocks in multi-line if statements should not be without brackets.
Example:
if (test ||
test2 &&
test3
) {
foo();
}
[ci skip]
2014-04-05 14:53:45 +02:00
nowrep
98907c2055
[WebTab] Reworked tab attaching/detaching.
...
This also fixes crash on detach
2014-04-01 18:47:19 +02:00
nowrep
b95da97904
[BrowserWindow] Move TabBar into NavigationContainer
...
Simplifies entering/leaving fullscreen, as it is only needed to
update visibility of the whole container.
2014-03-30 16:38:34 +02:00
nowrep
a284a7c864
[SiteIcon] Don't set :pressed state when popup is not shown
...
Popup will not be shown eg. on qupzilla: sites
2014-03-25 16:53:41 +01:00
nowrep
b9891a815b
[LinuxTheme] Deleted now unused icons
...
Also added "edit-find" icon to oxygen-fallback
2014-03-24 18:07:56 +01:00
nowrep
d4e9682db1
[SiteIcon] Don't flicker when opening site info popup
...
Make sure the Down state doesn't change between clicking on icon
and opening popup.
[ci skip]
2014-03-24 17:07:25 +01:00
nowrep
ab638a5525
[IconProvider] Use fallback oxygen icon theme (in oxygen-fallback.qrc)
...
Instead of manually setting fallback icons, use globally fallback theme.
2014-03-24 16:09:30 +01:00
nowrep
2e8c9f690e
[SiteIcon] Support :pressed state for style sheets
2014-03-23 23:53:51 +01:00
nowrep
db2d879717
[WebHistoryWrapper] Removed unused WebHistoryWrapper class
2014-03-20 09:11:19 +01:00
nowrep
e36697eedf
[SearchEngines] Support for loading POST engines from LocationBar
...
Added new class LoadRequest, that holds network request with its
operation type and POST data.
2014-03-19 21:27:43 +01:00
nowrep
b3c40e6281
[SiteIcon] Correctly show first site icon
2014-03-17 11:04:26 +01:00
nowrep
ebd501c9cd
[SiteIcon] Show icon with small delay (100ms)
2014-03-17 09:08:36 +01:00
nowrep
a9eba60da2
[LocationCompleter] Pause updates when removing items from completer
...
Also adjust the size of popup after removing items + close it after
removing last item.
2014-03-16 17:24:10 +01:00
nowrep
f9f74f3642
[LocationBar] Always show site icon in 16x16px
2014-03-16 14:33:56 +01:00
nowrep
43cb2d6b27
[LocationBar] Fixed crash in setGoIconVisible. Always check for m_webView
2014-03-16 13:56:27 +01:00
nowrep
dbec199ea8
Fixed building with Qt5
2014-03-16 13:55:37 +01:00
nowrep
d464d9bdef
[LineEdit] Create context menu in LineEdit
...
Instead of code duplication in LocationBar and WebSearchBar, create
the context menu from LineEdit.
Also actually create the menu, not just re-use the standardContextMenu.
2014-03-16 13:06:38 +01:00
nowrep
a701079d27
[LocationBar] Cleanup code + fixed showing rss icon
2014-03-16 12:12:49 +01:00
nowrep
6e53add7d7
[LocationBar] Set cursor position at start when showing long url
...
Also disable animations for Oxygen style, it breaks when changing
text to completely different one (eg. loading foo.com and then bar.com)
and the url is too long to fit in line
2014-03-16 11:21:24 +01:00
nowrep
caabbc237f
[LocationBar] Tweaked Linux theme. No longer hardcode height
...
It is now specified only minimum height.
Fixes issue with locationbar being too small with bigger fonts.
2014-03-16 09:38:28 +01:00
nowrep
72904a80c3
[LocationBar] Major cleanup. New code to change color of text parts
...
The code to change color of host of url is completely new.
It doesn't use any paint hacks anymore. That means text in
locationbar will now be always rendered pixel perfect, as it would
with normal QLineEdit.
Cleanup in LocationCompleter. It is now using QCompleter in inline
mode to complete domain. It is still not ideal, eg. it refreshes
and show the domain completion with delay (job run in separate thread),
and sometimes it misses it completely.
WebSearchBar: Always complete when receiving suggestions. Fix issue
when suggestions were only showed after typing at least 2 characters.
2014-03-15 23:22:35 +01:00
nowrep
9c7e9a1396
Fixed building with Qt 4
2014-03-15 20:20:39 +01:00
nowrep
c395f19524
[BrowserWindow] Create shortcuts with QShortcut instead manually in keypress
...
This fixes eg. Ctrl+W writing W in locationbar
2014-03-15 19:58:19 +01:00
nowrep
7e57cb63f5
[LocationCompleter] Run completions search in separate thread
...
Currently, there is one issue with inline domain completion. It is
also searched from the separate thread, and thus it gets displayed
after a small delay.
Closes #1135
2014-03-15 19:36:03 +01:00
nowrep
83bb7c757c
[CodeCleanup] Don't use m_isStarting and m_isClosing in BrowserWindow
2014-03-13 17:06:08 +01:00
nowrep
b4d2ced60f
[CodeCleanup] Cleanup Mac #ifdefs
2014-03-13 15:58:39 +01:00
nowrep
e827249f50
[MainMenu] Added MainMenu class that holds all menu actions of window
...
All actions are now saved in QHash with name, this will make possible
to implement own keyboard shortcuts for actions.
+ WIP cleanup of BrowserWindow class
2014-03-10 16:55:11 +01:00
nowrep
2e9ce1ba90
[CodeCleanup] Major cleanup in MainApplication class
2014-03-10 00:47:07 +01:00
nowrep
a3c3dead87
[CodeCleanup] Get rid of Qz::AppMessage enum
2014-03-09 12:54:07 +01:00
nowrep
edbb87bd1f
[CodeCleanup] IconProvider now have static methods for getting icons
2014-03-07 18:03:42 +01:00
nowrep
c7a31c57e0
[CodeCleanup] Use QMouseEvent::button() in mouse release events
...
In press/move events, use QMouseEvent::buttons() instead
2014-03-01 14:12:50 +01:00
nowrep
b826ebc52a
[LocationCompleter] Support Ctrl / Shift activation of items
...
Ctrl activation: Opens url in new tab
Shift activation: Opens url in new window
Closes #1245
Bookmarks: Update visit count also from location completer
BookmarkItem: Added new method updateVisitCount
2014-03-01 14:05:44 +01:00
nowrep
5e4f703ef2
[Code] Renamed qz_namespace.h to qzcommon.h
2014-02-26 20:03:20 +01:00
nowrep
7d98a162d6
[Code] Fixed cppcheck issues
2014-02-22 15:23:46 +01:00
nowrep
afae00e4a2
[Cleanup] Rename export macro to just QUPZILLA_EXPORT
2014-02-19 22:12:32 +01:00
nowrep
404fa68a1b
[Cleanup] Renamed QupZilla class to BrowserWindow
2014-02-19 22:07:21 +01:00
nowrep
65a47fd450
[LocationCompleter] Speedup searching in Bookmarks & History
...
See #1135
2014-02-18 16:17:22 +01:00
nowrep
a99f954930
[ReloadStopButton] Instead of pausing updates, only update the button after delay
2014-02-14 19:28:41 +01:00
nowrep
5e131033e6
[Flicker] Another set of flicker patches
...
Old approach caused navigationbar to be empty for a moment while
opening a lot of tabs at once
2014-02-13 17:06:09 +01:00
nowrep
884cde6abf
[LocationBar] Don't ever set cursor location to start
...
Probably fixes #1212
2014-02-13 02:41:13 +01:00
nowrep
7cefc22c0a
[Flicker] Fixed flicker when opening new tabs with sites that loads instantly
...
Eg. this happens for internal qupzilla: pages
Also early set locationbar's url to newly opened tab's url.
2014-02-12 13:50:06 +01:00
nowrep
4e8c0adbad
[LocationBar] Don't incorrectly show about to be loaded url when it was not accepted
...
It can happen for example when trying to change address on a page that
handles window.onbeforeunload event
2014-02-10 21:58:25 +01:00
nowrep
28091f4957
[Menus] Menus are not closed when opening links with middle mouse button
...
It is the same behaviour as in Konqueror
Closes #1165
2014-02-10 21:36:24 +01:00
nowrep
d328ad2023
[Bookmarks] New JSON backend supports multi-level folders and more...
...
Merge branch 'bookmarks'
Closes #458
2014-02-10 18:13:38 +01:00
nowrep
ad615316c8
[Bookmarks] Cache bookmark's icon for 20 seconds
...
BookmarksToolbarButton: Draw button according to BookmarkItem, not
text and icon properties
2014-02-10 16:03:29 +01:00
nowrep
9a5a795449
[LocationCompleterModel] Simplify createQuery function
...
It is no longer needed to search for bookmarks in database
2014-02-09 17:35:43 +01:00
nowrep
395b865d55
[Bookmarks] Various smaller changes
...
BookmarksTreeView: Select & ensure visibility of newly added bookmark
BookmarksTools: Added function to open folder in tabs
LocationCompleterModel: Removed bookmarks bits in createQuery
QupZilla: loadAddress now opens new tab if current tab is pinned
2014-02-09 15:09:04 +01:00
nowrep
83b8b0b666
[Bookmarks] LocationCompleter now works
...
BookmarkItem: Added counting of bookmark's visits
2014-02-09 13:34:52 +01:00
nowrep
2ea155560a
[Bookmarks] Removed BookmarksTree and renamed BookmarkIcon -> BookmarksIcon
2014-02-09 12:22:49 +01:00
nowrep
973014ae89
[EnhancedMenu] Rename signals to ctrlTriggerd and shiftTriggered
2014-02-09 01:14:00 +01:00
Javier Llorente
c84f3d2366
[Theme] Use theme icon for Exit Fullscreen button in toolbar
2014-02-07 23:14:32 +01:00
nowrep
260447e414
[coverity] Fixes for issues found by scan.coverity.com
2014-02-01 19:21:49 +01:00
nowrep
a1f9b784d7
[CommandLineOptions] New option to toggle fullscreen.
2014-01-22 17:34:25 +01:00
Jonathan Hooverman
d917f43cf0
Updated copyright year to 2014
2014-01-11 16:11:42 +01:00
nowrep
d61b72bd87
[SearchShortcuts] Fixed using search shortcuts longer than one character
2014-01-08 10:39:41 +01:00
nowrep
0758ba39ab
[LocationCompleter] Add option to enable/disable inline completion
2014-01-08 10:29:01 +01:00
nowrep
da15e5868d
[CodingStyle] Don't use references when assigning to local variable
...
Let the compiler do the optimization
2013-12-30 13:43:48 +01:00
nowrep
d753e21a5c
Revert "WebSearchBar: Select alls text + set focus after search engine changed."
...
This reverts commit 9ec85ad49d
.
2013-12-30 12:06:08 +01:00
nowrep
6c747b3c36
[Coding style] It should be only one if statement...
2013-12-23 20:32:42 +01:00
S. Razi Alavizadeh
bff614144b
Added TabStackedWidget + ComboTabBar
...
Set of patches:
Introduce TabStackedWidget+ComboTabbar
[Windows] Fix enabling blur background in fullscreen
[ComboTabBar] Fix some issues with pinned tabs
[ComboTabBar] Don't use pointer to integer,
Implement TabStackedWidget::keyPressEvent() and fix changing tab by wheel event
Fix animation delay of dragged tab's buttons.
[ComboTabBar] Add themable scrollButtons
2013-12-23 20:30:54 +01:00
nowrep
ed8ec5ab4a
[LocationBar] Fixed rendering selected text with visible popup completer.
2013-12-23 19:21:47 +01:00
nowrep
b4f0096f96
[Code] Add/Edit some comments
2013-12-05 19:52:13 +01:00
nowrep
0d5c86f8cd
[UrlCompleter] Don't show same urls multiple times
...
Closes #1096
2013-12-05 19:49:32 +01:00
nowrep
a49e574f83
[WebSearchBar] Ctrl+Up/Down for changing search engines.
...
Closes #1090
2013-11-21 18:23:11 +01:00
nowrep
c9ff4f1c94
SearchEngines: Return SearchResult on all searches
2013-11-09 13:32:03 +01:00
S. Razi Alavizadeh
1cca824d66
[LocationBar] Don't move the cursor to the end if inline completion is empty.
2013-08-07 02:02:06 +04:30
S. Razi Alavizadeh
7dbaf71f23
Fixed changing TabsOnTop option when there are more than one window.
2013-08-04 00:39:54 +04:30
Jonathan Hooverman
4848def230
Modified copyright year
2013-07-11 16:21:57 +02:00
S. Razi Alavizadeh
5d48edc7a3
[LocationBar][StatusBar] show precent decoded version of non-latin link and draw RTL path correctly.
...
- also fixed a compile issue
2013-07-05 02:51:07 +04:30
nowrep
d17b06ff65
[LocationBar] Delete key to hide inline completion
2013-06-09 12:27:25 +02:00
nowrep
c305811334
Correctly hide/show rss icon with "Always show go icon" option.
...
Regression from 05ca29715f
Closes #926
2013-06-06 11:54:22 +02:00
nowrep
05ca29715f
[LocationBar] Option to always show go icon.
...
Also removed unused m_drawCursor member variable.
Closes #914
2013-06-05 00:02:43 +02:00
nowrep
10bba39bd4
New tab button in toolbar opens tab with url from clipboard on middle click.
...
Closes #907
2013-06-02 16:46:26 +02:00
nowrep
4d01cfc9fa
[LocationBar] Improved cursor painting when completion popup is visible.
2013-05-11 13:22:16 +02:00
nowrep
49ed4d05c4
Fixes in inline completion + enter completed text with left arrow key.
2013-05-11 00:17:38 +02:00
nowrep
77aa5b0f07
[LocationCompleter] Hide completion popup after Alt+Enter.
...
Hides completion popup after opening new tab with Alt+Enter shortcut.
2013-05-10 22:34:51 +02:00
nowrep
f651125c5c
[LocationBar] Added inline completion for domains.
...
Closes #880
2013-05-10 22:33:36 +02:00
nowrep
c106c2376b
[Themes] Set navigationbar layout margin and spacing from style sheet.
2013-04-27 13:51:08 +02:00
nowrep
ba9535a727
[ToolBar] Use size of icons according to Qt style.
2013-04-27 12:57:13 +02:00
nowrep
6492b2ac87
[Toolbar] Use spacing and margins according to Qt style.
...
Toolbar looks better now with Oxygen theme.
2013-04-26 23:11:24 +02:00
nowrep
d4c6dbd6c2
[Fix] WebSearchBar not respecting "select all on click" option
...
Closes #752
2013-03-15 11:46:07 +01:00
nowrep
a9cee1fffe
[Fix] Fixed showing empty back/forward history menus.
2013-03-13 11:54:58 +01:00
nowrep
b12c324f87
[SuperMenu] Improved menu in button used instead of menubar.
...
The menu is now displayed inside window, even when window
is not in fullscreen.
It now also contains the most important actions in addition to copy of
top level menus.
2013-03-08 21:06:37 +01:00
nowrep
5f5cf7417d
[Code] Updated coding style with patched Astyle + normalized signals.
...
Code was formatted with patched astyle that correctly formats
foreach macro.
Normalize tool is now used to normalize all signal/slots signatures
to normalized format. It saves few reallocations on connections.
2013-03-06 09:08:29 +01:00
S. Razi Alavizadeh
825e14140c
[Mac] fixed search highlighting on Mac, see #756 , also don't paint cursor when showing popup.
2013-02-24 15:37:14 +03:30
nowrep
7fae03959d
TabsOnTop: Fixed picking correct color for drawing line at the bottom of
...
navigation container.
2013-02-22 18:31:44 +01:00
nowrep
b4b1ce03d6
LocationBar: Proper fix for determing when to draw cursor.
...
Cursor will be properly drawn by Qt when starting writing
into empty lineedit (eg. select all and start typing).
After the completion popup is hidden for the first time, Qt will stop
drawing cursor and will only paint it again after losing and gaining
focus.
2013-02-22 15:20:28 +01:00
nowrep
76849082e4
[LocationCompleter] Fixes performance when drawing really long urls.
...
data: urls can get really long (> 1000000 characters), so don't save
them in history from now on.
2013-02-22 09:36:47 +01:00
nowrep
64e6c36ed4
LocationBar: Fixed drawing cursor at correct position with popup opened.
2013-02-22 00:25:13 +01:00
S. Razi Alavizadeh
72c66cb218
[Mac] RSSManager/AdBlockDialog documentMode was disabled and fixed double cursor problem.
2013-02-21 00:20:07 +03:30
nowrep
91c88872f8
Go to fullscreen in QWindoStateChangeEvent.
...
It is now possible to go properly to fullscreen also from Window
Manager's actions/shortcuts.
2013-02-17 11:05:35 +01:00
nowrep
789b4c8600
Select all on (double) click also available for websearchbar.
...
Closes #752
2013-02-12 08:16:05 +01:00
nowrep
09cf53a292
LocationBar: Don't paint cursor when showing most visited in popup.
2013-02-11 13:33:02 +01:00
nowrep
8a1502c9cf
Draw line at the bottom of navigation bar if tabs are on top.
...
To visually distinguish navigation bar from the page
2013-02-11 13:08:11 +01:00
nowrep
49b1e4c43c
[code cleanup] Moved logic of locationbar's icon into separate classes.
2013-02-10 12:28:53 +01:00