IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5849


Ignore:
Timestamp:
Dec 27, 2005, 8:38:11 AM (20 years ago)
Author:
eugene
Message:

updating to libkapa

Location:
trunk/Ohana/src
Files:
2 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kii/include/constants.h

    r5700 r5849  
    2727int USE_XWINDOW;
    2828int MAP_WINDOW;
     29char *NAME_WINDOW;
    2930
    3031# define EVENT_MASK (long) \
  • trunk/Ohana/src/kii/include/prototypes.h

    r5637 r5849  
     1RotFont *GetRotFontData (double *scale);
     2int SetRotFont PROTO((char *name, int size));
     3void InitRotFonts PROTO(());
     4int DrawRotText PROTO((int x, int y, char *string, int pos, double angle));
     5int DrawRotBitmap PROTO((int x, int y, int dx, int dy, unsigned char *bitmap, int mode, double angle, double scale));
     6char *GetRotFont PROTO((int *size));
     7int RotStrlen PROTO((char *c));
     8void PSRotText PROTO((FILE *f, int x, int y, char *string, int pos, double angle));
     9void PSDumpRotSegment PROTO((FILE *f, char *segment, int *Nseg));
     10void PSSetFont PROTO((FILE *f, char *name, int size));
     11
    112int SetColormap (Graphic *graphic, Layout *layout, char *name);
    213void FlushDisplay (Display *display);
  • trunk/Ohana/src/kii/setup/NameWindow.c

    r2466 r5849  
    22
    33/************** NameWindow *************/
    4 void
    5 NameWindow (graphic, Name)
    6 Graphic     graphic[];
    7 char       *Name;
    8 {
     4void NameWindow (Graphic *graphic, char *name) {
    95
    10   char       *name;
    116  char       *class_name;
    127  char       *class_type;
    138  XClassHint *classhints;
    149
    15   name = strrchr (Name, '/');
    16   if (name != NULL)
    17     name ++;
    18   else
    19     name = Name;
    2010  class_type = class_name = name;
    21 
    2211
    2312  classhints = XAllocClassHint ();
     
    3322  XSetIconName (graphic[0].display, graphic[0].window, name);
    3423}
    35 
  • trunk/Ohana/src/kii/setup/SetUpWindow.c

    r5700 r5849  
    77  int N;
    88  Icon icon;
     9  char *name;
    910
    1011  icon.width = icon_width;
     
    2122  SetNormalHints (graphic);
    2223  SetWMHints (graphic, &icon);
    23   NameWindow (graphic, "Ki'i");
     24
     25  if (NAME_WINDOW == NULL) {
     26    NameWindow (graphic, "Ki'i");
     27  } else {
     28    ALLOCATE (name, char, strlen(NAME_WINDOW) + 10);
     29    sprintf (name, "Ki'i %s", NAME_WINDOW);
     30    NameWindow (graphic, name);
     31    free (name);
     32  }
    2433
    2534  if (MAP_WINDOW) MapWindow (graphic);
    2635}
    27 
    28 
    29 
  • trunk/Ohana/src/kii/setup/args.c

    r5637 r5849  
    99    remove_argument(N, argc, argv);
    1010    MAP_WINDOW = FALSE;
     11  }
     12
     13  NAME_WINDOW = NULL;
     14  if ((N = get_argument (*argc, argv, "-name"))) {
     15    remove_argument(N, argc, argv);
     16    NAME_WINDOW = strcreate (argv[N]);
     17    remove_argument(N, argc, argv);
    1118  }
    1219
  • trunk/Ohana/src/libdvo

    • Property svn:ignore set to
      lib
  • trunk/Ohana/src/opihi/cmd.data/box.c

    r4689 r5849  
    5050  if (argc != 1) goto usage;
    5151
    52   SendGraphCommand (Xgraph, 4, "DBOX");
    53   SendGraphMessage (Xgraph, "%12.6g %12.6g %12.6g %12.6g", graphmode.xmin, graphmode.xmax, graphmode.ymin, graphmode.ymax);
    54   SendGraphMessage (Xgraph, "%s %s %s", Axis, Labels, Ticks);
     52  KapaBox (Xgraph, &graphmode, Axis, Labels, Ticks);
    5553  return (TRUE);
    5654     
Note: See TracChangeset for help on using the changeset viewer.