64 Commits

Author SHA1 Message Date
Martin Dobias
6891aae19a Use QgsLayerTreeModel as a source of data for legend rendering instead of QgsLegendModel
This is work in progress, customization of legend is not working yet
2014-09-01 10:10:36 +07:00
Denis Rouzaud
4588d9bd6c new map tool to select single feature 2014-08-19 08:34:02 +02:00
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
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
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
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
a284c4e0d1 Code editor 2014-07-12 22:27:52 +10:00
Martin Dobias
cf4393e0e7 [layertree] Add Python bindings - part two (gui) 2014-06-03 19:27:28 +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
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
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
Juergen E. Fischer
bbdf7cd220 sync some sip bindings 2014-05-18 15:22:32 +02:00
Denis Rouzaud
09a9a6171a field proxy model to filter fields on their type (also fix #10181) 2014-05-12 14:20:45 +02:00
Denis Rouzaud
760f835129 expression button and expression capability added to the field model 2014-05-02 07:56:33 +02:00
Denis Rouzaud
8b06a16a75 model/view for layer/field selectors 2014-04-03 14:51:26 +02:00
Juergen E. Fischer
100f9729ad add GUI_EXPORT and sip bindings to QgsExtentGroupBox,
fix sip binding of QgsRasterLayerSaveAsDialog
2014-03-04 15:49:04 +01:00
Juergen E. Fischer
74e7314c36 update sip bindings II 2014-01-27 09:22:53 +01:00
Nyall Dawson
85a17c246a Add QgsMapLayerAction and QgsMapLayerActionRegistry, which can be
used as a generic api for registering actions which can apply to
a specific map layer or layer type.

Create a QgsMapLayerAction for setting features as the current
atlas feature for compositions.

This work was kindly sponsored by SIGE (www.sige.ch).
2014-01-20 21:35:56 +11:00
Matthias Kuhn
fb32966932 Move addFeature, startEditing and stopEditing vector layer actions
to an abstract base class QgsVectorLayerTools in the gui library,
so these can be reimplemented for a custom app, but can also be used
from plugins or in the gui library.
2013-10-07 16:17:42 +02:00
Matthias Kuhn
331f71acba [attrtable] Selection model and request filter
* With a selection model, the way the attribute table handles selections
  can be customized. E.g. synchronized to layer selection or used to pick
  features.
* With request filters, the visible features on an attribute table can be
  limited. This will effectively reduce the subset of features the attribute
  table works on. Additional filters by means of a proxy model can of course
  further reduce the visible subset subsequently.
2013-10-07 16:17:42 +02:00
Matthias Kuhn
770e52b0e5 Modularize editor widgets 2013-09-26 16:06:29 +02:00
Denis Rouzaud
45aa1dafa7 more complete QgsMessageBarItem: inherits from QWidget to allow further editing 2013-08-16 00:02:31 +10:00
Juergen E. Fischer
99f998aa30 - add missing sip bindings
- port widgets_tree.py to QtXml and update customization.xml (fixes #5752 and  #8054)
2013-06-22 19:41:34 +02:00
Nathan Woodrow
61e101dd4f Allow keyword args in Python classes. Fix sip headers 2013-06-10 09:22:12 +10:00
Borys Jurgiel
55fd57ee25 New Plugin Manager 2013-06-05 21:32:08 +10:00
Juergen E. Fischer
34ef14acb0 add missing sip bindings to QgsSublayersDialog 2013-05-29 01:31:14 +02:00
Nathan Woodrow
7f903ee63a Add binding for QgsAttributeDialog 2013-04-24 09:41:22 +10:00
Martin Dobias
fa904dcebc Removed QgsQuickPrint class 2013-04-07 23:46:56 +02:00
Larry Shaffer
25f067c9ff Move busy indicator dialog out of composer and into own gui class 2013-03-27 18:17:50 -06:00
Matthias Kuhn
33fa1d5443 Major redesign of attribute table, codename: dual view 2013-03-27 10:54:36 +01:00
Larry Shaffer
c966dbf69b [FEATURE] Update QgsColorButton to offer live color chooser updates and show transparent checkerboard background
- Add option to Options for live color chooser support (QgsColorDialog)
- Add ability to define whether QgsColorButton accepts live updates (default: true)
- Move QgsColorButton to single subclass of QPushButton
- Show different button types relative to whether button has text
- Add transparent checkerboard background for chosen colors with alpha < 255
- Fix triple-modal window issue for Mac (with regards to using native color dialog)

- Composer item frame now supports transparency
- Composer item background transparency support moved to color dialog
- Composer composition grid now supports transparency
2013-03-21 12:42:24 -06:00
Denis Rouzaud
682524ff54 MapToolIdentify moved to gui to make it accessible in python
put back convertMeasurement in gui as it is not app specific

use display settings for specific app units
2013-02-05 19:57:42 +10:00
Alexander Bruy
8694cb8cd5 [FEATURE] add lineedit with builtin clear button 2012-11-02 19:13:31 +02:00
Juergen E. Fischer
7f08c3724d enable more gui sip bindings 2012-09-24 23:53:58 +02:00
Juergen E. Fischer
f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00
Nathan Woodrow
ac2fcb2de5 Add python bindings message bar 2012-09-04 18:15:07 +10:00
Etienne Tourigny
c998ee4ac5 add qgsrasterformatsaveoptionswidget to sip and cleanup names ; better hack for mOptionsLabel click 2012-07-24 01:33:06 -03:00
Alexander Bruy
b30f2b65b6 move map scale selector to QgsScaleComboBox class. Highlight nearest
value to the current scale when open selectors popup
2012-01-10 15:50:48 +02:00
Juergen E. Fischer
3c63643f28 add bindings for QgsQueryBuilder 2011-09-08 23:16:28 +02:00
jef
71c6454e95 fix #2554:
- apply heavy modified patch from sunil.
- introduces QgsFieldValidator including sip bindings
- add missing sip bindings to QgsAttributeEditor


git-svn-id: http://svn.osgeo.org/qgis/trunk@15566 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-03-22 23:18:06 +00:00
jef
de036843d3 move QgsSearchQuery builder from app to gui
git-svn-id: http://svn.osgeo.org/qgis/trunk@14867 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-12-08 17:38:01 +00:00
mhugent
7ba75be847 [FEATURE]: text and form annotation tools are now in gui and app
git-svn-id: http://svn.osgeo.org/qgis/trunk@13189 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-03-29 12:11:48 +00:00
wonder
eefb4baa81 PyQGIS: added QgsColorButton and QgsColorButtonV2
git-svn-id: http://svn.osgeo.org/qgis/trunk@12771 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-01-15 23:55:23 +00:00