236 Commits

Author SHA1 Message Date
Juergen E. Fischer
98c89ccabe also accept uppercase .qgs as project extension (fixes #15871) 2017-04-29 13:53:28 +02: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
Nyall Dawson
b5480633e4 Standardise names for static variables
All non-const variables are prefixed with "s", all const
statics are ALL_CAPS
2017-01-14 16:40:24 +10:00
Denis Rouzaud
748be8de71 [spelling] replace behaviour by behavior 2017-01-11 11:35:19 +01:00
Matthias Kuhn
38a8ddacd9 Add qgis_app.h with APP_EXPORT macro 2017-01-05 00:12:11 +01:00
Martin Dobias
5fc10d6207 Migrate QgsMapThemeCollection away from using layer IDs 2016-12-10 23:23:18 +08:00
Martin Dobias
d56a97d4fe Merge QgsMapLayerRegistry into QgsProject
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
Nyall Dawson
4166a3ea62 Fix most clazy qstring-unneeded-heap-allocations warnings
By flipping string literals to QStringLiteral/QLatin1String

see

https://woboq.com/blog/qstringliteral.html
2016-10-24 15:26:24 +10:00
Nyall Dawson
44289084e9 Optimise passing of variables by ref/value 2016-10-24 10:36:23 +10:00
Nyall Dawson
ef5110732b Fix clazy "qstring-ref" warnings
From the clazy docs:

Finds places where QString::fooRef() should be used instead of
QString::foo(), to avoid temporary heap allocations

eg

str.mid(5).toInt(ok) // BAD

str.midRef(5).toInt(ok) // GOOD
2016-10-22 22:46:14 +10:00
Matthias Kuhn
f3482d2ce2 Rename visibility presets to map themes part 2 (#3641) 2016-10-20 12:55:48 +02:00
Nyall Dawson
fdaa6321cc Drop minimum Qt version to 5.2 2016-09-21 09:12:54 +10:00
Nyall Dawson
88e4410af1 Require Qt >= 5.5 2016-09-21 09:12:54 +10:00
Juergen E. Fischer
f61c993e13 show command line help as message box on windows
(cherry picked from commit bd23bf1a2368fa68fe692d451f61bfe3095619bd)
2016-09-17 23:19:34 +02:00
Nyall Dawson
06d2d79185 Make sure files are truncated before writing 2016-09-14 15:12:36 +10:00
Matthias Kuhn
ffe358179e Export main() when building for android 2016-09-01 13:14:10 +02:00
Martin Dobias
9db9304627 Raster MTR improvements - part one (PR #3334) 2016-08-02 08:22:29 +02:00
Matthias Kuhn
3e33e686c1 Rename visibility presets to map themes
Because it is not only more descriptive for what it does but also
sounds more interesting.

[needs-docs]
2016-08-01 12:23:44 +02:00
Martin Dobias
7b8c1c5ae1 Make sure that backtrace dump from multiple threads does not cause deadlocks 2016-07-24 23:16:33 +02:00
nirvn
de6320279a [splashscreen] fix pixelated scaling 2016-07-11 09:32:02 +07:00
Nyall Dawson
2a1c9c349f Fix Coverity integer division warning 2016-07-08 07:42:31 +10:00
Juergen E. Fischer
9446b20fe1 [gui/hidpi] scale splash screen on startup not on release 2016-07-02 17:44:22 +02:00
Alessandro Pasotti
b51cd2edc1 Added missing newline to the param doc 2016-06-15 14:12:44 +02:00
Alessandro Pasotti
50fd2b1591 Fixed error in executing python file at start.
This exec form should be compatible with both py2 and py3
2016-06-02 11:01:51 +02:00
Nyall Dawson
d255bfb256 Remove unused variables, also avoid some unnecessary string creation
when not using debug builds
2016-05-15 20:50:42 +10:00
Matthias Kuhn
e133b42896 Enable console with Python3 / PyQt5 2016-03-29 08:20:43 +02:00
Nyall Dawson
6ea736805d Fix compilation on Qt5 < 5.5 2016-03-18 12:13:04 +11:00
Matthias Kuhn
e6198c6929 Fix some warnings on Qt5 builds 2016-03-10 19:52:39 +01:00
Juergen E. Fischer
26d61956d7 show source locations in windows backtraces 2016-03-05 11:02:42 +01:00
Sebastian Dietrich
8359bfe40c add command line option to skip the version check at startup
--noversioncheck or -V are recognized
2016-02-15 00:12:31 +01:00
Nyall Dawson
c50033bbaa Misc optimisations suggested by clazy
- avoid Q_FOREACH( ..., QMap.values() ) as it allocates an unnecessary
list
- use .endsWith( ... , Qt::CaseInsensitive) instead of
.lower().endsWith( ... ) as it avoids an extra QString allocation
2016-02-12 20:54:25 +11:00
Martin Dobias
42ea15b346 Merge pull request #2496 from SebDieBln/App_OptionsAsFiles
Accept option '--' to mark all following arguments as files (refs #3714)
2016-01-27 12:42:56 +01:00
Juergen E. Fischer
00633811c9 spelling fixes 2016-01-21 10:42:25 +01:00
Nyall Dawson
c452c3d85f Fix some warnings and test failures on nightlies 2016-01-15 08:32:56 +11:00
Nyall Dawson
766bfa1a7f Fix some more old style cast and float comparison warnings 2015-12-31 07:27:58 +11:00
Juergen E. Fischer
8214608169 more nullptr updates (folloup 320c696) 2015-12-16 16:29:29 +01:00