diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-08-06 21:28:34 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-08-06 21:28:34 +0000 |
| commit | f46cc1179e44ec373cfaa02c7140fda8757660cf (patch) | |
| tree | e9fb08e0305016e391d6426076110b5271295e3d /src/display/canvas-axonomgrid.h | |
| parent | src/helper 2geomified (diff) | |
| download | inkscape-f46cc1179e44ec373cfaa02c7140fda8757660cf.tar.gz inkscape-f46cc1179e44ec373cfaa02c7140fda8757660cf.zip | |
1) When pasting, use an offset that is a multiple of the grid pitch (got lost during a previous round of refactoring)
2) Refactor some of the pasting code
(bzr r6580)
Diffstat (limited to 'src/display/canvas-axonomgrid.h')
| -rw-r--r-- | src/display/canvas-axonomgrid.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/display/canvas-axonomgrid.h b/src/display/canvas-axonomgrid.h index 668c59649..564d266a6 100644 --- a/src/display/canvas-axonomgrid.h +++ b/src/display/canvas-axonomgrid.h @@ -41,18 +41,13 @@ public: void readRepr(); void onReprAttrChanged (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive); - SPUnit const* gridunit; - - NR::Point origin; /**< Origin of the grid */ double lengthy; /**< The lengths of the primary y-axis */ double angle_deg[3]; /**< Angle of each axis (note that angle[2] == 0) */ double angle_rad[3]; /**< Angle of each axis (note that angle[2] == 0) */ double tan_angle[3]; /**< tan(angle[.]) */ - guint32 color; /**< Color for normal lines */ - guint32 empcolor; /**< Color for emphasis lines */ - gint empspacing; /**< Spacing between emphasis lines */ + bool scaled; /**< Whether the grid is in scaled mode */ - + NR::Point ow; /**< Transformed origin by the affine for the zoom */ double lyw; /**< Transformed length y by the affine for the zoom */ double lxw_x; |
