- 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
- 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
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
- 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
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
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
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
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