Skip to content
Permalink
Browse files

set region for map from browser; use rubber band for region

git-svn-id: http://svn.osgeo.org/qgis/trunk@5048 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Mar 17, 2006
1 parent c83c881 commit 9c78637ab236996ea6b66cb125b5ddb4d333c8d5
Showing with 17 additions and 2 deletions.
  1. +10 −2 src/plugins/grass/qgsgrasstools.cpp
  2. +7 −0 src/plugins/grass/qgsgrasstools.h
@@ -158,6 +158,9 @@ QgsGrassTools::QgsGrassTools ( QgisApp *qgisApp, QgisIface *iface,
// displayed over the browser
QgsGrassBrowser *browser = new QgsGrassBrowser ( mIface, this );
mTabWidget->addTab( browser, "Browser" );

connect( browser, SIGNAL(regionChanged()),
this, SLOT(emitRegionChanged()) );
}

void QgsGrassTools::moduleClicked( Q3ListViewItem * item )
@@ -412,5 +415,10 @@ void QgsGrassTools::saveWindowLocation()
settings.writeEntry("/GRASS/windows/tools/h", s.height());
}



void QgsGrassTools::emitRegionChanged()
{
#ifdef QGISDEBUG
std::cerr << "QgsGrassTools::emitRegionChanged()" << std::endl;
#endif
emit regionChanged();
}
@@ -91,6 +91,13 @@ public slots:

//! Current mapset changed
void mapsetChanged();

// Emits regionChanged
void emitRegionChanged();

signals:
void regionChanged();

private:
//! QGIS application
QgisApp *mQgisApp;

0 comments on commit 9c78637

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