[Qgis-developer] GRASS: delete layers through browser
Stephan Holl
holl at gdf-hannover.de
Mon Jul 24 06:38:28 EDT 2006
Dear devs,
I like to add a test (and learn more about QT) to in the
GRASS-toolboxbrowser which should disable the delete-button, if
the map which should be deleted is currently displayed.
Therefor I found
void QgsGrassBrowser::deleteMap()
and/or
QgsGrassBrowser::selectionChanged
in src/plugin/grass/qgsgrassbrowser.cpp. Which chould be the right
place?
I am new to QT and therefor do not know how to receive the maps
which are currently displayed.
<pseudocode>
QString map = mModel->itemMap(*it);
QString displayedmap = <howtoaccess?>;
if ( map == displayedmap )
{
/* grey out delete-button */
mActionDeleteMap->setEnabled(false);
}
</pseudocode>
Thanks for any help
Stephan
--
GDF Hannover - Solutions for spatial data analysis and remote sensing
Hannover Office - Mengendamm 16d - D-30177 Hannover
Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de
Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508
More information about the Qgis-developer
mailing list