Index: fltk/config.h_vms =================================================================== --- fltk/config.h_vms (revision 0) +++ fltk/config.h_vms (revision 0) @@ -0,0 +1,251 @@ +/* config.h. Generated by configure. */ +/* "$Id: configh.in 4253 2005-04-09 19:17:18Z spitzak $" + * + * Configuration file for compiling the Fast Light Tool Kit (FLTK). + * + * Copyright 1998-2005 by Bill Spitzak and others. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA. + * + * Please report all bugs and problems to "fltk-bugs@fltk.org". + */ + +#include + +/* Where to find files. Currently not used, and if they are they will + be overridden by environment variables with the same name. */ +#define FLTK_DATADIR "FLTK$DATA" +#define FLTK_DOCDIR "FLTK$DOC" + +/* Byte order of your machine: 1 = big-endian, 0 = little-endian. */ +#define WORDS_BIGENDIAN 0 + +/* Types used by fl_draw_image. One of U32 or U64 must be defined. + U16 is optional but FLTK will work better with it! */ +#define U16 unsigned short +#define U32 unsigned +/* #undef U64 */ + +/* Set this to 1 to compile for X11 on Windows or OS/X. */ +/* #undef USE_X11 */ +#if !defined(USE_X11) && !defined(_WIN32) && !defined(__APPLE__) +# define USE_X11 1 +#endif + +/* Set this to 1 to compile using Quartz drawing instead of X11 + on Apple OS X */ +#if !defined(USE_X11) && defined(__APPLE__) +# define USE_QUARTZ 1 +#endif + +/* Setting this to zero will delete code to handle X and WIN32 + colormaps, this will save a good deal of code (especially for + fl_draw_image), but FLTK will only work on TrueColor visuals. */ +#define USE_COLORMAP 1 + +/* If USE_X11 is on, this also uses XLockDisplay() to implement + fltk::lock()/unlock(). This is NOT recommended, see the file + src/x11/lock.cxx for details. +*/ +#define USE_X11_MULTITHREADING 0 + +/* Use the new Xft library to draw fonts, which is how you get + anti-aliasing. (ignored if !USE_X11) */ +#define USE_XFT 0 + +/* Use the Cairo library to draw everything. Ignored if !USE_X11 + Currently only partly implemented, though line drawing looks + nice. For more info on Cairo see http://www.cairographics.org */ +#define USE_CAIRO 0 + +/* Use the fltk::clipout() method to make redrawing blink less, by + drawing the widgets first, and then the background of the + window. This is unnecessary in double-buffered windows, and + tests have shown it to be slower, and it is more complicated. + Also Cairo and OpenGL do not support clipout() so it does not + work in them. */ +#define USE_CLIPOUT 0 + +/* Do we have the X double-buffer extension header file + ? Turning this on will make the list_visuals + program produce info about it. (ignored if !USE_X11) */ +#define HAVE_XDBE 1 + +/* Actually try to use the double-buffer extension to make + double-buffered windows? If this is false then Pixmaps will + be used for the double buffers. Pixmaps will also be used if + at runtime fltk detects that double-buffering does not work. + Some older X servers may claim that double buffering works + when it does not and you will have to turn this off. + (ignored if !USE_X11)*/ +#define USE_XDBE HAVE_XDBE + +/* Did we detect the X overlay extension on the X server? This + is currently not used anywhere. */ +#define HAVE_OVERLAY 0 + +/* Use the X overlay extension for MenuWindow and Tooltips. Pretty + much depreciated, this will add a substantial amount of code + to manage more than one visual, and has only worked on Irix. + (ignored if !USE_X11) */ +#define USE_OVERLAY 0 + +/* Use the Xinerama extension? This allows an X server to describe + multiple monitors. If not used FLTK will assumme the entire X + display area is one monitor, unless it is very wide, in which + case FLTK will guess that it is two monitors next to each other. + (ignored if !USE_X11) */ +#define USE_XINERAMA 0 + +/* Use the Windows NT5.0/Win98 multi-monitor calls? If ths is false it + will guess 1 or 2 monitors, similar to the X version. + (ignored if !_WIN32) */ +#define USE_MULTIMONITOR 1 + +/* Use the Windows NT4.0/Win95 "stock brushes" calls. These calls + modernize the Win32 GDI into a "set current color" type of + interface and make drawing substantially faster. Without them + fltk must create/destroy "pens" and "brushes" whenever it wants + to change the color it is drawing with. + (ignored if !_WIN32) */ +#define USE_STOCK_BRUSH 1 + +/* Use "X Input Method" for i18n text input. Most familiar as the + "dead key prefix" code. But Japanese users use this to run far more + complex programs for selecting glyphs. You can turn it off on the + (rare) systems that produce an "encoding" that fltk does not + understand, you will still be able to type many Latin characters + with fltk's right-Ctrl+letters input method. Turning this off + should also disable such input methods on other systems, nyi. */ +#define USE_XIM 1 + +/* Do we have a working iconv program? + (only used with X11 with USE_XIM when the XFree86 Xutf8LookupString + function is not available). If this is not available than XIM will + probably not work. */ +#define HAVE_ICONV 0 + +/* Set this to 0 if your system does not have OpenGL. This will + disable all the code in libfltk_gl and disable the demo programs + that use OpenGL. */ +#define HAVE_GL 1 + +/* Do you have the OpenGL Utility Library header file? + (many broken Mesa RPMs do not...). This is only used by demo + programs. */ +#define HAVE_GL_GLU_H 1 + +/* Does OpenGL have the ability to draw into the overlay? Currently + this uses the same code as X for finding the overlay visual, + however it is possible that future versions of GLX will use + other methods. */ +#define HAVE_GL_OVERLAY HAVE_OVERLAY + +/* Use the OpenGL overlay for Gl_Window::draw_overlay(). Tested only + on Irix. Overlay is usually colormapped, limiting what OpenGL + you can draw, and requiring fltk to compile in a lot of colormap + and visual management code. */ +#define USE_GL_OVERLAY 0 + +/* Standard autoconf stuff to figure out readdir() header files. + (ignored for _WIN32) */ +#define HAVE_DIRENT_H 1 +/* #undef HAVE_SYS_NDIR_H */ +/* #undef HAVE_SYS_DIR_H */ +/* #undef HAVE_NDIR_H */ +#define HAVE_SCANDIR 0 + +/* If not set fltk will define it's own versions of these string + functions. By including the fltk/string.h header file you will + be able to call these from user programs on any platform. */ +#define HAVE_STRING_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_VSNPRINTF 1 +#define HAVE_SNPRINTF 1 +#define HAVE_STRCASECMP 1 +#define HAVE_STRDUP 1 +/* #undef HAVE_STRLCAT */ +/* #undef HAVE_STRLCPY */ +#define HAVE_STRNCASECMP 1 + +/* Whether or not select() call has its own header file. */ +#define HAVE_SYS_SELECT_H 0 + +/* Whether or not we have the header file. */ +/* #undef HAVE_SYS_STDTYPES_H */ + +/* Use the poll() call provided on Linux and IRIX instead of select() */ +#define USE_POLL 0 + +/* Do we have various image libraries? */ +#define HAVE_LIBPNG 1 +#define HAVE_LIBZ 1 +#define HAVE_LIBJPEG 1 + +/* Which header file do we include for libpng? */ +/* #undef HAVE_LOCAL_PNG_H */ +#define HAVE_PNG_H 1 +#define HAVE_LIBPNG_PNG_H 1 + +/* Which header file do we include for libjpeg? */ +/* #undef HAVE_LOCAL_JPEG_H */ + +/* Do we have the png_xyz() functions? */ +#define HAVE_PNG_GET_VALID 1 +#define HAVE_PNG_SET_TRNS_TO_ALPHA 1 + +/* Do we have POSIX thread library? fltk::lock() will not work unless + this exists or WIN32 exists. */ +#define HAVE_PTHREAD 1 +#define HAVE_PTHREAD_H 1 + +/* Do we have exceptions in the compiler? Only used by test programs. */ +#define HAVE_EXCEPTIONS 1 + +/**** MRS: THESE TWO ARE GOING AWAY! ****/ +/* Enables fl_load_plugin() on Unix */ +#define HAVE_DLOPEN 0 + +/**** MRS: These should be run-time checks!!!! ****/ +/* The BoXX machines (and possibly other Linux machines) have bugs in + the X/OpenGL driver for FireGL for handling hardware overlays. Turn + this on to work around these, but it will cause the overlay to + blink unnecessarily. Ignored if !USE_GL_OVERLAY. */ +#define BOXX_OVERLAY_BUGS 0 + +/* The SGI 320 NT machines have a bug where the cursor interferes with + the hardware overlay. Turn this on to work around this. I have been + told this slows down display quite a bit on some NT machines. + Ignored if !USE_GL_OVERLAY. */ +#define SGI320_BUG 0 + +/**** MRS: This may go away! ****/ +/* Enables Windows GUI emulation: clicking on most widgets (such as + buttons) moves the focus to them. This makes some useful GUI designs + impossible. */ +#define CLICK_MOVES_FOCUS 0 + +/* If false or not defined, then if NumLock is off keypad events are + translated to fltk::LEFT_KEY, etc. If on, keypad keys are always + reported as fltk::KEYPAD0, fltk::KEYPAD1, ..., ignoring the setting + of the NumLock key. This is incredibly useful if you want your + program to actually use the keypad, and is recommended. */ +#define IGNORE_NUMLOCK 1 + +#include +#include + +/* End of "$Id: configh.in 4253 2005-04-09 19:17:18Z spitzak $". */ Index: fltk/OpenGL/descrip.mms =================================================================== --- fltk/OpenGL/descrip.mms (revision 0) +++ fltk/OpenGL/descrip.mms (revision 0) @@ -0,0 +1,33 @@ +#***************************************************************************** +# * +# Make file for VMS * +# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) * +# Date : 7 June 2005 * +# * +#***************************************************************************** + +.first + define/nolog fltk [-.fltk] + define/nolog FL [-.FL] + +CFLAGS=/include=([],[-])/name=(as_is,short)/float=ieee + +CXXFLAGS=$(CFLAGS) + +OBJECTS=\ + Fl_Gl_Choice.obj,\ + Fl_Gl_Overlay.obj,\ + Fl_Gl_Window.obj,\ + gl_draw.obj,\ + gl_start.obj + +all : $(OBJECTS) + library [-]libfltk.olb $(OBJECTS) + +$(OBJECTS) : [-]config.h + +Fl_Gl_Choice.obj : Fl_Gl_Choice.cxx +Fl_Gl_Overlay.obj : Fl_Gl_Overlay.cxx +Fl_Gl_Window.obj : Fl_Gl_Window.cxx +gl_draw.obj : gl_draw.cxx +gl_start.obj : gl_start.cxx Index: fltk/src/ScrollGroup.cxx =================================================================== --- fltk/src/ScrollGroup.cxx (revision 4406) +++ fltk/src/ScrollGroup.cxx (working copy) @@ -376,7 +376,8 @@ // The event indicates that the focus changed to a different child, // auto-scroll to show it: - // NO !!!! FORTY TIMES NO!!! +#if 0 + // NO !!!! FORTY TIMES NO!!! // NO DO NOT SCROLL TO THE FOCUSSED CHILD // NO DO NOT DO IT // IT BREAKS THE CONTROL PANELS IN NUKE @@ -409,8 +410,10 @@ if (y < R.y()) {dy = R.y()-y; if (b+dy > R.b()) {dy = R.b()-b; if (dy < 0) dy = 0;}} else if (b > R.b()) {dy = R.b()-b; if (y+dy < R.y()) {dy = R.y()-y; if (dy > 0) dy = 0;}} scrollTo(xposition_-dx, yposition_-dy); - break;} - + break; +#endif + } + case ENTER: case MOVE: case DND_ENTER: Index: fltk/src/ARRAY.h =================================================================== --- fltk/src/ARRAY.h (revision 4406) +++ fltk/src/ARRAY.h (working copy) @@ -27,8 +27,12 @@ // Systems with alloca(): #elif defined(__DECCXX) || defined(__sgi) +#ifdef __VMS +#define alloca __ALLOCA +#else # include -# define ARRAY(type, name, size) type*const name = (type*)alloca(size*sizeof(type)) +#endif +#define ARRAY(type, name, size) type*const name = (type*)alloca(size*sizeof(type)) // Use C++ to make the array: #else Index: fltk/src/descrip.mms =================================================================== --- fltk/src/descrip.mms (revision 0) +++ fltk/src/descrip.mms (revision 0) @@ -0,0 +1,328 @@ +#***************************************************************************** +# * +# Make file for VMS * +# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) * +# Date : 22 June 2005 * +# * +#***************************************************************************** + +.first + define/nolog fltk [-.fltk] + define/nolog FL [-.FL] + +CFLAGS=/include=([],[-])/name=(as_is,short)/float=ieee + +CXXFLAGS=$(CFLAGS) + +OBJECTS=\ + Adjuster.obj,\ + AlignGroup.obj,\ + BarGroup.obj,\ + Browser.obj,\ + Button.obj,\ + CheckButton.obj,\ + Choice.obj,\ + Clock.obj,\ + Color.obj,\ + ComboBox.obj,\ + Cursor.obj,\ + CycleButton.obj,\ + Dial.obj,\ + DiamondBox.obj,\ + EngravedLabel.obj,\ + FileBrowser.obj,\ + FileChooser.obj,\ + FileChooser2.obj,\ + FileIcon.obj,\ + FileIcon2.obj,\ + FileInput.obj,\ + Fl_Menu_Item.obj,\ + FloatInput.obj,\ + Font.obj,\ + Group.obj,\ + GSave.obj,\ + HighlightButton.obj,\ + Image.obj,\ + Input.obj,\ + InputBrowser.obj,\ + InvisibleWidget.obj,\ + Item.obj,\ + LightButton.obj,\ + Menu.obj,\ + MenuBar.obj,\ + MenuWindow.obj,\ + Menu_add.obj,\ + Menu_global.obj,\ + Menu_popup.obj,\ + MultiImage.obj,\ + NumericInput.obj,\ + Output.obj +OBJECTS1=OvalBox.obj,\ + PackedGroup.obj,\ + PlasticBox.obj,\ + PopupMenu.obj,\ + ProgressBar.obj,\ + RadioButton.obj,\ + RepeatButton.obj,\ + ReturnButton.obj,\ + RoundBox.obj,\ + RoundedBox.obj,\ + ScrollGroup.obj,\ + Scrollbar.obj,\ + ShadowBox.obj,\ + ShapedWindow.obj,\ + SharedImage.obj,\ + ShortcutAssignment.obj,\ + Slider.obj,\ + StringList.obj,\ + Style.obj,\ + StyleSet.obj,\ + Symbol.obj,\ + TabGroup.obj,\ + TextBuffer.obj,\ + TextDisplay.obj,\ + TextEditor.obj,\ + ThumbWheel.obj,\ + TiledGroup.obj,\ + TiledImage.obj,\ + Tooltip.obj, \ + UpBox.obj,\ + Valuator.obj,\ + ValueInput.obj,\ + ValueOutput.obj,\ + ValueSlider.obj,\ + Widget.obj,\ + Widget_draw.obj,\ + Window.obj,\ + Window_fullscreen.obj,\ + Window_hotspot.obj,\ + Window_iconize.obj,\ + add_idle.obj,\ + addarc.obj,\ + addcurve.obj,\ + args.obj,\ + bmpImage.obj,\ + clip.obj,\ + color_chooser.obj +OBJECTS2=compose.obj,\ + default_glyph.obj,\ + dnd.obj,\ + draw_xpm.obj,\ + drawimage.obj,\ + drawtext.obj,\ + error.obj,\ + event_key_state.obj,\ + file_chooser.obj,\ + filename_ext.obj,\ + filename_isdir.obj,\ + filename_list.obj,\ + filename_match.obj,\ + filename_normalize.obj,\ + fillrect.obj,\ + fltk_theme.obj,\ + gifImage.obj,\ + key_name.obj,\ + list_fonts.obj,\ + load_plugin.obj,\ + lock.obj,\ + message.obj,\ + overlay_rect.obj,\ + own_colormap.obj,\ + path.obj,\ + readimage.obj,\ + rgbImage.obj,\ + run.obj,\ + scrollrect.obj,\ + setcolor.obj,\ + setdisplay.obj,\ + setvisual.obj,\ + show_colormap.obj,\ + xbmImage.obj,\ + xpmFileImage.obj,\ + xpmImage.obj,\ + scandir.obj,\ + string.obj,\ + utf.obj,\ + vsnprintf.obj + +all : [.x11]run.timestamp + $(MMS)$(MMSQUALIFIERS) [-]libfltk.olb + +[.x11]run.timestamp : [.x11]run.cxx + pipe gsed -e "s/X11\/extensions/X11/" [.x11]run.cxx > [.x11]run.timestamp + set file/enter=[.x11]run.cxx [.x11]run.timestamp + +[-]libfltk.olb : $(OBJECTS) $(OBJECTS1) $(OBJECTS2) + library/create [-]libfltk.olb $(OBJECTS) + library [-]libfltk.olb $(OBJECTS1) + library [-]libfltk.olb $(OBJECTS2) + +$(OBJECTS) : [-]config.h +$(OBJECTS1) : [-]config.h +$(OBJECTS2) : [-]config.h + +Adjuster.obj : Adjuster.cxx +AlignGroup.obj : AlignGroup.cxx +BarGroup.obj : BarGroup.cxx +Browser.obj : Browser.cxx +Button.obj : Button.cxx +CheckButton.obj : CheckButton.cxx +Choice.obj : Choice.cxx +Clock.obj : Clock.cxx +Color.obj : Color.cxx +ComboBox.obj : ComboBox.cxx +Cursor.obj : Cursor.cxx +CycleButton.obj : CycleButton.cxx +Dial.obj : Dial.cxx +DiamondBox.obj : DiamondBox.cxx +EngravedLabel.obj : EngravedLabel.cxx +FileBrowser.obj : FileBrowser.cxx +FileChooser.obj : FileChooser.cxx +FileChooser2.obj : FileChooser2.cxx +FileIcon.obj : FileIcon.cxx +FileIcon2.obj : FileIcon2.cxx +FileInput.obj : FileInput.cxx +Fl_Menu_Item.obj : Fl_Menu_Item.cxx +FloatInput.obj : FloatInput.cxx +Font.obj : Font.cxx + pipe gsed -e "s/x11\//[.x11]/" Font.cxx > Font.c_ + cxx $(CXXFLAGS) Font.c_ + delete Font.c_;* +Group.obj : Group.cxx +GSave.obj : GSave.cxx +HighlightButton.obj : HighlightButton.cxx +Image.obj : Image.cxx + pipe gsed -e "s/x11\//[.x11]/" Image.cxx > Image.c_ + cxx $(CXXFLAGS) Image.c_ + delete Image.c_;* +Input.obj : Input.cxx +InputBrowser.obj : InputBrowser.cxx +InvisibleWidget.obj : InvisibleWidget.cxx +Item.obj : Item.cxx +LightButton.obj : LightButton.cxx +Menu.obj : Menu.cxx +MenuBar.obj : MenuBar.cxx +MenuWindow.obj : MenuWindow.cxx +Menu_add.obj : Menu_add.cxx +Menu_global.obj : Menu_global.cxx +Menu_popup.obj : Menu_popup.cxx +MultiImage.obj : MultiImage.cxx +NumericInput.obj : NumericInput.cxx +Output.obj : Output.cxx +OvalBox.obj : OvalBox.cxx +PackedGroup.obj : PackedGroup.cxx +PlasticBox.obj : PlasticBox.cxx +PopupMenu.obj : PopupMenu.cxx +ProgressBar.obj : ProgressBar.cxx +RadioButton.obj : RadioButton.cxx +RepeatButton.obj : RepeatButton.cxx +ReturnButton.obj : ReturnButton.cxx +RoundBox.obj : RoundBox.cxx +RoundedBox.obj : RoundedBox.cxx +ScrollGroup.obj : ScrollGroup.cxx +Scrollbar.obj : Scrollbar.cxx +ShadowBox.obj : ShadowBox.cxx +ShapedWindow.obj : ShapedWindow.cxx + pipe gsed -e "s/X11\/extensions/X11/" ShapedWindow.cxx > ShapedWindow.c_ + cxx $(CXXFLAGS) ShapedWindow.c_ + delete ShapedWindow.c_;* +SharedImage.obj : SharedImage.cxx +ShortcutAssignment.obj : ShortcutAssignment.cxx +Slider.obj : Slider.cxx +StringList.obj : StringList.cxx +Style.obj : Style.cxx +StyleSet.obj : StyleSet.cxx +Symbol.obj : Symbol.cxx +TabGroup.obj : TabGroup.cxx +TextBuffer.obj : TextBuffer.cxx +TextDisplay.obj : TextDisplay.cxx +TextEditor.obj : TextEditor.cxx +ThumbWheel.obj : ThumbWheel.cxx +TiledGroup.obj : TiledGroup.cxx +TiledImage.obj : TiledImage.cxx +Tooltip.obj : Tooltip.cxx +UpBox.obj : UpBox.cxx +Valuator.obj : Valuator.cxx +ValueInput.obj : ValueInput.cxx +ValueOutput.obj : ValueOutput.cxx +ValueSlider.obj : ValueSlider.cxx +Widget.obj : Widget.cxx +Widget_draw.obj : Widget_draw.cxx +Window.obj : Window.cxx +Window_fullscreen.obj : Window_fullscreen.cxx +Window_hotspot.obj : Window_hotspot.cxx +Window_iconize.obj : Window_iconize.cxx +add_idle.obj : add_idle.cxx +addarc.obj : addarc.cxx +addcurve.obj : addcurve.cxx +args.obj : args.cxx +bmpImage.obj : bmpImage.cxx +clip.obj : clip.cxx +color_chooser.obj : color_chooser.cxx +compose.obj : compose.cxx +default_glyph.obj : default_glyph.cxx +dnd.obj : dnd.cxx + pipe gsed -e "s/x11\//[.x11]/" dnd.cxx > dnd.c_ + cxx $(CXXFLAGS) dnd.c_ + delete dnd.c_;* +draw_xpm.obj : draw_xpm.cxx +drawimage.obj : drawimage.cxx + pipe gsed -e "s/x11\//[.x11]/" drawimage.cxx > drawimage.c_ + cxx $(CXXFLAGS) drawimage.c_ + delete drawimage.c_;* +drawtext.obj : drawtext.cxx +error.obj : error.cxx +event_key_state.obj : event_key_state.cxx + pipe gsed -e "s/x11\//[.x11]/" event_key_state.cxx > event_key_state.c_ + cxx $(CXXFLAGS) event_key_state.c_ + delete event_key_state.c_;* +file_chooser.obj : file_chooser.cxx +filename_ext.obj : filename_ext.cxx +filename_isdir.obj : filename_isdir.cxx +filename_list.obj : filename_list.cxx +filename_match.obj : filename_match.cxx +filename_normalize.obj : filename_normalize.cxx +fillrect.obj : fillrect.cxx +fltk_theme.obj : fltk_theme.cxx + pipe gsed -e "s/x11\//[.x11]/" fltk_theme.cxx > fltk_theme.c_ + cxx $(CXXFLAGS) fltk_theme.c_ + delete fltk_theme.c_;* +gifImage.obj : gifImage.cxx +key_name.obj : key_name.cxx +list_fonts.obj : list_fonts.cxx + pipe gsed -e "s/x11\//[.x11]/" list_fonts.cxx > list_fonts.c_ + cxx $(CXXFLAGS) list_fonts.c_ + delete list_fonts.c_;* +load_plugin.obj : load_plugin.cxx +lock.obj : lock.cxx +message.obj : message.cxx +overlay_rect.obj : overlay_rect.cxx +own_colormap.obj : own_colormap.cxx +path.obj : path.cxx +readimage.obj : readimage.cxx + pipe gsed -e "s/x11\//[.x11]/" readimage.cxx > readimage.c_ + cxx $(CXXFLAGS) readimage.c_ + delete readimage.c_;* +rgbImage.obj : rgbImage.cxx +run.obj : run.cxx + pipe gsed -e "s/x11\//[.x11]/" run.cxx > run.c_ + cxx $(CXXFLAGS) run.c_ + delete run.c_;* +scrollrect.obj : scrollrect.cxx +setcolor.obj : setcolor.cxx + pipe gsed -e "s/x11\//[.x11]/" setcolor.cxx > setcolor.c_ + cxx $(CXXFLAGS) setcolor.c_ + delete setcolor.c_;* +setdisplay.obj : setdisplay.cxx +setvisual.obj : setvisual.cxx + pipe gsed -e "s/X11\/extensions/X11/" setvisual.cxx > setvisual.c_ + cxx $(CXXFLAGS) setvisual.c_ + delete setvisual.c_;* +show_colormap.obj : show_colormap.cxx +xbmImage.obj : xbmImage.cxx +xpmFileImage.obj : xpmFileImage.cxx +xpmImage.obj : xpmImage.cxx +scandir.obj : scandir.c +string.obj : string.c +utf.obj : utf.c +vsnprintf.obj : vsnprintf.c Index: fltk/src/x11/drawimage.cxx =================================================================== --- fltk/src/x11/drawimage.cxx (revision 4406) +++ fltk/src/x11/drawimage.cxx (working copy) @@ -499,7 +499,7 @@ // not because I need it to be fast... static void mask_convert(const uchar* from, uchar* to, int w, int delta) { - uchar buffer[3*w]; + uchar* buffer = (uchar*) malloc( 3 * w * sizeof( uchar) ); uchar* bp = buffer; for (int i = 0; i < w; i++) { uchar c = *from; from += delta; @@ -507,6 +507,7 @@ *bp++ = (c*bg[j]+(255-c)*fg[j])>>8; } final_convert(buffer, to, w, 3); + free( buffer ); } static uchar* alphabuffer; @@ -516,7 +517,7 @@ static bool mixbg; static void doalpha(const uchar* alpha, const uchar* from, uchar* to, int w, int delta) { - uchar buffer[3*w]; + uchar* buffer = (uchar*) malloc( 3 * w * sizeof( uchar ) ); uchar* bp = buffer; uchar* ap = alphapointer; uchar aaccum = 0; @@ -548,6 +549,7 @@ *ap = aaccum; alphapointer += alpha_increment; final_convert(buffer, to, w, 3); + free( buffer ); } static void prealpha(const uchar* from, uchar* to, int w, int delta) { Index: fltk/src/x11/run.cxx =================================================================== --- fltk/src/x11/run.cxx (revision 4406) +++ fltk/src/x11/run.cxx (working copy) @@ -442,6 +442,8 @@ #if USE_POLL int n = ::poll(pollfds, nfds, (time_to_wait<2147483.648f) ? int(time_to_wait*1000+.5f) : -1); +#elif defined( __VMS ) + int n = 1; #else int n; if (time_to_wait < 2147483.648f) { @@ -478,6 +480,8 @@ if (XQLength(xdisplay)) return 1; #if USE_POLL return ::poll(pollfds, nfds, 0); +#elif defined( __VMS ) + return 1; #else timeval t; t.tv_sec = 0; Index: fltk/images/descrip.mms =================================================================== --- fltk/images/descrip.mms (revision 0) +++ fltk/images/descrip.mms (revision 0) @@ -0,0 +1,29 @@ +#***************************************************************************** +# * +# Make file for VMS * +# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) * +# Date : 7 June 2005 * +# * +#***************************************************************************** + +.first + define/nolog fltk [-.fltk] + define/nolog FL [-.FL] + +CFLAGS=/include=([],[-])/name=(as_is,short)/float=ieee + +CXXFLAGS=$(CFLAGS) + +OBJECTS=\ + Fl_Guess_Image.obj,\ + fl_jpeg.obj,\ + fl_png.obj + +all : $(OBJECTS) + library [-]libfltk.olb $(OBJECTS) + +$(OBJECTS) : [-]config.h + +Fl_Guess_Image.obj : Fl_Guess_Image.cxx +fl_jpeg.obj : fl_jpeg.cxx +fl_png.obj : fl_png.cxx Index: fltk/test/demo.cxx =================================================================== --- fltk/test/demo.cxx (revision 4406) +++ fltk/test/demo.cxx (working copy) @@ -259,11 +259,19 @@ #else // NON _WIN32 systems. int icommand_length = strlen(menus[men].icommand[bn]); - char* command = new char[icommand_length+5]; // 5 for extra './' and ' &\0' +#ifdef __VMS + char* command = new char[icommand_length+7]; // 7 for extra characters + \0' +#else + char* command = new char[icommand_length+5]; // 5 for extra './' and ' &\0' +#endif + +#ifdef __VMS + sprintf(command, "mcr []%s", menus[men].icommand[bn]); +#else + sprintf(command, "./%s &", menus[men].icommand[bn]); +#endif + system(command); - sprintf(command, "./%s &", menus[men].icommand[bn]); - system(command); - delete command; #endif // _WIN32 } Index: fltk/test/descrip.mms =================================================================== --- fltk/test/descrip.mms (revision 0) +++ fltk/test/descrip.mms (revision 0) @@ -0,0 +1,214 @@ +#***************************************************************************** +# * +# Make file for VMS * +# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) * +# Date : 9 June 2005 * +# * +#***************************************************************************** + +.first + define/nolog fltk [-.fltk] + define/nolog FL [-.FL] + define/nolog FLTK$LIB [-] + +.obj.exe : + cxxlink $(MMS$TARGET_NAME),[-]fltk/opt + +CFLAGS=/include=([],[-])/name=(as_is,short)/float=ieee + +CXXFLAGS=$(CFLAGS) + +EXEEXT=.exe + +TARGETS=\ + arc$(EXEEXT) \ + bitmap$(EXEEXT) \ + boxtype$(EXEEXT) \ + browser$(EXEEXT) \ + checkers$(EXEEXT) \ + color_chooser$(EXEEXT) \ + cube$(EXEEXT) \ + cursor$(EXEEXT) \ + curve$(EXEEXT) \ + demo$(EXEEXT) \ + doublebuffer$(EXEEXT) \ + drawing$(EXEEXT) \ + editor$(EXEEXT) \ + exception$(EXEEXT) \ + file_chooser$(EXEEXT) \ + fonts$(EXEEXT) \ + gl_overlay$(EXEEXT) \ + hello$(EXEEXT) \ + image$(EXEEXT) \ + inactive$(EXEEXT) \ + input$(EXEEXT) \ + keyboard$(EXEEXT) \ + label$(EXEEXT) \ + line_style$(EXEEXT) \ + list_visuals$(EXEEXT) \ + menu$(EXEEXT) \ + pack$(EXEEXT) \ + pixmap$(EXEEXT) \ + progress$(EXEEXT) \ + resizable$(EXEEXT) \ + resizealign$(EXEEXT) \ + shape$(EXEEXT) \ + sizes$(EXEEXT) \ + threads$(EXEEXT) \ + tabs$(EXEEXT) \ + tile$(EXEEXT) \ + utf$(EXEEXT) \ + fullscreen$(EXEEXT) \ + valuators$(EXEEXT) \ + list$(EXEEXT) \ + symbols$(EXEEXT) \ + mandelbrot$(EXEEXT) \ + scroll$(EXEEXT) + +OBJECTS=\ + arc.obj \ + bitmap.obj \ + boxtype.obj \ + browser.obj \ + checkers.obj \ + color_chooser.obj \ + cube.obj \ + cursor.obj \ + curve.obj \ + demo.obj \ + doublebuffer.obj \ + drawing.obj \ + editor.obj \ + exception.obj \ + file_chooser.obj \ + fonts.obj \ + gl_overlay.obj \ + hello.obj \ + image.obj \ + inactive.obj \ + input.obj \ + keyboard.obj \ + label.obj \ + line_style.obj \ + list_visuals.obj \ + menu.obj \ + pack.obj \ + pixmap.obj \ + progress.obj \ + resizable.obj \ + resizealign.obj \ + shape.obj \ + sizes.obj \ + threads.obj \ + tabs.obj \ + tile.obj \ + utf.obj \ + fullscreen.obj \ + valuators.obj \ + list.obj \ + symbols.obj \ + mandelbrot.obj \ + scroll.obj + + +all : $(TARGETS) + @ write sys$output "tests created" + +$(TARGETS) : [-]libfltk.olb [-]fltk.opt + +$(OBJECTS) : [-]config.h + +arc.obj : arc.cxx +bitmap.obj : bitmap.cxx +boxtype.obj : boxtype.cxx +browser.obj : browser.cxx +checkers.obj : checkers.cxx +color_chooser.obj : color_chooser.cxx list_visuals.timestamp +cube.obj : cube.cxx +cursor.obj : cursor.cxx +curve.obj : curve.cxx +demo.obj : demo.cxx +doublebuffer.obj : doublebuffer.cxx +drawing.obj : drawing.cxx +editor.obj : editor.cxx +exception.obj : exception.cxx +file_chooser.obj : file_chooser.cxx +fonts.obj : fonts.cxx +gl_overlay.obj : gl_overlay.cxx +hello.obj : hello.cxx +image.obj : image.cxx +inactive.obj : inactive.cxx +input.obj : input.cxx +keyboard.obj : keyboard.cxx +label.obj : label.cxx +line_style.obj : line_style.cxx +list_visuals.obj : list_visuals.cxx list_visuals.timestamp +menu.obj : menu.cxx +pack.obj : pack.cxx +pixmap.obj : pixmap.cxx +progress.obj : progress.cxx +resizable.obj : resizable.cxx +resizealign.obj : resizealign.cxx +shape.obj : shape.cxx +sizes.obj : sizes.cxx +threads.obj : threads.cxx + cxx$(CXXFLAGS)/nowarn threads.cxx +tabs.obj : tabs.cxx +tile.obj : tile.cxx +utf.obj : utf.cxx +fullscreen.obj : fullscreen.cxx +valuators.obj : valuators.cxx +list.obj : list.cxx +symbols.obj : symbols.cxx +mandelbrot.obj : mandelbrot.cxx +mandelbrot_ui.obj : mandelbrot_ui.cxx +scroll.obj : scroll.cxx + +arc.exe : arc.obj +bitmap.exe : bitmap.obj +boxtype.exe : boxtype.obj +browser.exe : browser.obj +checkers.exe : checkers.obj +color_chooser.exe : color_chooser.obj +cube.exe : cube.obj +cursor.exe : cursor.obj +curve.exe : curve.obj +demo.exe : demo.obj +doublebuffer.exe : doublebuffer.obj +drawing.exe : drawing.obj +editor.exe : editor.obj +exception.exe : exception.obj +file_chooser.exe : file_chooser.obj +fonts.exe : fonts.obj +gl_overlay.exe : gl_overlay.obj +hello.exe : hello.obj +image.exe : image.obj +inactive.exe : inactive.obj +input.exe : input.obj +keyboard.exe : keyboard.obj +label.exe : label.obj +line_style.exe : line_style.obj +list_visuals.exe : list_visuals.obj +menu.exe : menu.obj +pack.exe : pack.obj +pixmap.exe : pixmap.obj +progress.exe : progress.obj +resizable.exe : resizable.obj +resizealign.exe : resizealign.obj +shape.exe : shape.obj +sizes.exe : sizes.obj +threads.exe : threads.obj +tabs.exe : tabs.obj +tile.exe : tile.obj +utf.exe : utf.obj +fullscreen.exe : fullscreen.obj +valuators.exe : valuators.obj +list.exe : list.obj +symbols.exe : symbols.obj +mandelbrot.exe : mandelbrot.obj mandelbrot_ui.obj + cxxlink mandelbrot.obj,mandelbrot_ui.obj,[-]fltk/opt +scroll.exe : scroll.obj + +list_visuals.timestamp : list_visuals.cxx + pipe gsed -e "s/X11\/extensions/X11/" list_visuals.cxx > list_visuals.timestamp + set file/enter=list_visuals.cxx list_visuals.timestamp Index: fltk/descrip.mms =================================================================== --- fltk/descrip.mms (revision 0) +++ fltk/descrip.mms (revision 0) @@ -0,0 +1,26 @@ +#***************************************************************************** +# * +# Make file for VMS * +# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) * +# Date : 7 June 2005 * +# * +#***************************************************************************** + +all : config.h + set default [.fltk] + $(MMS)$(MMSQUALIFIERS) + set default [-.src] + $(MMS)$(MMSQUALIFIERS) + set default [-.images] + $(MMS)$(MMSQUALIFIERS) + set default [-.OpenGL] + $(MMS)$(MMSQUALIFIERS) + set default [-.fluid] + $(MMS)$(MMSQUALIFIERS) + set default [-.test] + $(MMS)$(MMSQUALIFIERS) + set default [-] + @ write sys$output "all done" + +config.h : config.h_vms + copy config.h_vms config.h Index: fltk/fltk/run.h =================================================================== --- fltk/fltk/run.h (revision 4406) +++ fltk/fltk/run.h (working copy) @@ -98,6 +98,10 @@ inline bool in_main_thread() {return in_main_thread_;} /*! \} */ +#ifdef __VMS + FL_API int compose_state; +#endif + } #endif Index: fltk/fltk/descrip.mms =================================================================== --- fltk/fltk/descrip.mms (revision 0) +++ fltk/fltk/descrip.mms (revision 0) @@ -0,0 +1,14 @@ +#***************************************************************************** +# * +# Make file for VMS * +# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) * +# Date : 7 June 2005 * +# * +#***************************************************************************** + +all : x.timestamp + @ write sys$output "all include files prepared" + +x.timestamp : x.h + pipe gsed -e "s/X11\/extensions/X11/" x.h > x.timestamp + set file/enter=x.h x.timestamp Index: fltk/fltk.opt =================================================================== --- fltk/fltk.opt (revision 0) +++ fltk/fltk.opt (revision 0) @@ -0,0 +1,10 @@ +FLTK$LIB:libfltk/lib +sys$library:libpng/lib +sys$library:libjpeg/lib +sys$library:libz/lib +sys$share:libmesagl.exe/share +sys$library:decw$xmulibshr.exe/share +sys$library:decw$xmlibshr12/share +sys$library:decw$xtlibshrr5/share +sys$library:decw$xextlibshr.exe/share +sys$library:decw$xlibshr.exe/share Index: fltk/fluid/descrip.mms =================================================================== --- fltk/fluid/descrip.mms (revision 0) +++ fltk/fluid/descrip.mms (revision 0) @@ -0,0 +1,63 @@ +#***************************************************************************** +# * +# Make file for VMS * +# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) * +# Date : 9 June 2005 * +# * +#***************************************************************************** + +.first + define/nolog fltk [-.fltk] + define/nolog FL [-.FL] + define/nolog FLTK$LIB [-] + +CFLAGS=/include=([],[-])/name=(as_is,short)/float=ieee + +CXXFLAGS=$(CFLAGS) + +OBJECTS=\ + about_panel.obj,\ + alignment_panel.obj,\ + code.obj,\ + coding_style.obj,\ + coding_style_func.obj,\ + factory.obj,\ + file.obj,\ + Fl_Function_Type.obj,\ + Fl_Group_Type.obj,\ + Fl_Menu_Type.obj,\ + Fl_Type.obj,\ + fluid.obj,\ + Fluid_Image.obj,\ + Fluid_Plugins.obj,\ + Fl_Widget_Type.obj,\ + Fl_Window_Type.obj,\ + function_panel.obj,\ + widget_panel.obj + +all : fluid.exe + @ write sys$output "fluid.exe created" + +$(OBJECTS) : [-]config.h + +fluid.exe : $(OBJECTS) [-]libfltk.olb [-]fltk.opt + cxxlink/exec=fluid.exe $(OBJECTS),[-]fltk/opt + +about_panel.obj : about_panel.cxx +alignment_panel.obj : alignment_panel.cxx +code.obj : code.cxx +coding_style.obj : coding_style.cxx +coding_style_func.obj : coding_style_func.cxx +factory.obj : factory.cxx +file.obj : file.cxx +Fl_Function_Type.obj : Fl_Function_Type.cxx +Fl_Group_Type.obj : Fl_Group_Type.cxx +Fl_Menu_Type.obj : Fl_Menu_Type.cxx +Fl_Type.obj : Fl_Type.cxx +fluid.obj : fluid.cxx +Fluid_Image.obj : Fluid_Image.cxx +Fluid_Plugins.obj : Fluid_Plugins.cxx +Fl_Widget_Type.obj : Fl_Widget_Type.cxx +Fl_Window_Type.obj : Fl_Window_Type.cxx +function_panel.obj : function_panel.cxx +widget_panel.obj : widget_panel.cxx