Matthias Melcher
b4b6776d8f
Added static icon, text selection, and HTML formatting to fl_message etc. (STR #1626 )
...
Fixed selection of first word in Fl_Help_View
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-01 23:20:39 +00:00
Matthias Melcher
47e802218d
Fixed endless loop in Fl_Text_Display (STR #1655 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-01 21:09:39 +00:00
Matthias Melcher
488f27d1eb
STR #1652 : allowing shortcuts in tabs
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5791 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-01 20:20:21 +00:00
Matthias Melcher
18f2016b1f
Removed the Fl::set_awake_cb API and documented the Fl::awake(function, data) API.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5749 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-20 10:41:14 +00:00
Matthias Melcher
27568cfa1c
Better contrast ( #1625 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-20 09:52:51 +00:00
Matthias Melcher
cae6dd02b2
Fixed missing (and empty) unlock_ring and lock_ring for Unix builds without multithreading.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-20 09:42:36 +00:00
Matthias Melcher
4102380d65
Some improvements as discussed. Not a final feature! May be removed without notice!
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5732 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-06 19:48:45 +00:00
Matthias Melcher
c4ad147d5f
Fixed previous Fl::awake() commit for UNix and OS X.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-06 19:21:41 +00:00
Matthias Melcher
11a15d83a2
This is a suggested change. It is complete except for documentation.
...
I did not like the awake_cb system at all. These changes implement Fl::awake(Fl_Awake_Handler, void*) which is called from a thread and tells the main loop to call the specified handler (rather a callback I guess) as soon as possible from within the main thread. It is implemented as Fifo (currently 1024 entry ring buffer), so handlers are called in the order that they are generated in.
"test/threads" was modified to change the label color as soon as a thread reaches 10000 - pretty boring, but it show the wonderful simplicity of this approach: you can write libraries that don't need to add to the main loop or register a handler at all... .
I will do some more stress testing tonight.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-06 17:15:03 +00:00
Matthias Melcher
a1f5426a97
STR #1617 : fltkgl.vcproj in the vnet directory had missing closing brackets in the XML code. The question remains: who ate the slashes?
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5721 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-27 19:23:24 +00:00
Matthias Melcher
d18f2b26b5
Removed warning about unused variable.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-25 00:00:49 +00:00
Matthias Melcher
3be4efbd8a
First attempt at fixing all WIN32 scrolling issues. This code uses some (legal) trickery and should take multi-monitors and partially obscured windows into account. Albrecht, I do not have a multi-monitor setup. Please verify this fix on your machine. Thanks. (STR #1601 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-24 23:57:49 +00:00
Matthias Melcher
c47b4c91ae
Avoiding to wait forever under Cygwin. (STR #1608 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-23 19:27:43 +00:00
Matthias Melcher
7696c64a46
Setting pointers in Fl_Preferences-destructor to zero. This should not be needed, but may help Cygwin figure it out correctly. I re-tested in Valgrind, and no members of deleted groups are ever accessed, just as I said. There is a slight p[ossibility of such false access if a C++ compiler does not conform to the standard and calls destructors in the fasle order.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-23 15:37:53 +00:00
Matthias Melcher
e954c5d433
Fixed file chooser to behave transparently to the current group setting
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-21 20:23:03 +00:00
Matthias Melcher
d1f1f1f26f
Flushing file chooser preferences after every change to avoid data loss due to application crash
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-21 20:08:07 +00:00
Michael R Sweet
00c66abc0e
Update copyright years and use "#ifndef" instead of "#if !defined".
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-20 18:43:10 +00:00
Matthias Melcher
8ea59b412e
Fixed Watcom compiler setup without verification using a patch by mnieuw
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-20 17:02:41 +00:00
Matthias Melcher
658162c509
Fixed WIN32 version of prevois change (undefined variable)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-13 14:38:43 +00:00
Matthias Melcher
1b6f493c55
Updated 'hotspot' positioning of windows in OS X and WIN32 to keep the hotspotted window entirely on the screen that contaings the mouse pointer (STR #1599 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-13 14:36:08 +00:00
Matthias Melcher
474fa58939
Fixed clipping in OS X Quartz offscreen buffers (STR #1595 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-12 16:41:41 +00:00
Michael R Sweet
1dd28f6e4b
Update dependencies.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-10 14:31:12 +00:00
Michael R Sweet
72ca38cdd9
Fix WIN32 builds.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-09 21:57:06 +00:00
Michael R Sweet
3439748eaf
Don't depend on having RTLD_DEFAULT defined
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-09 16:21:55 +00:00
Michael R Sweet
6e9a163035
Add handler for thread messages (STR #1536 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 23:04:20 +00:00
Michael R Sweet
057e542c39
More Cygwin DLL fixes (STR #1585 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 21:22:32 +00:00
Michael R Sweet
1b7589dace
Fix flickering of Fl_Help_View - turns out we were drawing to the
...
window every time we checked for extension of the selection. The
new code draws to a 1x1 off-screen buffer, which eliminates the
flickering and runs much faster!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 21:18:50 +00:00
Michael R Sweet
3d11948876
Try a slightly different Xdbe implementation that copies instead of swaps.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 20:50:01 +00:00
Michael R Sweet
e173e7bec0
Add header check for dlfcn.h.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 20:14:30 +00:00
Michael R Sweet
4d6faca615
Add support for glutGetProcAddress() on Mac OS X and other platforms
...
via dlsym() (STR #1582 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 15:44:28 +00:00
Michael R Sweet
a72fa970a7
Fix text alignment (STR #1589 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 12:58:32 +00:00
Matthias Melcher
624e885b24
STR #1584 : even smarter mouse pointer hiding. I also fixed two little historic bugs in "ask" (double adding a widget, and not using "label.obj()" instead of "copy_label()" for non-static buffer. Lastly, I changed "boxtype" to use a Double_Window because it has become so big now that it started flickering.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 07:58:47 +00:00
Michael R Sweet
44fab0180e
Fix hoving over links (STR #1588 )
...
Use blue as the default link color, not magenta.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 01:28:50 +00:00
Michael R Sweet
07fd0cc413
Fix default link color.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-07 03:50:24 +00:00
Michael R Sweet
44b2ff35cf
Use install command instead of CHMOD, CP, and MKDIR.
...
Drop all POSTBUILD stuff as it is no longer used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-06 19:35:28 +00:00
Michael R Sweet
1c61b1297d
Fix glXGetProcAddressARB() usage and support for POSIX threads on HP-UX 11.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-05 03:20:30 +00:00
Michael R Sweet
502f83219d
Fix DLL generation via MingW/Cygwin (STR #1546 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 20:23:31 +00:00
Michael R Sweet
a4814c41c3
Fix scheme background image bug on X11.
...
Drop changelog for hidden mouse pointer problems since that change was
not made until after 1.1.7 was released (CHANGES only shows changes/fixes
to the previous release...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 19:37:30 +00:00
Matthias Melcher
2368590ecd
Fixed first window behavior in OS X (STR #1548 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 16:10:19 +00:00
Matthias Melcher
c005f9956f
Added glut files to vc2005 solution.
...
Fixed popup menus that would not stay popped up when clicke once and the first item was disabled.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 15:14:42 +00:00
Matthias Melcher
3df9bdf5c5
Avoiding a hidden mouse pointer after a window is hidden
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 13:52:37 +00:00
Michael R Sweet
6bc5329935
Don't use ARB function unless available (still need to do the autoconf
...
test...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-01 21:52:11 +00:00
Michael R Sweet
85c2e38825
Update documentation and move glutDeviceGet() into code so we can return
...
the correct value for GLUT_NUM_MOUSE_BUTTONS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-01 21:11:20 +00:00
Matthias Melcher
eef6353369
Fixed calculation of character widths for OS X Quartz rendering. Fixed OS X mouse click handling (STR #1504 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-01 20:13:57 +00:00
Michael R Sweet
bda374b386
Add GLUT support functions from FreeGLUT (STR #1522 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-01 18:10:07 +00:00
Michael R Sweet
56eb04fc67
Incorporate run-time check and initialization of recursive mutexes.
...
This adds support for system-supplied recursive mutexes on OS's other
than Linux (not all define the _NP static initializer) while making
sure that the mutex we do use works as we expect (STR #1575 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-29 17:15:41 +00:00
Michael R Sweet
b7be6fb47e
Drop recursive mutex code since the running kernel may not support it
...
(STR #1575 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28 20:26:50 +00:00
Michael R Sweet
2fcd3610d5
Fl::awake() could block on X11 and OSX (STR #1537 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5646 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28 20:03:31 +00:00
Michael R Sweet
ae8675a45f
Fix order of idle/check processing compared to events (STR #1535 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5645 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28 19:48:31 +00:00
Michael R Sweet
48a997d0ad
Hide window before doing callback for OK button (STR #1565 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5644 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28 19:41:56 +00:00
Michael R Sweet
84fe87f472
Fix indentation of elements (STR #1549 )
...
Update layout of help dialog to look like other help dialogs.
Drop resource fork stuff from fltk-config (no more --post, it is a no-op)
Use a single table for the header on the documentation page.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28 19:36:51 +00:00
Matthias Melcher
4980b42829
Improved GTK+ schemed round box (STR #1531 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-25 15:41:13 +00:00
Matthias Melcher
e36d3a07ce
- Fluid avoids writing unsopported combinations of the
...
"when()" flags (STR #1501 )
- Fl_Browser_ would allow keyboard callbacks even though
"when()" was set to "never" (STR #1501 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-24 20:32:54 +00:00
Matthias Melcher
ecdd893933
- Added automated little helpers to Sudoku
...
(Menu Difficulty->add helpers)
- Added example code for Wizard with the
Tabs demo (STR #1564 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-24 12:03:36 +00:00
Michael R Sweet
f8d84949c4
Refine the weak-binding solution...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-23 21:48:17 +00:00
Michael R Sweet
28b3753946
Don't need path_find() on Mac OS X...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5636 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-23 20:45:28 +00:00
Michael R Sweet
c8f1e91448
Rename fl_filename_isdir_quick to _fl_filename_isdir_quick, do not
...
export it, and add comments to indicate that it is a private API we
do not support outside of FLTK.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5635 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-23 15:02:00 +00:00
Matthias Melcher
7401cf37bf
Hopefully some improvement to the 'bring to the foreground'-hack. Please folks, test this on every available platform!
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-23 10:27:44 +00:00
Matthias Melcher
930d62b9f6
Fixed comment on trailing slashes
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-22 11:18:30 +00:00
Matthias Melcher
e4586d1572
Removed 'optimization' for fl_filename_isdir which would break the original purpose of the fuction (testing the *existence* of a directory). But I did not want to lose the performance in the directory chooser where I *know* that a directory exists, just not if it is a file or directory, so I added the function fl_filename_isdir_quick() to do just that. Please verify that the new version works as expected, especially with regard to the directory chooser.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-22 11:14:29 +00:00
Matthias Melcher
9e79fd13d2
I changed the Fl_Tabs drawing routine to only redraw the tabs themsleves on a PUSH event, instead of the whole current group. This also allows for a visual feedback from the clicked tab. (str #1520 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-21 15:54:53 +00:00
Matthias Melcher
30be5f711b
Added code to support OS X weak'n;lazy linking.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-21 14:57:42 +00:00
Matthias Melcher
e9e0826d10
Made resource fork on OS X obsolete. We still do add it just in case, but should the data be lost during a copy process through a different file system, the app will still put itself in the foreground if using a GUI (STR #1453 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5627 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-20 15:28:11 +00:00
Matthias Melcher
4ee2c1fafa
Somewhat improved the system menu bar for OS X (STR #1505 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5617 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 19:20:13 +00:00
Matthias Melcher
fbd01308b9
Fixed Quartz image drawing and screen reading
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 15:25:09 +00:00
Matthias Melcher
32a8df787c
overlay drawing is now avoiding XOR mode (STR #1438 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5613 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 12:59:37 +00:00
Matthias Melcher
5411396ea6
Fixed mousewheel event propagation (STR #1521 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5607 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 10:40:37 +00:00
Matthias Melcher
bc842ea528
Fixed drawing issues of a tile in a scroll (STR #1507 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5606 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 10:01:24 +00:00
Matthias Melcher
5f0156cd02
Fixed dismissing buttons in menu bars (STR #1494 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5605 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 09:30:04 +00:00
Michael R Sweet
08216b4fac
Fix fl_open_uri() on WIN32
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-10 21:11:34 +00:00
Michael R Sweet
5456a2b8fc
Add fl_open_uri() function as discussed on fltk.development.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5579 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-04 14:53:54 +00:00
Matthias Melcher
230a2a4332
Added a fe comments to explain multi-monitor support on Win32 better.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5574 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-01 18:29:20 +00:00
Matthias Melcher
2c16ddb964
Fixed silly bug in OS X that would free a pixmap multiple times within Fl_RGB_Image::unchache.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-12-21 22:39:11 +00:00
Michael R Sweet
1c47b9826d
Fix fl_measure with symbols.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-12-21 19:39:26 +00:00
Matthias Melcher
baed853fe3
STR #1542 : implemented the prototyped Fl::has_check() function
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-12-20 20:29:08 +00:00
Matthias Melcher
e8550d89b3
Enabled 'add_check()' on OS X (STR #1534 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-12-20 20:13:22 +00:00
Matthias Melcher
67f87f0285
STR #1463 , STR #449 : Better event mouse handling fixing detached menus and sticky tooltips.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-19 21:04:11 +00:00
Michael R Sweet
8ea3a45772
Merge all of the scrollbar sizes into a single API call
...
(Fl::scrollbar_size()) rather than a bunch of separate APIs and
hardcoded values (STR #1800 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-16 23:17:13 +00:00
Michael R Sweet
839ac66401
Fix text alignment - wasn't resetting the default alignment after
...
closing a table cell...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-15 04:29:45 +00:00
Michael R Sweet
0789a8a18e
Fix endian problem with fl_read_image() and QuickDraw on Intel-based Macs.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-15 01:52:20 +00:00
Michael R Sweet
b6a66645e0
Reject invalid workarea rectangle.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-15 00:44:13 +00:00
Matthias Melcher
725efb3569
STR #1492 : Fl_Progress was using the wrong width to calculate progress
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-12 20:44:12 +00:00
Michael R Sweet
095ed29a7f
Add NULL check for _NET_WORKAREA property value.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-01 15:30:11 +00:00
Michael R Sweet
3ebd631cf0
Fl::x(), Fl::y(), Fl::w(), and Fl::h() did not report the desktop
...
work area on X11 (STR #1482 )
Fix another "missing sentinel" warning in the Xft code.
FL/Fl.H:
- Remove in-line x() and y() implementation for X11.
src/Fl_x.cxx:
- Fl::x(), Fl::y(): Added.
- fl_init_workarea(): Added to get _NET_WORKAREA property from the
root window; if none, is available, the code falls back to 0, 0,
DisplayWidth, and DisplayHeight.
src/fl_font_xft.cxx:
- Missing sentinel needs cast to void *.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-30 14:16:08 +00:00
Michael R Sweet
117e22670d
Another try at the shortcut fix...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 17:11:10 +00:00
Michael R Sweet
39cb1f8daf
Fix two "hide the cursor" bugs related to click-to-focus windows (STR #1475 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 13:43:31 +00:00
Michael R Sweet
7fffbf7dea
Shortcut events could be sent to the wrong window (STR #1451 )
...
src/Fl.cxx:
- Fl::event_inside(): Only return true for widgets if the
first_window() (focused window) is the same as the widget's
window.
- Fl::handle(): Send shortcuts to the first window (that has
focus) before all others.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 13:22:28 +00:00
Michael R Sweet
c0664eefcd
Fl_File_Browser did not calculate the width of directory items
...
correctly (STR #1470 )
src/Fl_File_Browser.cxx:
- Fl_File_Browser::item_width(): Use a bold font for directory
items.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 12:13:56 +00:00
Michael R Sweet
cec43a6cb1
Don't start widgets offset by 1/2 the spacing value.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-20 01:07:16 +00:00
Michael R Sweet
2d2b24b781
Fix dead pixel in FL_GTK_UP_BOX/FRAME (STR #1471 )
...
Use FL_COMMAND modifier in FLUID menus (CTRL for non-OSX, CMD for OSX)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-14 04:35:24 +00:00
Michael R Sweet
367c40a9b7
fl_arc() and fl_pie() did not draw properly on WIN32 when the
...
start and end points were identical (STR #1461 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-11 01:23:52 +00:00
Michael R Sweet
09a1c11ac1
Fl_Input and Fl_Text_Editor now hide the mouse pointer when
...
typing into them (STR #1466 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-11 01:01:02 +00:00
Michael R Sweet
b82b4c4445
Use standard link color as the default, not FL_SELECTION_COLOR.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-07 14:29:15 +00:00
Michael R Sweet
e8aac38a70
Look for Text.selectBackground instead of fltk.selectBackground to
...
get the selection color.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5508 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-04 12:48:18 +00:00
Michael R Sweet
228af43a56
Tweak GTK+ thin up/down boxes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-04 02:32:42 +00:00
Michael R Sweet
3c03eb67a0
More cleanup of GTK+ scheme - menu buttons now use the new look-n-feel,
...
and I also fixed the radio button offset for the plastic scheme.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 23:08:49 +00:00
Michael R Sweet
7febae3f9e
Add GTK thin up/down box/frame types.
...
Update the GTK round up/down box types.
Update radio/check box drawing for gtk+ scheme.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 02:35:12 +00:00
Michael R Sweet
ad4a4ea0db
Fix "missing sentinal" warning from GCC 4 - basically this means we used
...
"0" instead of "(void *)0" in a variable-argument function, which will not
work on 64-bit systems where int is 32-bits.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 00:51:35 +00:00
Michael R Sweet
4d0529a276
Fix new alpha blending code to use the source image width instead of
...
the destination width when computing the start pointer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-02 17:20:56 +00:00
Michael R Sweet
849ecabf53
Fix light button drawing so that the glowing LED mode is only used when
...
Fl::scheme() is "plastic".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-02 14:29:43 +00:00
Matthias Melcher
cc1ab1a315
STR #1447 : Fixed CMake files to include new GTK+ scheme
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-26 18:05:10 +00:00
Michael R Sweet
faddffcf18
src/Fl_Button.cxx:
...
- Fl_Button::draw(): Only use fl_contrast() on the label
color when value() is non-zero.
src/fl_color.cxx:
- fl_contrast(): Require at least 1/3 (85) instead of 1/2
(127) for contrast against the background.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-25 16:36:52 +00:00
Michael R Sweet
ad40154ca3
Adapt Sadysta's alpha compositing code for current implementation of
...
Fl_RGB_Image. We now provide (unaccellerated) alpha compositing of
RGBA and Grayscale-Alpha images (d() == 4 and d() == 2) on X11 and
QuickDraw...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 19:05:38 +00:00
Michael R Sweet
b91935040a
Flip the color of Fl_Choice to FL_BACKGROUND2_COLOR when there is no
...
scheme so the menu uses the same color as the background.
Add -Dname[=value] documentation to fltk-config man page.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 13:35:23 +00:00
Michael R Sweet
a4c2cbd49a
Tweak gtk+ drawing of Fl_Choice.
...
Add support for "-Dname" option in fltk-config.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 04:39:55 +00:00
Michael R Sweet
9663eaa1c4
Use FL_BACKGROUND2_COLOR for the standard Fl_Choice background instead of
...
fl_lighter(color()), so that the previous look-n-feel is preserved.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5483 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-23 22:52:07 +00:00
Michael R Sweet
b04788a189
Check buttons did not redraw properly with box() set to FL_NO_BOX
...
(STR #1440 )
src/Fl_Button.cxx:
- Fl_Button::value(): Use redraw_label() if box() is not set.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-23 15:28:09 +00:00
Michael R Sweet
f0180536b3
Use "1" as the count for the targets query instead of sizeof(Atom).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-21 12:26:45 +00:00
Michael R Sweet
1d23087fc9
Fix inactive drawing of the new GTK+ box types.
...
Fix inactive drawing of Fl_Clock and Fl_Dial widgets.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-20 03:03:14 +00:00
Michael R Sweet
b4c1d3ef03
Implement new "gtk+" scheme which provides a Bluecurve look-n-feel.
...
Fix size and position of dialog controls in FLUID to match the HIG.
Add "GTK+" scheme to the list of selectable schemes in FLUID.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5438 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-17 14:58:25 +00:00
Matthias Melcher
d63cf6e315
Much improved sensing if a machine will do Alpha blending. This may actually be the solution. If Alpha blending is not supported, we fall back to the old screen door transparency.
...
This does not take into account a multiple screen setup with different screen depths, but I assume that this is a rare enough constellation and would cause many other problems on top of this minor issue. As a fallback, we will *always* render the image, but worst case without any alpha channel.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-17 12:49:19 +00:00
Matthias Melcher
b39938e5cc
OK, I believe I fixed the transparency issues on WIN32. Please everyone, test the code on all machines.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-16 16:02:00 +00:00
Matthias Melcher
8238e05727
Found bug in Alpha Blending code when using double buffered windiws. Disabeling code until I find the fix.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-16 14:25:48 +00:00
Matthias Melcher
c6de2dd3ef
Implemented alpha blending for WIN32. I believe that I did it in a way that is compatible even with Windows 95, but please let me know if you have any concerns. Cygwin not tested, but hopefully OK.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-15 15:35:16 +00:00
Matthias Melcher
ff94d41c51
In Fl_Text_Display, all unused keyboard events are sent to the scrollbars, so that the user can scroll through text using the usual navigation keys (left, right, up, down, page up, page down)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-15 08:24:34 +00:00
Matthias Melcher
27217f9a74
Fixed Fl_RGB_Image::copy. My previous fix had the meaning of ld() wrong.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-13 22:55:55 +00:00
Matthias Melcher
44264e3c4e
Additional fix for STR #1415 for Xft font selection.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-06 20:16:03 +00:00
Matthias Melcher
8c94b01142
Added code to clear the current font cache when the font face is changed. Now for OS X and X11 as well.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-05 11:26:41 +00:00
Matthias Melcher
caa6fd1ff2
Fixed font caching issue from STR 1415
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-05 11:16:15 +00:00
Matthias Melcher
bfe61f036a
STR #1410 : fl_file_chooser could crash after a previously canceled dialog
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-05 09:57:41 +00:00
Matthias Melcher
84360f49f2
STR 1412: fixed RGB image block copy for ld() values != 0
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5411 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-04 19:24:51 +00:00
Matthias Melcher
82fe05afd1
STR #1411 : fixed latin-to-macRoman text conversion
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5408 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-04 18:46:28 +00:00
Matthias Melcher
46a890cad3
Fixed typo in 'desktop-osx' install. Commented out unused variable.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5384 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-30 10:01:35 +00:00
Matthias Melcher
3303d9d7f5
STR #1151 : Cygwin for some reason was ifdef'd out for setting a shorter timout when reading fd's (yes, the Win32 requires polling to read fd's). Adding the shorter timeout has no impact on Apps that do not poll fd's, but should fix most (all?) problems described in this bug report.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5383 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-30 09:18:12 +00:00
Matthias Melcher
7ae0ff0240
Updated OSX subwindow simulation code to better add and remove from the clipping list
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 11:03:05 +00:00
Matthias Melcher
00ec9da8f5
- removed more inconsistencies between fl_draw and fl_measure (STR #1408 )
...
- made the Tooltip hide code a little bit smarter
- Added subwindow test case to Fl_Tabs
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 10:04:02 +00:00
Matthias Melcher
ba8bb3d8c2
Fixed fl_measure which mistook a trailing '@@' for a symbol (STR #1406 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 07:49:22 +00:00
Matthias Melcher
3ae2d9cc7b
STR #1403 : GLUT window creation code - better fix.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5376 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 07:36:51 +00:00
Michael R Sweet
cb0d6f8f03
Fix blocks crashes on WIN32 - audio buffer too small
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-28 14:45:20 +00:00
Matthias Melcher
862506e6d9
Two simple glut fixes (flickering and VC6 compiler issues).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 10:33:30 +00:00
Matthias Melcher
961391ac08
Fixed GLUT behavior on window creation (STR #1267 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 09:11:42 +00:00
Matthias Melcher
4fae32c85c
Fixed OS X bug that would hide tooltips before they were shown (STR #1392 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 08:49:06 +00:00
Matthias Melcher
8220dc5592
Fixed Fl_Tabs tooltip reappearing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 08:10:31 +00:00
Matthias Melcher
bd4d11e5e3
Fixed filechooser to behave as documented when file pattern changes (STR #135s9)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-24 14:23:24 +00:00
Michael R Sweet
0d0d5326ed
Fix Fl_Gl_Overlay to use new valid API
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 17:40:54 +00:00
Matthias Melcher
da7658fa7f
Avoiding problems with some platforms that don't implement hypot() (STR #1366 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 14:43:07 +00:00
Matthias Melcher
74b91fe371
Fixed Fl_Positioner callback when released (STR #1387 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 12:57:42 +00:00
Matthias Melcher
05cd337c05
Fixed WIN32 zero size window issue (STR #1387 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 11:47:58 +00:00
Matthias Melcher
ae68d64252
Refixed STR #1221 , fixing STR #1393 .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-22 15:45:51 +00:00
Matthias Melcher
555f776077
Fixed uninitialized data in OS X and WIN32 timout functions (STR #1374 ).
...
Fixed silly but in preferences test (that was unrelated to Fl_Preferences).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-21 15:03:02 +00:00
Matthias Melcher
660d524700
Fixed unintialized data bug in OS X timeout functions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 20:09:33 +00:00
Matthias Melcher
dadcbb61b3
Moved Quartz OS X fonts half a pixel up.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 19:20:56 +00:00
Matthias Melcher
86e2fa621a
Fixed speed issues with measuring text sizes in OS X Quartz
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 15:24:55 +00:00
Matthias Melcher
edbf9ae510
Fixed focus issues on OSX (str #1377 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 13:34:10 +00:00
Matthias Melcher
d5a6cf798c
I forgot
...
a dot.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-18 10:56:37 +00:00
Matthias Melcher
972624d613
STR #1381 : added optional "precision" argument when writing floats or doubles to a Preferences file.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-18 07:29:09 +00:00
Matthias Melcher
6391946be0
Fixed callback sometimes not calle when using the arrow keys in an Fl_Slider (STR #1333 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 14:41:20 +00:00
Matthias Melcher
2f4706602d
Fixed ABI issue with const on glutCreateWindow.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 13:49:46 +00:00
Matthias Melcher
49a0693962
Undid the previous Fl_Tabs::value() const change because adding 'const' *does* changed the ABI. Sigh.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 13:43:07 +00:00
Matthias Melcher
ae971b97da
Fl_Text_Editor now correctly handles middle mouse clicks (STR #1384 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 11:10:54 +00:00
Matthias Melcher
c8288bd7b4
Added some GLUT4 functions (STR #1370 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:56:59 +00:00
Matthias Melcher
51d67574ec
New context_changed() function for OpenGL windows allowing efficient texture loading (str #1372 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5322 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:49:43 +00:00
Matthias Melcher
ef48f007a1
Added missing const to GLUT call (STR #1371 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:05:44 +00:00
Matthias Melcher
9f41ba57ec
Fixed stray FL_RELEASE events after clicking system areas on OS X (STR #1376 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:01:56 +00:00
Matthias Melcher
538a1c62ee
Fl_Tabs::value() is now const as described in the documentation (STR #1379 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 08:43:50 +00:00
Matthias Melcher
4f6119433b
Fixed Makefile configuration for OS X dynamic library. STR #1391
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-12 11:05:04 +00:00
Michael R Sweet
8266e090f5
Don't call dummy function inside dummy function - some compilers don't like
...
it...
Drop +DAportable from default HP-UX optimizations.
Move HP-UX C++ compiler warning options to CXXFLAGS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-02 18:03:10 +00:00
Michael R Sweet
9ee02e0f01
Fix compiler warning by adding a cast...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-25 19:14:11 +00:00
Matthias Melcher
e6818b19a6
Fixed byte order in OS X cursor shape data. Added Xft font pointer fl_xftfont.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-18 11:23:20 +00:00
Matthias Melcher
b6f3595669
Fixed Endianness in OS X Mouse Pointer graphics (STR 1348)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-18 08:19:14 +00:00
Michael R Sweet
846cfd4416
Allow non-JFIF JPEG images.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-18 01:10:51 +00:00
Matthias Melcher
924e8a92d1
Fixed crash on mixed use of keyboard and mouse for Fl_Menu_Button (STR #1356 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-17 20:33:45 +00:00
Matthias Melcher
f0fcbb3866
Fixed my previous fix... . Resizing events were not handled anymore.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-17 20:14:50 +00:00
Matthias Melcher
30f4aebe8a
STR #1341 : Fixed Fl_Window::visible() and shown() for OS X
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-16 20:37:41 +00:00
Matthias Melcher
d20a41681d
Fixed Fl_Window::copy_label() losing copy (STR #1332 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-28 10:23:33 +00:00
Matthias Melcher
3f5710ca72
Attempt to improve on fl_scroll for Quartz on Mac, but we probably already use the best function. Added comment noting this attempt.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-23 10:27:09 +00:00
Matthias Melcher
baa92d1d7d
STR #1330 : Repeat button now cancels timeout if it should get deactivated during a callback
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-21 06:52:10 +00:00
Matthias Melcher
87bb58803a
Another attempt at the window stacking problem in WIN32. It does fix the issue described in STR #1296 without the negative effects described by Torsten Giebl.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-20 08:55:43 +00:00
Matthias Melcher
6190aa5728
It seems that the long standing window stacking order problem in MSWindows is now finally solved. The solution is too silly to belive. It seems like WIN32 needs a HideWindow before the DestroyWindow, or the window manager gets confused. DOH!
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 08:51:14 +00:00
Matthias Melcher
ad8d7c4b87
Fixed key compose sequences for shifted keys (STR #1194 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 07:43:39 +00:00
Matthias Melcher
582447c164
Converted global static variables into class static variables
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5207 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-18 15:53:26 +00:00
Matthias Melcher
baeafbea45
Removed debugging messages, added character lookup table for HTML enteties into Mac Roman font.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5206 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-18 15:45:49 +00:00
Matthias Melcher
b51dd39f07
Added text selection and copy/paste to Fl_Help_View. Text can be selected by clicking and dragging the mouse over text. After releasing the mouse button, a stripped down ASCII text is in the text clipboard. Press Ctrl-C to copy the text into the main clipboard. Pressing Ctrl-A selects all text.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-16 19:45:13 +00:00
Matthias Melcher
ec8ab0f22d
STR #1322 : fixes wrong menutitle position for popup menus. This was originally another fix for pulldown menus (see STR #794 , SVN 4259), but had an impact on popups. This fix should work well for both situations.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-16 10:42:58 +00:00
Matthias Melcher
27e5b81fd4
Changed Tooltip::exit_() to Tooltip::exit()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14 11:01:03 +00:00
Matthias Melcher
c468a521b0
STR #1321 : Calling Fl_Window::show() will exit from the current Fl_Tooltip. Changing window order or creating a new window is a pretty major action, so temporarily disabeling Tooltips seems beneficial. This avoids Tooltips interfering with popup menus.
...
Of course, poping up a tooltip window does *not* disable further tooltips... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14 10:48:36 +00:00
Matthias Melcher
bc03e9b1a9
Avoiding crash when passing NULL as a string in Fl_Preferences::set(key, char *string_value);
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14 08:03:16 +00:00
Matthias Melcher
a0cbcf3d1d
STR #1227 : Thanks to Albrecht Schlosser for commiting this patch to fix Fl_Test_Display. The little I could check seemed fine, and he's certain that he fixed the bugs that he found himself.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-13 19:08:32 +00:00
Matthias Melcher
4f38c2c1c9
Fixing the fix: restored the FL_KEYUP behavior of WIN32 before the NumLock fix. Now NumLock and Keyup work well.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 18:44:50 +00:00
Michael R Sweet
30d8dc5eeb
Make sure that all source files expand $Id$...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 16:16:34 +00:00
Matthias Melcher
2db125bc43
Fixed the Fl::event_original_key() function for X11.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 08:06:14 +00:00
Matthias Melcher
428a283f83
Added an event variable "Fl::event_original_key()" which returns the current key code (see Fl::event_key()) before it gets mangled through the NumLock keypad conversion. This way, an application can differentiate between an arrow key and a numeric keypad w/NumLock off.
...
On Win32, releasing a numeric keypad key w/NumLock off wiould return the wrong keycode (keypad instead of arrow key).
Documentation changed accordingly. X11 code is yet to be tested.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 07:48:08 +00:00
Matthias Melcher
d2f9ebf9b9
OS X: fixed handling of the KP_Enter key which is at different key codes for the Powerbook vs. Desktop machines.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-07 09:46:03 +00:00
Matthias Melcher
abd221aa56
Increased gap size in Fl_Text_Buffer to make the buffer suitable for much longer text, which seems to be a common use.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-06 21:12:45 +00:00
Matthias Melcher
aa9148eea8
Added check for NULL for numbnuts (like me) who query the size of a font before choosing a font... .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5179 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-06 15:28:20 +00:00
Matthias Melcher
30786c2ed3
STR #1310 : OS X Quartz support fixed. All test codes now work without complaints fro Quickdraw or CoreGraphics. If no more major bugs are reported for Quartz, I will make Quartz the default over Quickdraw in the next release of FLTK 1.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5178 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-06 08:00:56 +00:00
Matthias Melcher
587e1d170b
STR #1309 : resize indicator not showing if size range does not permit resizing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-05 12:09:30 +00:00
Matthias Melcher
9c0a2c0a0f
OS X Quartz: fixed issues with creating a gray image map. Fluid problems still appear.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-05 11:59:09 +00:00
Matthias Melcher
c80ca69407
OS X Quartz: fixed the text width problem.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-05 09:04:23 +00:00
Matthias Melcher
8130f16538
OS X Quartz rendering: text is now clipped and drawn in the correct color. I had to reverse the 'selection color' change because some widgets rely on this color being dark. Still problems with Fluid rendering and measuring fonts before a window is open.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5174 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-05 09:01:29 +00:00
Matthias Melcher
60ece00315
OS X Quartz: one pretty essential fix to the call order in Quartz context change which fixed a lot of warnings. I also added a file that helps tremondously to debug Core Graphics calls. This file is not compiled into the source tree by default, but the annotations in "src/cgdebug.h" explain the usage.
...
In regard to CG Text drawing vs. the new ATSU Text drawing: I now remember why I did not ATSU in the beginning: STDU does not use the CG clipping area or text pen settings. So, if you plan on using the current SVN with --enable-quartz, please be aware that you will not have any text clipping or any other text color than black.
Finally, I added code to FLTK on OS X that retreives the selection color from the system instead of assuming dark blue. I am not entirely confident about this change as it may require OS X 10.4 . Feedback appreciiated.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-04 10:21:45 +00:00
Matthias Melcher
c4b8afdcf9
STR #1305 : Added MacRoman to utf16 lookup table. Everything's rendered the way we are used to it now, only in Quartz.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5172 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-02 15:01:32 +00:00
Matthias Melcher
4dd1f5e216
STR #1305 : partial fix.
...
FLTK on Mac with --enable-quartz now uses ATSU instead of CG to render text. First of all, it is a lot faster, but more importantly, character positions are now all at integer positions. This is not as beatiful as standard Mac text, but required by the FLTK internals. I seriously doubt that anyone who's not a typesette will notice the difference.
But - and there's always a but, isn't there?
This commit does not handle the ASCII-to-UTF16 conversion yet, so all characters above 127 are junk.
Also, there are still a lot of problems with the Quartz support in general. Most prominently, we still get a lot of messages about invalid contexts which ruins the clipping.
So in conclusion (this must be the longest SVN commit annotation ever) this modification fixes the main reason why I did not finish the Quartz port. After fixing this, there's hope that we will wrap even that dirty little corner of FLTK up for good!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-02 14:17:41 +00:00
Michael R Sweet
b938cfb7ef
Remove executable bit from more source files.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-31 18:33:37 +00:00
Matthias Melcher
987d9e05f2
Fixed shortcut and default focus for message dialogs (STR #1298 ).
...
Default focus is now on the button that also reacts to the 'Enter' key. This should avoid confusion about Enter triggering the button1 or button 0.
Also, I changed the shortcut call to the new convention which works on MSWindows. I don't have a Linux system right now for testing... .
Fixed focus issues (STR #1286 , STR #1289 , STR #1296 )
fl_xfocus was not always updated, making widgets or even whole windows loose focus when any focus changes were not accompanied by a click into the same window. Also, Fl_Tabs would not redraw correctly if focus returned to the active tab.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-30 09:38:19 +00:00
Matthias Melcher
6986a1d008
Remove warnings found by Robin Rowe's settings for VC7. I do not have VC7, but I believe I managed to find and fix them all... .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-30 07:58:41 +00:00
Matthias Melcher
bfd2801df2
Fixed resizing in OS X. The code was not only unneccesarily convoluted, but also forced some default sizes on user requests for specific window sizes. The new code also avoids two system calls and shortens a move/size combination into a single resize, which reduces some flicker on extreme resizes (but not all flickering - Apple, what's up with that?).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-30 07:35:58 +00:00
Matthias Melcher
b9e4886cfe
Tabs now show the correct tooltip (STR #1282 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-21 09:41:47 +00:00
Matthias Melcher
b0c7fc3ab7
Fixed insufficiently invalidated cache in Fl_Browser (STR #1265 ). Fl_Browser::cahceline was set to 0, but Fl_Browser::cache was not which lead to confusion if the cache was usable or not.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5095 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-10 10:45:59 +00:00
Matthias Melcher
fc57e07cbf
STR #1153 : This is an attempt to fix the described issues when querying multiple monitors on defferntly set up Windows environments. Would the posters please test if the new version works. Thanks.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-10 10:37:32 +00:00
Matthias Melcher
22b1499904
STR #1152 : Fixed Cygwin compiler warnings
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5085 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-05 14:36:58 +00:00
Matthias Melcher
48c8932fd5
Some minor improvements for the Mac keyboard mapping: accent-space would under some cicumstances add an extra space; tilde-space would add a 'funny' tilde from far up un the MacRoman font, not the ASCII tilde as expected.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-05 14:09:50 +00:00
Matthias Melcher
37e05f9df2
Fixed maximizing in OS X (STR #1221 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-28 02:57:15 +00:00
Matthias Melcher
ad0fc9ca23
STR #1162 : Fl_Menu_Button::popup was trying to access a previously deleted widget (itself). The delayed deleting mechanism in 'Fl::delete_widget' did not work in this case because the main loop is called before the callback returns. The fix implements a type of automatic pointer that will be cleared to NULL should the widget get deleted. This may not be a 'nice' solution, but it does fix the problem reliably. We could actually use this for all widget pointers and remove the delayed delete mechanism alltogether
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-27 21:40:47 +00:00
Matthias Melcher
cbbec03b5e
fl_font(0, 0) as a first call in Xft would try to access a member in fl_fontsize, which was still set to NULL. This fix is untersted as I don't have a Unix machine here. Please verify this fix!
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-27 13:54:08 +00:00
Matthias Melcher
8ffe967089
STR 1161: Setting a new value in Fl_Input_ wil now actually move cursor to the end of the input field as documented
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-27 03:06:23 +00:00
Matthias Melcher
b72e1d6699
STR 1252: fixed missing includes in 'encoding' additions
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-25 18:28:56 +00:00
Matthias Melcher
0e750cdd65
Static destuctor must be public of course
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-20 12:40:42 +00:00
Matthias Melcher
0b98e816d8
Fixed crash in Fl_Preferences if 2nd or 3rd argument in the 'path' constructor were NULL
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-20 04:34:18 +00:00
Matthias Melcher
a82e7879ce
STR #1232 : it was not possible to toggle a checkbox in Fl_Check_Browser by clicking the same box twice.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-20 03:53:41 +00:00
Matthias Melcher
49791adf78
Added '&255' to 'isspace(*p)' calls in order to avoid problems with signed int vs. unsigned char.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5005 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-20 03:21:32 +00:00
Matthias Melcher
afbe855296
STR #1231 : moved clearing of resources out of Fl::run() into a static class destructor. Although this should work, I was unable to test this (no Windows machine at this time). Also, since the order in which static destructors are called is undefined, this code can still lead to a crash if the main window was alos statically allocate in global space. Suggestions welcome.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5004 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-20 03:11:47 +00:00
Matthias Melcher
9460fcc375
STR #1233 : previous timer implementation on Mac OS X was eating up various resources. The new implementation will return Timer and UPP to the system, or just reprogram a timer for efficiency, where possible.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-20 03:02:37 +00:00
Matthias Melcher
9a2ca6b701
Fixed forgotten line from previouos commit
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4997 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-19 13:57:46 +00:00
Matthias Melcher
1df4a9fb4a
STR #1195 : It was not possible to enter a whole range of characters on Mac OS X, including umlauts, etc. . The changes in this patch should not only allow the FLTK way of composing characters, but also support the Mac way of composing including the dead-key preview.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-19 03:00:26 +00:00
Matthias Melcher
c9908d97e3
THIS FIX CONTAINS TWO MORE FILES THAT MUST BE COMPILED. I would
...
like to ask the maintainers of the build environments to please
add these files to the setup:
src/fl_encoding_latin1.cxx
src/fl_encoding_mac_roman.cxx
I ADDED SOME DOCUMENTATION THAT NEEDS TO BE FIXED. Beeing not a
native English speaker, I have a hard time writing documentation.
Would someone please update my babbeling in
documentation/drawing.html? Thanks.
This commit fixes some very basic problems with OS X's code page in
preparation for the compose-character keyboard fix. It also fixes
issues with MS Windows and X11 not rendering the characters
in the Western (Latin-1) set between 0x80 and 0x9F. In the original
ISO font, they were unused, but are now assigned to international
characters like the Euro currency sign.
This patch also tries to fix one basic flaw with FLTK 1 and
font encoding. I will not put much more work into this because
FLTK 1.2 and FLTK 2 fix the problem entirely by using UTF-8
instead of 8-bit "C"-style strings.
All these changes are only meaningful for foreign language
users or users of special characters like the Euro, the Degree
or the Permille symbol. A short explanation follows.
Max OS X uses a different code page than X11 and Win32. This means
that all characters above 0x7f have an entirely different meaning.
If your source code contains international characters, your
text will appear different if you change to another OS. This patch
provides two functions that convert text with international
characters from the character set of the source code into the
local character set. Two more functions are provided to convert
them back. The functions are fl_latin1_to_local (source is in Win32
or X11), fl_mac_roman_to_local (source was written on OS X) and the
corresponding fl_local_to_latin1 and fl_local_to_mac_roman, which
are very useful if yoou want to store strings with intl. characters
that will be moved between systems.
All this is assuming a "Western" code page as it is common in
the Americas and most of Europe. User of other languages will have
to use FLTK 2.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-18 13:07:42 +00:00
Matthias Melcher
e682ec6339
Allowing characters between 0x80 and 0x9f to be enetered into Fl_Input_ derived widgets. Although these were not defined in the western ISO code page, they seem to be implemented in most X11 drivers now as MSWindows Latin-1. For example, the Euro symbol is at 0x80. It should now be possible to enter the Euro sign and other chars in this range correctly. Please verify.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4971 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-17 17:56:05 +00:00
Matthias Melcher
1184d7eee6
Changed special handling on ISO characters 0x80 to 0xA0 for OS X, since this characters must be handled as standard characters here.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4957 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-15 16:19:54 +00:00
Matthias Melcher
eea06b4d6f
in preperation of STR#1195: On OS X, we don't need to do the octal conversion because all characters in MacROman are defiend.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4955 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-15 02:13:39 +00:00
Matthias Melcher
8c9fb5465c
in preperatio of STR#1195:ISO 8859-1 fixes for Fl_Input_ and derived classes
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4954 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-15 02:05:06 +00:00
Matthias Melcher
fe9b1fce28
STR 1195: caret key lookup entry was missing on Mac OS X
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-04 11:44:20 +00:00
Matthias Melcher
23655ba4d5
STR 1200: fixed wrong allocation of copy/paste buffer
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-01 13:28:46 +00:00
Fabien Costantini
467bedb315
Fixing STR #1222 (case sensitive include fl_draw.H correction)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4883 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-03-29 13:11:56 +00:00
Matthias Melcher
b8bc24764e
STR 1183: swapping two items in an Fl_Browser_ widget would corrupt redrawing if either item was "top". This fix swaps the top_ variable correctly, and also swaps the selection flag as the user would expect.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-03-28 23:27:20 +00:00
Matthias Melcher
8fcdb4beba
STR 1179: function fl_scroll should now be correctly exported, even on VC6 :-)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-03-28 15:31:07 +00:00
Matthias Melcher
7e42a63aa6
ST 1148: a preselected filename will also be selected in the file chooser when popping up. I put a lot of effort into trying to make the chooser behave as it previously did in all other situations, e.g. to choose a directory
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-03-28 15:24:14 +00:00
Matthias Melcher
37518df9b3
Reverted Help Browser to previous faster and simpler code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4872 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-03-28 06:50:32 +00:00
Matthias Melcher
450b73e63b
STR 1186: Fixed Help Browser buffer overflow by adding a self-enlarging buffer for reading text blocks. Without this, blocks of more than 1024 chars without attributes would corrupt memory.
...
TEST USERS: Please check this fix. It is not trivial.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4871 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-03-27 18:50:49 +00:00
Matthias Melcher
094f1b0f7e
STR 1213: leaving the area of a menubar when dragging would not cancel out the menu selection. This version now deselects a menu if the mouse leaves a menu structure, moving or dragging.
...
This is an extension of the original patch which would file on selecting menu titles, or returning to the previous menu window inside a menu hierarchy.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-03-27 12:59:49 +00:00
Michael R Sweet
cbd3bd40a9
Don't try to load image file we couldn't open
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-02-22 15:27:39 +00:00
Michael R Sweet
db822d2fd9
Fix menubar menu clicking, so that menu items work again and clicking outside
...
the menu cancels it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4766 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-17 21:04:55 +00:00
Michael R Sweet
826eb45715
Clicking outside a menu window dismisses it (STR #1144 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-17 15:02:36 +00:00
Michael R Sweet
c1c84a620a
Check if the user clicks outside the menu area in the menu bar so that we
...
don't get stuck with the focus in the menubar.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4764 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-17 04:32:51 +00:00
Matthias Melcher
42a6245bdd
STR #1109 re-fix: when fixing 1109, I accidentally enabled clicking on grayed out menu items. This commit should fix that an make the menu ignore grayed out items altogether.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-16 23:22:32 +00:00
Michael R Sweet
f7305675c4
More copyright updates.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15 02:26:54 +00:00
Michael R Sweet
2b293afe37
Pressing a Fl_Menu_Button widget now draws it pressed in (STR
...
#1140 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4746 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15 02:21:19 +00:00
Michael R Sweet
31700097b3
Fix resizing of Windows (STR #1139 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4745 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-14 23:12:27 +00:00
Michael R Sweet
e0a8bd61e7
Add ipp, ldap, mailto, news, and smb schemes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4739 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-05 00:14:17 +00:00
Michael R Sweet
11040f3094
Add comment block for new DND code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4738 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-05 00:10:00 +00:00
Michael R Sweet
3af3148a06
Check for CR LF and no spaces in addition to starting with a URI prefix.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4737 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-04 23:59:30 +00:00
Michael R Sweet
c4a0b7f056
Fl::dnd() now sets the content type of the drag to
...
"text/uri-list" when it sees the dragged text is composed of
URIs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4736 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-04 19:53:34 +00:00
Michael R Sweet
0321627691
Use "512" in place of kWindowNoTitleBarAttribute, as that constant was
...
only introduced in MacOS X 10.4!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4734 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-02 13:37:56 +00:00
Matthias Melcher
67bc851abb
STR #1135 : Triggering a timout would not break the event loop, giving no opportunity to FLTK to call flush. As a result, all redrawing that depended on timeouts only would not get done unless some other event was received. If the idle function was set, the event loop would break and redraw wold work again.
...
I moved all timeout functions from Fl.cxx to Fl_mac.cxx since they are very system specific and made the timeout break the main event loop, just like it does on all other platforms.
This bug must have been around for at least two months... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-02 10:31:59 +00:00
Matthias Melcher
3e1666448d
STR #1133 : Text was drawn twice when the scrollbar arrangement changed, causing antialiasing making characters appear somewhat "bold". This was fixed by correctly erasing the background again when redrawing the browser.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-31 18:26:01 +00:00
Matthias Melcher
a5b959a3df
STR #1133 : if the FIle_input did not have focus and have no text inside and have the BAR changed flags set, it would draw a bogus and shifted second background box on top of the original one.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4728 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30 15:45:38 +00:00
Matthias Melcher
0ea6761db2
- Fixed keyboard shortcut handling in FLUID and shortcut
...
labeling in FLTK (STR #1129 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30 14:11:04 +00:00
Matthias Melcher
5c4e1336ba
STR #1082 : fullscreen demo would not redraw because resizing would set the "wait for expose" flag. However, OS X does not send an expose event on resizes. Doh!
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30 13:04:48 +00:00
Matthias Melcher
42f7ef8ea9
STR #1082 , part 1:
...
Borderless windows now do not vanish anymore when the application becomes inactive, unless they are menus, or tooltips.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30 11:11:54 +00:00
Matthias Melcher
76e967889f
STR #1131 : there is no good way in Mac OS X to support an OpenGL
...
overlay (well, at least none that I could find) so I decided to
simplify the overlay code. FLTK tricked a little using the
front render buffer, however OS X 10.4 does not support
that anymore. Anyway, here's the slow, but working, solution.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4724 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30 10:32:58 +00:00
Matthias Melcher
d3db965083
Fixed a few memory faults found by Valgrind (yes, I finally got my Linux
...
machine up and running again)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30 10:13:17 +00:00
Matthias Melcher
f39706d92e
Flipped spyglass symbol for all apps.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4721 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-19 16:52:11 +00:00
Matthias Melcher
5552a0cce7
STR #1104 : WIN32 version would insist on running a full length timeout even if it knew already that the UI needed to be updated. This could cause a quite long delay when a timeout was used to trigger a redraw. Probably true for threads as well... .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-16 11:34:04 +00:00
Matthias Melcher
3cdd5a4c8d
STR #1122 : Fl_Text_Display would throw away all key events if the mouse pointer was outside of the Widget bounds.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-15 20:31:35 +00:00
Michael R Sweet
ff0733e087
Fl::wait() returns immediately if no windows are open.
...
Fl::wait(double) still waits for the specified time.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-15 18:57:56 +00:00
Matthias Melcher
e3883f0384
STR $1099: The Quartz version of FLTK now draws a very nice resize
...
control in the lower right corner of top-level windows if that
window is resizable. The color of the control adapts to the
background color of the window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4711 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 13:51:51 +00:00
Michael R Sweet
0e14d5ba18
Rotate search icon to avoid confusing it with the letter Q.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 02:32:27 +00:00
Michael R Sweet
9d060d717c
Fixes for Cygwin (STR #1096 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 01:58:03 +00:00
Michael R Sweet
cbb4918f41
Change FOREVER back to 1e20 (minimal CPU usage) and change fl_wait()
...
implementation on WIN32 to check for idle and to use a time_to_wait()
of 0... (STR #1120 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 01:25:21 +00:00
Michael R Sweet
f4b83b81ba
Revert change from r4659 that caused FLUID resize problem (STR #1110 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 01:03:13 +00:00
Michael R Sweet
c97fcd9c65
Fl_Clock_Output depended on a time value that was the same as an
...
unsigned long, which is incorrect for WIN64 and VC++ 2005 (STR
#1079 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 00:34:34 +00:00
Matthias Melcher
af80bcf1a4
STR #1109 : Klickin on an inactive item would keep the menubar from realizing the end of the pulldown phase and swallow the next click.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-12 23:22:55 +00:00
Matthias Melcher
0992f4ef15
STR #1095 : Drag'n'drop on WIN32 was only possible using the left mouse button. Added support for the middle and right button.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4677 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-01 09:02:13 +00:00
Matthias Melcher
cb19f58484
Added multi screen awareness to WIN32 version of Fl_Window::fullscreen()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4676 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-01 08:56:24 +00:00
Michael R Sweet
346954e178
Fix mouse wheel handling on OSX (this works with MightyMouse on OSX 10.4.3
...
using the standard mouse wheel event...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-29 18:06:46 +00:00
Michael R Sweet
312aa3a3c0
Fix compile error with Sun C++ compiler.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-29 08:49:56 +00:00
Matthias Melcher
c146000f27
STR #1064 : Added code to underline spaces in underline chunks. Also fixed wrong character code for Center Dot (bulets) on Mac OS Quartz
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 16:39:57 +00:00
Matthias Melcher
3cae272e1f
Even better fullscreen code on OS X that resize a window to fit a single screen in multi screen setups. It still will not position over the main menu bar.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 15:54:48 +00:00
Matthias Melcher
8cd25c4ecb
STR #1082 : Made sur that "fullscreen" on Mac does not cover the top menu bar. If you still must do that, you can use the screen interface to get the true screen size of the main screen and resize the window accordingly.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 15:41:39 +00:00
Matthias Melcher
687f0693af
STR ##1081, 1083, 1084: in a previous change that improved timer behaviour, the idle management was accidentaly removed from the code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 15:13:10 +00:00
Matthias Melcher
b317b6dbb0
STR #1075 : After all windows in an application were hidden by the Command-H shortcut, FLTK would not be notified about the Command key beeing released. To fix this , I update the mofier keys when a window is shown again. There may be better ways to do this, but it seems to be working reliably for the apps I tested.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 14:38:38 +00:00
Matthias Melcher
129c8e39ec
STR #1098 : fl_measure now round fractional sizes up instead of down, so that an area that is create with the values returned from fl_measure will be large enough to hold the same text generated with fl_draw.
...
Or in short: OS X Tooltips will not wrap... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 09:52:19 +00:00
Michael R Sweet
5c613e487e
Fix uninitialized variable warnings.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 15:11:33 +00:00
Michael R Sweet
f3182417c0
Update dependencies.
...
Eliminate compiler warnings in Fl_GIF_Image.cxx.
Add X11 icon code to sudoku example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 15:05:50 +00:00
Michael R Sweet
e321cb37bf
VC++ 2005 Support, drop old files, add icons for Sudoku
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 14:45:48 +00:00
Michael R Sweet
f9f2de3572
Fix a resize issue with X11.
...
Add missing Id keywords to input_choice.
Add sudoku to demo program.
Add on-line help to sudoku game, and put all of the cells in the main
window so that the keyboard navigation is sane.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 05:15:47 +00:00
Michael R Sweet
ae6ea393c0
Mousewheel fixes.
...
src/Fl_mac.cxx:
- Disable MightyMouse code for the moment - it is crashing on
my PowerBook...
src/Fl_Scrollbar.cxx:
- Fl_Scrollbar::handle() should only return 1 for mousewheel
events that it uses.
test/sudoku.cxx:
- More tweaking.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 00:47:45 +00:00
Michael R Sweet
9e8a88e66c
Fix mousewheel handler bug (using wrong variable in initial check)
...
Add sudoku game app (fun for the holidays! :)
Use "-Os -g" as the default optimization settings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25 20:40:16 +00:00
Michael R Sweet
fe286dfe7b
OSX fixes...
...
src/Fl.cxx:
- Don't compile in static functions that aren't used.
src/Fl_mac.cxx:
- Coding style...
src/Fl_Sys_Menu_Bar.cxx:
- Fix FL_META handling - FL_META incorrectly set the CTRL modifier,
and it was not possible to get all combos of modifiers. The new
coding should work properly for all combos...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25 14:50:22 +00:00
Michael R Sweet
258c3e81a4
Fl_Text_Display::wrap_mode() would crash if no buffer was
...
associated with the widget (STR #1069 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-09 21:34:04 +00:00
Matthias Melcher
0f41b3b071
Resorted functions. VC6 did not give a required warning/error
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4646 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-07 11:16:24 +00:00
Matthias Melcher
476044f898
Scrollbar now reacts to horizontal scroll wheels if it is a horizontal scroll bar.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4645 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-07 08:51:53 +00:00
Matthias Melcher
ba4b17c545
Don't draw plastic boxes that are 0x0 pixels in size or smaller
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4644 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-07 08:44:54 +00:00
Matthias Melcher
0a41e770c3
STR #1062 : updated code to resize the preview panel of the file chooser and hide it entirely if unused
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-07 08:39:23 +00:00
Matthias Melcher
1fe85a8c18
STR #1063 : Applied Allesandro's plastic box patch. Looking great.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-07 08:09:23 +00:00
Matthias Melcher
595879b300
Added missing comma in Mac OS X code
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-06 22:26:54 +00:00
Michael R Sweet
d24609eafb
Fix speling misteaks :)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-04 11:17:31 +00:00
Matthias Melcher
cd433ac67a
STR #1060 : first attempt at fixing the dreaded MightyMouse issue on OS X.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4636 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-04 10:24:42 +00:00
Matthias Melcher
b1d3eae6f2
Moved 'flush' before 'idle' in main loop fl_wait to make redraw action quicker.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4635 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-04 09:16:16 +00:00
Matthias Melcher
4663981310
STR #1061 : fixed Fl_Window::cursor for subwindows and GL windows on WIN32
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-04 08:23:20 +00:00
Matthias Melcher
b128af1d4a
STR #1052 : Made check buttons readable as well
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4627 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 14:18:32 +00:00
Matthias Melcher
9944b5ad5a
STR #1052 : Cursor in Fl_Text_Display is now by default FL_FOREGROUND_COLOR
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 11:39:24 +00:00
Matthias Melcher
4517521526
STR #1052 : Changed to dot inside the round check box (radio style buttons) to FL_FOREGROUND_COLOR
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 11:31:33 +00:00
Matthias Melcher
349a1d9034
STR #1052 : The outline drawing of not existing images is now in foreground color instead of black
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4621 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 11:30:41 +00:00
Matthias Melcher
04f1ab054b
STR #1052 : reworked coloring of clocks
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4620 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 11:04:26 +00:00
Matthias Melcher
965f74c378
STR #1052 : using foreground color instead of black in Check Browser
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4619 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 10:48:05 +00:00
Matthias Melcher
f58d80d077
STR #1050 : OS X: The new event handler code did not handle "high level" Apple events except "Quit". Added the neccessary AE handler call in the main loop.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 10:39:06 +00:00
Matthias Melcher
5a19010190
STR #1051 : fl_wait() would only flush damaged window areas if there were any messages pending. Since FLTK does redraws even if there is no WM_PAINT pending, this was not working all the time.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4617 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 09:51:27 +00:00
Matthias Melcher
abfa63b895
STR #968 : Under X11, FL_DND_* now returns the string "<unknown>" in
...
Fl::event_text(). It seems to be impracticle and disturbing to the
dnd process if we try to retreive DND data before the actual drop.
I'll be happy to include a better solution should anyone come up
with one, of course ;-)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 08:26:44 +00:00
Matthias Melcher
501e1b7416
STR #1059 : OSX: applications could not reset the click count, so a tripple
...
click with reset could be interpreted as a double click, then a tripple click,
instead of double click, then a single click
M Fl_mac.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-01 23:57:40 +00:00
Matthias Melcher
e7ea8bbe97
STR #1057 : A window that is needed to correctly manage a timer on WIN32 (personally, I would like to mark this WTF ;-), was actually visible. I resized it to 0x0 ixels, but if that fails, we fall back to the old 1x1 pixels. I also removed the "default" positioning since that messes up the default window stacking for pedantic users.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-01 16:48:19 +00:00
Matthias Melcher
134629c861
STR #1056 : fixed a slight offset in the Fl_File_Chooser that kept resizing from working correctly.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4613 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-01 16:32:21 +00:00
Michael R Sweet
067d1d8a61
Updated the default label and text colors of all widgets to use
...
FL_FOREGROUND_COLOR instead of FL_BLACK (STR #1052 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4609 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-30 17:42:21 +00:00
Matthias Melcher
cf296e0565
STR #unfiled: when using Fl_Menu_::add, the 'flags' field of the last entry in a newly allocated local buffer would not be cleared. If the flag happened to be FL_SUBMENU, this would lead to crash in 'find_item'. The new code clears the entire field.
...
And yes, this has cost me a few hours :-P
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4594 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-18 09:16:55 +00:00
Michael R Sweet
57067a923d
Remove unnecessary includes ("flstring.h" is included by the parent
...
file and includes <string.h> and <ctype.h>...)
Add changelog entry.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-13 14:27:19 +00:00
Matthias Melcher
55f6d7673d
STR #1012 (Xft): added provided Xft code and cleaned it
...
up a little. Event though the author mentions a few flaws,
this is far better than what we had in here before and
makes the Xft support actually usable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4592 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-13 13:51:59 +00:00
Michael R Sweet
405b80784a
Fl_Value_Input now uses the screen-absolute position instead of
...
the window-relative position when dragging the value; this avoids
some jumping conditions (STR #1037 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4591 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-12 20:47:21 +00:00
Michael R Sweet
dc7a14aa9a
Rework event loop handling on all platforms for better timer and idle
...
processing (STR #861 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4589 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-12 20:19:30 +00:00
Matthias Melcher
592e215dd6
STR #1047 (Mac only): This is an additional fix to the event conversion
...
that I did to the Mac version a while ago. It makes the menus work as
expected again.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-10 12:47:49 +00:00
Matthias Melcher
8209fcc6a3
STR #1044 (Mac only): The font number 12 and 15, usually assigned to
...
the fonts 'Symbol' and 'Webdings', are not translated from ISO to
MacRoman anymore. This fixes the problem of not having the correct
bullet in the Fl_Help Widget.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-09 16:27:45 +00:00
Matthias Melcher
c0ef4603d4
Ported FLTK 2 changes to event system on OS X back to FLTK 1
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-25 21:48:43 +00:00
Matthias Melcher
60812b2ecc
STR #973 : popup menus now pop up fully visible in the current screen if possible and useful. In detail, menus in a menubar will pop up above the title if they would cut into the screen bottom. Submenus will show the *last* item to the right of the parent instead of the first. Finally, Pulldowns with title will simply apppera over the title instead of under the title.
...
There are two exceptions:
Menus that have a selected item will not be modified, so the selected item is visible. Hence an Fl_Choice will never have a 'fixed' menu.
If putting the menu high would intersect the top frame of the screen, we leave the menu at the bottom.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-25 19:04:04 +00:00
Matthias Melcher
44f06b5d35
STR #1035 : Fl_Help_View now accepts direct buffer loading and reading via 'value()' functions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-25 16:54:40 +00:00
Michael R Sweet
e1fa5dc88b
Don't try to generate a preview image of a directory.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-24 23:37:54 +00:00
Matthias Melcher
990415bd04
STR #1028 " set size ranges for filechooser 'favorites' dialog and for help dialog
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-24 20:48:58 +00:00
Matthias Melcher
42b1d09681
STR 1026: Text input filed had NO_BOX as its background, so the moving cursor would not be erased.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-19 21:14:23 +00:00
Matthias Melcher
83d58a96b2
STR 1025: fixed illeagal acces to delted object. It was meant to set the dirty flag in the parent of course.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4576 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-19 21:10:48 +00:00
Michael R Sweet
b303985d92
Fix char * issues with constant strings.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-19 12:06:09 +00:00
Matthias Melcher
2036009919
STR #1007 : removed one superfluous ReleaseDC. All demos are running nicely again. I did not see any rendering mistakes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4569 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-15 07:41:17 +00:00
Matthias Melcher
56bcac9859
WIN32, STR #1007 : Added some code that looks a lot, but is actually very littl, that keeps track of all window classes that were registered to avoid registering the same class twice.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-14 07:30:32 +00:00
Matthias Melcher
02ab74fcee
Fixed x-offset problem in Help_Widget (STR #998 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-13 08:43:28 +00:00
Matthias Melcher
c526a7ad2f
Clipboard will persist if owner window is hidden (STR #1019 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-12 23:51:36 +00:00
Matthias Melcher
fe934da8b2
How did 79 get into the comment? I don't know.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-12 23:12:06 +00:00
Matthias Melcher
2b6586f64d
STR #1007 : Applied second patch by hand. OP: could you please check if all changes were made correctly? Thanks!
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-12 23:03:34 +00:00
Michael R Sweet
fcb8f9e056
Remove unused ptr variable.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-09 11:16:21 +00:00
Matthias Melcher
820b67bc56
This change will make sure that top-level windows will fit inside the screen that contains the original x and y.
...
The previous version would reposition windows in the screen that currently contains the mouse. That feature made it impossible to position tool windows on a second monitor, etc. .
This change does not affect popup windows which will still pop up in the screen that has the mouse pointer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-09 09:52:16 +00:00
Matthias Melcher
bde4916c7e
STR #1013 : yet another attempt at fixing the precision count in Fl_Valuator. Does this work for everyone?
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-08 20:57:27 +00:00
Matthias Melcher
f0d44ed955
STR #1014 : FLTK's CR/LF conversion would crash if the clipboard was empty
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-05 10:09:14 +00:00
Matthias Melcher
e3ae773842
Re-Fixed STR 884. I did put the change into the FLUID file, but accidentally into the wrong line, where it got lost.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 21:27:48 +00:00
Matthias Melcher
dc6357bf1a
Various Pixel bugs:
...
STR #993 , STR #990 , and a few others
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 21:16:38 +00:00
Matthias Melcher
a2effb7c2b
Fixed C++ style comments in plain C files (STR #997 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 20:16:36 +00:00
Matthias Melcher
d952d9b9d6
Fixed signedness of argument to sscanf
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 20:11:48 +00:00
Matthias Melcher
6ae2a95a8c
This is the text for the previous commit.
...
Fixed reading of corrupt Jpegs. The previous fix would work somewhat on VC6, but should not have worked... . The new fix looks unfamiliar, but seems to work fine. Thanks for the patch to Natevw
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 19:39:02 +00:00
Matthias Melcher
f5c58cc8d3
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 19:36:59 +00:00
Dejan Lekic
3c96dd4d85
Fix of cross-compiling (host: *-linux-* , target: *-mingw32) problem.
...
Patch provided by Amir Shalem <amir@boom.org.il> in STR#995 .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-27 05:25:50 +00:00
Matthias Melcher
53e3d7582b
Fixed dirent list by making room for the additional '/' character on directory names. FLTK does not care about the internals of the dirent structure. We only support the member d_name. All other members are non-standard anyways on not available on Win32.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-26 20:06:29 +00:00
Matthias Melcher
4ba366f7d7
Bordersize was calculated wrong for borderless windows
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-21 22:28:57 +00:00
Matthias Melcher
ac65443882
Fixed CR to CRLF conversion. Thanks for the patch, Alessandro.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-21 22:05:48 +00:00
Michael R Sweet
c1ba87140e
Fix new trailing slash usage, and restore correct OSX filesystem listing
...
(added filter to hide /dev and /.vol)
src/Fl_File_Browser.cxx:
- Fl_File_Browser::load(): use getfsstat() API on OSX, and don't
bother adding a trailing slash to directories since we already
have them!
src/filename_list.cxx:
- fl_filename_list(): Add 3 bytes (two possible slashes + nul byte)
to temporary buffer, and document why we are using memcpy() instead
of strcpy().
src/filename_isdir.cxx:
- fl_filename_isdir(): Add check for trailing directory separator
before wasting time doing a stat() call.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-18 14:08:17 +00:00
Matthias Melcher
eca40efb6e
This change is controversial. It changes the behavior of fl_filename_list
...
slightly by adding a forward slash after every directory name on every
supported OS. Included in this patch is a change in the code that
lists mounted volumes on OS X Mac.
Apple users, please check. Open FLUID, open the file dialog and
clear the current path. You shoudl see a list of mounted volumes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-17 21:56:22 +00:00
Matthias Melcher
760bca71ab
Silly scope bug. Thanks, gcc
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-17 18:09:20 +00:00
Matthias Melcher
661c0ff41b
Fixed redraw range in Multiline Input with wordwrapping for space characters and for undo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-17 12:07:34 +00:00
Matthias Melcher
b5f14ff780
fl_filename_list now correctly handles path names like 'c:'
...
or 'c:/windows' by listing it contents instead of the filename itself.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-15 20:03:36 +00:00
Matthias Melcher
379804873e
Fixed Fl::event_text() for FL_DND_* events on Windows (STR 968)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-15 19:18:49 +00:00
Michael R Sweet
128fda2fd6
Remove unnecessary breaks...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4508 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-11 14:27:05 +00:00
Michael R Sweet
497b30ae71
Fix fl_vsnprintf bugs, remove VC++.NET link warnings
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-11 14:12:23 +00:00
Matthias Melcher
b5a0c5bcc9
OS X drag'n'drop now pastes into the correct widget (STR #974 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-11 10:36:51 +00:00
Michael R Sweet
eeda8ef60b
Add support for * width and precision values, and fix potential
...
infinite loop bug...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-11 00:36:51 +00:00
Matthias Melcher
af39242da6
Fl_Text_Display now auto-scrolls in all directions (STR #915 ). This is implemented using a timer event. The scroll speed is proportional to the distance of the cursor to the text area
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-10 23:11:51 +00:00
Michael R Sweet
eb2af9e92b
Some more scrollbar tweaks from Alessandro for STR #871...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-09 20:11:02 +00:00
Matthias Melcher
fc8b075951
On X11, borderless windows will not show in the taskbar anymore (STR #933 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 23:31:41 +00:00
Matthias Melcher
6f6cab4d6e
Moved some code around so that FLTK will figure out the
...
event_text for dnd text on the first FL_DND_ENTER event and then keep
if in a temporary buffer until FL_PASTE or the next DND event.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 19:30:09 +00:00
Michael R Sweet
ff88ea3ec5
Fl_Valuator-derived widgets could show more digits than were
...
necessary (STR #971 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 15:01:45 +00:00
Michael R Sweet
4264573f18
Add additional Fl_Browser_ fixes for STR #834 .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 02:59:27 +00:00
Michael R Sweet
4fa1a3edb4
Fl_GIF_Image did not handle images with an incorrect number of
...
data bits (STR #914 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 02:34:06 +00:00
Michael R Sweet
afbd833c04
Fixed some plastic drawing artifacts (STR #906 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 01:35:29 +00:00
Michael R Sweet
eaaae8b05e
Fl_Help_View now draws the box outside the scrollbars, like the
...
other scrollable widgets (STR #871 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 01:31:03 +00:00
Michael R Sweet
28940a5c75
Updated WIN32 cut/paste code to consistently handle DOS text (STR
...
#961 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 00:57:00 +00:00
Michael R Sweet
6585e234ae
Added shared library support for Cygwin and MingW (STR #893 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 00:54:30 +00:00
Michael R Sweet
c9f9b4faa0
Fl_File_Chooser did not implement the user_data() methods (STR
...
#970 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4473 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 00:50:02 +00:00
Michael R Sweet
b8dcdf4c64
Compilation could fail if a previous installation of FLTK was in
...
the same (non-standard) directory as an image library (STR #926 )
configure.in:
- Add LINKFLTKFORMS definition.
- Change LINKFLTK* definitions to just reference the static
libraries themselves.
makeinclude.in:
- Use LINKFLTKFORMS and drop -L../lib stuff for static linking.
src/Makefile:
- Move -L. in front of LDLIBS and IMGLIBS when linking shared
libfltk_images.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 00:44:38 +00:00
Michael R Sweet
2c8dce49b1
Fixed OSX compilation problems with non-HFS filesystems (STR
...
#972 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4470 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-07 14:03:42 +00:00
Dejan Lekic
1cd06f3ad0
This commit contains patch submitted by "fltk.x0" (thanks fltk.x0!) in the middle of May this year - STR #863 . Also small change in fluid.cxx - time.h was needed for successful build on MinGW.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4468 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-06 05:02:56 +00:00
Michael R Sweet
0a5b7239d4
Fix redraw problem with Fl_File_Input (STR #958 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-28 22:56:00 +00:00
Michael R Sweet
9d32c9a60f
Fix bad include file in file chooser.
...
Remove unused variable in plastic box drawing code.
Fix spelling mistakes and wrapping in changelog.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4457 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-25 19:20:06 +00:00
Matthias Melcher
b6f2bc9250
STR #831 : When moving an OpenGL window outside the screen and then back again lets fltk get stuck.
...
The problem seems to be an idefinite repeat of the WM_PAINT message. The driver sends an internale WM_PAINT (one that does not contain an update region). FLTK then creates a union with the still existin 'i->region' of the OpenGL window, causing yet another WM_PAINT message.
The fix is to not run through the WM_PAINT handler at all if there is no update region (as suggested by Microsoft). This change is definetly debatable, since it does modify some internal FLTK behavior. I will commit it anyways for now, but we should pay very close attention to redraw problems by those who use the svn releases.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4456 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-25 09:51:20 +00:00
Matthias Melcher
b1ad1a2f96
STR #848 , missing xclass support implemented as suggested by Mike.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-24 19:08:31 +00:00
Matthias Melcher
458d1dc75d
Attempt to make 'localeconv()' part of the configuration process. VC6 works, but I'll need feedback for all other platforms... . Trying OS X in a few minutes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4454 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-24 18:41:30 +00:00
Matthias Melcher
65c23f81ff
Typo in comment
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4453 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-24 18:15:14 +00:00
Matthias Melcher
96e45cb448
Added support for characters from the current 'locale' for the floating point input field, so that us poor Europeans can finally enter the "," character instead of that English decimal point.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-24 17:42:50 +00:00
Matthias Melcher
e9f7f4ce49
Silly typo would position new windows, that touched the right screen border, all the way to the left, instead of just left of the screen's right border.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-23 22:10:47 +00:00
Matthias Melcher
e2cc046d09
pie drawing in WIN32 differed from X11 pie drawing (w and h were 1 pixel too small)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-23 21:52:24 +00:00
Matthias Melcher
5226d5aa7e
STR #602
...
OpenGL Windows inside Tabs that were inside of tabs were not drawn correctly. This was due to the fact that a first 'show' on a Tabs widget would show *all* groups inside the tab (unless the user called 'value(...)' on it first). This was only visible on OS X, because subwindow clipping would wrongfully clip even hidden subwindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-23 12:21:58 +00:00
Matthias Melcher
a84f682647
In order to make the rescan effect of Fl_File_Chooser::show() more intuitive, I added a Fl::flush() to show the dialog immediatly, and changed the mouse cursor to a WAIT cursor while the rescan happens. On local Harddrives, the difference is almost invisible, but on remote connections, it should become clearer to the user what the file chooser is currently doing. (STR #827 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4447 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-23 11:40:55 +00:00
Matthias Melcher
bb2394055d
Made fl_pie look the same in __APPLE_QD__ as in X11. This makes fl_pie draw one pixel larger than fl_arc, which is not very logical, but compatible ;-).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4438 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-20 12:13:11 +00:00
Matthias Melcher
a15e974676
- I enlarged the 'minimal update' area in Fl_Input_, so that characters that overlap the font box will be correctly erased during minimal redraw. The original code assumes that character fin in a box from 0,0 to charcter width/height. However, many newer fonts overlap that box and leave traces when redrawn. See 'j' and 'W' in Helvetica on Mac and Windows.
...
- added textsize etc. support for Fluid Live Mode for Fl_Input type.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-20 11:11:51 +00:00
Matthias Melcher
069276646a
Fixed button resizing issue in Fl_File_Chooser (STR #884 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-19 13:14:18 +00:00
Matthias Melcher
42d5b7f036
Wrong case in path name.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-17 12:17:50 +00:00
Matthias Melcher
5aa5abdff5
Added support for 32bit per pixel subformat, uncompressed, in BMP. Last 8 bit are used as Alpha channel.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-16 08:38:52 +00:00
Matthias Melcher
2d5130bef8
Value Sliders would not receive focus when clicked on (STR 911 (wrrooom))
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4426 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-16 08:31:19 +00:00
Matthias Melcher
b500645a5e
Added redraw on focus vi FL_PUSH for roller, browser and slider
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-16 08:25:06 +00:00
Matthias Melcher
56933d2b80
Fl::set_font() did not clear 'pretty' name of existing font
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4424 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-16 08:13:20 +00:00
Matthias Melcher
7a2b1956e0
increased matrix stack depth to 32 units and added error messages on under- and overflow error.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-14 14:31:09 +00:00
Matthias Melcher
e2504a0881
- I had to revert SVN fix 4386 which simplified Carbon clipping, but also introduced unwanted overwriting of subwindows. The current code is slower, but correct, and should still perform well enough if here are no subwindows.
...
For FLTK2, this is no issue since subwindows and subgroups are implemented without OS support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4416 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-14 13:43:26 +00:00
Matthias Melcher
7f526e1362
- Fixed Fl_Bitmap::copy code according to Stephans suggestions. Thanks! Good catch.
...
- Fixed some minor alignment in Fluid.
- Live Mode window in Fluid is now double buffered to get rid of flicker.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4415 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-14 13:16:17 +00:00
Matthias Melcher
13cb2bc18c
STR #878 : fixed tiny memory leak when calling Fl_Widget::label(label()) which happens when assigning a window icon.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4412 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-11 21:05:45 +00:00
Matthias Melcher
22986c92c4
STR #915 : fixed hang on corrupt jpegs by giving a maximum of 10 chances for jpeg lib to clean up on damaged file reads.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4410 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-11 20:31:59 +00:00
Matthias Melcher
0ed97b422b
Fixed one dependency in VC6 setup.
...
Fixed one silly warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4398 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-24 13:20:33 +00:00
Matthias Melcher
63537971ab
Added missing SetPort to restore the current port fin Mac OSX fl_read_image.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4393 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-02 07:01:25 +00:00
Matthias Melcher
090eb71a26
OK, I admit that I am nuts. But since the code was mostly there anyways adding only a few bytes to the library in total, I added the symbols 'refresh' (formerly known as 'recycle'), 'reload', 'undo', and 'redo', and flags to flip symbols horizontaly '$', and verticaly '%'.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 20:05:49 +00:00
Matthias Melcher
daa8f53397
Added a symbol named 'recycle' that can be used to refresh directory listings, etc.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4390 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 13:41:01 +00:00
Matthias Melcher
510545879b
Win322: Calling Fl_Window::size() and friends would move focus from the current window to this window. This was especially painful in Fluid when trying to resize a window by typing its new size into the Widget Properties dialog.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4389 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 09:26:16 +00:00
Matthias Melcher
d00881fbc4
Fixed WIndows line endings
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 09:17:51 +00:00
Matthias Melcher
df32d2a9b8
Fl::copy() would always set a flag, instructing Fl::paste to use the internal clipboard. ALthough that is faster, Fl::paste() would eventually miss changes to the external clipboard.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 07:48:16 +00:00
Michael R Sweet
04c67e441e
Fix clipping code on OSX...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4386 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 03:49:43 +00:00
Matthias Melcher
7c143c6bfb
Fl_Menu_::find_item() was trying to search through submenus created with FL_SUBMENU_POINTER (vs. Fl_SUBMENU and an array of submenu items), but not following the pointer, messing up the search string.
...
Two fixes were possible: correctly searching linked submenus, or disabeling submenu links alltogether. I decided for the later since the use of FL_SUBMENU_POINTER implies that the user knows the pointer and can search that submenu seperately, saving time when searching the main menu.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4384 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-31 20:05:50 +00:00
Matthias Melcher
386cadbcf7
Fluid interactive window resizing fixe (STR #873 , 791)
...
Fixed fake_X_wm call on Win32 to return the correct window decoration sizes, even in XP's "Teletubbies" mode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-29 22:36:25 +00:00
Matthias Melcher
900034ee65
Fixed the Round Plastic buttons to actually draw nice and riund, just
...
like the original scheme buttons. This is relatively slow, but worth
the effort, I beleive. Just use double buffered windows... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-27 11:33:34 +00:00
Michael R Sweet
9774446d8b
Move show() after scheme() call in Fl_Window::show(argc, argv) to
...
eliminate scheme flicker on startup.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-26 14:03:44 +00:00
Michael R Sweet
db98aaac86
Selected tabs are now drawn slightly larger than unselected tabs
...
so they stand out more (STR #882 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4371 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-26 13:54:53 +00:00
Matthias Melcher
d47f353023
There are still some artefacts, probably a confusion between round and rounded box. The current fix will avaiod the artefact, but still not draw entirely correct.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-23 10:18:34 +00:00