Commit Graph

2170 Commits

Author SHA1 Message Date
Greg Ercolano
5888784fc2 Added some extra doc examples for this function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7496 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-13 21:08:06 +00:00
Manolo Gouy
9ae353c6be gl_draw.cxx (Mac-specific): fixed another bad use of non null-terminated string.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-13 19:56:23 +00:00
Manolo Gouy
96c392763e gl_draw.cxx (Mac-specific): fixed use of fl_measure with non null-terminated string.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7494 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-13 17:58:30 +00:00
Manolo Gouy
d36eb9b30f gl_draw.cxx (Mac-specific): account for text color.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7493 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-13 17:44:52 +00:00
Manolo Gouy
c5352b84cc gl_draw.cxx (Mac-specific): for __ppc__ only, back to old gl_draw algo without texture.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-13 16:10:08 +00:00
Manolo Gouy
241b2c746e gl_draw.cxx (Mac-specific): implemented a fifo pile of pre-computed textures for faster GL text rendering.
Also added new function gl_texture_pile_height(int) that sets the height of this pile.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-13 14:26:12 +00:00
Albrecht Schlosser
6359f8be73 Made the printer dialog customization strings platform independent, so that
they can be set on all platforms to avoid platform-specific end user code.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-11 18:42:35 +00:00
Matthias Melcher
896c6c2766 Apple Cocoa: modal windows would not resize.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-11 09:52:05 +00:00
Matthias Melcher
927fd35165 Added new label alignments for image and text to Fluid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7476 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-09 22:18:05 +00:00
Ian MacArthur
08e71113e9 Second part of STR #2214 rework.
This is the simplification of GL font selection under X11 made possible
by the earlier patches from ucko.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-09 17:01:58 +00:00
Ian MacArthur
52470488ce After testing, I have applied ucko's latest patch for providing access
to "core" fonts when XFT is selected. This allows contexts that need
bitmapped fonts (e.g. GL) to access a bitmap core font, even though
XFT2 does not generally provide bitmap font access.

STR #2214 refers.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-09 16:46:45 +00:00
Ian MacArthur
74dbd5e017 The non-XFT X11 builds fail because they are not updated to use the Fl_Device
patches.

This is an attempt to remedy that. Can someone familiar with the Fl_Device stuff
please verify these changes?

With these changes in place the code now builds and seems to work.

