1663 Commits

Author SHA1 Message Date
mhugent
20d4d60ce0 moved the responsability for not-commited features to qgsvectorlayer. Because of this, it is now possible to treat not-commited features like commited ones. Vectordataproviders now only need to implement 'addFeatures','deleteFeatures', 'supportsFeatureAddition' and 'supportsFeatureDeletion' if they support feature addition or deletion
git-svn-id: http://svn.osgeo.org/qgis/trunk@2258 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-15 21:52:57 +00:00
gsherman
a5450673ee Reverted win32 hack related to dynamic casts back to original code.
Hopefully all renderers will work now.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2257 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-15 05:27:11 +00:00
timlinux
7145513501 Clean up sizing of colour previews.
TODO: integrate pattern selection straight onto this dialog.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2256 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-14 23:58:50 +00:00
timlinux
a630fe98fb Needed for changes made in last commit
git-svn-id: http://svn.osgeo.org/qgis/trunk@2255 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-14 23:34:25 +00:00
timlinux
4b642cc6e7 Changed vector dialog to have Help, Apply, Ok, Cancel button layout in keeping with raster dialog
Changed the way button actions are implemented so that the slots are made by qt designer in the ABC and then reimplemented in the subclassed qgsdlgvectorlaye
rproperties.
Separated level dialog over four tabs instead of 2 in an effort to reduce size of vector dialog. Having 'tabs within tabs' is not really nice ui design, but
Ill leave it like that until we use get a decent implementation of kde / outlook style configuration panel.
Rearranged various other widgets within vector dialog to improve layout.
More changes to come.
sisy dialog is not right either - will change that in a follow up commit...


git-svn-id: http://svn.osgeo.org/qgis/trunk@2254 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-14 23:33:11 +00:00
gsherman
ae4d47523e Put the assert back in. Without it, the grad renderer causes a seg fault. There is something wrong here that needs to be investigated.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2253 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-14 17:47:48 +00:00
telwertowski
cec6a093f4 Skip command line argument processing on Mac OS X if argv[1] is -psn_*
git-svn-id: http://svn.osgeo.org/qgis/trunk@2252 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-14 09:01:45 +00:00
telwertowski
3be0826be2 Prefix all paths to supporting files on Mac OS X with qApp->applicationDirPath()
git-svn-id: http://svn.osgeo.org/qgis/trunk@2251 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-14 08:42:46 +00:00
gsherman
7cefd78648 Removed pointless Q_ASSERT statement (added during win32 debugging)
git-svn-id: http://svn.osgeo.org/qgis/trunk@2250 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-14 04:48:16 +00:00
larsl
f9efbc5ad0 ** Changed QgsIdentifyResults and QgsVectorLayer to show all attributes
automatically (expand the feature node) if only one feature is identified


git-svn-id: http://svn.osgeo.org/qgis/trunk@2249 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-13 20:24:50 +00:00
g_j_m
f0ebd39084 Removed the "" item from the display field combo box as a default option
doesn't make sense because qgis has either already chosen a display field
value by the time the user has opened the layer config dialog box, or it
has read in a value from a .qgs file.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2248 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-13 20:16:55 +00:00
gsherman
99336b4154 Added option to set initial layer visibility to false for raster and postgres providers
git-svn-id: http://svn.osgeo.org/qgis/trunk@2247 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-13 18:56:54 +00:00
gsherman
0e31e62119 Update windows icon.
Added option to set initial layer visibility to false for ogr providers (other layer types to follow). This has not been tested against the project loading code.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2246 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-13 18:19:33 +00:00
gsherman
6ed22d8ed1 Added wait cursor when opening layer properties for raster layers. Only works with layer popup menu pick.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2245 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-13 06:45:03 +00:00
gsherman
620a2242e5 .pro file fixes for WIN32
Added wait cursor when opening layer properties for vector layers


git-svn-id: http://svn.osgeo.org/qgis/trunk@2244 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-13 06:22:33 +00:00
gsherman
8529bfb7bc Removed test subdir from Makefile.am. Not sure why it was there but it
hoses the build...


git-svn-id: http://svn.osgeo.org/qgis/trunk@2243 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-13 05:17:37 +00:00
gsherman
b69b0996f1 Fixes to get plugins to compile under WIN32
Changes to qgislib.pro to include recently added classes


