[Qgis-developer] porjectRead() and newProject() signals

Alexander Bruy alexander.bruy at gmail.com
Mon Oct 18 03:55:09 EDT 2010


Hi

Some plugins stores their settings in QGIS project. And when user open
previously saved project read setting from it, when created new project -
default settings used and plugin GUI is resetted. For example in Copyright
label plugin

void QgsCopyrightLabelPlugin::initGui()
{
  ...
  //this resets this plugin up if a project is loaded
  connect( qGisInterface->mainWindow(), SIGNAL( projectRead() ), this,
SLOT( projectRead() ) );
  ...
  //initialise default values in the gui
  projectRead();
}

But projectRead() and newProject() are not documented, some info available
only in qgisapp.h. Is it possible to add this signals to the QGisInterface
and add some documentaion?

-- 
Alexander Bruy


More information about the Qgis-developer mailing list