void wipeout(int ask) { if (ask && !yesno("Kill all graphs, sets, and annotation?", NULL, NULL, NULL)) { return; } kill_graph(maxgraph); do_clear_lines(); do_clear_boxes(); do_clear_text(); cg = 0; drawgraph(); }
void copy_graph_sets_only(int from, int to) { int i, j; kill_graph(to); set_graph_active(to); /* TODO compare maxplots */ for (i = 0; i < g[from].maxplot; i++) { for (j = 0; j < MAX_SET_COLS; j++) { g[to].p[i].ex[j] = NULL; } g[to].p[i].active = OFF; if (isactive(from, i)) { do_copyset(from, i, to, i); } } }
void copy_graph(int from, int to) { int i, j; plotarr *p; kill_graph(to); p = g[to].p; memcpy(&g[to], &g[from], sizeof(graph)); g[to].p = p; set_graph_active(to); /* TODO compare maxplots */ for (i = 0; i < g[from].maxplot; i++) { for (j = 0; j < MAX_SET_COLS; j++) { g[to].p[i].ex[j] = NULL; } g[to].p[i].active = OFF; if (isactive(from, i)) { do_copyset(from, i, to, i); } } }
static void KillGraph_FLTK(CSOUND *csound, WINDAT *wdptr) { kill_graph(csound, wdptr->windid); }