1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 11:02:19 +01:00
Commit Graph

223 Commits

Author SHA1 Message Date
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
nowrep
fcbf1e636b [Fix] Bad behaviour on clicking into selected text in locationbar.
Closes #751
2013-02-09 21:55:23 +01:00
nowrep
8a6beac501 Show toolbars menu on right click in menubar and navigation toolbar. 2013-02-09 14:08:12 +01:00
nowrep
67d6d380cd [AutoFill] Added password icon into locationbar to choose username.
Closes #735
2013-02-08 18:44:26 +01:00
S. Razi Alavizadeh
e3db93740b Better RTL support for LocationCompleter and add direction property to dirlist.html 2013-02-04 15:14:56 +03:30
nowrep
5569cec48b [win] Fixed building after last commit. 2013-01-29 20:58:08 +01:00
nowrep
5968849e6d Make "Switch to tab" translatable.
LocationCompleterDelegate does not include Q_OBJECT

Closes #725
2013-01-29 19:25:20 +01:00
nowrep
780106ddd0 Draw cursor in locationbar when completion popup is shown.
Closes #645
2013-01-28 19:38:03 +01:00
nowrep
359e1842a0 Fixed crash when showing context menu in websearchbar. 2013-01-25 22:42:20 +01:00
nowrep
a34a72cdb8 Moved all cookies settings into Cookies Manager. 2013-01-23 01:34:15 +01:00
nowrep
e28f9d438e [Code] qz_ prefixed functions moved to QzTools namespace. 2013-01-22 19:04:22 +01:00
nowrep
9f2de4b73a [Code] Made all helper functions static. 2013-01-22 18:12:21 +01:00
nowrep
89e091f09c Qt5: Main code has been edited to support both Qt4 and Qt5
It doesn't include plugins yet.
Even thought the app can be built with Qt5 now, it won't run.
I am still working on a fix.
2012-12-20 14:45:35 +01:00
nowrep
930720517a Updated translations 2012-12-10 14:59:12 +01:00
Franz Fellner
c36e59c31e Set m_ignoreCurrentChangedSignal to false directly after setCurrentIndex()
instead of in currentChanged().
This solves problems for the very first popup not triggering currentChanged(),
so in that case the first item did not set the completion url. As long as the
connection type to currentChanged() remains a DirectConnection, this fix should work.
2012-12-09 08:15:21 +01:00
nowrep
4e114b69c5 Proper fix for previous commit
d42b50cc15 Empty locationbar upon writing first char
2012-12-08 18:12:31 +01:00
nowrep
d42b50cc15 [Fix] Empty locationbar upon writing first char
Closes #667
2012-12-08 16:50:16 +01:00
nowrep
889e2743f5 New icons for 'new-tab' and 'tab'
Also added icon to 'Switch to tab' text in
locationbar completer popup.
2012-12-08 14:10:30 +01:00
S. Razi Alavizadeh
6191a76be6 Fixed: issue from last commit that doesn't clear locationbar. 2012-12-08 02:19:12 +03:30
S. Razi Alavizadeh
234769e920 Now 'switch to tab' searches current window first.
-by ff2000, thank you :)
2012-12-08 02:04:38 +03:30
S. Razi Alavizadeh
efebfb8148 Fixed bugs 'switch to tab' switch to another window.
-see #665
2012-12-08 01:53:26 +03:30
S. Razi Alavizadeh
379f987280 Fixed: from 'switch to tab' commit.
1- Renew TabPositionRole's data when 'm_lastCompletion == string'
2- Don't switch to current tab, because we don't want clear its locationbar.
2012-12-07 21:00:50 +03:30
Franz Fellner
9ec85ad49d WebSearchBar: Select alls text + set focus after search engine changed.
This avoids another (double)click to select the text.
2012-12-05 11:53:56 +01:00
Franz Fellner
e9a8b8d7d8 Move switchToTab to QzSettings. 2012-12-04 16:16:45 +01:00
Franz Fellner
4c33d3563d Add "Switch to Tab" mode for completion plopup, to just seitch to the tab
that displays the url currently completed.
Also add an option to disable the "switch tab" offer.
If enabled the user can press "Shift" to load the url in the current tab instead of switching tab.
I tried to copy behaviour of firefox. I hope I did not miss a bit...
2012-12-04 14:29:27 +01:00
nowrep
7f62d2e602 Option to hide Reload/Stop buttons in navigation bar
closes #615
2012-10-20 11:31:45 +02:00
nowrep
ba84fa2d7a [Code] Small changes in showing context menu in url and searchbar
- may fix occasional crashes in Ubuntu
2012-10-11 19:57:12 +02:00
Franz Fellner
e08428a6d1 Force a LineEdit::paintEvent after a setCursorPosition, in order to
trigger a recalculation of the visible text rect.
2012-10-07 13:22:45 +02:00
nowrep
fa1ee13611 Open bookmark (in new tab) from menu in bookmarks toolbar
closes #601
2012-10-05 22:15:18 +02:00
Franz Fellner
204e942f87 Cleanup in NavigationBar and WebSearchBar:
* move helper-functions in navigationbar.cpp into NavigationBar [private]
* remove (unused) 2nd arg in WebSearchBar/NavigationBar and use mainClass as parent.
* remove NavigationBar-destructor (not needed)
* remove WebSearchBar::m_menu and create a QMenu-instance directly in WebSearchBar::contextMenuEvent()
2012-10-01 11:26:07 +02:00
Franz Fellner
63edb90cbe Adjusted themes main.css to get a vertically centered contentsRect.
Also adjusted mac siteicon-[secure]-bg.png to not have opaque pixels, which would cut content (e.g. Top progress bar).
Filled bar is now drawn independent of textRect.
2012-09-30 10:55:44 +02:00
nowrep
3754f87978 Updated translations 2012-09-28 18:50:20 +02:00
Franz Fellner
04e8df6e48 Add option to set a default search engine and use that for searching in address bar. 2012-09-27 11:59:09 +02:00
Franz Fellner
40f97c73ab Add option to disable instant search on ech searchengine change. 2012-09-26 15:06:05 +02:00
Franz Fellner
620e2a5ea2 Render the bar darker, if set to "Top" or "Bottom", as the small bar could be too hard to recognize.
Also set m_progressVisible only to false (in hideProgress), if m_loadProgress==100. If the user clicks
a link during the 700ms-timeout, the bar shows for a short time and hideProgress sets m_progressVisible to false, though
the page still is loading, which hides the bar in mid-run.
This also fixes the weird behaviour of the progressbar on session-restore.
2012-09-20 10:04:18 +02:00
Franz Fellner
4bb87822cf Highlight host in locationbar.
To simplify color computation I simply imported the "blib/colors.*" from bespin.
2012-09-19 20:24:41 +02:00
Franz Fellner
8723382b5c Add options to select color+style for progresss locationbar. 2012-09-19 10:08:30 +02:00
nowrep
5d80f4b380 Use QFrame::StyledPanel for LocationBarPopup
- also added copyright to new files
2012-09-16 20:19:10 +02:00
Franz Fellner
eb2256e2cf Also add the new files to the git index... 2012-09-15 17:54:12 +02:00
nowrep
eb82df9aef Coding style: Moved showing BookmarksWidget into LocationBar 2012-09-14 22:09:58 +02:00
nowrep
8d8a033ebd LocationCompleter: Reset scrollbar position when hiding completer
- fixes issue with opening completer scrolled down when showing
  new suggestions

