1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-23 02:32:10 +02:00
Commit Graph

208 Commits

Author SHA1 Message Date
nowrep
2e9ce1ba90 [CodeCleanup] Major cleanup in MainApplication class 2014-03-10 00:47:07 +01:00
nowrep
969f262cf8 [DataPaths] Don't add trailing slash to paths
Qt API is not adding trailing slashes to dir paths either.
2014-03-09 22:17:13 +01:00
nowrep
214279e3bb [DataPaths] Added new class DataPaths
This class holds all paths now (instead of MainApplication)
Renamed ProfileUpdater -> ProfileManager
ProfileManager is now responsible for all operations with profiles
2014-03-09 21:51:42 +01:00
nowrep
a3c3dead87 [CodeCleanup] Get rid of Qz::AppMessage enum 2014-03-09 12:54:07 +01:00
nowrep
a61ce67d7c [SpellCheck] Cleanup: Speller class is now singleton
All spellcheck is now where it belongs, under spellcheck directory
2014-03-08 14:21:08 +01:00
nowrep
0e9fcc2113 [Building] Fixed building on Qt 5 & without Hunspell
BookmarksExportDialog: Align "Format" label to the right
2014-03-07 23:59:12 +01:00
nowrep
417da146e5 [QzTools] Make QzTools class and export only the class
Also fixed building on Windows
2014-03-07 22:54:50 +01:00
nowrep
f558a836b0 [Code] Create singletons with Q_GLOBAL_STATIC macro 2014-03-07 18:24:13 +01:00
nowrep
edbb87bd1f [CodeCleanup] IconProvider now have static methods for getting icons 2014-03-07 18:03:42 +01:00
nowrep
d0d1fa1844 [Session] Save session to QByteArray and then write it to file
Instead of appending data to file, write all session data at once.
This should help preventing corrupting session.dat file.

Closes #1247
2014-03-06 16:18:58 +01:00
nowrep
f33552320f [AutoSaver] Rework AutoSaver so each object can use own instance
Instead of saving everything in MainApp::saveStateSlot, save each object
separately. As a result, this will save a lot of writes to disk.

Other changes includes:
Saving bookmarks also in private mode. Closes #1208
Cleanup of code
2014-03-06 16:12:36 +01:00
nowrep
29f20ae520 [Building] Don't require ending slash in USE_LIBPATH and QUPZILLA_PREFIX options 2014-03-03 15:08:52 +01:00
nowrep
a7d382ee42 [Cleanup] Use QZ_WS_X11 only for X11 specific code
In other cases, use Q_OS_UNIX for determining UNIX platform.
UNIX platfroms without X11 should benefit from this commit, including
MAC and UNIXes on Wayland.
2014-03-03 14:47:47 +01:00
S. Razi Alavizadeh
84ef3e9fda Fixed, renamed QupZilla class to BrowserWindow everywhere 2014-02-25 22:06:13 +03:30
nowrep
7d98a162d6 [Code] Fixed cppcheck issues 2014-02-22 15:23:46 +01:00
nowrep
5cf7d0b9a9 [Bookmarks] Add new action to open bookmarks in private window
Closes #995
2014-02-22 15:20:54 +01:00
Mladen Pejaković
131eef5c9d Open links in private window. 2014-02-22 14:57:22 +01:00
nowrep
404fa68a1b [Cleanup] Renamed QupZilla class to BrowserWindow 2014-02-19 22:07:21 +01:00
nowrep
9ae0352548 [SslV3Sites] Added possibility to change list of sites in settings.ini
In settings.ini: Web-Browser-Settings/SSLv3Sites

