1882 Commits

Author SHA1 Message Date
mcoletti
8061b19d09 qgslabel.cpp :
- readXML() now performs a variety of paranoid checks and emits lots
   debugging messages; also all the attributes have default values if the DOM
   element doesn't have that attribute

 - writeXML() relaxes some string checks from isNull() to isEmpty(); actually,
   these are about to be overwritten by Tim's superior changes

qgsvectorlabel.cpp :

 - fixed bug where the "label" DOM node instead of "labelattributes" node was
   getting passed to QgsLabel::readXML() thus fixing annoying "labels not
   restored from project file" bug


git-svn-id: http://svn.osgeo.org/qgis/trunk@2381 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-01 01:07:36 +00:00
timlinux
4e820fef20 Tidy up sanity checking in writeXML
git-svn-id: http://svn.osgeo.org/qgis/trunk@2380 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-12-01 01:03:08 +00:00
larsl
ed0550acc8 Fixed bug that would crash QGIS if the user right-clicked in the Identify dialog below the last attribute
git-svn-id: http://svn.osgeo.org/qgis/trunk@2379 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-30 15:33:13 +00:00
gsherman
dff58827d0 Fixed bug that caused only records selected as part of last identify or
select operation to be displayed in the attribute table.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2378 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-30 04:50:54 +00:00
mcoletti
44bb6ca13e qgslabel.cpp :
- writeXML() now checks that label fields are set before allowing
    corresponding XML project tags to be emitted

  - in the case of some label members, also check to see if some of the
    returned string values are non-empty before allowing that specific XML to
    be emitted

  - writeXML() was emitting broken XML because some of the fields were null.
    It now emits valid XML, but with all the values set to zero or empty
    strings.  This is an indication of a serious problem with QgsLabel.  I'm
    guessing a disconnect between the vector layer properties dialog and the
    actual setting of label state.  Can the original QgsLabel author please
    look into this?

qgslabelattributes :

  - const members are now const

  - members now get set to default values regardless whether ctor "def"
    argument is true or not

  - ctor "def" argument defaults to true, meaning presumably some special
    default values are assigned to some members

qgsvectorlayer.cpp :

  - wasteful looping getline() replaced by direct string buffer copying

  - noticed that the label variables still had renderer names from
    cut-n-paste so renamed them


git-svn-id: http://svn.osgeo.org/qgis/trunk@2377 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-30 01:32:44 +00:00
timlinux
1c8479cae3 Allow geos 2.x.x instead of geos 2.0.x
git-svn-id: http://svn.osgeo.org/qgis/trunk@2376 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 23:05:44 +00:00
mhugent
9dc2c6eb13 fix for restoring marker size in unique value marker dialog
git-svn-id: http://svn.osgeo.org/qgis/trunk@2375 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 21:44:18 +00:00
mcoletti
5e8e39bd04 - The application caption now syncs to new project titles; previously it would
only do so if a project was loaded.

- Application caption now (hopefully) made consistent regardless of how the
  project title is set, whether from reading an existing project, changing the
  project properties, or setting up a new project.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2374 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 19:43:04 +00:00
mcoletti
67f279f022 qgisapp :
- now catches qgs project read errors and displays appropriate critical
    dialog

