100 Commits

Author SHA1 Message Date
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
wonder
94317ce545 [FEATURE] Applied patch from Andres Manz from #2185
Adds QgsLegendInterface class to GUI library to allow users to do some operations with groups.


git-svn-id: http://svn.osgeo.org/qgis/trunk@12359 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-07 21:03:45 +00:00
wonder
4bb5cad2cc Change in handling of missing layers within QgsProject. Instead of throwing an exception, now a custom handler is called
that might try to fix the missing layers. There's a default handler (QgsProjectBadLayerDefaultHandler) which simply ignores
all missing layers. Then there's a GUI handler (QgsProjectBadLayerGuiHandler) in GUI library which asks user about
the path for missing layers. QGIS application automatically installs the GUI handler on startup.

This should allow python plugins/applications to work with QgsProject without a fear of a segfault as there are no more
exceptions thrown during load/save of the project files.

Some further notes:
- removed QgsProjectBadLayerException class and (now empty) qgsexception.cpp file
- openFilesRememberingFilter() moved to QgisGui namespace (was duplicated: QgisApp vs QgsOpenVectorLayerDialog)
- removed deprecated buildVectorFilters_ methods
- added python bindings for new classes/methods


git-svn-id: http://svn.osgeo.org/qgis/trunk@12350 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-07 17:14:41 +00:00
wonder
961742e243 Symbology-NG branch merged to trunk. This includes also work on labeling done during my GSoC'09.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12139 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-16 10:36:24 +00:00
wonder
62d01abe74 PyQGIS: wrapped QgsMapTip and QgsRunProcess.
git-svn-id: http://svn.osgeo.org/qgis/trunk@10557 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-04-13 12:29:59 +00:00
mhugent
f7fd50ffa4 Python bindings for composer classes
git-svn-id: http://svn.osgeo.org/qgis/trunk@10244 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-02-27 13:57:26 +00:00
jef
bb61177a46 revert accidental commit
git-svn-id: http://svn.osgeo.org/qgis/trunk@10239 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-02-25 20:58:19 +00:00
mhugent
0baa9349ea saver string list handling
git-svn-id: http://svn.osgeo.org/qgis/trunk@10236 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-02-25 19:15:23 +00:00
wonder
43bf222968 - QgsSnapper: use one list of QgsSnapper::SnapLayer structs rather than three separate lists
- PyQGIS: finished QgsSnapper binding, added QgsMapCanvasSnapper


git-svn-id: http://svn.osgeo.org/qgis/trunk@9657 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-17 17:20:21 +00:00
timlinux
aa896df17a Various changes relating to projection selector: Renamed QgsLayerProjectionSelector to QgsGenericProjectionSelector so that it can be used in other contexts too. Added setSelectedEpsg call to projection selector. Added setMessage() call to generic projection selector. Updated python bindings accordingly.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9011 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-07 00:16:37 +00:00
wonder
6961f567d1 Wrapped QgsEncodingFileDialog
git-svn-id: http://svn.osgeo.org/qgis/trunk@8204 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-03-11 21:51:18 +00:00
timlinux
c0cc6ebce9 Python bindings for quickprint and change print method to printMap
git-svn-id: http://svn.osgeo.org/qgis/trunk@7987 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-17 01:00:18 +00:00
wonder
57b59ae9c7 removed QgisPlugin from the bindings (not used anyway)
git-svn-id: http://svn.osgeo.org/qgis/trunk@7895 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-09 22:40:21 +00:00
wonder
9289a37f56 Added QgsMapToolEmitPoint which emits a signal when a point on map canvas is clicked.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6989 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-06-09 10:54:46 +00:00
wonder
46a2d125a2 Merged refactoring branch back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00