home *** CD-ROM | disk | FTP | other *** search
- /* *****************************************************************************
- *
- * Copyright 1991, 1992, 1993, 1994, Silicon Graphics, Inc.
- * All Rights Reserved.
- *
- * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
- * the contents of this file may not be disclosed to third parties, copied or
- * duplicated in any form, in whole or in part, without the prior written
- * permission of Silicon Graphics, Inc.
- *
- * RESTRICTED RIGHTS LEGEND:
- * Use, duplication or disclosure by the Government is subject to restrictions
- * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
- * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
- * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
- * rights reserved under the Copyright Laws of the United States.
- *
- ***************************************************************************** */
- #include "fast.h"
- #include "event.h"
- #include "device.h"
-
- extern void do_quit(), do_rightmouse(), do_resize(), display(), ShowFast();
- extern void this_run(), that_run(), this_quit();
- extern void size300(), size500();
- extern void set1proc(), setnproc();
-
-
- int mainmenu, quitmenu, sizemenu, procmenu;
-
- extern int max_size, max_proc;
-
- Init(name)
- char *name;
- {
- max_size = 300;
- keepaspect(1, 1);
- prefsize(600,600);
- {
- char *t, *strrchr();
- winopen((t=strrchr(name, '/')) != NULL ? t+1 : name);
- }
-
- wintitle("LAPACK-LINPACK");
-
- add_event(ANY, REDRAW, ANY, display, NULL);
- qdevice(REDRAW);
-
- add_event(ANY, ESCKEY, UP, do_quit, NULL);
- qdevice(ESCKEY);
-
- add_event(ANY, WINQUIT, ANY, do_quit, NULL);
- qdevice(WINQUIT);
-
- add_event(ANY, RIGHTMOUSE, DOWN, do_rightmouse, NULL);
- qdevice(RIGHTMOUSE);
-
- doublebuffer();
- gconfig();
-
- shademodel(FLAT);
-
- CreateMenus();
-
- do_resize();
- }
-
- char str[64];
- CreateMenus() {
- /*
- sprintf(str, "N Procs %%t | 1 %%f | %d %%f", max_proc);
- procmenu = defpup(str, set1proc, setnproc);
- */
- sizemenu = defpup(" Size %t| 300 %f| 500 %f",
- size300, size500);
-
- mainmenu = defpup("LAPACK-LINPACK %t|Reset %f|Size %m|------|Run LINPACK %f|Run LAPACK %f|------|Quit %f",
- do_resize,sizemenu, this_run , that_run, this_quit);
-
- quitmenu = defpup("Quit %t|Really %f|Cancel %f",
- do_quit, ShowFast);
- }
-