head     56.3;
access   paws bayes jws quist brad dew jwh;
symbols  ;
locks    ; strict;
comment  @# @;


56.3
date     93.01.27.13.27.35;  author jwh;  state Exp;
branches ;
next     56.2;

56.2
date     93.01.27.12.05.43;  author jwh;  state Exp;
branches ;
next     56.1;

56.1
date     91.11.05.09.48.27;  author jwh;  state Exp;
branches ;
next     55.1;

55.1
date     91.08.25.10.24.55;  author jwh;  state Exp;
branches ;
next     54.1;

54.1
date     91.03.18.15.28.14;  author jwh;  state Exp;
branches ;
next     53.1;

53.1
date     91.03.11.19.28.49;  author jwh;  state Exp;
branches ;
next     52.1;

52.1
date     91.02.19.09.12.48;  author jwh;  state Exp;
branches ;
next     51.1;

51.1
date     91.01.30.16.12.34;  author jwh;  state Exp;
branches ;
next     50.1;

50.1
date     90.10.29.16.27.12;  author jwh;  state Exp;
branches ;
next     49.1;

49.1
date     90.08.14.14.11.29;  author jwh;  state Exp;
branches ;
next     48.1;

48.1
date     90.07.26.11.17.43;  author jwh;  state Exp;
branches ;
next     47.1;

47.1
date     90.05.14.11.00.58;  author dew;  state Exp;
branches ;
next     46.1;

46.1
date     90.05.07.08.48.02;  author jwh;  state Exp;
branches ;
next     45.1;

45.1
date     90.04.19.15.55.57;  author jwh;  state Exp;
branches ;
next     44.1;

44.1
date     90.04.01.22.12.59;  author jwh;  state Exp;
branches ;
next     43.1;

43.1
date     90.03.20.14.04.57;  author jwh;  state Exp;
branches ;
next     42.1;

42.1
date     90.01.23.17.49.49;  author jwh;  state Exp;
branches ;
next     41.1;

41.1
date     89.12.22.11.31.43;  author jwh;  state Exp;
branches ;
next     40.1;

40.1
date     89.09.29.11.53.31;  author jwh;  state Exp;
branches ;
next     39.1;

39.1
date     89.09.26.16.37.48;  author dew;  state Exp;
branches ;
next     38.1;

38.1
date     89.08.29.11.29.52;  author jwh;  state Exp;
branches ;
next     37.1;

37.1
date     89.05.12.11.42.35;  author dew;  state Exp;
branches ;
next     36.1;

36.1
date     89.02.06.10.20.46;  author dew;  state Exp;
branches ;
next     35.1;

35.1
date     89.02.02.13.35.54;  author dew;  state Exp;
branches ;
next     34.1;

34.1
date     89.01.23.16.11.02;  author jwh;  state Exp;
branches ;
next     33.1;

33.1
date     89.01.16.11.42.51;  author dew;  state Exp;
branches ;
next     32.1;

32.1
date     89.01.10.11.51.36;  author bayes;  state Exp;
branches ;
next     31.1;

31.1
date     88.12.14.18.12.42;  author bayes;  state Exp;
branches ;
next     30.1;

30.1
date     88.12.09.13.49.37;  author dew;  state Exp;
branches ;
next     29.1;

29.1
date     88.10.31.15.34.34;  author bayes;  state Exp;
branches ;
next     28.1;

28.1
date     88.10.06.11.01.08;  author dew;  state Exp;
branches ;
next     27.1;

27.1
date     88.09.29.11.38.28;  author bayes;  state Exp;
branches ;
next     26.1;

26.1
date     88.09.28.13.17.12;  author bayes;  state Exp;
branches ;
next     25.2;

25.2
date     88.03.30.09.04.09;  author bayes;  state Exp;
branches ;
next     25.1;

25.1
date     88.03.02.09.33.42;  author bayes;  state Exp;
branches ;
next     24.1;

24.1
date     87.08.31.09.55.52;  author jws;  state Exp;
branches ;
next     23.1;

23.1
date     87.08.26.10.34.29;  author bayes;  state Exp;
branches ;
next     22.1;