Also added sermapa.es to default list
2014-02-13 20:46:15 +01:00
nowrep
156a14dfb6 [Windows] Use %LOCALAPPDATA% only if user doesn't have config in older paths 2014-02-13 20:17:57 +01:00
S. Razi Alavizadeh
b880a920ff [Windows] Fixed PROFILEDIR when using Qt4. 2014-02-13 17:23:20 +03:30
S. Razi Alavizadeh
f52d5fa234 [Themes][RTL] Use correct icons for tabbar scroll buttons.
- also fixed compile issue on Windows.
2014-02-12 19:41:05 +03:30
nowrep
dc6f71a1b8 [Preferences] Update default settings on some options
TabsOnTop: Enabled by default
DontLoadTabsUntilSelected: Enabled by default
AfterLaunch: Restore session is now default
2014-02-11 15:44:47 +01:00
nowrep
c1293fca3f [Windows] Use %APPDATA% for PROFILEDIR
Also show warning message when using deprecated config path ~/.qupzilla
2014-02-11 09:40:47 +01:00
nowrep
284e58ebca [Bookmarks] Cleanup in Bookmarks class 2014-02-10 12:58:34 +01:00
nowrep
946354a15d [Bookmarks] Load default bookmarks on error 2014-02-09 18:55:11 +01:00
nowrep
1536cd0c46 [Bookmarks] Save bookmarks with AutoSaver
Also implement loading & saving expanded property of top-level
internal folders (toolbar, menu, unsorted).
2014-02-08 21:11:13 +01:00
nowrep
fe9ecbbbaa [Code] Renamed BookmarksModel class to Bookmarks
It actually is not model. BookmarksModel name will be needed for future
Bookmarks DataModel class.
2014-02-05 15:26:51 +01:00
nowrep
5b55d5b483 Add build option to disable new version checking
Closes #1184
2014-02-02 16:21:48 +01:00
nowrep
260447e414 [coverity] Fixes for issues found by scan.coverity.com 2014-02-01 19:21:49 +01:00
nowrep
29b6b93dd4 [Portable] Portable mode can now be enabled with commandline option
It is not needed to rebuild for Portable mode.
However, it is still possible to enforce portable mode with
PORTABLE_BUILD build option.
2014-01-23 13:02:07 +01:00
nowrep
a1f9b784d7 [CommandLineOptions] New option to toggle fullscreen. 2014-01-22 17:34:25 +01:00
nowrep
354b9d1695 [Preferences] Lazy reload of MainApp preferences
Re-setting user stylesheet with a lot of AdBlock hiding rules
takes quite some time for QtWebKitSettings.
2014-01-18 11:41:08 +01:00
nowrep
bcaecbdde1 [Translations] Correctly load translation for non-translated countries
Closes #1152
2014-01-17 21:39:02 +01:00
Jonathan Hooverman
d917f43cf0 Updated copyright year to 2014 2014-01-11 16:11:42 +01:00
S. Razi Alavizadeh
141f0bf142 Ability to run portable version together with installed version. 2014-01-02 20:01:12 +03:30
nowrep
d58ad2e6a1 [OS/2] Build fix 2014-01-01 23:15:50 +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
b8cb20ced6 Revert "[Code] Use QDir::separator() instead of hardcoded "/""
This reverts commit 4f059a75ee.

