- add_tool(new_svg_button = new NewSvgButton(client, this, x, y));
- add_tool(edit_svg_button = new EditSvgButton(client, this, x+190, y));
+ add_tool(title = new BC_Title(x0, y, _("DPI:")));
+ dpi = new DpiValue(this, client, x1, y, &client->config.dpi);
+ dpi->create_objects();
+ add_tool(dpi_button = new DpiButton(this, client, x2, y));
+ dpi_button->create_objects();
+ y += dpi->get_h() + 20;
+
+ add_tool(svg_file_title = new BC_Title(x0, y, client->config.svg_file));
+ y += svg_file_title->get_h() + 5;
+ struct stat st;
+ int64_t ms_time = stat(client->config.svg_file, &st) ? 0 :
+ st.st_mtim.tv_sec*1000 + st.st_mtim.tv_nsec/1000000;
+ char mtime[BCSTRLEN]; mtime[0] = 0;
+ if( ms_time > 0 ) {
+ time_t tm = ms_time/1000;
+ ctime_r(&tm ,mtime);
+ }
+ add_tool(svg_file_mstime = new BC_Title(x0, y, mtime));
+ y += svg_file_mstime->get_h() + 15;