Commit Graph

2529 Commits

Author SHA1 Message Date
Matthias Melcher
ae7fb2af5d Added warning to Fl_Gl_Window documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-23 10:56:15 +00:00
Matthias Melcher
0027b5edc3 Documentation fix (STR #1336)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5227 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-23 10:39:40 +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
05bd3ade18 Added support for floating point Fl_Spinner
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-22 07:35:39 +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
77a20dbef3 STR #1280: added support for assigning Fl_Menu_Items to array variables in Fluid
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-20 10:18:49 +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
Michael R Sweet
eea2b38b34 Add --with-archflags option to configure script, and use it in the right
places.

Update changes file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 18:29:31 +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
11de032d6d If the value field for scrollbars was not zero, Fluid would generate code that accesses the hidden function Fl_Scrollbar::value(double), causing a compile time error. The fix circumevents the hidden function by calling Fl_Slider::value. It would be better to change the entire Fluid interface to reflect the Scrollbar interface.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 08:34:19 +00:00
Matthias Melcher
0148f1cfd0 Mark a FLUID Project as "modified" when the user changes the visible Tab widget because that change will reflect in the generated source code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 08:08:48 +00:00
Matthias Melcher
0728999a83 Loading a file would not update the Widget Propertis dialog in FLUID (STR #1326)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 08:01:01 +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
Michael R Sweet
855e42c20f Update svn:ignore properties.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-18 17:14:33 +00:00
Michael R Sweet
1c89391ee1 Remove svn:executable from Visual C++ project files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-18 16:40:57 +00:00
Michael R Sweet
cc081f4959 Update svn:ignore properties
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5208 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-18 16:33:06 +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
fee47dba98 STR 1306: udated documentation to reflect limitation in Fl::delete_widget(). For a different bug, I was forced to implement an automated widget deletion system which seems to work well. I would like to reuse that for all cases that depend on 'delete_widget', making 'delete_widget' obsolete. I will change the STR accordingly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14 07:24:05 +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
d625425d96 STR #1319: added missing '#' in Fl_Clock_Output
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-13 06:22:56 +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
007fc30ca4 STR #1316: fixed two html tags
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-07 19:43:23 +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
Michael R Sweet
ed251b5ca2 Remove executable bit from source files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-31 18:33:05 +00:00
Michael R Sweet
7565604dbf Make sure native eol-style is set on all source files.
Fix some freetype-config and xprop issues in the configure script.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5166 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-30 14:04:00 +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
d814fce94d - In Fluid, declarations starting with the keyword
'typedef', 'class', or 'struct' are now treated
          correctly if inside a class (STR #1283)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-28 15:59:29 +00:00
Matthias Melcher
84ac69cd27 Added permission to reproduce the manual as given by Bill Spitzak and agreed upon (or at last not disagreed) by the other developers including Mike Sweet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5156 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-28 15:31:25 +00:00