43546 Commits

Author SHA1 Message Date
Nyall Dawson
e836fc49b1 When selecting a different item, but the item is the same
type of item, just update the existing panel to show the new
item's properties

This means that flicking between selecting items of the same
type will not create a new properties widget, so scroll
bar positions, focused widgets, etc are all maintained.

Makes using layouts less annoying.
2017-11-07 11:32:37 +10:00
Nyall Dawson
29dfcc0d7d Avoid temporary no-selection state when selecting a new item
in layouts using mouse interactions
2017-11-07 11:32:37 +10:00
Nyall Dawson
ab4e6c11ed Fix resizing items with non-top-left reference point using mouse handles 2017-11-07 11:32:37 +10:00
Nyall Dawson
1c735d59ee Handle position and size with units and ratio lock in item properties 2017-11-07 11:32:37 +10:00
Nyall Dawson
aebe5a42e6 Allow reseting ratio manually for linked ratio lock buttons 2017-11-07 11:32:37 +10:00
Nyall Dawson
ea453beb73 If the same item is reselected in a layout, don't create a new
properties widget for it

Because if we do annoying things happen, like loss of focused
widget and scroll bar position
2017-11-07 11:32:37 +10:00
Nyall Dawson
b2414d8d8d Start porting item properties widget 2017-11-07 11:32:37 +10:00
Nyall Dawson
d3836e502a Move population of layout gui registry from GUI->app
Since we don't want all the item type subclass config widgets
to have to reside in gui, we need to populate the registry
from app instead.
2017-11-07 11:32:37 +10:00
Nyall Dawson
edea38f7c7
Merge pull request #5542 from nyalldawson/auth_manager_instance
Fix crashes when no QgsApplication instance is available
2017-11-07 11:26:57 +10:00
Nyall Dawson
e3f3499712
Merge pull request #5541 from nyalldawson/thread_local
Don't use thread_local on mingw or OpenBSD builds
2017-11-07 11:21:26 +10:00
Nyall Dawson
cc59ee448c More build fixes 2017-11-07 10:40:51 +10:00
Nyall Dawson
e47479b325 Mingw fixes 2017-11-07 10:38:43 +10:00
Nyall Dawson
5ebd3983fd FreeBSD has thread_local support 2017-11-07 10:33:05 +10:00
Nyall Dawson
89bfe402bd Fix build 2017-11-07 10:26:48 +10:00
Nyall Dawson
5b9283fcb9 Use local statics 2017-11-07 10:25:17 +10:00
Nyall Dawson
30046d6e00
Merge pull request #5536 from lbartoletti/freebsd_build
Fix FreeBSD build
2017-11-07 10:03:50 +10:00
Juergen E. Fischer
ac1db7e605 add SVG translation flags 2017-11-06 20:59:41 +01:00
David
3c9cef36f6 item for source field fix 2017-11-06 19:22:01 +01:00
David
c227a9e5db layout and remove fieldproperties
icons and made naming
inputs from the pull request
remove old fieldpropertie-stuff
2017-11-06 18:53:20 +01:00
Borys Jurgiel
c315eb3f6a Reimplement QgsOptionsDialogBase::optionsStackedWidget_CurrentChanged in derived classes rather than duplicate it 2017-11-06 18:11:40 +01:00
Borys Jurgiel
6b76c2b377 Missing docstrings 2017-11-06 17:45:46 +01:00
Alessandro Pasotti
b57ec46aa0 getter return not-const list of errors 2017-11-06 16:49:33 +01:00
Borys Jurgiel
64ab28bf59 Rename indx to index in some slots 2017-11-06 16:37:27 +01:00
David
7e2ee74da8 help and suppress form
help from attributetypedialog is handled over the help of vectorlayerproperties
suppress form combo takes the default value from the settings
fixed troubles on loading gui
2017-11-06 16:34:05 +01:00
Alessandro Pasotti
af5760044a const range loop iterators 2017-11-06 15:09:15 +01:00
Borys Jurgiel
966e2d6639 Make QgsOptionsDialogBase's slots virtual for overriding in derived clases with non-standard tabs (fixes broken tab behaviour in Plugin manager) 2017-11-06 14:27:32 +01:00
David
52240ad7f7 fixed problem with saving first entry 2017-11-06 14:21:21 +01:00
David
2c0d5188d5 some changes in attribute form properties and source data properties
changed style of layout, initcode and suppress-combo
display read only comment
fixed saving of wfs
improved layout
some tooltips
2017-11-06 13:29:47 +01:00
Alessandro Pasotti
d9b4ae56bd Minor change: QString -> QStringLiteral in some debug messages 2017-11-06 12:54:37 +01:00
Alessandro Pasotti
7e69936161 [auth][bugfix] Migrate qgis-auth.db from QGIS 2 to 3
Fixes #17403
2017-11-06 12:47:23 +01:00
Alessandro Pasotti
cd23779e6f [auth][bugfix] Add a getter for error list on qgsmigrate 2017-11-06 12:42:20 +01:00
Borys Jurgiel
17aa88cdec [Plugin manager] Fix window title 2017-11-06 11:03:44 +01:00
Matthias Kuhn
ae33b58ac7
Merge pull request #5533 from DelazJ/pluginlist
[bugfix]Remember the c++ plugins folders in Options dialog
2017-11-06 10:30:23 +01: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
Nyall Dawson
4e3b082594 Restrict available formats when running algorithms to those supported
by the provider
2017-11-06 12:58:30 +10:00
Nyall Dawson
4ae9241e71 [processing] Allow providers to determine default vector/raster file
to use for their algorithm's parameters

