385 Commits

Author SHA1 Message Date
Nyall Dawson
cd54d6a355 New GUI control for an editable list of colors from a color scheme.
Supports drag and drop reordering, drag and drop colors from external
apps (on supported OS).
2014-08-16 16:28:31 +10:00
Nyall Dawson
b3dbe74155 Hide color schemes from color button menu if they contain no colors 2014-08-14 17:57:22 +10:00
Denis Rouzaud
71d7445c83 use flag instead of enum 2014-08-14 08:33:25 +02:00
Juergen E. Fischer
a2a66eabfd doxygen fixes 2014-08-13 19:15:24 +02:00
Denis Rouzaud
b88723d069 availibilty definition for map layer actions 2014-08-13 14:32:21 +02:00
Nyall Dawson
bfff4bd6b2 [FEATURE] New version of color button (QgsColorButtonV2) based off
QToolButton. Features:
- context menu items have been moved to the attached menu button
- new gui widget QgsColorSwatchGrid, which displays a grid of colors
- new class for QgsColorScheme, which generates colors to show in a
  color swatch grid
- new class QgsColorSchemeRegistry, with a global instance containing
  default color schemes. QgsColorButtonV2 accepts a color scheme
  registry, to control which schemes to show in the popup menu as
  color swatch grids.
- color button can have a default color
- color button can also be quickly set to a totally transparent color
- c++ and python unit tests for all core components
2014-08-11 20:37:52 +10:00
Matthias Kuhn
f63a01cc7c Fix memory leak and pass ownership of py editor widgets to C++ 2014-08-03 18:49:02 +02:00
Nyall Dawson
d0e9d8d126 [FEATURE][composer] Allow specifying user stylesheets to apply to a HTML item's content 2014-07-27 22:18:45 +10:00
Denis Rouzaud
a9289b6a90 can re-center when scaling mapCanvas extent 2014-07-25 14:28:11 +02:00
Juergen E. Fischer
62e59c896f fix saving of edittype configuration and remove redundant storage of labelontop
and editable state.
2014-07-24 19:07:28 +02:00
Juergen E. Fischer
3988ad0f63 make sip bindings to qscintilla derived classes optional (replaces 7e815cad & 8f0b8987) 2014-07-23 19:03:42 +02:00
Juergen E. Fischer
7e815cad76 debian packaging update with workaround for debian #755491 2014-07-21 14:31:21 +02:00
Nathan Woodrow
ea7343e0de Comment sip files for code editor to fix build error on ubuntu 2014-07-21 21:56:05 +10:00
Nathan Woodrow
a3447dd9a3 Add missing HTML editor sip files 2014-07-20 22:16:20 +10:00
Nathan Woodrow
b2ff71868a Clean up code editor code and API. Add tr() and fix spelling.
Moved show/hide folding and margin methods to base class.
2014-07-16 22:51:27 +10:00
Nathan Woodrow
a284c4e0d1 Code editor 2014-07-12 22:27:52 +10:00
Nyall Dawson
33b5e8ce1b [FEATURE] Color picker option in color button context menu, which allows for sampling a color from anywhere on the screen. Supports holding the left mouse button to continuously sample. Pressing space also triggers a sample for Windows, where mouse clicks outside the QGIS window are unavoidably propagated onward. 2014-07-08 15:48:03 +10:00
Denis Rouzaud
c80bae57be setExpression returns void 2014-06-23 08:58:28 +02:00
Juergen E. Fischer
71c15f0639 show failure to create a new shapefile on message bar and point to message log (fixes #6709) 2014-06-21 21:53:16 +02:00
Nathan Woodrow
0defbeb049 Disable return to run field calc til 2.6. Disable button on invalid expression 2014-06-19 21:46:22 +10:00
Martin Dobias
1e94fd5dfd Do not show tooltips from message log viewer during QGIS startup.
Showing them leads to disturbing effects while loading the GUI
2014-06-17 20:28:56 +07:00
Martin Dobias
eb6a45c454 [layertree] Fix #10449 (auto-collapse layer if symbology has >= 10 items) 2014-06-17 14:57:32 +07:00
Martin Dobias
aa09c8cbe6 Fix #10392 (ellipsoid for measurement keep getting reset) 2014-06-16 15:02:26 +07:00
Juergen E. Fischer
03475be523 fix build error and update sips 2014-06-14 11:47:05 +02:00
Martin Dobias
559b810ef4 [layertree] Add sip/PyQt subclassing code for model and view 2014-06-13 18:19:15 +07:00
Martin Dobias
2e39e602a2 [layertree] respect bold font settings for layer/group 2014-06-13 18:04:08 +07:00
Juergen E. Fischer
a715ce6d88 datum transformation selection:
* respect the 'auto enable otf' setting
* don't ask if otf is off or for layers without geometry
* ask when otf was switched on
* show more information in selection dialog
2014-06-09 19:12:57 +02:00
Denis Rouzaud
f380df1cd7 FieldExpressionWidget: add tooltip if expression is larger than widget 2014-06-06 08:53:13 +02:00
Martin Dobias
cf4393e0e7 [layertree] Add Python bindings - part two (gui) 2014-06-03 19:27:28 +07:00
Nyall Dawson
a50719b7e9 [composer] Setting the composition for a composer view correctly creates item widgets and sets up connections for composer to composition (fix #10038) 2014-06-03 21:23:43 +10:00
Juergen E. Fischer
45c0be1059 sip: remove enum constants 2014-06-02 21:52:02 +02:00
Martin Dobias
1c0ccb7e72 Show busy indicator while rendering in map canvas 2014-06-02 13:26:57 +07:00
Juergen E. Fischer
c4c131ef75 sip sync 2014-05-27 23:32:42 +02:00
Juergen E. Fischer
a168b9031b sip sync and indentation update 2014-05-24 20:37:36 +02:00
Martin Dobias
ff3cf0a9ad Fix SIP bindings 2014-05-24 12:00:44 +07:00
Martin Dobias
0775a89ed5 Merge pull request #1380 from Oslandia/mask_renderer
[FEATURE] Inverted polygons renderer
2014-05-24 11:26:41 +07:00
Hugo Mercier
66ac1eda38 Inverted polygons renderer: add SIP 2014-05-23 19:56:18 +02:00
Matthias Kuhn
ea91b6fe4a [FEATURE] Port editor widgets to new API
Create a new widget for for attribute form

fix #10281
fix #7319
fix #7013
fix #9335
fix #4417
2014-05-22 22:50:36 +02:00
Martin Dobias
4988bc503a Add the missing SIP stub file 2014-05-22 01:09:14 +07:00
Martin Dobias
b2a4c765b4 [FEATURE] Merge of legend refactoring work
This replaces the existing tree widget implementation with more modular approach. In summary:
- tree hierarchy in CORE library: QgsLayerTreeNode, QgsLayerTreeLayer, QgsLayerTreeGroup
- model/view based tree view: QgsLayerTreeModel, QgsLayerTreeView
- tree synchronization with map layer registry: QgsLayerTreeRegistryBridge
- controlling of map canvas: QgsLayerTreeCanvasBridge

Conflicts:
	src/ui/qgisapp.ui
2014-05-21 23:37:58 +07:00
Nyall Dawson
d83ef3fe3a [FEATURE] Allow dragging and dropping colors from color buttons (also works with some other applications, eg dropping colors from GIMP or Gpick). Tweak color button context menu to remove extra options. 2014-05-22 00:48:35 +10:00
Nyall Dawson
af7af6c26a [FEATURE] Add option to use colour preview modes (grayscale, colour blindess) in map canvas (fix #9886) 2014-05-21 23:30:21 +10:00
Denis Rouzaud
8485b9ce6f set layer scale visibility for several layers 2014-05-21 14:49:08 +02:00
Martin Dobias
c9f9ea8985 Added layerTreeView() to QgisInterface, moved context menu provider to new file 2014-05-21 14:49:32 +07:00
Nyall Dawson
f31e637ed1 [FEATURE] Add right click menu to color buttons, allowing copying and pasting colors. Pasting colors accepts clipboard text in a variety of common formats, including hex and css style rgb and rgba strings. 2014-05-20 21:35:21 +10:00
Denis Rouzaud
986ffd66f8 collapsible gpbox: scroll on expand property accessible 2014-05-20 10:13:48 +02:00
Nathan Woodrow
0ff49856e6 Create Python package for core, gui, analysis, networkanalysis
Rename sip generated modules to _{name}
2014-05-19 22:26:02 +10:00
Denis Rouzaud
aa7085194d custom widgets: added color and data defined buttons, missing SIP for scale range and fix flags for field combo / expression widget 2014-05-19 11:50:28 +02:00
Denis Rouzaud
a5b77b9b0e Merge pull request #1325 from 3nids/qtdesignerplugin
QGIS custom widgets plugins for Qt Designer
2014-05-19 08:30:53 +02:00
Juergen E. Fischer
bbdf7cd220 sync some sip bindings 2014-05-18 15:22:32 +02:00