22.1
date     87.08.17.11.19.43;  author bayes;  state Exp;
branches ;
next     21.1;

21.1
date     87.08.12.14.02.17;  author bayes;  state Exp;
branches ;
next     20.1;

20.1
date     87.07.30.11.15.25;  author bayes;  state Exp;
branches ;
next     19.1;

19.1
date     87.06.01.08.30.09;  author jws;  state Exp;
branches ;
next     18.1;

18.1
date     87.05.20.15.30.32;  author bayes;  state Exp;
branches ;
next     17.1;

17.1
date     87.04.30.10.41.00;  author jws;  state Exp;
branches ;
next     16.1;

16.1
date     87.04.26.15.52.39;  author jws;  state Exp;
branches ;
next     15.1;

15.1
date     87.04.13.09.28.46;  author jws;  state Exp;
branches ;
next     14.1;

14.1
date     87.04.01.15.34.58;  author jws;  state Exp;
branches ;
next     13.1;

13.1
date     87.02.28.18.37.31;  author jws;  state Exp;
branches ;
next     12.1;

12.1
date     87.02.02.13.28.39;  author jws;  state Exp;
branches ;
next     11.1;

11.1
date     87.01.19.09.55.16;  author jws;  state Exp;
branches ;
next     10.1;

10.1
date     86.12.24.11.04.18;  author jws;  state Exp;
branches ;
next     9.1;

9.1
date     86.12.12.14.47.18;  author bayes;  state Exp;
branches ;
next     8.1;

8.1
date     86.11.27.12.02.52;  author jws;  state Exp;
branches ;
next     7.1;

7.1
date     86.11.20.13.54.14;  author hal;  state Exp;
branches ;
next     6.1;

6.1
date     86.11.04.18.05.18;  author paws;  state Exp;
branches ;
next     5.1;

5.1
date     86.10.28.16.54.08;  author hal;  state Exp;
branches ;
next     4.1;

4.1
date     86.09.30.19.52.43;  author hal;  state Exp;
branches ;
next     3.1;

3.1
date     86.09.01.12.02.50;  author hal;  state Exp;
branches ;
next     2.1;

2.1
date     86.07.30.14.50.38;  author hal;  state Exp;
branches ;
next     1.1;

1.1
date     86.06.30.15.29.24;  author danm;  state tmp;
branches ;
next     ;


desc
@Base file for PWS 3.2 release.

@


56.3
log
@
pws2rcs automatic delta on Wed Jan 27 13:14:25 MST 1993
@
text
@{                                                                           }
{ DGL device dependent init routine                                         }
{                                                                           }
{ Module    = DGL_HPHIL_ABSI                                                }
{ Programer = SFB                                                           }
{ Date      = 3 -25-85                                                      }
{                                                                           }
{ Purpose: To provide device dependent initialization for HPHIL TABLET      }

{ Rev history                                                               }
{  Created  - 3 -25-85  SFB                                                 }

{     (c) Copyright Hewlett-Packard Company, 1985.
      All rights are reserved.  Copying or other
      reproduction of this program except for archival
      purposes is prohibited without the prior
      written consent of Hewlett-Packard Company.


		  RESTRICTED RIGHTS LEGEND

      Use, duplication, or disclosure by the Government
      is subject to restrictions as set forth in
      paragraph (b) (3) (B) of the Rights in Technical
      Data and Computer Software clause in
      DAR 7-104.9(a).

      HEWLETT-PACKARD COMPANY
      Fort Collins, Colorado                              }

$search 'GLE_LIB',
	'TYPES',
	'DGL_VARS',
	'GEN',
	'DGL_C_OUT'$
$modcal$
$include 'OPTIONS'$  { ******************** COMPILER OPTIONS ****************** }
$linenum 18000$

module DGL_HPHIL_ABSI;

export

procedure dgl_hphili_abs_init;

implement

import dgl_types,
       dgl_vars,
       gle_types,
       gle_gen,
       gle_geni,
       dgl_gen;

procedure hphil_abs_sample_locator(    echo   : integer;
				   var rx,ry  : real    );

