Commit Graph

1320 Commits

Author SHA1 Message Date
Michael R Sweet
4a6299fbcc Add FLTK_1_0_COMPAT symbol for 1.0.x compatible names.
Document this in the migration appendix, and add a section on keyboard
focus.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2316 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-24 15:22:57 +00:00
Michael R Sweet
bb056f7805 Update GCC test in configure script.
Add range checking to BMP loader, and fix colormap + 4-bit BMP file
loading.

Copy 2.0 window position fix for XFree86 4.x and others.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-24 02:04:54 +00:00
Michael R Sweet
04f6fbbe03 Make sure DIRECTORY is undef'd for BC++.
Try to get rid of flickering in CubeView demo...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-13 19:36:01 +00:00
Michael R Sweet
91aa5847ba Bug fixes from Sebastien.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-13 18:18:33 +00:00
Michael R Sweet
1f30c63d32 add_check() example was wrong.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-13 12:08:49 +00:00
Michael R Sweet
34e35db71f Prefer fl_push_clip() over fl_clip().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-11 20:58:12 +00:00
Michael R Sweet
debda040dc got_events, not got_event.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-11 18:44:07 +00:00
Michael R Sweet
2bd57beb70 Try some changes to fix MacOS threading support and fl_wait()
implementation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-11 16:17:41 +00:00
Michael R Sweet
ddd6ab5d83 Fix some editor problems; still have a few bugs that need to be resolved
before 1.1.0...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-10 21:04:20 +00:00
Michael R Sweet
10c613f88a Take care of some compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-10 17:21:53 +00:00
Michael R Sweet
c3cde61e98 Add documentation for using styles in text editor.
Add placeholder for style attributes - hidden + underlined - for
future use.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-09 18:28:49 +00:00
Bill Spitzak
464c7d8ba5 Fl_Chart clips to and fills interior of box
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2300 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-09 18:18:50 +00:00
Michael R Sweet
13ae564f03 Add color definitions for "dark red", etc.
Change "text" and "selecion" methods to return char *, not const char *,
since they return a changeable copy of the text.

Add range checking to style lookup in Fl_Text_Display.

Add syntax hilighting to editor example.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-09 13:35:49 +00:00
Michael R Sweet
d769df9a59 D'oh! Never set fl_font_ and fl_size_ in new mac code...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-08 15:37:11 +00:00
Michael R Sweet
be16fa3027 Make sure fl_size_, fl_font_, and fl_xfont are initialized and used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-08 13:07:19 +00:00
Michael R Sweet
5d7f42585b Fix test for OpenGL libraries - not == xno, but != xyes.
Add some other NEdit text display data that wasn't in the current
implementation (wrap + line number stuff).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-08 12:51:38 +00:00
Michael R Sweet
fbeb7fc775 Don't use -OPT on IRIX 5.3...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 20:15:17 +00:00
Michael R Sweet
a2cd4c80b1 Declare fl_size_ and fl_font_.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 19:55:44 +00:00
Michael R Sweet
c651bc29a3 filechooser.gif is gone, long live Fl_File_Chooser.jpg...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 17:23:37 +00:00
Michael R Sweet
c1fe08471c filechooser.gif is gone, long live Fl_File_Chooser.jpg.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 17:21:43 +00:00
Michael R Sweet
4d7847cc49 Bump RPM version to rc3...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2290 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 16:58:20 +00:00
Michael R Sweet
5bbc351200 Don't redraw outside label if the window hasn't been shown - otherwise
fl_open_display() gets called unnecessarily...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 16:57:21 +00:00
Michael R Sweet
e8e3346249 MacOS fixes (include x.H instead of mac.H...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 16:56:15 +00:00
Michael R Sweet
f50c056726 WIN32 compile fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 16:37:48 +00:00
Michael R Sweet
861ad9769b New file chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 15:06:32 +00:00
Michael R Sweet
5c17a15fd4 Cancel button fix for the current file chooser (same fix will have to
go into the new one...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2284 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-06 21:26:12 +00:00
Michael R Sweet
16de7b6048 The button width/height arrays were not properly initialized before
calling fl_measure()...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-06 14:22:05 +00:00
Michael R Sweet
a4cd699340 Fl_Text_Display::draw_vline() needed to check nVisLine >= num lines.
Fl_Menu_::remove() added 1 to the size() value, but it didn't need to.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-06 14:04:53 +00:00
Michael R Sweet
9c4a8a4ed2 Fix uninitialized memory bugs in Fl_Help_View.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2281 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-06 13:40:49 +00:00
Michael R Sweet
7f64473ace Some fixes to get FLTK to compile under Jaquar.
Still have problems with menus and OpenGL...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2280 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-03 16:09:27 +00:00
Michael R Sweet
25defef499 Tweek the order of -o foo and foo.o in the test makefile, since putting
the .o files first might be causing problems on some systems.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-03 12:32:57 +00:00
Michael R Sweet
ca063527da More redraw() fun, this time to make sure that subwindows/OpenGL widgets
redraw properly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-02 21:06:24 +00:00
Michael R Sweet
8c120555fa Need to make sure window() is not NULL when marking damage in the window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-02 20:49:47 +00:00
Michael R Sweet
839dfca778 Redraw fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-02 17:52:36 +00:00
Michael R Sweet
9671c04290 Changelog.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-31 19:28:47 +00:00
Michael R Sweet
23972703f4 Some C++ compilers can't handle char& and int& versions of methods, so
for now just remove the char (boolean) methods since the integer methods
can also be used for the same thing.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-31 19:27:56 +00:00
Michael R Sweet
778d528093 Add Matthias's WIN32 code to get an image from the current window; needs
testing!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2272 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-31 12:47:49 +00:00
Michael R Sweet
d5541b5cd6 fl_read_image() - not implemented for WIN32 or OSX yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-30 15:09:03 +00:00
Michael R Sweet
085eccc439 Spelling error...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-30 12:12:44 +00:00
Michael R Sweet
465d6f914a OK, I *definitely* need a remedial math class...
Now compute number of digits required using B / A, and then looping.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-28 00:16:08 +00:00
Michael R Sweet
c9c0c7a298 Fix ::format() code to show the right number of digits.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-28 00:12:49 +00:00
Michael R Sweet
7b33f84121 Don't use %g when step == 1.0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-27 21:54:11 +00:00
Michael R Sweet
3e74cc34ec Add support for TT element.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-27 21:16:47 +00:00
Michael R Sweet
acd6bd5cc8 Clean up string includes.
Fix Fl_Shared_Image::add_handler() and friends.

Fix Fl_PNM_Image loader.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 13:38:25 +00:00
Michael R Sweet
62424b33c5 Update docos to describe int/float settings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 12:17:18 +00:00
Michael R Sweet
d47ed1872c Use floating-point input when step() == 0.0, too.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 07:18:38 +00:00
Michael R Sweet
f79c2375da Tag image data as allocated so that we don't waste memory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 02:56:59 +00:00
Michael R Sweet
30b57935f9 Mark loaded images as allocated so that they get deleted.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 02:27:20 +00:00
Michael R Sweet
d1a1367fea MingW updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-24 14:50:20 +00:00
Michael R Sweet
e0a7046b80 Always redraw the directory buttons if the base class handled the
event.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-24 14:25:04 +00:00