// Please see the README file or the LEGAL NOTES-section in the manual before modifying, compiling or using 'xmrm'
//   Idea: Manfred Kopp
//   Programming: Gerhard Waldhör, Andreas Artmann

#include "const.h"

class ControlClass
{
  public:

  int whatdraw;
  int edit_change_perm;
  int edit_mode;
  int flag_set_vector;
  double warp_a,warp_b,warp_p; // constants for weight function - changed by sliders
  double slider_bias; // slider value for bias-function
  double wait;
  double delay; //delay between pics during anim
  int Abort; //IF TRUE calculation stops after next pic
  double b_bias_val[MAX_LEVELS];
  double akima_f[AKIMA_MAX][4], akima_P[AKIMA_MAX][2];
  int akima_nr;  
  int wave_nr;
  int levels,select_level;
  int Morph, stop, debug, advanced;
  int HowManyPics, WhatPic, AnimateOrShow, Cycle;
  char tif_name[BUFSIZ];
  int save_step, save_start, override;
  int co_vector,vec_changed;
  int replace;//1:replace 2:abort 3:replace all
  int mpeg_play;// TRUE if mpeg_play in PATH
  int netscape;
  char filename_source[BUFSIZ];
  char filename_destination[BUFSIZ];
  char filename_vector[BUFSIZ];
  char filename_project[BUFSIZ];
  char filename_area_map[BUFSIZ];
  char *URL_manual;
  char *URL_CG_Home;
  char *URL_TU_Vienna;
  
  ControlClass();
  int GetDraw();
  void SetDraw(int d);
  void SetCursor(int Active, Window win);
};

void SavePicture(char *filename, int size_w, int size_h, unsigned long *pic, int pic_nr);
extern void callback_File (FL_OBJECT *ob , long arg);