{ Purpose : To sample the locator device                                    }

var
  dx, dy : integer;

begin
  with gle_gcbi^ do
    begin
      gle_sample(gle_gcbi);
      convert_ltod(info1,info2,dx,dy);
      convert_dtow(dx,dy,rx,ry);
      info1 := echo;
      gle_input_echo (gle_gcbi);      { echo on locator device }
    end;
end; { sample_locator }

procedure hphil_abs_await_locator(var echo   : integer;
				  var button : integer;
				  var rx,ry  : real    );


{ Purpose : To activate the locator, and wait for operator termination      }

var
  echoerror : boolean;
  dx,dy : integer;
  last_x,last_y : integer;

begin
  if (echo < 0) or (echo > 8) then echo := 1;  { ck echo range }
  { ck for display echo, and display not enabled }
  if (not disp_init) and (echo >1)  then
    begin
      echoerror := true;
      echo := 1;
    end
  else
    echoerror := false;

  with gcb^,gle_gcbi^ do
    begin
      current_echo_type := echo;

      info2 := 0;
      gle_start_digitize (gle_gcbi);

      last_x := -32768;
      last_y := -32768;

      if echo > 1 then
	with gle_gcb^ do
	  begin
	    info1 := d_loc_echo_x;
	    info2 := d_loc_echo_y;
	    info3 := 1; { on }
	    gle_cursor ( gle_gcb );   { perform first echo at lep }
	  end;

      repeat
	gle_sample ( gle_gcbi );
	convert_ltod(info1,info2,dx,dy);
	button := info3;
	if (dx <> last_x) or (dy <> last_y) then
	  begin
	    last_x := dx;
	    last_y := dy;
	    if (echo > 1) and (not disp_eq_loc) then
	      with gle_gcb^ do
		begin
		  info1 := dx;
		  info2 := dy;
		  info3 := 1;
		  gle_cursor ( gle_gcb );
		end;
	  end;
      until button <> -1;

      gle_get_digitize(gle_gcbi);
      button := info3;

      convert_ltod(info1,info2,dx,dy);
      convert_dtow(dx,dy,rx,ry);
      adjust_return_echo ( rx, ry );

      if echo > 1 then
	with gle_gcb^ do
	  begin
	    info3 := 0;
	    gle_cursor(gle_gcb);         { remove cursor from screen }
	  end;

      if echo = 1 then
	begin
	  info1 := echo;
	  gle_input_echo ( gle_gcbi );
	end;
  end;

  if echoerror then error (err_echo_dis_int);

end; { await_locator }

procedure dgl_hphili_abs_init;

begin
  with gcb^ do
    begin
      proc_await_locator := hphil_abs_await_locator;
      proc_sample_locator := hphil_abs_sample_locator;
    end;
end;

end. { dgl_hphili_abs_init }

@


56.2
log
@
pws2rcs automatic delta on Wed Jan 27 11:57:27 MST 1993
@
text
@d1 171
@


56.1
log
@Automatic bump of revision number for PWS version 3.25
@
text
@a0 171
{                                                                           }
{ DGL device dependent init routine                                         }
{                                                                           }
{ Module    = DGL_HPHIL_ABSI                                                }
{ Programer = SFB                                                           }
{ Date      = 3 -25-85                                                      }
{                                                                           }
{ Purpose: To provide device dependent initialization for HPHIL TABLET      }

{ Rev history                                                               }
{  Created  - 3 -25-85  SFB                                                 }

{     (c) Copyright Hewlett-Packard Company, 1985.
      All rights are reserved.  Copying or other
      reproduction of this program except for archival
      purposes is prohibited without the prior
      written consent of Hewlett-Packard Company.


		  RESTRICTED RIGHTS LEGEND

      Use, duplication, or disclosure by the Government
      is subject to restrictions as set forth in
      paragraph (b) (3) (B) of the Rights in Technical
      Data and Computer Software clause in
      DAR 7-104.9(a).

      HEWLETT-PACKARD COMPANY
      Fort Collins, Colorado                              }

$search 'GLE_LIB',
	'TYPES',
	'DGL_VARS',
	'GEN',
	'DGL_C_OUT'$
