29 Commits

Author SHA1 Message Date
Nyall Dawson
1429f2c778 Remove autoconnected slots, pt 2 2017-10-09 08:48:23 +10:00
Nyall Dawson
2d192791c2 qMin/qMax -> std::min/max 2017-08-25 16:37:54 +10:00
Denis Rouzaud
dccf8c9e13 run astyle on src/app 2017-03-03 09:09:37 +01:00
Denis Rouzaud
3d3856580f Qt 5.2 has QComboBox::currentData 2017-01-16 12:06:01 +01:00
Nyall Dawson
4166a3ea62 Fix most clazy qstring-unneeded-heap-allocations warnings
By flipping string literals to QStringLiteral/QLatin1String

see

https://woboq.com/blog/qstringliteral.html
2016-10-24 15:26:24 +10:00
Denis Rouzaud
9e3183c63f Revert "sort includes"
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73 sort includes 2015-06-10 13:59:08 +02:00
Juergen E. Fischer
a3668f5853 more coverity fixes 2015-02-07 02:31:42 +01:00
Matthias Kuhn
68de043ecb Virtual fields definition moved to field calculator
This place is more appropriate than the add attributes dialog.
See also http://osgeo-org.1560.x6.nabble.com/Virtual-Fields-Allow-adding-fields-out-of-edit-mode-td5166223.html for a related discussion.

Fix #11342
2014-10-13 09:49:09 +02:00
Matthias Kuhn
bed164e70c Allow usage of virtual fields also for layer w/o add attribute support
Fix #11168
2014-10-06 10:25:02 +02:00
Matthias Kuhn
c255823268 Sanity checks in add attribute dialog 2014-07-24 17:18:31 +02:00
Matthias Kuhn
1395367e58 [FEATURE] Expression field (Virtual field) 2014-07-24 08:57:21 +02:00
Carl Simonson
665f0a32fe Replace WFlags with WindowFlags
It has long been in Qt 4 that the WFlags window flags argument has been
renamed to WindowFlags. In fact, WFlags is just a typedef to WindowFlags.
In Qt 5, this will go away, so we can change this now to make transition
easier in the future.

This should not have any affect on API or ABI, as the symbol names already
have WindowFlags in them anyway.