Patch by Franz Fellner <alpine.art.de@gmail.com>
2012-09-08 22:54:53 +02:00
nowrep
7189ff58b4 LocationCompleter: Improved sorting bookmarks by visit count.
- it sorts by visit counts of bookmark's url from history
- count column in bookmarks is not needed after all :-)

Patch by Franz Fellner <alpine.art.de@gmail.com>
2012-09-08 22:52:32 +02:00
nowrep
ba7f919cd5 Location/Search Bar: Always open new active window with Alt+Enter
- in Web Search Bar it can be also opened with middle click on
  magnifying glass button
2012-09-06 12:02:03 +02:00
nowrep
11244acc6e Fixed crash when dragging site with empty url from siteicon 2012-09-06 11:29:05 +02:00
nowrep
726b11fab3 LocationBar: Show go icon when getting focus with edited text
closes #554
2012-09-06 10:53:37 +02:00
nowrep
62ac0e2fde More QLatin1String and QLatin1Char work 2012-09-05 19:58:07 +02:00
nowrep
528f398cbe Using QLatin1String and QLatin1Char now everywhere
- it saves few unnecessary allocations
2012-09-04 12:42:45 +02:00
nowrep
c7cdaf824f Qt5: Changing Q_WS_* macros to Q_OS_*
- Q_WS_* macros have been removed in Qt 5
2012-09-03 23:03:20 +02:00
nowrep
2c57528d29 LocationCompleter: Sort also results from bookmarks by count
- bookmarks get +10 count because bookmarks gets count only
  from location completer and bookmakrs manager/sidebar
  but history entries gets count also from navigating through
  webpages (eg. click on link, redirect, ...)
