2074 Commits

Author SHA1 Message Date
Larry Shaffer
a06a96cf7c
Reset minimum section size to layer tree veiwport width on resize
Since last column is resized to content (instead of stretched), the
active selection rectangle ends at width of widest visible item in tree,
regardless of which item is selected. This causes layer indicators to
become 'inactive' (not clickable and no tool tip) unless their rectangle
enters the view item's selection (active) rectangle. Always resetting
the minimum section size relative to the viewport ensures the view
item's selection rectangle extends to the right edge of the viewport,
which allows indicators to become active again.
2019-06-19 10:05:59 -06:00
Nyall Dawson
cf63a7af97 [needs-docs] Allow dragging project layers from legend over map layer comboboxes to select
Greatly assists with usability of the combobox with large projects,
especially those with multiple copies of layers with the same name...
2019-06-13 04:57:37 +10:00
Nyall Dawson
54434a6f41 Allow double-clicking items in data source select dialog to choose them 2019-06-13 04:56:45 +10:00
Matthias Kuhn
40b3e82886 Add missing sip file 2019-06-11 21:12:19 +02:00
Matthias Kuhn
a9e3950841
Merge pull request #30079 from olivierdalang/fix_cad_graphical_glitches
[cad] fix graphical glitches
2019-06-11 17:38:46 +02:00
Larry Shaffer
018df8c129
Fix WFS connection's version Detect button, which did not support auth
Adds QgsNewHttpConnection protected member to access auth settings
2019-06-06 10:41:58 -06:00
Nyall Dawson
87d2d9e824 Fix inverted polygon renderer widget not opening colors and other
panels inline in style dock
2019-06-05 04:00:58 +10:00
olivierdalang
da4a8d24ef [cad] fix graphical glitches 2019-06-04 11:29:04 +02:00
Nyall Dawson
788ee78d74 Sip update 2019-05-30 06:28:32 +10:00
Nyall Dawson
dac7259b46 [needs-docs] Rework new project CRS handling
The previous approach was severely broken, because the default
CRS for new projects setting was ignored as soon as a layer
was added to the project.

Instead, refine the setting to add options
- "Use CRS from first layer added": same as previous behavior,
the project CRS is set to match the first layer added to a new
project
- "Use a default CRS": CRS for a new project is set to a preset
default CRS, and is left unchanged when adding layers to the
project

Also update qgis_global_settings.ini to reflect these changes.

