Skip to content
Permalink
Browse files

[GRASS] add auto relation between column and layer option (disabled)

  • Loading branch information
blazek committed Aug 24, 2015
1 parent 5807875 commit d909597c5fa2476f20472f1ad418ef150e340f72
@@ -26,6 +26,7 @@ SET (GRASS_PLUGIN_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassmapcalc.cpp
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassmodule.cpp
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassmoduleoptions.cpp
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassmoduleparam.cpp
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassnewmapset.cpp
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassattributes.cpp
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassregion.cpp
@@ -53,6 +54,7 @@ SET (GRASS_PLUGIN_MOC_HDRS
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassmapcalc.h
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassmodule.h
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassmoduleoptions.h
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassmoduleparam.h
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassnewmapset.h
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassattributes.h
${CMAKE_CURRENT_SOURCE_DIR}/qgsgrassregion.h
@@ -1036,31 +1036,6 @@ QString QgsGrassModule::translate( QString msg )
return QString::fromUtf8( G_gettext( "grassmods", msg.trimmed().toUtf8() ) );
}

QDomNode QgsGrassModule::nodeByKey( QDomElement elem, QString key )
{
QgsDebugMsg( "called with key=" + key );
QDomNode n = elem.firstChild();

while ( !n.isNull() )
{
QDomElement e = n.toElement();

if ( !e.isNull() )
{
if ( e.tagName() == "parameter" || e.tagName() == "flag" )
{
if ( e.attribute( "name" ) == key )
{
return n;
}
}
}
n = n.nextSibling();
}

return QDomNode();
}

QString QgsGrassModule::libraryPathVariable()
{
#ifdef Q_OS_WIN
@@ -67,9 +67,6 @@ class QgsGrassModule : public QDialog, private Ui::QgsGrassModuleBase
*/
static QPixmap pixmap( QString path, int height );

//! Find element in GRASS module description by key, if not found, returned element is null
static QDomNode nodeByKey( QDomElement gDocElem, QString key );

//! Returns pointer to QGIS interface
QgisInterface *qgisIface();

0 comments on commit d909597

Please sign in to comment.
You can’t perform that action at this time.