$modcal$
$include 'OPTIONS'$  { ******************** COMPILER OPTIONS ****************** }
$linenum 18000$

module DGL_HPHIL_ABSI;

export

procedure dgl_hphili_abs_init;

implement

import dgl_types,
       dgl_vars,
       gle_types,
       gle_gen,
       gle_geni,
       dgl_gen;

procedure hphil_abs_sample_locator(    echo   : integer;
				   var rx,ry  : real    );

{ Purpose : To sample the locator device                                    }

var
  dx, dy : integer;

begin
  with gle_gcbi^ do
    begin
      gle_sample(gle_gcbi);
      convert_ltod(info1,info2,dx,dy);
      convert_dtow(dx,dy,rx,ry);
      info1 := echo;
      gle_input_echo (gle_gcbi);      { echo on locator device }
    end;
end; { sample_locator }

procedure hphil_abs_await_locator(var echo   : integer;
				  var button : integer;
				  var rx,ry  : real    );


{ Purpose : To activate the locator, and wait for operator termination      }

var
  echoerror : boolean;
  dx,dy : integer;
  last_x,last_y : integer;

begin
  if (echo < 0) or (echo > 8) then echo := 1;  { ck echo range }
  { ck for display echo, and display not enabled }
  if (not disp_init) and (echo >1)  then
    begin
      echoerror := true;
      echo := 1;
    end
  else
    echoerror := false;

  with gcb^,gle_gcbi^ do
    begin
      current_echo_type := echo;

      info2 := 0;
      gle_start_digitize (gle_gcbi);

      last_x := -32768;
      last_y := -32768;

      if echo > 1 then
	with gle_gcb^ do
	  begin
	    info1 := d_loc_echo_x;
	    info2 := d_loc_echo_y;
	    info3 := 1; { on }
	    gle_cursor ( gle_gcb );   { perform first echo at lep }
	  end;

      repeat
	gle_sample ( gle_gcbi );
	convert_ltod(info1,info2,dx,dy);
	button := info3;
	if (dx <> last_x) or (dy <> last_y) then
	  begin
	    last_x := dx;
	    last_y := dy;
	    if (echo > 1) and (not disp_eq_loc) then
	      with gle_gcb^ do
		begin
		  info1 := dx;
		  info2 := dy;
		  info3 := 1;
		  gle_cursor ( gle_gcb );
		end;
	  end;
      until button <> -1;

      gle_get_digitize(gle_gcbi);
      button := info3;

      convert_ltod(info1,info2,dx,dy);
      convert_dtow(dx,dy,rx,ry);
      adjust_return_echo ( rx, ry );

      if echo > 1 then
	with gle_gcb^ do
	  begin
	    info3 := 0;
	    gle_cursor(gle_gcb);         { remove cursor from screen }
	  end;

      if echo = 1 then
	begin
	  info1 := echo;
	  gle_input_echo ( gle_gcbi );
	end;
  end;

  if echoerror then error (err_echo_dis_int);

end; { await_locator }

procedure dgl_hphili_abs_init;

begin
  with gcb^ do
    begin
      proc_await_locator := hphil_abs_await_locator;
      proc_sample_locator := hphil_abs_sample_locator;
    end;
end;

end. { dgl_hphili_abs_init }

@


55.1
log
@Automatic bump of revision number for PWS version 3.25A
@
text
@@


54.1
log
@Automatic bump of revision number for PWS version 3.24
@
text
@@


53.1
log
@Automatic bump of revision number for PWS version 3.24B
@
text
@@


52.1
log
@Automatic bump of revision number for PWS version 3.24A
@
text
@@


51.1
log
@Automatic bump of revision number for PWS version 3.24d
@
text
@@


50.1
log
@Automatic bump of revision number for PWS version 3.23c
@
text
@@


49.1
log
@Automatic bump of revision number for PWS version 3.24b
@
text
@@


48.1
log
@Automatic bump of revision number for PWS version 3.24a
@
text
@@


47.1
log
@Automatic bump of revision number for PWS version 3.23
@
text
@@


