Simple CAD
This is a C version of a program I wrote in 1983/4 for Pascal on the
HP9836 computers (Motorola 68xxx). The C version originally ran on the
HP IPC in 1985 and on HP-UX on HP9000 200/300/500 computers in 1985
before being ported to SunOS in 1993 and Linux some time in the 90's
using the Athena widget toolkit.
The modern Athena toolkey apparently has a bug in the
XawTextSetSelection() call which causes a crash when creating the
dialog for loading files. So I gave up on that and the current code
runs on glade-3/gtk-3.3.
As a result of the origin of the program in Pascal, the machine
translation to C and the porting back and forth between graphics
platforms, the code is horrible. It is innocent of all Object Oriented
principles (in fact it pre-dates the OOP era) and gleefully hacks
global values all over the place. Even namespaces are unclear. Please
don't look too closely at it and don't think this is the way I like to
code.
Status:
Kinda sorta working with gtk3; doesn't seem to crash; needs much
polish particularly in the EDIT/DIM areas (and many features adding /
re-thinking)
To compile:
./autogen.sh
./configure
make
To add debug:
./configure CFLAGS="-g -O0"
make
To run, Easel needs a resource file (in app-defaults) and the fonts
files. These should be installed in /usr/share/X11/app-defaults and
/usr/lib/easel/fonts otherwise run like this:
cd src
XFILESEARCHPATH=../%T/%N EASEL_FONTDIR=../fonts ./easel
or
cd src
XAPPLRESDIR=../app-defaults EASEL_FONTDIR=../fonts ./easel