extern Tk_ConfigSpec TileViewConfigSpecs[];
+void ClipTheOverlay(SimView *view);
+void DrawTheOverlay(SimView *view, GC gc, Pixmap pm, int color,
+ int top, int bottom, int left, int right,
+ int onoverlay);
+void DrawOverlay(SimView *view);
+void DrawCursor(SimView *view);
+void DrawPending(SimView *view);
+void DrawOutside(SimView *view);
+void HandleAutoGoto(SimView *view);
+
int EditorCmdconfigure(VIEW_ARGS)
{
int EditorCmdTweakCursor(VIEW_ARGS)
{
- int x, y;
-
XWarpPointer (view->x->dpy, None, None, 0, 0, 0, 0, 0, 0);
return TCL_OK;
int EditorCmdFollow(VIEW_ARGS)
{
- int id;
SimSprite *sprite;
if ((argc != 2) && (argc != 3)) {
int EditorCmdWriteJpeg(VIEW_ARGS)
{
+#if 0
int val;
char *fileName = argv[2];
+#endif
if (argc != 3) {
return TCL_ERROR;
}
-editor_command_init()
+void
+editor_command_init(void)
{
- int new;
extern int TileViewCmd(CLIENT_ARGS);
Tcl_CreateCommand(tk_mainInterp, "editorview", TileViewCmd,
return TCL_ERROR;
}
- if (ent = Tcl_FindHashEntry(&EditorCmds, argv[1])) {
+ if ((ent = Tcl_FindHashEntry(&EditorCmds, argv[1]))) {
cmd = (int (*)())ent->clientData;
Tk_Preserve((ClientData) view);
result = cmd(view, interp, argc, argv);
/*************************************************************************/
+void
DoNewEditor(SimView *view)
{
sim->editors++; view->next = sim->editor; sim->editor = view;
}
+void
DoUpdateEditor(SimView *view)
{
int dx, dy, i;
view->skips)) {
if (sim_skips) {
if (sim_skip > 0) {
- return 0;
+ return;
}
} else {
if (view->skip > 0) {
--view->skip;
- return 0;
+ return;
} else {
view->skip = view->skips;
}
}
+void
HandleAutoGoto(SimView *view)
{
if (view->follow != NULL) {
view->auto_going &&
(view->tool_mode == 0)) {
int dx, dy;
- int panx, pany, speed;
+ int speed;
double dist, sloth;
speed = view->auto_speed;
}
}
+void
DrawOutside(SimView *view)
{
Pixmap pm = view->pixmap2;
char CursorDashes[] = { 4, 4 };
+void
DrawPending(SimView *view)
{
Pixmap pm = view->pixmap2;
}
+void
DrawCursor(SimView *view)
{
Pixmap pm = Tk_WindowId(view->tkwin);
}
+void
TimeElapsed(struct timeval *elapsed,
struct timeval *start,
struct timeval *finish)
+void
DrawOverlay(SimView *view)
{
int width = view->w_width;
}
+void
DrawTheOverlay(SimView *view, GC gc, Pixmap pm, int color,
int top, int bottom, int left, int right,
int onoverlay)
}
+void
ClipTheOverlay(SimView *view)
{
if (view->x->color) {