summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c2057a7)
raw | patch | inline | side by side (parent: c2057a7)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 16 Jan 2008 19:27:52 +0000 (19:27 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 16 Jan 2008 19:27:52 +0000 (19:27 +0000) |
src/display/canvas-axonomgrid.cpp | patch | blob | history | |
src/display/canvas-grid.cpp | patch | blob | history |
index 51aa4378313b31ad88569d2821ce32e648eb7f31..22141faf878342f33f563b8d3786de48ffd399f5 100644 (file)
attach_all (*table, widget_array, sizeof(widget_array));
if (repr) readRepr();
- updateWidgets();
+
+ // set widget values
+ _rumg->setUnit (gridunit);
+
+ gdouble val;
+ val = origin[NR::X];
+ val = sp_pixels_get_units (val, *(gridunit));
+ _rsu_ox->setValue (val);
+ val = origin[NR::Y];
+ val = sp_pixels_get_units (val, *(gridunit));
+ _rsu_oy->setValue (val);
+ val = lengthy;
+ double gridy = sp_pixels_get_units (val, *(gridunit));
+ _rsu_sy->setValue (gridy);
+
+ _rsu_ax->setValue(angle_deg[X]);
+ _rsu_az->setValue(angle_deg[Z]);
+
+ _rcp_gcol->setRgba32 (color);
+ _rcp_gmcol->setRgba32 (empcolor);
+ _rsi->setValue (empspacing);
+
return table;
}
index a15fdf2434921098505af9052691cf298d60fecd..f36d8dc5a994cfc7975a1d65f00aa0bcf213f577 100644 (file)
vbox->pack_start(*_rcb_visible, true, true);
vbox->pack_start(*newSpecificWidget(), true, true);
+ // set widget values
+ _rcb_visible->setActive(visible);
+ if (snapper != NULL) {
+ _rcb_enabled->setActive(snapper->getEnabled());
+ }
+
return dynamic_cast<Gtk::Widget *> (vbox);
}
attach_all (*table, widget_array, sizeof(widget_array));
if (repr) readRepr();
- updateWidgets();
+
+ // set widget values
+ _rumg->setUnit (gridunit);
+
+ gdouble val;
+ val = origin[NR::X];
+ val = sp_pixels_get_units (val, *(gridunit));
+ _rsu_ox->setValue (val);
+ val = origin[NR::Y];
+ val = sp_pixels_get_units (val, *(gridunit));
+ _rsu_oy->setValue (val);
+ val = spacing[NR::X];
+ double gridx = sp_pixels_get_units (val, *(gridunit));
+ _rsu_sx->setValue (gridx);
+ val = spacing[NR::Y];
+ double gridy = sp_pixels_get_units (val, *(gridunit));
+ _rsu_sy->setValue (gridy);
+
+ _rcp_gcol->setRgba32 (color);
+ _rcp_gmcol->setRgba32 (empcolor);
+ _rsi->setValue (empspacing);
+
+ _rcb_dotted->setActive(render_dotted);
return table;
}