diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-12-02 23:23:57 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-12-02 23:23:57 +0000 |
| commit | 75961212deb314f6159f8bc5619e2b651e26b7f7 (patch) | |
| tree | e9c4db5cb789c5636dcae7f827c709f55052bea7 /src | |
| parent | Snapping of axonometric grid: correctly snap to vertical gridline. angled lin... (diff) | |
| download | inkscape-75961212deb314f6159f8bc5619e2b651e26b7f7.tar.gz inkscape-75961212deb314f6159f8bc5619e2b651e26b7f7.zip | |
Improve default axonomgrid settings (colors, and spacing=1mm since it will be used for technical drawing probably. pixels seems like a strange default choice in that case)
(bzr r4159)
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/canvas-axonomgrid.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/display/canvas-axonomgrid.cpp b/src/display/canvas-axonomgrid.cpp index cd79e00bd..6bb5d47c0 100644 --- a/src/display/canvas-axonomgrid.cpp +++ b/src/display/canvas-axonomgrid.cpp @@ -40,6 +40,9 @@ #define SAFE_SETPIXEL //undefine this when it is certain that setpixel is never called with invalid params +#define DEFAULTGRIDCOLOR 0x0000FF20 +#define DEFAULTGRIDEMPCOLOR 0x0000FF50 + enum Dim3 { X=0, Y, Z }; #ifndef M_PI @@ -194,13 +197,13 @@ CanvasAxonomGrid::CanvasAxonomGrid (SPNamedView * nv, Inkscape::XML::Node * in_r : CanvasGrid(nv, in_repr, in_doc, GRID_AXONOMETRIC), table(1, 1) { origin[NR::X] = origin[NR::Y] = 0.0; - color = 0xff3f3f20; - empcolor = 0xFF3F3F40; + color = DEFAULTGRIDCOLOR; + empcolor = DEFAULTGRIDEMPCOLOR; empspacing = 5; - gridunit = &sp_unit_get_by_id(SP_UNIT_PX); + gridunit = &sp_unit_get_by_id(SP_UNIT_MM); angle_deg[X] = angle_deg[Z] = 30; angle_deg[Y] =0; - lengthy = 1; + lengthy = sp_units_get_pixels(1.0, *(gridunit)); angle_rad[X] = deg_to_rad(angle_deg[X]); tan_angle[X] = tan(angle_rad[X]); |
