More minor bugfixes - refresh now takes place properly so no ghost images are left behind and display does not need to be panned before n-arrow updates.

git-svn-id: http://svn.osgeo.org/qgis/trunk@1454 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2004-05-24 22:32:33 +00:00
parent e499f689a5
commit 3e018ee786
2 changed files with 2 additions and 17 deletions

View File

@ -127,18 +127,6 @@ void Plugin::run()
myPluginGui->show();
}
//!draw a raster layer in the qui - intended to respond to signal sent by diolog when it as finished creating
//layer
void Plugin::drawRasterLayer(QString theQString)
{
qGisInterface->addRasterLayer(theQString);
}
//!draw a vector layer in the qui - intended to respond to signal sent by diolog when it as finished creating a layer
////needs to be given vectorLayerPath, baseName, providerKey ("ogr" or "postgres");
void Plugin::drawVectorLayer(QString thePathNameQString, QString theBaseNameQString, QString theProviderQString)
{
qGisInterface->addVectorLayer( thePathNameQString, theBaseNameQString, theProviderQString);
}
//! Refresh the map display using the mapcanvas exported via the plugin interface
void Plugin::refreshCanvas()
@ -253,11 +241,13 @@ void Plugin::rotationChanged(int theInt)
void Plugin::setPlacement(QString theQString)
{
mPlacement = theQString;
refreshCanvas();
}
void Plugin::setEnabled(bool theBool)
{
mEnable = theBool;
refreshCanvas();
}

View File

@ -46,11 +46,6 @@ class Plugin:public QObject, public QgisPlugin
public slots:
//! Show the dialog box
void run();
//!draw a raster layer in the qui - not used!
void drawRasterLayer(QString);
//! Add a vector layer given vectorLayerPath, baseName, providerKey ("ogr" or "postgres");
// - not used!
void drawVectorLayer(QString,QString,QString);
// draw some arbitary text to the screen
void renderNorthArrow();
//! Run when the user has set a new rotation