Commit Graph

715 Commits

Author SHA1 Message Date
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
7da5a27b40 Add documentation for screen_count() and screen_xywh() (STR #931)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4471 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08 00:00:41 +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
1216232ebf New change report...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-06 05:07:49 +00:00
Dejan Lekic
289434a6e2 Added information about fixed STR #967.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-05 14:26:59 +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
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
9688b0b1c3 Fluid was casting Fl_Input_Choice to Fl_Menu_ at two occasions which is wrong since Input_Choice is derived from Fl_Group. Fixed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-23 22:56:27 +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
35b28fafd1 last character in CodeEditor (Fluid) would disappear under certain circumstances. The problem is two consecutive calls to Fl_Text_Buffer::insert() which first insert a newline, then indent the text by two spaces. The first 'insert' marks the text all the way to the end for redraw. The second 'insert' adds two characters, however the last character for redraw remains the previously last character, hence the very last two characters are not redrawn.
This fix changes the CodeEditor to do a single 'insert'. It would be better to change Fl_Text_Display to increment the redraw range if more characters are inserted before the actual draw is called. Since this goes too close to core code for my taste, I leave that as an exercise for 2.0.




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4446 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-22 20:18:56 +00:00
Matthias Melcher
394ab6af40 Declaration in Fluid now uses its own public/private setting unless the parent is a private declaration block, which sets contained declarations to private as well.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4439 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-20 13:20:14 +00:00
Matthias Melcher
580ecb0048 - Fluid overlay now shows a seperate bounding box of selected
items with correct handles and a dotted boundig box for all
          labels (STR #790)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-20 11:33:34 +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
e8ea433222 Changing the 'private' flag would not reflect in the widget browser immediately.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-16 09:14:58 +00:00
Matthias Melcher
478950c3bc Documentation fixes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-16 08:50:05 +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
651bf8d275 Fixed unescaped '@' in fonts demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4423 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-16 07:57:14 +00:00
Matthias Melcher
59b74e9fcb If starting Fluid with the -c (compile only) option, Fluid should not require a connection to the X11 Display anymore, allowing fluid to create code on head-less terminals.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-15 09:48:09 +00:00
Matthias Melcher
770147baf6 Applied hidden copy / ctor patch as suggested in STR 860
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-15 09:34:53 +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
88bb4a58d3 Fixed static allocation of 1000 font information units in fonts.cxx.
Although this fixes the crash, the font enumerator in FLTK should never return a number larger than 255 (which unfortunatly is the maximum number of fonts supported by FLTK 1 for binary compatibility)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4411 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-11 20:46:15 +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
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
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
9d12e01cc7 Typo....
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4385 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-31 20:15:09 +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
0132f4f8fd Fluid panel resize and alignment fixes (STR #891).
Everything should resize nicely now. All Widgets have been realigned. Hope you guys like it... .

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-29 22:28:13 +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
a3af163fcb Changelog...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-26 21:13:17 +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
Michael R Sweet
dfc390e735 Fix FL_PLASTIC_DOWN_BOX artifacts (STR #852)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-20 02:44:03 +00:00
Michael R Sweet
b33cc94810 Fix sentinel value for HWND on WIN32 (STR #862)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-20 02:39:39 +00:00
Michael R Sweet
74d3204304 Fl_Preferences::getUserdataPath() didn't work for sub-groups (STR
#872)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-20 02:05:38 +00:00