I have NOT tested print support however - should that matter?



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-08 17:51:28 +00:00
Manolo Gouy
a9b13f973b Added an Fl_Printer destructor that's useful under MSWin when printing is aborted
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7471 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-08 16:58:28 +00:00
Greg Ercolano
63b746fabc Doc fixes/additions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7470 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-08 05:22:13 +00:00
Matthias Melcher
f899c3897d Added new flags for label alignment: FL_LEFT_TOP, FL_RIGHT_TOP, FL_LEFT_BOTTOM, and FL_RIGHT_BOTTOM align outside labels first to the side, then to the top or botton, filling a gap in possible alignment. Also FL_ALIGN_TEXT_NEXT_TO_IMAGE and FL_ALIGN_IMAGE_NEXT_TO_TEXT which do just that, and finally FL_ALIGN_IMAGE_BACKDROP which renders the image in the background and draws the label on top.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-07 23:17:33 +00:00
Manolo Gouy
2d92942bfe Removed useless #define's
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7464 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-07 07:45:12 +00:00
Matthias Melcher
29317e7b2d Marked some more issues with Fl_Text_...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-06 23:00:56 +00:00
Albrecht Schlosser
7f37821bae Fixed indentation of previous commit and added CHANGES info (STR #2082).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7460 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-06 20:20:18 +00:00
Ian MacArthur
20b508a3b5 Submit Albrecht's minimal fix for str2082 - this "fixes" the erroneous window animations
on menu and tooltip items that were seen on some systems using compiz.

Albrecht or Alvin may have more sophisticated fixes later, providing us with more control
over window types under X11.
 


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-06 18:07:34 +00:00
Manolo Gouy
24b8386bf1 Fl_Gl_Device_Plugin: more device-independant API
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-06 17:38:27 +00:00
Albrecht Schlosser
a0d26b634a Mostly rewritten CMake files by Michael Surette. They are more complete
than what we had previously, but may need some more testing. The latest
changes (removing old APPLE_QD definitions and code) might need another
update.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 22:33:58 +00:00
Matthias Melcher
2bf6fa6074 A few more comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 22:26:29 +00:00
Matthias Melcher
61cf49ddfc Another update to Fl_Text_Buffer. This is by no means perfect, but at least it currently does not crash (I am so easily satisfied :-P).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 22:18:14 +00:00
Matthias Melcher
07a4509a63 Validated utf-8 safety of Fl_Text_Selection.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7443 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 21:10:40 +00:00
Matthias Melcher
814da7f392 Little fix that will keep Fl_Text_Display from crashing on German umlauts. This is by no means a fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 21:02:48 +00:00
Matthias Melcher
fca1c022e7 Holy Gucamole! NEdit was designed with 'C' style strings in mind. Until that is that someone had the great idea to allow <nul> as a valid character in the text editor. The developers jumped through quite some hoops to allow that without rewriting the core. Well, actually they did: they added a parameter to pretty much every internal call that conatined the null-replacement-character. Anyway, since we only handle 'C' strings, I remove all related code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 20:22:43 +00:00
Matthias Melcher
d5175c0b88 Adde /todo tags to all function which I will remove as soon as I am sure that they are entirely Unicode safe.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 20:01:10 +00:00
Matthias Melcher
024c4b995b I humbly apologize for this commit, but I just could not bear it anymore. I moved all Doxygen comments from Fl_Text_Buffer.cxx into the header (I kept searching back and forth for the comments) and then did the unthinkable: I reformatted Fl_Text_Buffer.cxx! OMG. It is actually somewhat *readable* now. I shouldn't have done it! It's a mess ;-). Fl_Text_Buffer was modified many times to do things it was never designed to do. And looking at 'svn b;ame', I remember that I tried to quick-fix UTF-8 on top of that. Anyway, I'll dig into this now. I want 1.3.0 out of the door (end of ramble).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 19:52:52 +00:00
Albrecht Schlosser
4a086a3809 Fixed max. fd calculation, if USE_POLL is enabled (STR #2324).
This could maybe be removed completely, but anyway...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 19:11:49 +00:00
Matthias Melcher
f2fa59fd0f Starting to clean up and document Fl_Text_... to acheive UTF-8 support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 12:45:03 +00:00
Matthias Melcher
e37577eeb8 Removed UTF-8 code from header file because it confuses some command line tools (specifically 'sed').
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7424 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05 06:46:41 +00:00
Manolo Gouy
0d32b63ea3 Fixed databse typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7415 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-03 13:03:43 +00:00
Manolo Gouy
d3b7c8b50b Fl_GDI_Printer.cxx: change in Fl_printer::start_job() to allow printable_rect() call before start_page()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7382 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-31 16:21:56 +00:00
Manolo Gouy
fc95afb7f4 fl_copy_offscreen_with_alpha: always call alpha_blend if not on display
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-31 09:29:35 +00:00
Manolo Gouy
1d7e6edead Fl_PSfile_Device constructor: initialize scale_x and scale_y
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7375 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-31 06:21:09 +00:00
Manolo Gouy
9f7ecc197e Fl_Printer constructor: initialize scale_x and scale_y
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-30 21:43:48 +00:00
Greg Ercolano
4f148f79e9 Fixes STR#2335.
item_pathname() wasn't returning a pathname if the 3rd argument was a submenu item.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-30 21:37:56 +00:00
Albrecht Schlosser
4b3360a6a7 Fixed Return button problem in fl_ask and friends (too much optimization
in previous commit).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-30 19:44:50 +00:00
Manolo Gouy
b2a7c3df5e Fl_cocoa.mm: fixed bug where events of drag&drop of files at launch time were ignored
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-30 18:14:57 +00:00
Manolo Gouy
065dfed2c3 Added platform-specific information to Fl_Printer doc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-30 12:09:09 +00:00
Manolo Gouy
0eae439b66 fl_copy_offscreen_with_alpha: when non-display output, asks if alpha-blending is possible
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-30 11:18:45 +00:00
Manolo Gouy
d89581ebc6 Fl_Device.cxx: Fixed 2 typos in documentation
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-30 11:11:53 +00:00
Matthias Melcher
4f1722eb55 STR #2330: offscreen bitmap cliping was flipped in OS X
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-29 14:37:02 +00:00
Matthias Melcher
024368d722 Removed more Cocoa/Quartz references. Finally moved OS X font down a pixel.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7357 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-29 14:10:54 +00:00
Manolo Gouy
b3d4755286 Fl_Printer & Fl_PSfile_Device : added some implementation details in doc
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-29 12:52:28 +00:00
Manolo Gouy
24c6e23e25 print_panel.cxx: allow customization of "Print To File" string
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-29 12:15:22 +00:00
Matthias Melcher
82be53f64d OS X: more references to non-Cocoa builds removed
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-29 11:07:29 +00:00
Matthias Melcher
38aa53038c Started to remove USE_QUARTZ, as all Apple implementations use Quartz as their Graphics Rendering system now.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-29 10:54:18 +00:00
Matthias Melcher
699bf33e69 Removed Metrowerks support for Apple builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7352 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-29 10:47:11 +00:00
Matthias Melcher
941901e273 OS X: removed all Carbon and Quickdraw references. Starting with 1.3, we only support Cocoa and Quartz.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-29 10:35:00 +00:00