Renamed obscurely named Impl struct to CanvasProperties and private instance of impl_ to mCanvasProperties.

More tweaking on printing stuff though its still not scaling properly except to A4 landscape.

Added private member mScale (double) and accessor so that plugins can access the current scale.


git-svn-id: http://svn.osgeo.org/qgis/trunk@1514 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2004-06-02 13:25:25 +00:00
parent 0df6b0d655
commit 315c457d83
2 changed files with 337 additions and 287 deletions

File diff suppressed because it is too large Load Diff

View File

@ -69,6 +69,9 @@ class QgsMapCanvas : public QWidget
//! Get a pointer to the legend control used with this canvas
QgsLegend * getLegend();
//! Get the last reported scale of the canvas
double getScale();
//! Clear the map canvas
void clear();
@ -212,10 +215,10 @@ private:
QgsMapCanvas( QgsMapCanvas const & );
/// implementation struct
struct Imp;
struct CanvasProperties;
/// Handle pattern for implementation object
std::auto_ptr<Imp> imp_;
std::auto_ptr<CanvasProperties> mCanvasProperties;
//! Overridden mouse move event
void mouseMoveEvent(QMouseEvent * e);