2012-09-02 15:36:20 +02:00
nowrep
ec70c7d43d LocationCompleter: Bookmarks results are now ordered by count 2012-09-02 15:19:12 +02:00
nowrep
b2181f0bab Coding style: Use empty QString() constructor instead of "" everywhere 2012-09-02 11:42:41 +02:00
nowrep
0437ae171f LocationCompleter: Draw light line at the bottom of item
- also space between title and link is now 2px bigger because
  of underlining
2012-09-01 17:23:17 +02:00
nowrep
179d173bcf Removed explicit setting of font size to 8pt from previous commit.
- mistake ...
2012-09-01 17:00:27 +02:00
nowrep
8429f84879 LocationCompleter: Another improvements and fixes.
- draw 1px line for fonts smaller than 9pt
2012-09-01 16:58:55 +02:00
nowrep
6d52ef3c77 LocationCompleter: Painting underline manually looks better than by Qt
- QFont::Underline is ugly with graphicssystem raster
- also fixed issue when not all parts of text was highlighted as they
  should be
2012-09-01 15:35:27 +02:00
nowrep
575b211997 Search suggestions in address bar now take into account hit count too
thanks to Franz Fellner
2012-08-31 22:05:14 +02:00
nowrep
cf2c28cfdb Updated coding style 2012-08-31 15:19:07 +02:00
nowrep
f2c5a7ac92 Highlighting search text in address bar completer 2012-08-25 13:08:21 +02:00
nowrep
6e3d7d581b Smarter address bar completer now shows better search results
- thanks to Franz Fellner

closes #506
2012-08-25 13:08:06 +02:00
nowrep
dd84a84bc0 New option to show loading progress in address bar.
- enable it in Preferences -> Tabs -> Address Bar
- patch by Franz Fellner

closes #236
2012-08-24 20:53:53 +02:00
nowrep
5de31410a4 Fixed padding of text and widgets position in address bar
- after recent RTL commit

closes #500
2012-08-13 15:41:08 +02:00
S. Razi Alavizadeh
341739cf59 LineEdit class uses a new layouting strategy for support RTL direction. theme changed for fulfillment this strategy. 2012-08-13 14:46:56 +02:00
S. Razi Alavizadeh
0408b33b43 Added RTL support to completer of locationbar. 2012-08-13 09:29:31 +02:00
nowrep
e709e17d5c Small cleanup in code (classes holding settings as static variables)
- merged LocationBarSettings and WebSettings into one class
- new class QzSettings no longer uses static variables
2012-08-10 21:16:43 +02:00
nowrep
1f225de11c Added option to choose what to suggest in address bar
- History and Bookmarks
  History only
  Bookmarks only
  Nothing
2012-08-10 18:06:29 +02:00
nowrep
10185fd649 Added option to disable search suggestions in searchbar.
- accessible from context menu (right click in searchbar)

closes #443
2012-08-10 10:20:07 +02:00
nowrep
f65b30fda7 Another Windows fixes + added qt_uk.qm (ukrainian qt translation) 2012-07-12 12:55:22 +02:00
nowrep
a63078bc02 [Fix:] Navigationbar's completer popup when used with dark themes 2012-07-02 16:38:27 +02:00
nowrep
dd170f653f Using QChar instead of 1-char QString everywhere 2012-07-01 18:50:18 +02:00
nowrep
a37b29b275 Using QString::left instead of QString::mid(0, ) 2012-07-01 18:11:43 +02:00
nowrep
dfb82fb3cc Using user preferred new tab position now everywhere it makes sense.
see #382
2012-06-27 18:05:09 +02:00
nowrep
38ef828b82 Private browsing now opens new browser window (in own process)
- closes #415
2012-06-26 11:49:39 +02:00
nowrep
1e179b3b83 Small improvements in drag&drop.
- dragging is now enabled in locationbar and websearchbar
- dragging site icon has now new pixmap
2012-05-27 14:05:28 +02:00
nowrep
9872f3281f Fixed handling special chars when searching with locationbar shortcuts 2012-05-22 12:11:27 +02:00
nowrep
b1b27a434e Possibility to delete history entries from address bar popup completion.
- with Delete key
2012-05-05 16:06:24 +02:00
nowrep
23613ab310 Fixed issue with completer when writing "ch" into location bar.
- ?? for some reason, it selected random items when typing "ch" ??
2012-04-24 15:58:36 +02:00
nowrep
2055621f2a Show star icon in completer when item is from bookmarks.
- IconProvider has no longer static members
- new macro qIconProvider for accessing IconProvider instance
2012-04-22 20:51:28 +02:00
nowrep
64bdafde87 Completely rewritten whole completion for address bar.
- fixed occasional flickering when typing in address bar
- support for opening completions with pressing Down key
- support for selecting completions with Tab key