Fixes #27516
2019-05-30 06:28:32 +10:00
Denis Rouzaud
09126ded98
make flashing independent from panning/zooming in attribte table in attribute editor mode (#29955) 2019-05-26 22:21:10 -05:00
Denis Rouzaud
f0f0790777
move QgsHighlight style setting in a static method (#10064) 2019-05-23 07:56:49 -05:00
Nyall Dawson
7e78874807 Fix rule based label/symbol renderers reset max scale for rules to
1:100000

And improve dox

Fixes #21845
2019-05-23 12:55:33 +10:00
Alessandro Pasotti
2b14dacd51 Fix identify on map in relation reference widget
Fixes #22071 - Relation reference widget wrong feature when "on map identification"
2019-05-21 19:09:18 +02:00
nirvn
7132cf3b2e [ui] Improve UX by adding an original source label when changing / updating layer data source 2019-05-20 14:25:55 +07:00
Matthias Kuhn
d03714b0c7 Use SIP_FORCE 2019-05-19 09:47:55 +02:00
Matthias Kuhn
03faaa3e0f
Merge pull request #9988 from olivierdalang/cad-floater-squashed
floating widget for advanced input next to the cursor
2019-05-19 09:29:43 +02:00
Bas Couwenberg
2628c480c5 Don't include revision in sources.
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
olivierdalang
1e5d2f0b74 (trying to fix travis build) 2019-05-15 19:56:02 +02:00
olivierdalang
5b6dd73949 add missing docstring
with sip_include.sh
2019-05-15 18:09:27 +02:00
olivierdalang
4163be67cf unstable API notice 2019-05-15 14:33:21 +02:00
Denis Rouzaud
c0a0f7d6c9 add first/last buttons 2019-05-15 06:52:08 -05:00
Denis Rouzaud
f680466bf7 [FEATURE] add toolbar in attribute table to browse feature list
arrows allow browsing the feature list in the attribute table in form view
the current edited feature can be highlighted and the map canvas automatically panned or zoomed
2019-05-15 06:52:08 -05:00
olivierdalang
d32a319d2f prepare commit & coding style 2019-05-15 13:30:29 +02:00
olivierdalang
d6ac603556 [FEATURE][needs-docs] add a floater showing advanced input editlines next to the mouse
Sponsored by Kanton Schaffhausen in collaboration with OPENGIS.ch
2019-05-13 14:25:31 +02:00
Nyall Dawson
1d258d53c6 Nicer behaviour of QgsCharacterSelectorDialog 2019-05-02 20:38:21 +10:00
Nyall Dawson
243acb328f Dynamically set number of columns to show in character widget
based on widget width, and avoid unnecessary horizontal scroll bar
2019-05-02 15:13:38 +10:00
Nyall Dawson
ffe02c37b6 Allow QgsScrollArea to maintain horizontal width of area for
child widgets, and apply scroll area to vertical contents only
2019-05-02 15:13:38 +10:00
nirvn
3747cf7870 [FEATURE][symbology] Unlock string as character for font markers 2019-04-30 18:32:03 +07:00
nirvn
dc7bfc5cd3 [FEATURE][ui] Add a line edit to type character for the font marker
The line edit also supports pasting of unicode code in decimal or
hexadecimal format (i.e. 123 or 0x2713).

In addition, the character widget now grabs the keyboard
focus and will change the selected character based on
key stroke.
2019-04-30 15:42:20 +07:00
Nyall Dawson
1d80fe8a19 Review comments 2019-04-30 14:43:58 +10:00
Nyall Dawson
ec4cfed694 Fix broken see link 2019-04-30 14:43:58 +10:00
Nyall Dawson
3f4c3d0722 Add widget and dialog for finding files by pattern match, with an
optional recursive search
2019-04-30 14:43:58 +10:00
Nyall Dawson
8d180c1e8a [needs-docs] Tweak custom dash button appearance
- remove "Change" label and replace with larger dash preview icon.
The "change" text is unnecessary and adds to dialog clutter, better
to use the space for a wider preview icon (especially given that
the previous narrow icon never really showed enough of the pattern
to be useful!)

- don't offset the line in the preview if the symbol has an offset
set

- respond correctly to dash pattern, line width unit changes, cap
style changes

- show a nice big preview tooltip on hover
2019-04-30 12:29:31 +10:00
Mathieu Pellerin
cd5642aca0 [FEATURE] Make the custom dash pattern dialog a style dock widget 2019-04-28 15:33:48 +07:00
Martin Dobias
60572ac4d4 [3d] Fix unnecessary terrain map updates when changing 3D renderer
When using layer styling dock, every change in 3D rendering configuration
was also triggering update of 2D map which also forces update of all
terrain tile textures with a new 2D map which wasn't really needed.
The fix makes the triggerRefresh() call on layer optional - each layer
styling dock config widget can tell whether its updates require 2D map
refresh (true by default).
2019-04-21 21:01:01 +02:00
Matthias Kuhn
2bb049ecd1
Code modenization 2019-04-05 11:25:30 +02:00
Denis Rouzaud
81cfde2ff5
forward declaration of unique_ptr (#9708) 2019-04-04 15:44:58 -05:00
Nyall Dawson
f8f319b6e0 Fix dox 2019-04-03 02:31:27 +10:00
Nyall Dawson
48d2a37057 [FEATURE] New line symbol type: Hash line
This line symbol type is designed to replicate the ArcGIS Hash Line
symbol layer type. It allows for a repeating line segment to be
drawn over the length of a feature, with a line-sub symbol used
to render each individual segment.

To reduce code duplication, this is heavily based off the current
line marker symbol layer, since the functionality is almost
identical (draw some sub symbol at some interval along a line).
Accordingly, I've split off QgsMarkerLineSymbolLayer to move
as much of the common functionality as possible to a new abstract
base class, so that only the actual marker/line segment rendering
occurs in the marker line/hash line subclasses.

This also gives the hash line all the existing placement options
permissible for marker lines -- e.g. first/last vertex, mid points,
regular intervals, etc.

The hash line length and angle can have data defined overrides,
which are evaluated per-line segment, allowing for the hash line
to change size and angle over the length of a single rendered
feature.
2019-04-03 02:31:27 +10:00
Denis Rouzaud
60682885c0
Small tweak to enum Python docs (#9631)
original credits to @nyalldawson
2019-03-26 14:00:37 -05:00
Denis Rouzaud
f000956e86
Merge pull request #9437 from 3nids/maplayertype_enum
create scope based enum for QgsMapLayer::LayerType >> QgsMapLayerType
2019-03-26 10:28:34 -05:00
Denis Rouzaud
38c2d4a03d fix dox for unnested enums 2019-03-24 21:40:33 -05:00
Denis Rouzaud
375a0aa253 create scope based enum for QgsMapLayer::LayerType >> QgsMapLayerType
the enum is moved out of the class
this will allow forward declaration more easily since the enum is not nested in the class
2019-03-24 21:40:33 -05:00
Alessandro Pasotti
b06103f140 Added missing SIP files and headers
Also fixes context evaluation before html is updated
2019-03-23 17:24:02 +01:00
Alessandro Pasotti
b165258e6d [feature][needs-docs] HTML form widget
Shameless clone of QML widget, with some webview quirks.

Funded by ARPA Piemonte
2019-03-23 16:41:16 +01:00
Nyall Dawson
fc4d9b8f78 Remove dead code 2019-03-22 15:38:11 +10:00
Nyall Dawson
16a64ed84d Deprecate some methods, dox++ 2019-03-22 12:16:22 +10:00
Nyall Dawson
1dc447e1f2 Dox++ 2019-03-21 12:44:16 +10:00
Nyall Dawson
eab08d006c Do not allow CRS changes in datum transform dialog when it has
been shown as a result of requiring the transform for a specific CRS pair

Sponsored by ICSM
2019-03-19 13:32:13 +10:00