mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-09 00:04:30 -05:00
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:
parent
e499f689a5
commit
3e018ee786
@ -127,18 +127,6 @@ void Plugin::run()
|
|||||||
myPluginGui->show();
|
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
|
//! Refresh the map display using the mapcanvas exported via the plugin interface
|
||||||
void Plugin::refreshCanvas()
|
void Plugin::refreshCanvas()
|
||||||
@ -253,11 +241,13 @@ void Plugin::rotationChanged(int theInt)
|
|||||||
void Plugin::setPlacement(QString theQString)
|
void Plugin::setPlacement(QString theQString)
|
||||||
{
|
{
|
||||||
mPlacement = theQString;
|
mPlacement = theQString;
|
||||||
|
refreshCanvas();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Plugin::setEnabled(bool theBool)
|
void Plugin::setEnabled(bool theBool)
|
||||||
{
|
{
|
||||||
mEnable = theBool;
|
mEnable = theBool;
|
||||||
|
refreshCanvas();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -46,11 +46,6 @@ class Plugin:public QObject, public QgisPlugin
|
|||||||
public slots:
|
public slots:
|
||||||
//! Show the dialog box
|
//! Show the dialog box
|
||||||
void run();
|
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
|
// draw some arbitary text to the screen
|
||||||
void renderNorthArrow();
|
void renderNorthArrow();
|
||||||
//! Run when the user has set a new rotation
|
//! Run when the user has set a new rotation
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user