closes #105
2012-04-22 17:09:43 +02:00
nowrep
98d51b0661 Code cleanups 2012-04-21 22:19:35 +02:00
nowrep
835926cc9e Added option to import certificate in Certificate Manager
- Cookies manager, browsing library and download manager
  can now be closed with Esc key press
2012-04-20 14:49:16 +02:00
nowrep
0a5c245811 Simplified location completer (it is now QListView)
- make sure items won't be duplicated - in case you
  have the same url in bookmarks and history
2012-04-20 14:03:08 +02:00
nowrep
a40062fde6 Completely changed look of address bar popup.
- using QStyledItemDelegate for rendering
2012-04-19 22:42:35 +02:00
nowrep
ba1cf804eb Address bar now searches also in bookmarks.
closes #79
2012-04-15 15:41:48 +02:00
nowrep
6b79ca55bf Fixed history in frames. Closes #361 2012-04-04 13:21:53 +02:00
nowrep
6560459418 Fixed loading plugins when using USE_LIBPATH define
- reverted displaying page url with QWebFrame::baseUrl()
2012-04-03 19:28:12 +02:00
nowrep
e608bc0e1f Enhanced Plugins API - possibility to add sidebar
- example implementation is now in TestPlugin
2012-04-01 16:36:38 +02:00
nowrep
841c05f8f7 Little improvements in context menu on page and in history.
- in history menus, it shows arrow when you hover at current
  history item
2012-04-01 10:48:50 +02:00
nowrep
1744eb759e Fixed issue when history & url haven't been updated sometimes.
- workarounded QtWebKit bug: it didn't emit urlChanged signal

closes #358
2012-03-30 13:43:47 +02:00
nowrep
8e9293e475 Added new page into Site Info: Databases.
- shows all used web databases on the site
2012-03-23 17:29:12 +01:00
nowrep
cf973c46fb Fixed bad behaviour of QWebPage on leaveEvent.
- when leaving web widget, QWebPagePrivate generates fake
  mouse move event, but unfortunately with bad coordinates.
  So sometimes it just hovered a link and the link's url got
  stuck in status bar message.
2012-03-16 15:55:34 +01:00
nowrep
f590ad1925 Removed use of whatsThis() and other code cleanups 2012-03-13 17:51:06 +01:00
nowrep
291468a9ab Showing context menus on event's position.
- some keyboards (usually in laptops) have special key for
  showing context menu
- context menu events from keyboard will now be shown on
  correct position (not on mouse position)
2012-03-09 16:02:27 +01:00
nowrep
03db6da1a9 Added option to create search engine from <input> element on page.
- accessible in context menu on input
- added translations for plugins into resources so they can be loaded
- in access keys navigation plugin: lower case chars are choose first
2012-03-08 13:05:57 +01:00
nowrep
5c2befabff Fixed loading of plugins. Regression from previous commit. 2012-03-07 20:01:57 +01:00
nowrep
5ea084c09d Fixed showing progressbar when opening new tab from <a target="_blank">
- search button in websearchbar no longer shows context menu
   = fixed possible focus issue
2012-03-06 21:27:37 +01:00
nowrep
7dff6ad103 TabBar now accepts drops so you can drop url on it and open new tab.
- small modifications in locationbar regarding focus handling
2012-03-05 11:30:18 +01:00
nowrep
a85d975093 Reduced spacing in navigation bar and bookmarks toolbar.
- So also KDE users can be happy once again :-)
2012-03-04 22:30:45 +01:00
nowrep
39575cf2ab Added statusbar message overly also in popup window.
- added progressbar into statusbar in popup window
2012-03-04 14:25:52 +01:00
nowrep
b1e38e859d Alt+D shortcut for focusing locationbar. Closes #294 2012-03-03 21:35:02 +01:00
nowrep
8b9934b236 Fixed focus handling when dropping urls in locationbar. 2012-03-01 18:32:53 +01:00
nowrep
a0b9c0fc69 Fixed building on Windows + whole compilation is now faster. 2012-02-29 18:33:50 +01:00
nowrep
9df1b8ca1e Don't reload search results when saving search engines. 2012-02-28 18:57:05 +01:00
nowrep
9c789792f4 Rearranged directory structure. All sources are under src/ dir now.
- updated Italian homepage translation
2012-02-23 19:18:08 +01:00