aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Try QScroller::grabGesturescrollerXavier Del Campo Romero2023-08-011-0/+2
|
* Focus browsing area after page is loadedTomas Åkesson2023-04-061-0/+2
| | | | | | | | This change allows the user to start scrolling with the keyboard instantly, without having to focus the browsing area first, after a page has loaded. This happens for example when opening a new tab, and when entering an address manually.
* Fix crash when closing gopher tab during content loadingTomas Åkesson2023-04-011-0/+1
|
* Introduce Qt 6 supportAlexey Andreyev2023-03-241-0/+5
| | | | With QT_VERSION_CHECK and core5compat module
* Improves caching api related to urls, implements fragment handling, fixes #237Felix "xq" Queißner2021-11-201-5/+25
|
* Add support for XHTML This patch sends XHTML down the HTML renderer path ↵Thomas Groman2021-05-081-1/+1
| | | | | | instead of erroring out unsupported mime. It does not implement XHTML exactly to the spec. That could hopefully be looked at in the future. Signed-off-by: Thomas Groman <tgroman@nuegia.net>
* Further improves localization (#191). Allows switching and setting the ↵Felix (xq) Queißner2021-05-081-0/+6
| | | | chosen localization properly.
* BrowserTab: accept file dropsKarol Kosek2021-04-211-0/+13
|
* Push lazy-loaded links to the historyKarol Kosek2021-04-181-1/+2
| | | | | | | | | | | | | | | | | | | | When lazy-loaded links were making a new tab, they wasn't calling tab->navigateTo(url, BrowserTab::PushImmediate). What's important is only it can push urls to the history and making a new function just for that seemed like it'd just complicate things. So I've changed it to call tab->navigateTo() on every loading type. Unfortunately, that fixed our issue partly. Sure, links are now put into the history, but lazy-loaded tabs stopped being lazy-loaded anymore. Moreover, they were also reloading a page on first tab switch. So I've made also a check that stops requesting lazy-loaded urls, which made lazy-loading work as intended again, and moved the unsetting lazy-loaded boolean on reload instead of right after it to be able to request the file, which finally... Closes: #214
* Unwarp tr() from QStringsKarol Kosek2021-04-161-15/+15
| | | | | | | | | | We don't need to wrap tr() with QString, because it returns QString anyway. Although it doesn't change the binary size (mostly because compilers were smart to remove that already), it helps to make the code a little bit cleaner. It's a somewhat continuation of c740189bcaa5bc6c073f8b3802303acf5ac36e47, but I thought back then it happened only there, so now I've removed it from all places.
* BrowserTab: reset image scaling for small imagesKarol Kosek2021-04-111-0/+2
| | | | | When you viewed a small image after the bigger one in the same tab, then the graphics_browser was still trying to scale them to the window size.
* BrowserTab: drop QStringKarol Kosek2021-04-111-4/+2
|
* BrowserTab: simplify unsupported media type errorKarol Kosek2021-04-111-32/+11
|
* BrowserTab: call the view source action from menu directlyKarol Kosek2021-04-111-3/+1
|
* BrowserTab: render image loading errors in a documentKarol Kosek2021-04-101-13/+24
|
* BrowserTab: add scrollbars to image viewKarol Kosek2021-04-101-0/+2
|
* BrowserTab: scale images only when they are bigger than the windowKarol Kosek2021-04-101-2/+6
| | | | Closes: #213
* BrowserTab: simplify image loadingKarol Kosek2021-04-101-8/+3
|
* view source: remove question mark from title bar (#208)Mike Skec2021-03-301-1/+1
|
* BrowserTab: set port on relative redirectsKarol Kosek2021-03-281-0/+1
|
* mark more strings for translationOIS2021-03-161-1/+1
|
* Starts to implement new HTML renderer based on gumbo. Everything is a bit ↵Felix (xq) Queißner2021-03-081-20/+11
| | | | borked and only trivial documents work correctly.
* Moves all globals into a structure that can be deleted before the app ↵Felix (xq) Queißner2021-03-061-44/+44
| | | | exists. Fixes #193.
* Implement interface translationCarmina162021-03-061-50/+50
|
* BrowserTab.cpp: allow parent/root on all except about: pagesMike Skec2021-02-271-4/+4
| | | | This allows, e.g going to parent directory in local directory listings, and also allows doing so on error pages
* KristallTextBrowser: replace typographer quotes with ASCII when copying textMike Skec2021-02-231-1/+1
| | | | Text which is selected in a kristalltextbrowser now has it's quotes replaced with ASCII quotes. This was done as copying fancy quotes is seen as an annoyance to most people. It is still possible to copy these quotes, if they are the only thing in the selection (whitespace also allowed, and commas, and fullstops)
* Scroll positions no longer lost after confirming settignsMike Skec2021-02-231-0/+5
|
* Add light icons for favourite/certificate buttons for dark themesMike Skec2021-02-231-0/+28
|
* Add optional root/parent toolbar buttonsMike Skec2021-02-181-3/+47
|
* Fix: remove N-L from tab title. Also limit tab title lengthMike Skec2021-02-171-1/+5
| | | | | | 0) when visiting for example, https://lists.orbitalfox.eu/archives/gemini/2020/000304.html the page title was getting a newline character in it (for some reason). This has now been fixed. 1) the tab title is now limited to 45 characters, until the string is chopped and an ellipsis (...) is appended. This limit was added to prevent pages with enormous titles from clogging up the tab bar. For this reason, the limit is quite high - users browing Gemini don't usually have that many tabs open (compared to the web), so i think we can get away with this high number.
* BrowserTab: use cleaner titles for pages without themMike Skec2021-02-161-1/+10
| | | | For sites that do not have a page title (i.e no '#' heading) the document's filename is used. If no filename exists, then the hostname of the page is used.
* KristallTextBrowser: use IBeam as default cursorMike Skec2021-02-161-1/+1
|
* Improved blockquotesMike Skec2021-02-161-0/+5
|
* Added search engine preferenceMike Skec2021-02-151-2/+13
|
* BrowserTab.cpp: basic search engine functionality addedMike Skec2021-02-151-1/+15
|
* BrowserTab: fix build errors on Qt < 5.13Mike Skec2021-02-141-0/+4
|
* BrowserTab: Update regex source link to correct oneMike Skec2021-02-141-1/+1
|
* BrowserTab: finding quotations now works for all charactersMike Skec2021-02-141-7/+27
| | | | Since #150, when typographer quotes were enabled, searching for text with quotation marks using the searchbox was made slightly more difficult as the search pattern would not match each of the different quotation mark types. This patch addresses this by using a regex which contains the search query, and creates a pattern that matches the various quote types.
* Margins are now split into seperate horizontal/vertical optionsMike Skec2021-02-131-2/+3
|
* Adds per-style pref for text widthMike Skec2021-02-131-2/+5
|
* Adds maximum line width functionalityMike Skec2021-02-131-0/+21
| | | | Hard-coded values for now. This works by setting the left/right margins of the page dynamically (e.g on window resize). The margins are calculated to limit the text's width between a value. If the window width is less than this text width, the text fill width is the same width as the page, the margins in this case will be the user's configured margins (not yet implemented).
* searchbox: fix moving to top/bottom of page during searchMike Skec2021-02-091-2/+4
| | | | When searching for something that wasn't in the page, the cursor would be moved to the top or bottom of the page (depending on search direction). This fixes that by only moving the page if the search term is actually in the current buffer.
* Search box: better reimplementationMike Skec2021-02-091-12/+15
| | | | This was necessary to fix a bug, where the URL bar becomes unusable while search box is visible.
* #144: small search improvementsMike Skec2021-02-091-4/+8
|
* Add 'open in default browser' option on HTTP linksMike Skec2021-02-081-4/+15
|
* BrowserTab: fix showing an empty redirect question boxKarol Kosek2021-01-161-1/+1
| | | | | | The question box was showed when the redirect has a different scheme or host, without checking first if you want to see the it, which could lead to an empty dialog box instead of skipping it entirely.
* Replace history on redirectKarol Kosek2021-01-111-0/+1
|
* Revert "Fixes a 'resource not found' bug"Karol Kosek2021-01-111-15/+6
| | | | | | | That commit broke resolving relative urls (e.g. when you were browsing README.md, the link that goes to BUILDING resolved to README.md/BUILDING). This reverts commit 601887655e7f128c1c938a24fc38d002a8aecb64.
* status bar: show request status when loading pagesMike Skec2021-01-101-0/+7
| | | | status text for loading HTTP/S is only a simple 'loading webpage'. The other protocols display more information
* status bar: New file cache indicatorMike Skec2021-01-101-0/+2
| | | | Mime label was also simplified so that only type/subtype are shown.