qgsproject :

  - (most) all qDebug()'s now use utf8() strings (I may have missed a few)

  - fixed bug where projects with no layers (i.e., they're empty) would cause
    app to bomb when trying to read same


git-svn-id: http://svn.osgeo.org/qgis/trunk@2373 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 18:10:58 +00:00
gsherman
fab1388151 Oleg's utf8 patch
git-svn-id: http://svn.osgeo.org/qgis/trunk@2372 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 06:55:31 +00:00
gsherman
e6afa4c84c Changed #include <qapp.h> to #include <qapplication.h> to solve compile
problem on debian.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2371 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 06:48:24 +00:00
gsherman
4f216df47f more minor fixes to vector dialog
git-svn-id: http://svn.osgeo.org/qgis/trunk@2370 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 05:46:51 +00:00
gsherman
5718f85046 fixed too-tall syndrome for vector props dialog -- may need some tweaking
git-svn-id: http://svn.osgeo.org/qgis/trunk@2369 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 05:13:23 +00:00
telwertowski
355d84b1ed Remove font <family> tags so that the default font for each platform is used.
Odd fonts and button sizes were being displayed on a Mac when a font not present on a Mac were specified.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2368 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 04:26:40 +00:00
gsherman
7c9f43f23b Fix for too-tall dialogs.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2367 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-29 01:33:10 +00:00
timlinux
53549fa20b Changed frame width constraints to 350px
git-svn-id: http://svn.osgeo.org/qgis/trunk@2366 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 22:07:15 +00:00
mhugent
de1ba5c588 commented out qDebug statement which someone inserted. It was the reason for a crash which occured when the renderer type was changed
git-svn-id: http://svn.osgeo.org/qgis/trunk@2365 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 21:19:36 +00:00
mhugent
8c0b8e6376 fixed selection in the delimited text provider
git-svn-id: http://svn.osgeo.org/qgis/trunk@2364 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 21:17:04 +00:00
gsherman
b3e1023768 Modified lib creation so the postgresql utility class doesn't get built
into the library if qgis is being built without postgresql support


git-svn-id: http://svn.osgeo.org/qgis/trunk@2363 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 17:11:27 +00:00
gsherman
28381cebf7 Fixed bug that displays bogus raster warning message box when loading a
vector layer from the command line (bug 1068369)


git-svn-id: http://svn.osgeo.org/qgis/trunk@2362 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 16:56:19 +00:00
gsherman
12e9062d66 Icons for the field name editor -- left out of previous commit -- sorry...
git-svn-id: http://svn.osgeo.org/qgis/trunk@2361 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 16:34:43 +00:00
gsherman
621178fc50 Spit stores last shapefile directory used in qgisrc (or registry) and
uses it the next time the Add files dialog is opened.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2360 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 07:04:40 +00:00
gsherman
b945d3cf5a Implementation of reserved word handling. Reserved PostgreSQL keywords are
detected and the user is given the change to change the column names prior
to import into the database. Column names can be changed for any field if
desired.


git-svn-id: http://svn.osgeo.org/qgis/trunk@2359 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 05:49:30 +00:00
gsherman
6caa05fd38 Dialog for editing column names prior to loading into postgresql
git-svn-id: http://svn.osgeo.org/qgis/trunk@2358 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 05:46:10 +00:00
gsherman
765a9d394b Added accessor for reserved word list
git-svn-id: http://svn.osgeo.org/qgis/trunk@2357 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-28 05:40:58 +00:00
gsherman
85813237f9 Updated list of reserved words to include only those that cannot be used
as a column name in postgresql and are not used as a function name


git-svn-id: http://svn.osgeo.org/qgis/trunk@2356 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 22:55:31 +00:00
gsherman
0a65bcb951 Removed all calls to ascii() to hopefully solve utf-8/latin string issue
git-svn-id: http://svn.osgeo.org/qgis/trunk@2355 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 19:19:17 +00:00
mhugent
43925bbf74 added code to restore unique value marker from projects. Needs more testing though
git-svn-id: http://svn.osgeo.org/qgis/trunk@2354 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 15:37:18 +00:00
mhugent
815e2d67c3 fix for restoring labels in graduated marker dialog
git-svn-id: http://svn.osgeo.org/qgis/trunk@2353 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 14:36:58 +00:00
larsl
79ca0c6a17 ** Fixed feature addition in GPX layers, it now works again
git-svn-id: http://svn.osgeo.org/qgis/trunk@2352 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 13:46:30 +00:00
timlinux
86d1a1fe29 Move properties entry in context menu to bottom for consistancy with 'normal' gui standards
git-svn-id: http://svn.osgeo.org/qgis/trunk@2351 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 12:41:13 +00:00
mhugent
871634c3a1 fix in readXML for single markers
git-svn-id: http://svn.osgeo.org/qgis/trunk@2350 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 12:41:02 +00:00
gsherman
38eb11c486 Icon for gps latex documentation source (missed on the last commit)
git-svn-id: http://svn.osgeo.org/qgis/trunk@2349 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 03:02:52 +00:00
gsherman
aa1d1b59ff Added latex source for GPS plugin documentation from Lars
git-svn-id: http://svn.osgeo.org/qgis/trunk@2348 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 03:02:06 +00:00
gsherman
2c726d9d44 Images for the user guide
git-svn-id: http://svn.osgeo.org/qgis/trunk@2347 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 02:06:48 +00:00
gsherman
9189d348ad user guide images
git-svn-id: http://svn.osgeo.org/qgis/trunk@2346 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 02:04:25 +00:00
gsherman
8e1db6d076 Latex source
git-svn-id: http://svn.osgeo.org/qgis/trunk@2345 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-27 01:56:11 +00:00
gsherman
cba4058ecb Changed supportsSaveAsShapefile to false since this won't be implemented until after version 0.6
git-svn-id: http://svn.osgeo.org/qgis/trunk@2344 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 22:02:52 +00:00
gsherman
89b861cb0d Added geos flags
git-svn-id: http://svn.osgeo.org/qgis/trunk@2343 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 22:01:26 +00:00
gsherman
f77150b2ad Added text file preview to the plugin and changed the logic so the delimiter doesn't have to be entered first.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2342 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 22:00:44 +00:00
gsherman
ae7a3a4bf3 Applied patches from Markus and strk
git-svn-id: http://svn.osgeo.org/qgis/trunk@2341 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 20:31:49 +00:00
mcoletti
a0b34ec13e Fixes bug whereby creating a new project followed by an immediate save would
cause qgis to crash.  (I.e., this is where the author learns that setting a
QString to "" does not mean subsquent isNull() invocations return true; if you
want a QString to actually be null, you must set it to QString::null instead.
Ho hum.)


git-svn-id: http://svn.osgeo.org/qgis/trunk@2340 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 18:48:54 +00:00
mcoletti
e80d0d86bd qgsdlgvectorlayerproperties.cpp :
- Changed "string" to more specific name to avoid possible future conflict
    with ISO C++ Standard Library "string" and to make code more
    self-documenting

  - now uses qDebug() instead of std::cout so that debugging output shows up

qgsproject.h :

  - added documentation reminding use of leading '/' for proper key names

qgssisydialog.cpp :

  - changed some nested if structures to switch statement equilvalent to make
    code more efficient and understandable

  - fixed bug whereby pen type not properly set due to cut-n-paste error

  - fixed bug whereby line type not properly set due to cut-n-paste error

  - fixed restoring project vector fill type bug

qgssymbologyutils.cpp :

  - Changed "string" to more specific name to avoid possible future conflict
    with ISO C++ Standard Library "string" and to make code more
    self-documenting


git-svn-id: http://svn.osgeo.org/qgis/trunk@2339 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 18:30:01 +00:00
gsherman
0952d5aabf Tweaks related to WIN32 handling of layers loaded from saved projects
git-svn-id: http://svn.osgeo.org/qgis/trunk@2338 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 18:22:42 +00:00
gsherman
82d5e91bd3 Fix for delimited text files having a delimiter at end of each line
git-svn-id: http://svn.osgeo.org/qgis/trunk@2337 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 18:19:26 +00:00
timlinux
f3d77eb924 Save colour of scale bar in project too...
git-svn-id: http://svn.osgeo.org/qgis/trunk@2336 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-26 00:25:43 +00:00
timlinux
f7d95cde22 Scale bar settings saved with project and minor tweaks to north arrow and copyright label plugins
git-svn-id: http://svn.osgeo.org/qgis/trunk@2335 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-25 23:56:34 +00:00
timlinux
9876b25a08 POV...persistance of vision for North Arrow (ie north arrow settings are saved with your project now...)
git-svn-id: http://svn.osgeo.org/qgis/trunk@2334 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-25 23:33:05 +00:00
sbr00pwb
5e95b68935 fix ui to build with QT3.1
git-svn-id: http://svn.osgeo.org/qgis/trunk@2333 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-25 16:03:38 +00:00
gsherman
0acaf25e40 first implementation of save delimited text file as shapefile once its loaded into qgis. Some things are still rough -- I'll clean it up some more in the next day or so...
git-svn-id: http://svn.osgeo.org/qgis/trunk@2332 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-11-25 06:00:39 +00:00