- add_tool(svg_file_title = new BC_Title(x, y+=42, client->config.svg_file));
- add_tool(svg_file_mstime = new BC_Title(x, y+=26, ""));
+ 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;
+
+ y = get_h() - NewSvgButton::calculate_h() - 5;
+ add_tool(new_svg_button = new NewSvgButton(client, this, x0, y));
+ y = get_h() - EditSvgButton::calculate_h() - 5;
+ add_tool(edit_svg_button = new EditSvgButton(client, this, x0+300, y));