3958 Commits

Author SHA1 Message Date
g_j_m
6dc7628692 Applied patch in ticket #194
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5641 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-26 10:01:09 +00:00
g_j_m
6d82951e55 Fix for ticket #146
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5640 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-26 09:46:22 +00:00
g_j_m
a343188253 Alternative fix to that in r5637 - fields that the user didn't touch
are left to the database to fill in.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5639 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-26 09:24:18 +00:00
mhugent
f0617714b5 Fixed a problem with checkboxes in the legend
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5638 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-25 19:39:28 +00:00
g_j_m
bf71f5255a If an SQL insert fails during committing new features to the database,
include the offending sql in the error dialog box.

Also fix the remaining part of ticket #131 - the code wasn't coping
correctly with blank data fields.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5637 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-25 10:35:53 +00:00
g_j_m
a031af434a Change a debugging std::cout to use the QgsLogger class
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5636 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-25 09:57:52 +00:00
g_j_m
cd4eb6e3f3 Fix a problem with an incorrect proj4 string and the associated query
to the spatial reference system database (it was never returning a
result because the proj4 string didn't have '+no_defs' on the end)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5635 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-25 09:48:28 +00:00
mhugent
424cccff51 Legend: apply overview and editing icons also to QgsLegendLayer if it has only one file. QgsOgrProvider: if a vector type is not known (e.g. for the ogr GML driver), examine the first layer feature to find out the wkb type
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5634 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-25 06:15:29 +00:00
gsherman
b6444ad02f Change to prefix in winbuild.sh; Bumped version to preview 2; Fixed error in the src/Makefile.win
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5633 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-25 05:27:24 +00:00
gsherman
3cd05ffae4 Update context_id for copyright plugin; Include updated help database
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5632 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-24 20:25:21 +00:00
gsherman
eac53d946c Script to configure Windows version of QGIS under Linux using
MingW cross compiler.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5631 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-24 17:20:14 +00:00
gsherman
b74733c561 Windows makefile for gps importer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5630 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-24 17:18:18 +00:00
g_j_m
8da5a1bbaa Add in context help for the copyright plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5629 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-24 09:22:24 +00:00
g_j_m
ea8582db9c Use the Qt4 slot for terminating a QProcess rather than the Qt3
one. Removes a console warning message.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5628 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-24 08:35:08 +00:00
morb_au
14e1c86540 Fix for trac ticket #11.
When a new WMS layer is opened and it is the first layer on the canvas, the project projection is now copied from that used when selecting that WMS layer.

Previously this was hard coded to EPSG:4326 / WGS 84.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5627 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-24 02:29:34 +00:00
morb_au
6e6c1cb3c0 Add comments to explain why r5618 only partly works as expected under Qt 4.1.0 (i.e. the branches are expanded but the selected item is not scrolled into view).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5626 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-24 02:11:34 +00:00
g_j_m
a66e2020cd Enabled substition of the Id keyword
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5625 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-23 22:00:24 +00:00
g_j_m
b8fa919d39 Applied patch in ticket #202
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5624 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-23 21:54:35 +00:00
g_j_m
3601ed4655 Tweak the tab order for the postgres new database dialog box - now
controlled by the .ui file rather than in the .cpp file


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5623 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-21 08:51:39 +00:00
gsherman
ca6c181b06 Updated context help database. New items are just stubbed in so more
content is forthcoming.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5622 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-21 05:38:11 +00:00
gsherman
196661f43d Change to use new schema in the qgis_help.db database
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5621 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-21 05:37:22 +00:00
gsherman
17d4df7750 Enabled help button for WMS dialog
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5620 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-21 05:25:12 +00:00
gsherman
372147ccb7 New context_ids for context help.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5619 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-21 05:22:38 +00:00
morb_au
6f42a275d2 Settings -> Project Properties -> Projections now shows, as selected, the current projection. Previously nothing was selected, making it difficult to determine what the current projection actually was.
This is because QgsProjectionSelector::setSelectedSRSID() now works as advertised when called externally.

It didn't work before, because setSelectedSRSID() did not make sure the tree widget was pre-populated with the projection list.

This commit is a pre-requisite to fixing #11.  This is so that we can actually perform the experiment to prove future bug fixes against #11.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5618 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-21 03:11:11 +00:00
g_j_m
d5a4a56a5a eliminate the OGR message about not being able to open a read-only
.shp file (if it is read-only, qgis then tries to open it read-only,
so the OGR error message is unnecessary).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5617 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-21 00:36:58 +00:00
g_j_m
7f9b89a6ba Use icon overlays for the editable and overview status of a layer
instead of separate icons in separate columns. Still only applies to
the actual layer file entry in the legend, but removes the need for
the extra columns. However, I'm hopeless at icon drawing...
These changes are a variation on the suggestions in ticket #191.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5616 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-20 09:34:04 +00:00
g_j_m
f8509397b0 Remove a redundant connect call for the help button (it's done
somewhere else)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5615 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-20 09:00:27 +00:00
g_j_m
2dd159533a Fix for ticket #197. The tab order is now set by the .ui file rather
than explicit code in the .cpp file.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5614 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-20 08:54:54 +00:00
morb_au
f082966d64 When loading a project file, restore the canvas extent to that provided in the project file (i.e. the extent in existence when the project file was saved). Previously the extent was the maximum extent across all layers.
I'm not sure why this functionality hasn't been done before, as it seemed so trivial to implement?

The main benefit to its implementation is that in large layers, the user doesn't have to wait for the whole layer to draw before he can restart work on a project (which is particularly important since we currently can no longer hit Esc to halt a redraw).



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5613 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-20 01:17:51 +00:00
g_j_m
a165cb609a Fix for ticket #193. Added in a clip region when drawing to a QImage
to prevent draws outside the QImage.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5612 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-19 22:23:18 +00:00
morb_au
ce15e7e795 Fix an Q_ASSERT failure in the Print Composer when "Adding new vect legend" and then clicking it into place on the composer canvas.
This appears to be because of the use of QWidget::removeChild in QgsComposer::removeWidgetChildren, which is a Qt3 idiom (it doesn't appear in the Qt4.1 API).  A QWidget::setParent(0) idiom is now used instead.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5611 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-19 01:05:31 +00:00
g_j_m
8fd8143a81 Give a default value to mValid for all constructors
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5610 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-18 10:16:00 +00:00
g_j_m
d5da7842c7 Remove an unnecessary \0 pad to the end of the wkb char*. Also fix a
bug whereby the first byte after the wkb array was being set to \0


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5609 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-17 09:18:14 +00:00
g_j_m
00275e3fba Remove lines inside #ifdef QT_VERSION < 0x0400000
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5608 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-17 05:26:48 +00:00
g_j_m
933ec5d3f4 Comment out a slot connect to a slot that no longer exists
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5607 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-17 04:28:21 +00:00
morb_au
9b6c654632 Fix for trac ticket #4. (Tested on DEMIS site.)
With the Identify tool on a WMS layer, now send a query to the WMS server *only* on those layers that the WMS server had already declared queryable.  This avoids the server returning an error on un-queryable layers.

Also, QgsWmsProvider::identifyAsHtml() is renamed to QgsWmsProvider::identifyAsText() to better identify what it does.  Commentary, and other dependent variable and function names have also been updated to suit.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5606 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-17 00:50:54 +00:00
morb_au
fc5e7d5192 In WMS, use a more robust method of passing the WMS proxy information to the provider. For instance if there is a space in the proxy password, it should now pass-through OK.
Unfortunately I don't have access to a proxy to test, so if I could get some independent verification it would be appreciated.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5605 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-16 23:19:04 +00:00
morb_au
4744b7bb98 Tidy-up of r5603: improve the commentary of QgsWmsProvider::subLayerStyles().
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5604 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-16 22:46:56 +00:00
morb_au
c1ef3f5d80 Partial fix for #38 (Saved WMS layers do not reload).
Now, the fact the WMS raster provider was used, the layer names, layer styles and image formatting is stored in the project file (and restores OK).  However upon initial testing the extent doesn't appear to be restored.  I will need to address that later.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5603 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-16 13:00:57 +00:00
g_j_m
87b0f557a5 Fix for the rest of ticket #130 (show the actual column default values
when getting the user to fill in the column values for a just digitised
feature).

Also add tr() to some user visible text.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5602 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 22:26:11 +00:00
g_j_m
53c73809b5 Fix for ticket #161. Always quote the value in an 'UPDATE ... SET = value'
SQL statement - the database will ccorrectly interpret the quoted
text based on the data type of the column (e.g., text or numeric).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5601 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 09:39:13 +00:00
g_j_m
52b808d2df Remove unnecessary Q3 headers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5600 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 08:59:55 +00:00
mhugent
d817182216 Fix for postgis edits not commited, fix for ticket #162 'crash when you select 'delete attribute' at attribute table'
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5599 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 08:13:51 +00:00
g_j_m
40fe6f6ea7 Save and restore the size and geometry of the edit attribute dialog
box, and always resize the column widths to fit the data. Fixes ticket
#97. 


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5598 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 07:53:44 +00:00
telwertowski
a3d1f75daf Take endianness of feature type into account in GPX provider.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5597 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 06:48:21 +00:00
g_j_m
60be5bdb2a g++ 3.2.2 didn't like isfinite() without the std::, so these have been added.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5596 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 05:19:58 +00:00
morb_au
cd04495c5d Copying selected features, and starting editing, no longer force all geometries of the copied-from layer to be cached, which was an (in my opinion) unfortunate side-effect of r5489.
Instead, for copying, the geometry and attributes are now retrieved from the provider in a random-access fashion.

For starting editing, the behaviour is regressed to the pre-r5489 idiom of geometry being cached as part of the screen redraw in editing mode.

This returns to the much better response when copying from large layers, with the additional benefit of copying selected features that had been panned off the canvas (previously a bug).

However, only Postgres and OGR providers have been updated to suit.  Hopefully this is enough for a 0.8 release.

Bonus feature: The layer properties now shows what access method is used to access individual geometries (random or sequential)

Since this is a large change it would be appreciated if others can double checking my testing.  (I have tested against PostGIS and MapInfo tables, and many different geometry adding/vertex editing combinations.)



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5595 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 03:11:25 +00:00
morb_au
eaf92a1843 The Map Legend now has two more columns for Overview and Editing status. If the layer is in overview or editing modes, the appropriate icon will appear in the layer's file entry (you may need to enable "Show file groups" in the right-click menu of the layer in the legend to see file entries).
QGIS used to do this already before the move to Qt4 - however the new QIcon idiom only seems to allow for square icons, therefore it is easier to split the results out to several columns and give them their own QIcons.

I can see room for improvement after this commit:
1. Overview and Editing icons can be also shown beside the top-level layer name, to avoid having to enable "Show file groups".
2. There also seems to be a "projection not valid" icon floating around, however this hasn't been addressed in this commit. Perhaps we need to do something for it too.
3. The column sizes have been hard-coded to arbitrary values.  I have no problem if these get tweaked further.

This commit addresses trac ticket #117.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5594 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 02:22:29 +00:00
morb_au
4b1bf6fdb9 When in Editing mode, the overview window no longer shows vertex markers. It used to, which generally made it overcrowded. This commit now only shows the vertex markers on the main canvas. In theory, this should also mean that the map composer window also doesn't show vertex markers any more (which should be a good thing), though I haven't tested it.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5593 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 02:09:40 +00:00
morb_au
a343e6f052 In the Identify results window, derived attributes such as Length or Area are now placed in a subtree of the attributes list called "(Derived)". This distinguishes them from explicit attributes that are a part of the user's layer.
If programmers wish to add more derived attributes in future, they can use the new QgsIdentifyResults::addDerivedAttribute() function.

This commit should address trac ticket #100.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5592 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-07-14 01:22:34 +00:00