summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
AgeCommit message (Collapse)Author
2002-02-26- added DDrag'N'Drop support for MacOSMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-24- added Win32 native drag'n'drop codeMatthias Melcher
- added dnd support for Fl_Group (not tested with X!) - added dnd support for Fl_Input (not tested with X!) - no Mac implementation yet! Go ahead: drag text or a file from the explorer into a text widget! Tadaa! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1971 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-20Always resize cells in table if set/max width not the same as theMichael R Sweet
column width. Pass UNFOCUS events to parent groups, too (for Fl_Tabs) Conditionally compile in support for TrackMouseEvent(), since support for it is spotty at best. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-09First round of DND additions to 1.1 - just X11 code, and I haven't addedMichael R Sweet
the support in widgets yet. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1925 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-07Don't apply tile image to menu or overlay windows.Michael R Sweet
Add Fl_BMP_Image.H links to fltk.list.in. Reset colors to standard FLTK ones in Fl::get_system_colors(). Don't clear button events when fixing focus. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1918 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-01Copyright updates...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-22- MacOS: more keyboard handler fixes, mainly mapping of Mac specificMatthias Melcher
keys and iBook keys, several fixes to keyboard focus. Happy Holidays! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1894 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-18- Mac: greatly improved OpenGL support, some window management,Matthias Melcher
soem little bugs, better source comments git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1872 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17FLUID didn't support the plastic boxtypes.Michael R Sweet
Move Fl_Tooltip::enter(0) to the end of Fl_Window::hide(); otherwise we get nasty recursion problems... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1859 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17Hide tooltips when hiding a window.Michael R Sweet
Fix box borders for FL_PLASTIC_DOWN_BOX. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-06Implemeted 95% of all Mac OS X support. Makefiles still need modifications.Matthias Melcher
Almost all test applications run out of the box (->Makefile). See more information in README.mac . Changes: - message handling - access to opaque port structures - image, bitmap, pixmap support - most OpenGL stuff - window styles git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28More doco updates.Michael R Sweet
Enable tooltips by default, and don't enable them when setting the tooltip value, since that will negate any changes a program might make when displaying the file chooser dialog, etc. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28Add Fl::version() and Fl::event() methods.Michael R Sweet
Doco updates (use <!-- NEW PAGE --> instead of <HR break>, plus more Fl_Text_Buffer docos) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-27Preliminary commit of my MacOS X work.Michael R Sweet
**** THIS CODE COMPILES BUT DOES NOT WORK. **** TODO: fix event handling - getting blank windows, etc. TODO: re-port OpenGL code. TODO: add support for images with alpha. TODO: add support for more then just beeps in fl_beep(). TODO: other stuff I'm sure... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-22Fix all references to '.C' files (now .cxx)Michael R Sweet
Update Fl_Image() class to track depth and data, so FLUID will be able to use it as the base class. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-17Always use PIXELFORMAT cast for WIN32 OpenGL stuff.Michael R Sweet
Send FL_MOUSEWHEEL events to the focus widget first, then to others. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1694 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-03Add Fl::visible_focus() method.Michael R Sweet
Add optional "draw_symbols" argument to fl_draw and fl_measure functions. Fl_Repeat_Button didn't handle keyboard focus properly. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-18Fix tooltip handling/flashing that caused KDE window manager lockupsMichael R Sweet
with the FLUID main window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1636 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-02More mouse wheel stuff (as compatible as possible with the 2.0 code...)Michael R Sweet
Updated the makefile to use config.status --recheck before calling config.status (why they can't provide one that does both, I don't know...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-02Fix tooltips a la 2.0.Michael R Sweet
Update 1.1 tooltip interface to be identical to the 2.0 interface for most things (no enter_area function right now...) Add localized makedepend files (no system include files, just ../FL/bla.h) so that builds recompile as necessary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-01First bunch of changes for the 1.1 branch - tooltips.Michael R Sweet
NOTE: looking into a problem with the tooltip not going away when you ESCape a window (close it)... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-02-26Fl_Gl_Window leaked memory for damage regionsBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-26Add call to GdiFlush() under WIN32.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-22Copyright 2001.Michael R Sweet
FLTK 1.0.11. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-21"accu-timer": some changes to repeat_timeout that seem to make it accurateBill Spitzak
on Unix and Win32 at speeds up to 500000 timeouts/second (and 700000 on Linux), and within about .001% as accurate as the system clock. Fix to Fl_Valuator::step() by Guillermo Andrade. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-15Added parenthesis to turn off gcc warningBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-21Fix to allow Fl.cxx to compile with older C++ compilers (no variableMichael R Sweet
declaration in while() constructs...) "cp" doesn't always support "-f". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-12Fl_Gl_Window does not set drawbuffer(BACKBUFFER) for single-bufferedBill Spitzak
windows. Fl_Input::replace(...) correctly updates the display if the replaced region does not include the mark, point, or selected region. Added Fl::add_check(...), Fl::remove_check, and Fl::has_check. These are similar to idle callbacks but are only called just before it waits for new events. They can be used to watch for changes in global state and respond to them. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20Get rid of "member X hidden by variable X" warnings...Michael R Sweet
Fix strcasecmp() detection... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20Fl::below_mouse() was incorrectly clearing e_is_click; this preventedMichael R Sweet
any double-clicks from getting through... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-21Does not clear Fl::keysym on every event, this makes better back ↵Bill Spitzak
compatability and fixes Win2000 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17Hack to fix the annoying "raise another application when a modal windowBill Spitzak
is closed" problem on WIN32. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-21Changed the name of the new function from "add_interval_timeout" toBill Spitzak
"repeat_timeout", which is shorter and more accurately describes what it does. GLUT_STROKE_*_ROMAN in glut.h are defined as 0,1 on WIN32 to match the glut header files there. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-20Fix for Cygwin.Carl E. Thompson
Carl git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1224 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-20Whoops, I screwed up the timeout callbacks a bit.Bill Spitzak
add_timeout will now do the callback at time t after the call to add_timeout, like before. add_interval_timeout is a new call that measures time from when the last timeout was called. This has slightly less overhead and allows accurate spacing of timeouts. Patch from Stuart Levy so the *last* widget in an Fl_Pack may be resizable. This should be compatable because resizable didn't do anything before so there was no reason to set it. Makefiles for no-cygwin from Paul Baxter (see README.win32 for info). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-18Cleanup of the timeout and Fl::wait() code. This one calls the clockBill Spitzak
function less than half as much, which resulted in a noticable improvement in a flip book program I was working on. The code looks nicer, too, and I am reasonably certain it works the same. Fl::wait(time) with a time greater than the system can handle (24.855 days on NT, the same on some Unix systems) will now act as though the time is infinity. Before it would do unpredictable things. "USE_POLL" now compiles and works, although it is disabled by default. poll() is an alternative to the Unix select() call which is available on Linux and Irix, but I don't know if it is faster, you can try it by editing config.h. I tried making the NT USE_ASYNC_SELECT code do translate/dispatch of the select events on the assumption (based on experience) that not doing this to every event gives NT fits. This appears to work but I'm not sure if it fixes anything. X version does not crash if Fl::wait() is called when the display is closed (it will not return unless you have a timeout or fd callback set up, though). Fixed up the documentation for all of this, including getting rid of some completely misleading documentation. Now I need to get this stuff into 2.0... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-16Added has_timeout() and has_idle() calls as suggested by Eric Sven Ristad.Bill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-10You can no longer insert ^J,^K,^L,^M into Fl_Int/Float_Input.Bill Spitzak
Fixed bug noticed by Alexander Rabi Beels, if you are in point-to-type and move the cursor to a different window with a multiline input and type up/down, the saved up/down horizontal position from the previous multiline input was used. It now resets this on any focus change, fixing this. Some code cleanup in Fl_Input.cxx, removed unneeded calls to Fl::compose_reset. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-05OK, now version 1.0.9Michael R Sweet
Updated email addresses to point to fltk.org domain... Updated README and CHANGES files accordingly. Updated makeinclude and Makefile files to put -L../lib before the LDFLAGS/GLDFLAGS to avoid problem reported by Alexander. documentation/Makefile wasn't including makeinclude. Updated FLUID about window to show version 1.0.9. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-03Fixes for 1.0.8 I found:Bill Spitzak
Fixed hardware overlays. The problem was the new fl_clipped() code, which tests against the current window size. The hardware overlay code did not set the current window when drawing the overlay. I needed hardware overlay for DD's code, I'm not sure if these fixes are good enough to enable this in our general release. Hardware overlay still only works on SGI Irix. Some patches to turn off the MSVC++ -Oa (assumme no aliasing) optimization flag. Suprisingly this only broke a few parts of fltk, or at least these are the only ones I found. Does not unmap child windows when the main window is iconized. This reduces flashing when the window is deiconized. Fl::key() is set to zero by all events except key down/up. This will allow you to reliably test if an event or callback was produced by a keystroke. Fixes the bug posted about stopping Escape from closing the window. User defined cursors on OpenGL windows slowed down NT a *LOT*. Some attempts to fix this by turning off the cursor while drawing the window. Filename completion in the file chooser works better on NT. Typing TAB fixes the case of everything you typed to match the shortest name that can be completed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-16Dropped extra #include <stdio.h> that wasn't needed.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1125 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-13Added Fl::first_window(window) to change which window is at the top ofBill Spitzak
the window list. This window is used as the "parent" of any modal windows you create so it is a good idea to be able to change it. Normally it is whatever window got the last event. Fixed Fl_Menu::global handler to use first_window so if a modal window pops up in response it is parented to the window containing the menubar rather than the current top window. This was an annoying bug! Copied fl_line_style() and the line_style demo over from fltk 2.0 because I am tired of mailing this code to people. Better to advertise this as "added fl_line_style() function to set line thickness, dash patterns, and end caps". Fixed the documentation for these changes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-11Fl::wait() does not return immediately when no windowsBill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-10XForms-compatable shortcut strings modified so that "0xabcd" can specifyBill Spitzak
an arbitrary key by hex code. Lame but needed for some DD software... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-25Updated copyright notices for all of the 1.0.x files.Michael R Sweet
Updated the configure script for *BSD and GCC 2.95 (-fno-exceptions) Added install rule to documentation directory. Dumped old packages directory; added traditional RPM spec file and EPM list file (that replace all of the packages stuff) The FLUID man page is now "fluid.1" for the formatted page and "fluid.man" for the non-formatted page, since only IRIX uses pack'd formatted man pages. Whew! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-08Fix to compile on GCC 2.95.Carl E. Thompson
Carl git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-18Fixed the Ctrl+P shortcut problem reported by dalitz@infotech.deBill Spitzak
The previous keystroke is not confused with a navigation control key when the window focus changes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-15Tiny change to Fl.H to get around bug in new gcc versions?Bill Spitzak
Change to code to try alternative cases of shortcuts suggested by Yaroslav Volovich. It should now work for foreign letters. However I was unable to get it to do anything no matter how I set the locale. It may be better to fix this by hardcoding in the iso-8859-1 character set and not use ctype at all, "locale" is a horrid travestry anyway and has done more to *prevent* internationalization than to help it by making it virtually impossible to test foreign components. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-16Buttons on scrollbars draw pushed in (fix from barrero@irit.fr)Bill Spitzak
Fl_Menu_::remove(int i) will remove an entire submenu if i is the index of the menu title. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-10-23Does not call draw() on child Fl_Windows when their parent is hidden.Bill Spitzak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121