46.1
log
@Automatic bump of revision number for PWS version 3.23
@
text
@@


45.1
log
@Automatic bump of revision number for PWS version 3.23C
@
text
@@


44.1
log
@Automatic bump of revision number for PWS version 3.23B
@
text
@@


43.1
log
@Automatic bump of revision number for PWS version 3.23aA
@
text
@@


42.1
log
@Automatic bump of revision number for PWS version 3.23e
@
text
@@


41.1
log
@Automatic bump of revision number for PWS version 3.23d
@
text
@@


40.1
log
@Automatic bump of revision number for PWS version 3.23c
@
text
@@


39.1
log
@Automatic bump of revision number for PWS version 3.23b
@
text
@@


38.1
log
@Automatic bump of revision number for PWS version 3.23a
@
text
@@


37.1
log
@Automatic bump of revision number for PWS version 3.3a
@
text
@@


36.1
log
@Automatic bump of revision number for PWS version 3.22
@
text
@@


35.1
log
@Automatic bump of revision number for PWS version 3.22
@
text
@@


34.1
log
@Automatic bump of revision number for PWS version 3.22
@
text
@@


33.1
log
@Automatic bump of revision number for PWS version 3.22D
@
text
@@


32.1
log
@Automatic bump of revision number for PWS version 3.22C
@
text
@@


31.1
log
@Automatic bump of revision number for PWS version 3.22B
@
text
@@


30.1
log
@Automatic bump of revision number for PWS version 3.22A
@
text
@@


29.1
log
@Automatic bump of revision number for PWS version 3.22b
@
text
@@


28.1
log
@Automatic bump of revision number for PWS version 3.3b
@
text
@@


27.1
log
@Automatic bump of revision number for PWS version 3.3a
@
text
@@


26.1
log
@Automatic bump of revision number for PWS version 3.3 Synch
@
text
@@


25.2
log
@For CATSEYE support
@
text
@@


25.1
log
@Automatic bump of revision number for PWS version 3.2Y
@
text
@@


24.1
log
@Automatic bump of revision number for PWS version 3.2
@
text
@@


23.1
log
@Automatic bump of revision number for PWS version 3.2P
@
text
@@


22.1
log
@Automatic bump of revision number for PWS version 3.2N
@
text
@@


21.1
log
@Automatic bump of revision number for PWS version 3.2M
@
text
@@


20.1
log
@Automatic bump of revision number for PWS version 3.2L
@
text
@@


19.1
log
@Automatic bump of revision number for PWS version 3.2K
@
text
@@


18.1
log
@Automatic bump of revision number for PWS version 3.2J
@
text
@@


17.1
log
@Automatic bump of revision number for PWS version 3.2I+
@
text
@@


16.1
log
@Automatic bump of revision number for PWS version 3.2I
@
text
@@


15.1
log
@Automatic bump of revision number for PWS version 3.2H
@
text
@@


14.1
log
@Automatic bump of revision number for PWS version 3.2G
@
text
@@


13.1
log
@Automatic bump of revision number for PWS version 3.2F
@
text
@@


12.1
log
@Automatic bump of revision number for PWS version 3.2E
@
text
@@


11.1
log
@Automatic bump of revision number for PWS version 3.2D
@
text
@@


10.1
log
@Automatic bump of revision number for PWS version 3.2C
@
text
@@


9.1
log
@Automatic bump of revision number for PWS version 3.2B
@
text
@@


8.1
log
@Automatic bump of revision number for PWS version 3.2A
@
text
@@


7.1
log
@Automatic bump of revision number for PWS version 3.2l
@
text
@@


6.1
log
@Automatic bump of revision number for PWS version 3.2k
@
text
@@


5.1
log
@Automatic bump of revision number for PWS version 3.2j
@
text
@@


4.1
log
@Automatic bump of revision number for PWS version 3.2i
@
text
@@


3.1
log
@Automatic bump of revision number for PWS version 3.2h
@
text
@@


2.1
log
@Auto bump rev number to 2.1 for sys 3.2e.
@
text
@@


1.1
log
@Initial revision
@
text
@@
