Commit Graph

2348 Commits

Author SHA1 Message Date
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
022415c310 STR #1016 :
Fixed some more missing modification flag cases in FLUID

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-08 08:27:21 +00:00
Matthias Melcher
edcc1980a1 STR #1010: if a widget callback is generated inside a widget class, the static callback uses the parent() function to find the 'this' pointer, instead of the 'user_data()' member, which would be NULL anyways
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-05 10:32:39 +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
09783875e4 FLUD: This fixes the problem that the children of a Widget_Class_Type are positioned with absolute coordintes. The patch adds another button to the FLUID interface named 'Relative' to the right of the widget position. It is only visible if a Widget_Class_Type is selected. If checked, code will be added that creates an Fl_Group at 0, 0 and later repositions it and all its children into the final position.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-30 21:57:23 +00:00
Matthias Melcher
aa897faeb3 FLUID: Grouping and ungrouping would not work inside an Fl_Widget_Class_Type
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-30 21:25:47 +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
e9ba94e22d Fixed snapping for interactive resizing of right and bottom border.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 20:42:39 +00:00
Matthias Melcher
8c479b5ea6 F2 and F3 (move up/down) would not set the "changed" flag
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 20:25:22 +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
ef2f6bd456 Slight changes to Fl_Sys_Menu_Bar making it more transparent for multi platform developers. Again, thanks Natevw for the patch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 20:05:38 +00:00
Matthias Melcher
03654fb48d The newly introduce Fl_Widget_Class_Type in Fluid would cause a null pointer when a Menu Item was trying to find the top parent widget.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-29 19:57:34 +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
dc1b3aaf1a Update of "CHANGES" file with information about STR#995 .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-27 05:28:02 +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
16719ceb8c Reverted to the correct version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-24 14:14:32 +00:00
Matthias Melcher
74fe8ccdf2 Typos
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-24 13:47:48 +00:00
Michael R Sweet
1db26430c2 Fix widget spacing to conform to the HIG.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-24 11:40:23 +00:00
Matthias Melcher
cd1de720b7 FLUID now knows if a static callback is already declared in a class and won't declare it 'extern' (STR #776)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-23 11:28:13 +00:00
Matthias Melcher
7e02be0309 Project settings in FLUID now also set a project as 'modified'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-23 08:37:21 +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
Matthias Melcher
5856b3b9be Some actions in FLUID would not set the "changed" flag.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-21 21:55:22 +00:00
Matthias Melcher
61fb41fd7f This commit fixes one aspect of bug STR #984. However, since Allesandro took his patch back, I would like to first run this one by the developers before I fix the rest on the list.
This patch is different to Alessandro's in that it checks if data was actually changed and the n setting the modflag.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-20 20:30:56 +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
6bd434fe47 #959: outside labels in fluid moved, so that they refresh correctly even when previously clipped. Remove superfluous grouping. Using contrasting color for label of selected Tabs. MUST GET 1.1.7 OUT SOON! ;-)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-17 11:33:12 +00:00
Matthias Melcher
c9bfdc20fc FLUID now correctly redraw FL__Tabs if one of their children changes color.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-16 21:05:52 +00:00
Michael R Sweet
a9231a88c5 Cast value to int to avoid compiler warnings...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-16 12:15:48 +00:00
Matthias Melcher
78e4274963 Added support for Fl_Window::size_range() in FLUID. There are no UI elements for increment or aspect ratio.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4515 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-15 23:07:20 +00:00
Matthias Melcher
41c089f3c1 Dottet label selection box and standard widget selection boxes would not always align when snapping was enabled. Also, the dragging indicators would not snap. (STR #964)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-15 20:40:16 +00:00
Michael R Sweet
c38c41a0c6 Fix typo in fltk-config script.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4513 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-15 20:13:02 +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
7410f80a84 Revert changelog (Dejan, for future reference please place all non-
documentation changes BELOW the first change line - I group all
documentation changes in the single line and list the STRs to
keep things somewhat organized...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-10 13:55:24 +00:00
Michael R Sweet
b04558b30d Revert --prefix. Until we have a valid use case, we WILL NOT add
--prefix, since IMHO it makes no sense to offer it.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-10 13:54:17 +00:00
Dejan Lekic
d7ae9e9fbc Added information about change related to --prefix flag.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4497 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-10 12:39:45 +00:00
Dejan Lekic
d89e94ded2 Added --prefix flag as suggested by Ian McArthur.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4496 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-10 12:35:20 +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