This change concentrates on the sources in the src directory. There are
a few more places in the python directory that can be done later.
2014-03-27 10:43:11 +01:00
Matthias Kuhn
36d9d4bfa1 Add attribute dialog: Hide Length/Precision labels when unavailable
Fix #9259
2013-12-28 16:30:19 +01:00
Matthias Kuhn
a9c05d77cf Fix some postgres field precision and length inconsistencies 2013-08-29 16:23:02 +02:00
Matthias Kuhn
22eec4afe8 Set min field precision even when hidden (Fix #8480) 2013-08-29 13:31:14 +02:00
Juergen E. Fischer
7ccd3d0ab9 limit shapefile fieldname to 10 in fieldcalculator and add attribute dialog (fixes #8235) 2013-07-09 20:40:02 +02:00
Marco Hugentobler
69c656e5f9 Set combo box maximum for precision <= type length 2013-03-14 14:31:07 +01:00
Alexander Bruy
4629900e77 show warning when user tried to create field 'shape' in shapefile (fix #3201) 2011-12-28 13:07:08 +02:00
jef
4010b60ce3 implement #2650, #2651, #2652
git-svn-id: http://svn.osgeo.org/qgis/trunk@13311 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-04-14 16:50:56 +00:00
jef
3e01e6d3d5 - allow setting of field width and precision when adding attributes
- update vector data providers accordingly
- postgres provider:
  - add support for more native types and setting of column comments
  - catch errors on retrieval of defaults values (fixes #1713)



git-svn-id: http://svn.osgeo.org/qgis/trunk@10863 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-30 17:48:49 +00:00
jef
4b46398bc4 astyle re-indentation & iostream=>QgsDebugMsg migration cleanup
git-svn-id: http://svn.osgeo.org/qgis/trunk@9138 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-23 21:37:31 +00:00
jef
43278d720b handling vector data geometry and attribute updates refactored
QgsVectorLayer:
  - move attribute part of editing to vector layer class and unify with geometry handling:
    * remove commitAttributeChanges(), addedFeatures(), deletedFeatureIds(), changedAttributes()
      and replace with changeAttributeValue(), deleteFeature(), addAttribute()
      and deleteAttribute()
    * add pendingFields(), pendingAttributeList(), pendingFeatureCount()
    * emit signals on start editing and commit, change of attribute values, adding/deleting of
      attributes and layer or feature removal (currently used in the attribute table)
  - new commitErrors() method to query errors from commitChanges()
  - replaced featuresInRectangle with select/getNextFeature combo
  - edit types added to support more input widgets and input constraints

QgsFeature:
  - remove update aware ctor
  - unify geometry handling in ctors

QgsVectorDataProvider:
  - add QVariant::Type to supportNativeTypes()

QgisApp:
  - add instance() method to query QgisApp object
  - replace code at various place to use it instead of passing the pointer
    arround or searching it in the widget tree.
  - move toggleEditing() code from the legend here

QgsAttributeTable/QgsAttributeTableDisplay:
  - move attribute table creation legend here
  - make attribute table dockable (from Tim)
  - most editing logic moved to QgsVectorLayer
  - adding/deleting attributes moved to QgsVectorLayerProperties

QgsIdentifyResults:
  - add support for attribute editing when it edit mode

QgsVectorLayerProperties:
  add a new tab to show attribute list:
    * start/stop editing
    * add/delete attributes
    * assign edit type to attributes (unique values, value map, ranges)

QgsAttributeDialog:
  add support for attribute edit types:
   * selection from unique value render classes (combobox)
   * selection from unique values of existing features (combobox or line edits with completion)
   * spinboxes for ranges

QgsPostgresProvider:
 - use read-only connection for cursors and read-write connection for updates
 - updated native types

QgsOgrProvider:
 - remove unused references to GEOS geometry factory
 - updated native types


git-svn-id: http://svn.osgeo.org/qgis/trunk@9092 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-20 12:15:14 +00:00
telwertowski
784ce74d40 Remove use of Qt3 support inline routines which redirect old Qt3 names to new Qt4 names. Remove USE_QT3SUPPORT from top-level CMakeLists and add it to GRASS provider/plugin CMakeLists so that all use of Qt3 names and libraries is limited to these two directories.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8630 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-09 03:30:50 +00:00
timlinux
3a19d48038 Numerous changes in GUI HIG revision:
- use buttonbox instead of free roaming buttons
 - All labels updated for consistency
 - improve alignment and layouts for unique vale, cont col, etc in vector props
 - use style sheets in vect and raster properties and update these reports so they are visually consistent with each other
 - In qgsabout clean up layout and also show addition info relating to qt db and image plugins in providers tab (which will be renamed)

Please note this work is ongoing and not the final product yet.


git-svn-id: http://svn.osgeo.org/qgis/trunk@8431 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-14 13:03:59 +00:00
mhugent
5f75690261 Only one list of typenames for data providers
git-svn-id: http://svn.osgeo.org/qgis/trunk@6843 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-29 04:40:15 +00:00
mhugent
39f11cf0b1 Fix for ticket #678: Attribute table add field, fieldtype select box is empty
git-svn-id: http://svn.osgeo.org/qgis/trunk@6831 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-03-24 15:32:25 +00:00
telwertowski
4bda397dc1 Make Add Attribute dialog modal and set parent for all dialogs in chain. This fixes incorrect layering of stacked dialogs on Mac (bug #509).
git-svn-id: http://svn.osgeo.org/qgis/trunk@6439 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-16 20:51:24 +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