It is really not helpful at all (Qt will automatically use native
separators)
2013-12-27 15:09:42 +01:00
nowrep
a9dc3a929a [Code] Added comment 2013-12-27 15:09:31 +01:00
nowrep
4f059a75ee [Code] Use QDir::separator() instead of hardcoded "/"
QDir::separator() returns native separator (= "\" on Windows)
2013-12-26 20:52:21 +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
d519a1253e [Sessions] Last 2 sessions are now backuped in profile directory.
Closes #1100
2013-12-06 21:26:07 +01:00
S. Razi Alavizadeh
99236b58be Open the new window in the screen contains the last active window. 2013-08-04 00:47:15 +04:30
nowrep
f149aaebf2 Add possibility to load themes from profile directories.
Themes are now loaded from the following directories:
 1. Directory "themes" in user profile
 2. Directory "themes" in root profile directory
 3. System data path
      > /usr/share/qupzilla/themes on Linux
      > $EXECUTABLE_DIR/themes on Windows

Closes #928
2013-06-07 12:59:22 +02:00
nowrep
bd315afe9e [AutoFill] Rewritten password management to support multiple backends. 2013-05-14 17:57:13 +02:00
nowrep
1b617068b2 [AdBlock] Fixed hiding rules when more than 5000 rules in subscription.
Closes #873
2013-05-02 21:01:17 +02:00
Mladen Pejaković
aac0956a0f Add spatial navigation option 2013-04-23 13:31:29 +02:00
nowrep
ee42199669 Fixed crash upon closing private browsing window.
Also updated translations for previous commits.
2013-04-16 10:00:18 +02:00
nowrep
35ceee25ee [Preferences][Win] Changed labels on "Set as default" button.
Also renamed QtSingleApplication::removeLockedFile to removeLockFile
2013-04-05 11:39:19 +02:00
nowrep
43d514a647 [QtSingleApplication] Correctly remove lockfile only on app close.
Fixes regression when multiple instances of browser were opened.
2013-04-04 23:33:02 +02:00
S. Razi Alavizadeh
dc659e2fa4 [Windows] Fixed issues about window positioning
-Fixed #821 and also position of new window
2013-03-23 21:07:58 +04:30
Oliver Gerlich
eecbc352c4 Added option to open another private window from private window.
Closes #776
Closes #772
2013-03-23 13:04:35 +01:00
nowrep
2d27c40384 Use /tmp/qupzilla/tmp as a temp path on Linux.
Instead of creating another folder in /tmp (qupzilla-tmp),
use already created /tmp/qupzilla.

See #811
2013-03-21 23:44:01 +01:00
S. Razi Alavizadeh
45830b1917 Fixed some little issues.
-show default browser dialog after application window completely rendered and correct default checked state
-show host instead URL in authentication dialog
2013-03-16 18:19:31 +03:30
S. Razi Alavizadeh
d75ab566ef [Mac] Added some actions to menu of dock icon 2013-03-16 18:19:28 +03:30
nowrep
ff4e5b74d4 [Fix] Certificates from custom path disappearing on preferences saving. 2013-03-15 10:44:05 +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
nowrep
50e993e014 [TabBar] Compute minimum tab sizes with ProxyStyle pixelMetrics.
It will make it possible for styles to basically style tabs.
2013-03-03 20:20:49 +01:00
nowrep
d885444501 [Code] Use QVector instead of QList for elements bigger than pointer. 2013-02-26 12:56:11 +01:00
nowrep
cf4daaa37a [Qt5] Fixed crash when using network cache from Qt 4
Network cache is now saved  in %WEBKITVERSION%-Qt%QTVERSION%
subdirectory.
2013-02-26 11:58:38 +01:00
nowrep
a1ad8dab9b Properly destroy NetworkManager on application close. 2013-02-25 23:25:11 +01:00
David Rosca
560c4c414c Merge pull request #780 from srazi/master
[Windows] Don't update transparent margins on close.
2013-02-24 04:17:03 -08: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
bed43ed0c8 [Qt5] Use RegExp wrapper to take advantage of new regexp engine.
QzRegExp wrapper is using QRegExp directly on Qt 4 and
QRegularExpression (with PCRE engine) on Qt 5.
2013-02-24 10:57:58 +01:00
nowrep
1cbc8c6d2d [Windows] Fixed color of selected text when view loses focus.
Closes #756
2013-02-22 11:59:52 +01:00
nowrep
bc2e163b90 X11: Symlink qupzilla/tmp into /tmp 2013-02-22 10:06:05 +01:00
nowrep
3e743c9d1f Moved config directory info ~/.config/qupzilla
See #774
2013-02-21 11:05:00 +01:00
nowrep
18a1d4802e Don't use double QUrl::fromUserInput in QupZilla constructor.
Closes #762
2013-02-19 11:56:47 +01:00
nowrep
7b3b4f9b94 [Regression] Fixed restoring session with pinned tabs.
Regression from adding tabs on top feature.
2013-02-15 22:18:46 +01:00
nowrep
9a99509faf Proper fix for restoring current tab.
Fix for 3b4d2f5534
2013-02-11 16:45:10 +01:00
nowrep
a1a8fb90f5 Added option to choose where to store network cache. 2013-02-10 14:50:18 +01:00
nowrep
945b40f2a5 Improved showing navigation in fullscreen.
It will now hide navigation toolbar after 1 second instead
of hiding it instantly when on mouse leave.
2013-02-09 15:44:17 +01:00
S. Razi Alavizadeh
860b5b8440 [Mac] Added support for global-menu.
-Added MacMenuReceiver class
-Added MENU_RECEIVER as receiver for action's signal
2013-02-09 14:47:18 +03:30
nowrep
c3a0e1f13a [spellcheck] Added context menu options to replace misspelled words.
And also to add word into user dictionary.
2013-02-05 20:43:53 +01:00
nowrep
074bd928c7 [spellcheck] Adding Speller object into MainApplication. 2013-02-05 15:41:10 +01:00
nowrep
4f42040c7e Followup for background fix with dark themes. 2013-01-31 14:18:28 +01:00
nowrep
b97d1eeef5 Revert "Add new option "Ignore system colors" for dark themes."
This reverts commit 4b2fd86fdd.
2013-01-31 11:53:48 +01:00
nowrep
4b2fd86fdd Add new option "Ignore system colors" for dark themes.
It will set default background of html element to white.
However, this may break some sites, so let's just make this
optional.
2013-01-31 02:08:28 +01:00
nowrep
109f607157 Fixed removing all cookies on close option.
Closes #731
2013-01-30 16:04:05 +01:00
nowrep
e9b3442ef9 Use different network cache folders for each WebKit version
Fixed crashes when using cache from older QtWebKit in 2.3 version
2013-01-30 12:18:07 +01:00
nowrep
5569cec48b [win] Fixed building after last commit. 2013-01-29 20:58:08 +01:00
nowrep
95445738ef [win] Don't check for default browser on startup.
Also cleanup in #ifdefs in RegisterQappAssociation
2013-01-29 20:34:14 +01:00
S. Razi Alavizadeh
62d3fd8bbb [FTP] Caching file icons, also added ftp to installer script and associationManager() 2013-01-29 20:03:56 +03:30
S. Razi Alavizadeh
dd58127293 Fixed blocking link with ftp and qupzilla schemes because of the 'Same Origin Policy'. 2013-01-29 05:15:10 +03:30
S. Razi Alavizadeh
a05c4b2bdb Added FTP support. (List and Download) 2013-01-28 13:22:55 +03:30
nowrep
c1c1b4130e New option "Open new empty tabs after active tab".
Closes #544
2013-01-25 23:49:46 +01:00
nowrep
3cdb4c26df Fixed setting current tab after recovering crash.
It set currentIndex - 1 before.
2013-01-25 23:36:50 +01:00
nowrep
df6417af4a Final fix for page background with dark themes.
Background of html element is now by default set to
white.
Closes #602
2013-01-25 21:14:37 +01:00
nowrep
498f24add1 [Code] Renamed AutoFillModel + new class PageFormCompleter. 2013-01-24 17:47:50 +01:00
nowrep
e28f9d438e [Code] qz_ prefixed functions moved to QzTools namespace. 2013-01-22 19:04:22 +01:00
nowrep
743c402603 Coding style. 2013-01-21 22:11:31 +01:00
nowrep
14ca6e2f0d Added new macros for checking QTWEBKIT version.
QTWEBKIT_FROM_2_2 - >= 2.2.0
QTWEBKIT_TO_2_2   - < 2.2.0
QTWEBKIT_FROM_2_3 - >= 2.3.0
QTWEBKIT_TO_2_3   - < 2.2.0

It also check whether Qt5 is used and if so, it will
compile all features just like the QtWebKit version
was 2.3.0
2013-01-20 12:10:28 +01:00
nowrep
81ac819746 Ask user to allow site to use notifications/geolocation.
With option to remmber the choice for page.
2013-01-19 17:28:12 +01:00
nowrep
64a180d1fe Enable new features in QtWebKit 2.3.0
Also hiding new features in preferences if building
with older QtWebKit versions.
2013-01-09 18:47:36 +01:00
Mladen Pejaković
ea604d5bca JavaScript privacy options 2012-12-28 01:17:01 +01:00
nowrep
64355e2a3d Qt4: Fixed broken session restoring.
Adding Qt version into sessionVersion number
only when using Qt 5.

Closes #689
2012-12-25 16:56:23 +01:00
nowrep
bdc9a0417a Qt5: Added new option to use Caret Browsing
It can be enabled from Preferences -> Browsing,
Menu View or with F7 shortcut.
2012-12-22 13:52:46 +01:00
nowrep
44693080cb Qt5: Fixed Q_WS_X11 macro usage 2012-12-22 12:47:45 +01:00
nowrep
666f6678f3 Qt5: New option to turn Animated Scrolling
Feature similiar to "smooth scrolling"
2012-12-21 16:38:44 +01:00