Tcl_HashTable GraphCmds;
int GraphUpdateTime = 100;
+void DoUpdateGraph(SimGraph *graph);
+void DoNewGraph(SimGraph *graph);
+void DoResizeGraph(SimGraph *graph, int w, int h);
+void InitNewGraph(SimGraph *graph);
+
#define DEF_GRAPH_FONT "-Adobe-Helvetica-Bold-R-Normal-*-140-*"
#define DEF_GRAPH_BG_COLOR "#b0b0b0"
{
SimGraph *graph = (SimGraph *) clientData;
Tk_Window tkwin = graph->tkwin;
- Pixmap pm = None;
- Drawable d;
graph->flags &= ~VIEW_REDRAW_PENDING;
}
+void
EventuallyRedrawGraph(SimGraph *graph)
{
if (!(graph->flags & VIEW_REDRAW_PENDING)) {
int GraphCmdposition(GRAPH_ARGS)
{
- int result = TCL_OK;
-
if ((argc != 2) && (argc != 4)) {
return TCL_ERROR;
}
return TCL_ERROR;
}
- if (ent = Tcl_FindHashEntry(&GraphCmds, argv[1])) {
+ if ((ent = Tcl_FindHashEntry(&GraphCmds, argv[1]))) {
cmd = (int (*)())ent->clientData;
Tk_Preserve((ClientData) graph);
result = cmd(graph, interp, argc, argv);
};
-graph_command_init()
+void
+graph_command_init(void)
{
- int new;
-
Tcl_CreateCommand(tk_mainInterp, "graphview", GraphViewCmd,
(ClientData)MainWindow, (void (*)()) NULL);
/* comefrom: InitWillStuff */
+void
InitGraphMax(void)
{
- register x;
+ register int x;
ResHisMax = 0;
ComHisMax = 0;
}
+void
InitNewGraph(SimGraph *graph)
{
- int d = 8;
- struct XDisplay *xd;
-
graph->next = NULL;
graph->range = 10;
graph->mask = ALL_HISTORIES;
}
+void
DestroyGraph(SimGraph *graph)
{
SimGraph **gp;
}
+void
DoResizeGraph(SimGraph *graph, int w, int h)
{
- int resize = 0;
-
graph->w_width = w; graph->w_height = h;
if (graph->pixmap != None) {
}
+void
DoNewGraph(SimGraph *graph)
{
sim->graphs++; graph->next = sim->graph; sim->graph = graph;
#define BORDER 5
+void
DoUpdateGraph(SimGraph *graph)
{
Display *dpy;