git-svn-id: http://svn.osgeo.org/qgis/trunk@2242 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-13 04:44:13 +00:00
gsherman
ce2003f874 Removed unused/uneeded help function. Help is provided by the geoprocessing
dialog class.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2241 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-13 03:21:55 +00:00
g_j_m
c0c2fd0e89 Made the actions popup menu accessable from the attribute table dialog
box.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2240 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-12 19:45:50 +00:00
timlinux
c7ba33f0f2 Implemented state handling via qgsproject for copyright label.
Updated _all_ plugins so that initGui() is implemented as a slot.
This is required if you wish to use qgsproject for storing and reinstating state in qgis. The reason for this is that the initGui() method is only called once at the moment when qgis starts up. I will be adding a signal to qgisproject 'projectLoaded' that will be emitted when a new project is loaded. I will also be adding connect() for each plugin when its initially loaded in qgisapp so that the initgui slot is called whenever the project loads.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2238 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-12 13:55:19 +00:00
timlinux
5f9c0e9041 Class member naming now adheres to qgis coding standards.
Win ifdefs added
Now in sync with external plugins template (which was more up to date)


git-svn-id: http://svn.osgeo.org/qgis/trunk@2237 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-12 12:59:38 +00:00
gsherman
9658be9508 Updated for latest commits related to WIN32 build/operation
git-svn-id: http://svn.osgeo.org/qgis/trunk@2236 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-12 00:42:21 +00:00
gsherman
4c277f2ea1 Updated for latest commits related to WIN32 build/operation
git-svn-id: http://svn.osgeo.org/qgis/trunk@2235 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-12 00:41:27 +00:00
gsherman
01afcc7e9e Updated for latest commits related to WIN32 build/operation
git-svn-id: http://svn.osgeo.org/qgis/trunk@2234 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-12 00:40:06 +00:00
gsherman
3a9c9ec01d Changes to allow build under Win32. VC++ doesn't like the dynamic_cast operator, even though the compile settings inlude the rtti flag. For now, most dynamic_casts have been ifdef'd (which is ugly) to allow proper operation under WIN32.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2233 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-12 00:33:41 +00:00
timlinux
21a905c843 First implementation of project serialisation - two state handlers on for font family and one for font size.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2232 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-11 09:07:00 +00:00
gsherman
311259f5a9 Changes to allow build under Win32
git-svn-id: http://svn.osgeo.org/qgis/trunk@2231 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-11 07:12:13 +00:00
gsherman
f254055877 Changes to allow build under Win32
git-svn-id: http://svn.osgeo.org/qgis/trunk@2230 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-11 06:02:26 +00:00
gsherman
8322c7639a GEOS support added for WIN32. See ogr.pro for notes.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2229 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-11 05:36:15 +00:00
mcoletti
97d53fb304 Corrected HUGE mistake whereby ALL project properties were named "layer". Now project properties use the proper programmer given name.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2228 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-10 19:10:56 +00:00
timlinux
337acefcc2 Map units and project title are now properly resotered when project is loaded.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2227 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-10 07:21:57 +00:00
g_j_m
d72782bd99 Added compilation and linking flags for the GEOS library.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2226 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-09 19:39:39 +00:00
timlinux
63b8c9679f Fix for compilation error due to missing GEOS lin CXXFLAGS and LDDADD
git-svn-id: http://svn.osgeo.org/qgis/trunk@2225 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-09 11:55:42 +00:00
hoshi
d77420246b Convertion from const QString to std::string was causing compilation error
in geos::WKTReader->read() method.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2224 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-09 11:53:37 +00:00
timlinux
aa5b4c530c Added options to graticule builder to allow you to define origin and enpoints and to set the graticule size at < 1 degree. Note that there is little error checking in there still, so putting in dodgy numbers may cause qgis to crash.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2223 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-09 01:04:00 +00:00
g_j_m
62e2c7cf1f Provide a UI in the vector layer properties dialog box to set the
field used as the top level field in the Identify Results dialog
box. The value is read from and written to .qgs files


