Example #1
0
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();
}
Example #2
0
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);
        }
    }
}
Example #3
0
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);
        }
    }
}
Example #4
0
static void KillGraph_FLTK(CSOUND *csound, WINDAT *wdptr)
{
    kill_graph(csound, wdptr->windid);
}