Because some providers do not have support for all output types,
we need to give providers a way to restrict the default format
choices to those which are supported by the provider.
2017-11-06 12:44:38 +10:00
Nyall Dawson
2a280d69aa Allow access to parent algorithm for processing parameters 2017-11-06 12:00:16 +10:00
Nyall Dawson
ca0c8302a1 Add missing QCoreApplication for TestQgsNoApplication 2017-11-06 10:51:23 +10:00
Nyall Dawson
2eff873e0e Fix crash when accessing QgsApplication::dataItemProviderRegistry()
without QgsApplication instance.

Also add test to ensure that calling QgsApplication::initQgis()
is safe to do without QgsApplication instance.
2017-11-06 10:19:35 +10:00
Nyall Dawson
c413f147bf Fix crash when accessing auth manager when no QgsApplication is available 2017-11-06 10:13:31 +10:00
Nyall Dawson
265be41d7c Don't use thread_local on mingw or OpenBSD builds
MingW has broken support for thread_local, so force disabling it
see
https://sourceforge.net/p/mingw-w64/bugs/445/
https://sourceforge.net/p/mingw-w64/bugs/527/
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80816

also OpenBSD has no thread_local support, see https://issues.qgis.org/issues/17351

So on these platforms we fall back to using QThreadStorage.

Fixes #17351
2017-11-06 09:20:12 +10:00
Sandro Santilli
7cfbb6fb1c
Add Matrix as a way to get in touch with community for chat (#5147) 2017-11-05 23:59:00 +01:00
Nyall Dawson
31f98dac03
Merge pull request #5534 from nyalldawson/format
Add flags to QgsVectorFileWriter methods which return lists of drivers
2017-11-06 08:56:17 +10:00
Matthias Kuhn
bfe035536a Disable flaky PyQgsServerAccessControl test 2017-11-05 23:31:12 +01:00
Theuns
d269f34b58 Fix build using mingw
Changes many  #if defined (Q_OS_WIN) to #ifdef _MSC_VER, where
they relate specifically to msvc compiler
2017-11-06 08:26:03 +10:00
Nyall Dawson
2df5332409 Optimise QString equality tests 2017-11-06 08:25:15 +10:00
Matthias Kuhn
394c53154f Update for nose2 0.7.0 2017-11-05 23:03:16 +01:00
Harrissou Sant-anna
473af0c909 Rename CONTRIBUTE.md to CONTRIBUTING.md 2017-11-05 22:54:10 +01:00
Nyall Dawson
8499d7fcef Add option to hide non-spatial formats from driver lists
And hide non-spatial formats from geometry checker available formats
2017-11-06 07:49:31 +10:00
Harrissou Sant-anna
5523b0597b [Bugfix] Enable adding color in Options->Color tab 2017-11-06 07:43:05 +10:00