270 Commits

Author SHA1 Message Date
Nathan Woodrow
3046979a5f
Add first run and settings migration screen (#5838) 2017-12-12 20:39:15 +10:00
Nyall Dawson
15e7d57f97 Hide "whats this" buttons on all dialogs on Windows
Since it's totally useless and does nothing at all.

*Requires Qt >= 5.10
2017-12-08 11:08:27 +10:00
Nyall Dawson
11f610b7ba Fix build using mingw
Credit to t-hey
2017-12-05 08:01:49 +11:00
Larry Shaffer
4c78526203
Merge pull request #5531 from boundlessgeo/fix-libpaths-update
Fix updating QgsApplication::libraryPaths; load before any Qt plugin use

Note: could possibly be moved to QgsApplication::init()
2017-11-09 14:24:38 -07:00
Nathan Woodrow
ee59abf030
Improved out of process crash handler (#5543)
* Add out of process crash handler for better crash handling.
2017-11-06 15:18:07 +10:00
Larry Shaffer
29c71f43af
Fix updating QgsApplication::libraryPaths; load before any Qt plugin use
Previously, it was happening after setting the default window icon.

For macOS, refactor libraryPaths update to ensure both QT_PLUGIN_PATH
and qt.conf are properly honored (fixes 4.5 year old bug), with
prioritization of qgis libs or libs shipped with .app bundle.
2017-11-04 10:55:35 -06:00
Nyall Dawson
7dc48f3a17
Merge pull request #5508 from DelazJ/message_spacing
Fixing messages displayed in GUI
2017-11-02 08:13:25 +11:00
Nyall Dawson
7843d22bde Fix memory leaks 2017-10-30 21:13:41 +10:00
Nathan Woodrow
90857b2b18 [FEATURE] Settings migration framework (#5080)
Only run for default profile and only if
not run before. Moves settings and symbols from
QGIS 2.x to QGIS 3 default profile

* --version-migration flag to force migration
2017-10-27 20:14:15 +10:00
Harrissou Sant-anna
cd178325d7 Add missing space for readability and fix punctuation 2017-10-27 01:43:26 +02:00
Matthias Kuhn
ef2d17f956
No forced rendering on startup 2017-10-26 15:30:40 +02:00
Nyall Dawson
24a9c522e3 Move qgsAsConst to qgis::as_const
So it's more inline with the std::as_const implementation which
it fills in for, and allows us to 'polyfill' other c++>11
features into the qgis:: namespace.
2017-10-13 19:47:37 +10:00
Blottiere Paul
1fb9f2ae01 Ignore archive files given as layername in command line 2017-10-09 05:39:22 +01:00
Nyall Dawson
04a9cd9211 Add more consistency to doxygen formatting 2017-10-06 08:19:00 +10:00
Matthias Kuhn
8e7db5488f
Range based for loop 2017-09-29 17:37:35 +02:00
Nyall Dawson
8c3939e756 More efficient use of QStrings
- use .isEmpty() instead of == QLatin1String( "" ) to check for
empty strings
- use .clear() instead of = QLatin1String( "" ) to empty a string
- remove unnecessary QString initializations
2017-09-28 05:25:51 +10:00
Nyall Dawson
a87d352bd7 Run clang-tidy modernize-use-default-member-init to move member
initialization to headers (c++11 style)
2017-09-27 05:02:34 +10:00
Nyall Dawson
31c1ae1c6a Add missing QStringLiterals 2017-09-25 17:12:03 +10:00
Jorge Gustavo Rocha
273243b4c4 Add XYZ connection to provide default OpenStreetMap tiles 2017-08-07 22:55:28 +02:00
Alessandro Pasotti
4de141e73f Minor fix in comment text 2017-07-25 10:09:42 +02:00
Nathan Woodrow
12c634cef3 Load default profile name from global
Also adds overrideLocalProfile to ignore local profiles.ini file
2017-07-24 14:52:10 +10:00
Nathan Woodrow
e37f682cca Also load profiles-path from global settings 2017-07-24 14:20:09 +10:00
Nathan Woodrow
7b92f1f1e4 [FEATURE] Add user profiles.
All user settings/plugins, etc are now loaded from APPDATA for each
platform and no longer .qgis3 and are isolated from each other.
 This allows for different profiles depending on what the user of QGIS
needs, e.g test, prod, demo, etc

Profile menu allows for switching between profiles, or creating new
ones.
2017-07-24 13:20:01 +10:00
Juergen E. Fischer
74407dc697 crash report: fix report on 64bit 2017-07-21 00:02:37 +02:00
Juergen E. Fischer
4f9a9e0360 s/( )/()/; s/== /== /; s/!= /!= /; 2017-07-19 09:19:37 +02:00
Sandro Mani
f405b96ddd Demote translation loading warning to debug msg
(forward port from Sourcepole's fork)
2017-07-18 09:37:28 +10:00
Nyall Dawson
64575b3a09 Silence some more gcc fallthrough warnings (no real issues) 2017-07-13 08:28:15 +10:00
Nyall Dawson
1be5fbda96 More consistency across scale API
Use a real scale widget for point displacement label scale
2017-06-09 10:26:01 +10:00
Nathan Woodrow
5e3c6e54be Fix space 2017-05-05 15:55:04 +01:00
Nathan Woodrow
52093a58c6 Fix symbol path for osgeo4w installs 2017-05-06 00:37:49 +10:00
Nyall Dawson
50680249ed Merge pull request #4397 from nyalldawson/no_adawaita
Block use of the Adwaita themes if we can avoid them
2017-05-04 07:31:23 +10:00
Juergen E. Fischer
21f81fb2a2 fix 98c89ccab 2017-04-30 12:01:58 +02:00
Larry Shaffer
d3ea19eaad Enable hidpi support on macOS by default 2017-04-29 21:21:20 +02:00
Juergen E. Fischer
98c89ccabe also accept uppercase .qgs as project extension (fixes #15871) 2017-04-29 13:53:28 +02:00
Nyall Dawson
98e25d178c Block use of the Adwaita themes if we can avoid them
The Qt variants of these GTK themes are VERY broken
for apps like QGIS. E.g. oversized controls like
spinbox widgets prevent actually showing any actual CONTENT
in these widgets, leaving a very bad impression of QGIS

Keeping a consistent DE theme is nice and all, but if
it leaves QGIS in an unusable state then it's misguided.

*Blame resides with gnome's obsession with "touch friendly"
tablet style widgets
2017-04-24 10:02:45 +10:00
Nathan Woodrow
bfcf2528e0 Add QgsCrashHandler for single place for all platforms (#4395)
Add QgsCrashHandler for single place for all platforms
2017-04-23 23:41:33 +10:00
Nathan Woodrow
e192bc4876 Remove old stack trace dump code in main
Will be moved to a new class.
2017-04-22 13:34:51 +10:00
Nathan Woodrow
608d519910 Add stack info to crash dialog 2017-04-22 13:34:51 +10:00
Alessandro Pasotti
bbc849d73e Merge pull request #4235 from boundlessgeo/qgssettings-housekeeping
QgsSettings housekeeping
2017-03-09 11:11:07 +01:00
Larry Shaffer
35edc182ea Add macOS 1024x1024 icon for dock, app switcher, etc., rendering
[ci skip]
2017-03-08 16:53:58 -07:00
Alessandro Pasotti
1822caa803 QgsSettings: removed leading slashs from keys 2017-03-08 11:11:47 +01:00
Juergen E. Fischer
a10c890383 More QgsSettings updates:
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Denis Rouzaud
dccf8c9e13 run astyle on src/app 2017-03-03 09:09:37 +01:00
Alessandro Pasotti
e1ede700a8 [feature] QgsSettings QGIS QSettings replacement (#4160)
* [feature] QgsSettings QGIS QSettings replacement

This is the new QgsSettings class that adds an (optional)
Global Settings additional ini file where a system administrator
can store default values for the settings and provide
pre-configuration.

If an ini file named qgis_global_settings.ini is found
in the pkgDataPath directory it is automatically loaded,
this path can be overriden by a command line argument
( --globalsettingsfile path ) and through an environment
variable (QGIS_GLOBAL_SETTINGS_FILE).
2017-02-22 20:22:10 +10:00
Juergen E. Fischer
f107a03e60 fix link warning 2017-02-21 13:43:16 +01:00
Nathan Woodrow
0ad804a781 [FEATURE] Add support for Windows jump lists (#4161) 2017-02-20 00:35:28 +10:00
Juergen E. Fischer
801184a8a1 osgeo4w: add a minimal exe wrapper to initialize the enviroment and load
qgis_app.dll (inspired by Nathan's PR #4156)

On install each shortcut/configuration gets a own copy of the (small)
exe.  That exe is started through the batch file that originally was
used to start the app at runtime. Argument --exit will cause the wrapper
to just dump the environment to an .env file next to the copy of the
.exe.  The created shortcuts now point at those .exes instead of the
batch files.

At runtime the .exes source their .env file to get a working environment
to run QGIS (ie. qgis_app.dll).  This for example allows the application
to be pinned to the taskbar and avoids the of necessity of batch files
at runtime to start the app.
2017-02-19 13:47:38 +01:00
Nyall Dawson
d19e70700f Ensure all pointer variables are initialized to nullptr 2017-02-18 20:23:18 +10:00
Nyall Dawson
d47d31d13c Rename "Db"/"DB" in API to "Database"
Motivations:
- consistency - we generally use expanded names, and this also
matches Qt API which uses Database instead of Db
- avoids unpredictable capitalization throughout API (mix of "Db"
and "DB")
2017-02-07 09:32:05 +10:00
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +01:00