mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
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:
parent
0df6b0d655
commit
315c457d83
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user