mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
API Cleanups
git-svn-id: http://svn.osgeo.org/qgis/trunk@9446 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
c0f938929b
commit
8892abffb9
@ -502,7 +502,21 @@ public slots:
|
||||
*/
|
||||
/* virtual */ bool readXml( QDomNode & layer_node );
|
||||
|
||||
/** Read the symbology for the current layer from the Dom node supplied.
|
||||
* @param QDomNode node that will contain the symbology definition for this layer.
|
||||
* @param errorMessage reference to string that will be updated with any error messages
|
||||
* @return true in case of success.
|
||||
*/
|
||||
bool readSymbology(const QDomNode& node, QString& errorMessage);
|
||||
|
||||
/** Write the symbology for the layer into the docment provided.
|
||||
* @param QDomNode the node that will have the style element added to it.
|
||||
* @param QDomDocument the document that will have the QDomNode added.
|
||||
* @param errorMessage reference to string that will be updated with any error messages
|
||||
* @return true in case of success.
|
||||
*/
|
||||
bool writeSymbology(QDomNode&, QDomDocument& doc, QString& errorMessage) const;
|
||||
|
||||
|
||||
/** write vector layer specific state to project file Dom node.
|
||||
|
||||
|
@ -114,6 +114,21 @@ public:
|
||||
virtual bool writeXml( QDomNode & layer_node, QDomDocument & doc );
|
||||
|
||||
|
||||
/** Read the symbology for the current layer from the Dom node supplied.
|
||||
* @param QDomNode node that will contain the symbology definition for this layer.
|
||||
* @param errorMessage reference to string that will be updated with any error messages
|
||||
* @return true in case of success.
|
||||
*/
|
||||
bool readSymbology(const QDomNode& node, QString& errorMessage);
|
||||
|
||||
/** Write the symbology for the layer into the docment provided.
|
||||
* @param QDomNode the node that will have the style element added to it.
|
||||
* @param QDomDocument the document that will have the QDomNode added.
|
||||
* @param errorMessage reference to string that will be updated with any error messages
|
||||
* @return true in case of success.
|
||||
*/
|
||||
bool writeSymbology(QDomNode&, QDomDocument& doc, QString& errorMessage) const;
|
||||
|
||||
/**
|
||||
* Number of features in the layer. This is necessary if features are
|
||||
* added/deleted or the layer has been subsetted. If the data provider
|
||||
|
@ -192,7 +192,7 @@ void QgsMapserverExport::writeMapFile()
|
||||
{
|
||||
bool isPolygon = false;
|
||||
bool isLine = false;
|
||||
QgsMapLayer *lyr = map->getZpos( i );
|
||||
QgsMapLayer *lyr = map->layer( i );
|
||||
QgsDebugMsg( "Mapsrver Export Processing Layer" );
|
||||
mapFile << "LAYER" << std::endl;
|
||||
QString name = lyr->name().lower();
|
||||
|
@ -322,7 +322,7 @@ void QgsMapserverExport::writeMapFile()
|
||||
{
|
||||
bool isPolygon = false;
|
||||
bool isLine = false;
|
||||
QgsMapLayer *lyr = map->getZpos(i);
|
||||
QgsMapLayer *lyr = map->layer(i);
|
||||
#ifdef QGISDEBUG
|
||||
std::cout << "Mapsrver Export Processing Layer" << std::endl;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user