API Cleanups

git-svn-id: http://svn.osgeo.org/qgis/trunk@9446 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2008-10-06 18:50:42 +00:00
parent c0f938929b
commit 8892abffb9
4 changed files with 31 additions and 2 deletions

View File

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

View File

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

View File

@ -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();

View File

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