Carl Simonson
690e7b096d
Remove include of QtGui in favor of individual includes
...
The reason for removing instances of "#include <QtGui>" is twofold:
1) Including it will probably include more than is actually needed. Plus,
it hide what is actually needed, especially if in a header
2) Qt 5 splits Gui into Gui and Widgets, so being explict about what is
needed gets around this problem
2014-03-16 12:18:43 -05:00
Martin Dobias
db29ebcffb
Fix #9376 (crash when sorting attribute table with no attributes)
2014-02-10 11:35:37 +07:00
Matthias Kuhn
d378f942a5
[attrtable] No checks when the model is not based on a request
...
Huge speedup
Fix #9315
2014-01-30 22:30:09 +01:00
Matthias Kuhn
3ba33d73fb
[attrtable] Only update table at the end of an edit command
...
Fix #9315
2014-01-30 22:30:09 +01:00
Matthias Kuhn
5f1c8f4980
[attrtable] Don't update sort column cache when unaffected
...
Fix #9424
2014-01-29 22:33:26 +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
Juergen E. Fischer
ccde424dc1
reduce debugging noise in attribute table ( fixes #9315 )
2014-01-10 00:51:02 +01:00
Matthias Kuhn
c0b8e9abdf
[attrtable] Minimize feature requests on load ( Fix #8851 )
2013-11-15 15:43:41 +01:00
Matthias Kuhn
38030fdb93
[attrtable] Be less verbose by default in debug mode
2013-11-14 17:21:46 +01: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
Juergen E. Fischer
814ae4c781
fix data retrieval in attribute table from geometryless spatialite tables
2013-09-30 13:34:34 +02:00
Matthias Kuhn
0c90f32007
QgsFeatureRequest: New filters FilterExpression and FilterFids
2013-09-18 18:57:52 +01:00
Matthias Kuhn
16f24112f5
[attrtable] Dismiss cached data when column is removed ( Fix #8405 )
2013-08-08 12:20:54 +02:00
Matthias Kuhn
a98ffed2c6
[attrtable] Fix column synchronization
...
Columns have been missing, after removing all columns and readding them
2013-05-18 16:25:59 +02:00
Matthias Kuhn
142223b901
[ Fix #7698 ] Attributetable crashes on close when valuemap is used
2013-05-13 11:06:35 +02:00
Matthias Kuhn
31cecdbc51
Fix attributetable and vectorlayercache
...
* In the attributetable there was a mess with references and pointers, originating from 66fadee8ef.
* QgsVectorLayerCache did sometimes cache features which did not contain all information which needs to be cached and therefore corrupting the cache and leading to incomplete cache hits.
* Add a unit test for the cache problem
* Fix QgsCacheIndexFeatureId
* QgsAbstractCacheIndex::getCacheIterator now produces a QgsFeatureIterator (instead of a list of Feature Ids). This allows to combine a mixed response, partly satisfied by the cache and partly by an additional query to the backend.
2013-04-19 10:59:11 +02:00
Matthias Kuhn
66fadee8ef
[ FIX #7609 ] Fetch and cache data for sorting column in one query
2013-04-18 15:18:02 +02:00
Matthias Kuhn
268c03745f
[ Fix #7597 ] Attribute Table: Reintroduce locale aware sorting
2013-04-15 18:17:32 +02:00
Juergen E. Fischer
cb6b9515cd
fix crash on close in attribute table (layer cache already destroyed when model dtor is called)
2013-04-15 17:25:23 +02:00
Matthias Kuhn
7c69ec1a28
Add updateFields() signal, so adding of joined fields is communicated
...
attributeAdded and attributeDeleted signals are only emitted for "real" fields
and not for "virtual fields" as in joined fields. Therefore this signal should
be used instead to keep track of these
2013-04-15 09:54:19 +02:00
Juergen E. Fischer
a51fd5f0ce
indentation update
2013-04-15 07:16:20 +02:00
Matthias Kuhn
47c10db1fe
[ FIX #5525 ] Attribute table performance for large tables
...
The selection handling performance has been improved a lot
Introduces also more detailed signalling of selection change from QgsVectorLayer
2013-04-13 17:43:11 +03:00
PhilippeDorelon
6d6021558b
Update qgsattributetablemodel.cpp
2013-04-11 08:52:10 -03:00
Matthias Kuhn
9c9dd2b4cd
[ FIX #7530 ] Attribute table: Edited feature not updated in single row
...
If only a single row was shown, the outdated cached feature would be shown even
when the attribute behind it was edited.
2013-04-08 15:38:08 +02:00
Jürgen Fischer
e3155706b0
Merge pull request #498 from matthias-kuhn/feature-request-no-geom
...
[FIX] Show attribute table for layers without geometry
2013-04-03 01:45:15 -07:00
Matthias Kuhn
1de8c76450
[FIX] Show attribute table for layers without geometry
...
And add a message to the message log when an iterator is closed due to missing geometry
2013-04-02 18:25:39 +02:00
Juergen E. Fischer
2b0d3e705d
vector cache: don't try to request geometries, if there aren't any
2013-04-02 17:52:04 +02:00
Jürgen Fischer
d1825ece2a
Merge pull request #482 from matthias-kuhn/fix-7379
...
Fix issue #7379 : Crash when attribute table is closed after layer has be...
2013-03-27 10:45:42 -07:00
Matthias Kuhn
f28f13cd24
Fix #7459 : Sorting of attribute table takes type into account
2013-03-27 16:41:16 +01:00
Matthias Kuhn
9aea6adc0e
Fix issue #7379 : Crash when attribute table is closed after layer has been deleted
2013-03-27 13:53:13 +01:00
Juergen E. Fischer
1b54e1ff87
indentation update
2013-03-27 11:00:34 +01:00
Matthias Kuhn
bb360b8114
Fix rebase problems
2013-03-27 10:55:07 +01:00
Matthias Kuhn
33fa1d5443
Major redesign of attribute table, codename: dual view
2013-03-27 10:54:36 +01:00
Marco Hugentobler
6361d19f43
Format number strings with field precision for display in attribute table, attribute dialog and editor
2013-03-16 16:52:11 +01:00
Juergen E. Fischer
2c4ac0807b
[FEATURE] attribute editing extension
...
- allow resetting of fields to NULL by button
- use user defined date formats in forms, identify results and attribute table
- add support for date type in postgres provider
2013-03-13 23:35:07 +01:00
Juergen E. Fischer
ba2082ef86
[FEATURE] allow filter expressions in value relations (and fix display of related values and value maps in attribute table)
2013-02-10 23:08:40 +01:00
Juergen E. Fischer
cb7f7bfd8b
indentation update
2013-02-07 01:09:39 +01:00
Juergen E. Fischer
b4a6a83bb1
fix attribute table for new vector api
2013-01-30 16:43:51 +01:00
Juergen E. Fischer
dc728f6c39
update calls to new api
2013-01-29 01:58:32 +01:00
Juergen E. Fischer
0ccff602e2
port oracle provider to new_vector_api
...
+ progress dialog in progress dialog
+ fix for feature form from attribute table
2013-01-23 01:11:14 +01:00
Juergen E. Fischer
4923c30d73
[FEATURE] add oracle provider
2013-01-22 21:42:49 +01:00
Martin Dobias
9317ffd89a
Merge remote-tracking branch 'origin/master' into new_vector_api
...
Also disabled mapserver until compilation is fixed.
Fixed tests.
Conflicts:
src/app/legend/qgslegendlayer.cpp
src/app/qgsattributedialog.cpp
src/app/qgsattributedialog.h
src/app/qgslabelpropertydialog.cpp
src/app/qgsmaptoollabel.cpp
src/app/qgsvectorlayerproperties.cpp
src/core/CMakeLists.txt
src/core/composer/qgsatlascomposition.cpp
src/core/qgsexpression.cpp
src/core/qgspallabeling.cpp
src/core/qgsvectorlayer.cpp
src/core/qgsvectorlayer.h
src/core/qgsvectorlayerimport.cpp
src/mapserver/qgsprojectparser.cpp
src/mapserver/qgswfsserver.cpp
src/mapserver/qgswfsserver.h
src/mapserver/qgswmsserver.cpp
src/providers/postgres/qgspostgresprovider.cpp
src/providers/spatialite/qgsspatialiteprovider.h
tests/src/core/testqgsexpression.cpp
tests/src/python/test_qgsmemoryprovider.py
2012-12-18 01:35:06 +01:00
Juergen E. Fischer
42104d7f3d
show filled attribute table again (partly reverts 779e16603)
2012-11-01 22:54:43 +01:00
Radim Blazek
779e16603e
make attribute table and identify consistent with map canvas
2012-10-26 18:29:53 +02:00
Martin Dobias
51122d263a
Store attributes and fields in vectors instead of maps
2012-10-20 22:19:55 +02:00
Martin Dobias
8bf959093f
QgsFeature: use a vector of attributes instead of a map (for faster access)
2012-10-19 00:31:03 +02:00
Juergen E. Fischer
5ae312cfad
add 'foreach' to astyle and re-run indentation
2012-08-03 06:57:11 +02:00
Juergen E. Fischer
40dc7df7d7
fix #5905
2012-06-29 21:33:59 +02:00
Juergen E. Fischer
6b9d5a72c6
fix warnings and indentation
2012-06-15 18:48:56 +02:00
Juergen E. Fischer
7e6924820d
fix #5523
2012-06-12 01:14:45 +02:00