// ----------------------------------------------------------------------------
//
// Copyright (C) Columbia University, 1994. All Rights Reserved.
// Sameer A. Nene, Shree K. Nayar, Hiroshi Murase
//
// See file LICENSE for details of software license agreement.
//
// ----------------------------------------------------------------------------
//
// ximgtool.h
//
// Author:               Sameer Nene
// Date:                 09/12/94
// Version:              1.0.0
// Modification History:
//
// Notes:
//   X module for visualization/manipulation of images/vector/eigenvectors
//   
// ----------------------------------------------------------------------------

#ifndef XIMGTOOL_INCLUDED
#define XIMGTOOL_INCLUDED

class Image;
class FileList;
class FileListIter;
class VectAry;

#include <X11/Intrinsic.h>

class Global {
  
public:
  static Widget d_darea;
  static Widget d_label1;
  static Widget d_label2;
  static Widget d_label3;
  static Widget d_buttons;
  static Widget d_text1;
  static Widget d_text2;
  static Widget d_text3;
  static Widget d_text4;
  static Widget d_text5;
  static Widget d_text6;
  static Widget d_text7;
  static Widget d_loadrbox;
  static Widget d_saverbox;
  static Widget d_loadbox;
  static Widget d_savebox;
  static Widget d_optionType[2];
  static Widget d_optionMenu[2];
  static Widget d_sizeArea;
  static Widget d_segButton;
  static Widget d_sizeButton;
  static Widget d_normButton;
  static Widget d_prefButton;
  static Widget d_selectBox;
  static Widget d_selectList;
  static Widget d_prefBox;
  static Widget d_topshell;
  static XtCallbackProc d_defFileSearchProc;
  static XtAppContext d_app;
  static int d_ldsvflg;
  static int d_ldsel;
  static int d_svsel;
  static int d_ldtstat;
  static int d_svtstat;
  static int d_seg;
  static int d_nsize;
  static int d_nbright;
  static int d_vapos;
  static int d_viewv;
  static int d_vxsize;
  static int d_vysize;
  static int d_nxsize;
  static int d_nysize;
  static int d_ldftype;
  static int d_svftype;
  static int d_thresh;
  static int d_aspect;
  static char *d_name;
  static char *d_dir;
  static Display *d_display;
  static GC d_gc;
  static XVisualInfo d_vinfo;
  static XImage *d_ximage;
  static Window d_drawin;
  static Image *d_image;
  static FileList *d_fl;
  static FileListIter *d_flit;
  static Vector *d_vec_p;
  static VectAry *d_va;
  static unsigned long d_ctrans[256];
  static unsigned char d_surf[];
};

#endif