git-svn-id: http://svn.osgeo.org/qgis/trunk@2222 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-08 09:10:32 +00:00
mhugent
0a18d64e30 added QgsFeature::intersects(QgsRect*) and a wkb-export method to QgsFeature. The reason why i did this is because it should be possible to test the not-commited features for intersection with a selection rectangle. Note: the wkb-export method (which is necessary for the GEOS intersection) is only tested for point,line,polygon by now
git-svn-id: http://svn.osgeo.org/qgis/trunk@2218 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-07 18:52:11 +00:00
mcoletti
0228a0032e Makefile.am :
- added qgsvectordataprovider.cpp to library so that plug-ins could
    successfully link

qgisapp :

  - added projectRead() and newProject() signals
  - project now clears any existing properties when a new one is created

qgsproject :

  - clearProperties()

Note:

  To take full advantage of having optional project properties, plug-ins would
  need to know when a project was successfully read or when a new one created.
  That way the plug-ins would know to check the properties of the newly loaded
  project for plug-in relevent properties, or to reset their state when a new
  project is loaded.  So, projectRead() and projectNew() signals were added to
  QgisApp to handle those cases, respectively.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2217 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-06 00:42:28 +00:00
mcoletti
051a09f115 qgsdataprovider :
- added back virtual reset() since I needed access to OGR data provider
    reset function to ensure that I got all features in a given OGR backed
    vector layer

qgsmaplayer :

  - minor re-formatting
  - made some functions const-correct; and now pass things by reference, thus
    sparing unnecessary copying
  - internalName now set in readXML() -- which is just the basename of the
    data file

qgsvectorlayer :

  - minor code re-formatting


git-svn-id: http://svn.osgeo.org/qgis/trunk@2216 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-05 21:25:02 +00:00
mhugent
18aaee9a2a added deleting of selected features from postgislayers. Unfortunately, only commited features can be selected -> there will be some need to redesign vectorlayer and providers with respect to feature addition and deletion
git-svn-id: http://svn.osgeo.org/qgis/trunk@2215 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-05 20:21:54 +00:00
mcoletti
8f3e51d691 Now can *read* any extra and optional project file properties; again, this is
useful for plug-ins to store their own data with project files.

NOTE, that currently only the following QVariant types are supported: QString,
Bool, Int, UInt, LongLong, ULongLong, and Double.  However, adding other
QVariant supported types should be trivial -- just expand the "else if" in
_getScopeProperties in qgsproject.cpp appropriately.

Tested for QString.  Theoretically other types should work, too, but you never
know.  Caveat programmor!


git-svn-id: http://svn.osgeo.org/qgis/trunk@2210 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-04 23:14:35 +00:00
mcoletti
933f396002 Now supports _writing_ ancillary state to project files. Still need to
implement _reading_ same.  Still, there should be enough here for plug-in
maintainers to cobble up code to take advantage of this new capability.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2209 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-04 20:09:58 +00:00
timlinux
e6a1411886 Scale dependent layer visibility changelog entry
git-svn-id: http://svn.osgeo.org/qgis/trunk@2205 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-04 07:54:41 +00:00
timlinux
d32025c8cc Added serialise and deserialise of scale dependent visibility so that these settings are stored in project files.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2204 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-04 07:51:39 +00:00
timlinux
1b853513e2 Wired up scale dependent visibility to gui for raster layers.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2203 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-03 23:13:39 +00:00
timlinux
4d610d8df6 Wired in scale dependent view stuff to props gui for vector layers
git-svn-id: http://svn.osgeo.org/qgis/trunk@2202 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-03 22:42:40 +00:00
g_j_m
ca05c57902 Changed the substitution rules for attribute actions to include
access to items that weren't clicked on.

Updated and improved the What's This help for the Actions dialog
box.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2201 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-03 20:55:42 +00:00
timlinux
3fc9d7ebe3 Grrr...this one also got corrupted...rolling back my changes lost :-(
git-svn-id: http://svn.osgeo.org/qgis/trunk@2200 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-03 16:57:55 +00:00
timlinux
c3dce482da Second attempt at corrupt file fixing
git-svn-id: http://svn.osgeo.org/qgis/trunk@2199 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-03 16:44:37 +00:00
timlinux
924ab2396f Fix corrupted file
git-svn-id: http://svn.osgeo.org/qgis/trunk@2198 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-03 16:41:16 +00:00