Commit Graph

3665 Commits

Author SHA1 Message Date
Albrecht Schlosser
7ae0c170ad Added Fl_Widget_Tracker in handle() methods etc. to avoid accessing widgets
after deletion (STR #1306). This is all I could find, but maybe there are
more places in the code.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20 17:40:07 +00:00
Manolo Gouy
c7a1aead4c Removed unnecessary statement when destroying a window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20 17:28:44 +00:00
Manolo Gouy
191abba69a Fixed Alt+Shift+letter as shortcut
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20 14:06:36 +00:00
Manolo Gouy
0786bea02e Tentative repair of cast from pointer to unsigned int that breaks 64-bit compilations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20 11:46:35 +00:00
Matthias Melcher
529382001f Fixed lost top item in Fluid's tree browser (STR #2233)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19 21:29:09 +00:00
Matthias Melcher
4763df1636 Removed the Forms definition of FL_CLOSE since it is never used anyways and conflicts with FLTK FL_CLOSE. (STR #2266)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7107 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19 21:15:48 +00:00
Matthias Melcher
b737694f4a test/Editor was freeing the text buffer too soon and no clearing callbacks. (STR #2294)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19 21:08:34 +00:00
Matthias Melcher
6cea1f402d Small fixes to Fluid IDE support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7105 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19 20:51:48 +00:00
Matthias Melcher
f59cd1f4aa Fixed Fl_Preferences Cygwin wide character bug (STR #2164)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7104 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19 20:40:15 +00:00
Matthias Melcher
0ec12cc9c4 Fixed sorting in Fl_Browser - last item would not be sorted (STR #2300)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7103 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19 20:25:54 +00:00
Matthias Melcher
b416a027cf Fixed window levels in OS X Cocoa (STR #2316)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19 20:21:20 +00:00
Matthias Melcher
3b7e794719 Improved IDE support: Fluid now compiles fine under Xcode (and all framework on which it depends).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19 11:02:51 +00:00
Albrecht Schlosser
7ea3819b28 Fixed case of included header files
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7095 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-18 15:40:43 +00:00
Matthias Melcher
0f45c3e5ac IDE support file generation from within Fluid. These files are not yet linked in - simply add them to the Fluid project for testing (uses Fl_Plugin to link themselves in atomatically).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-18 13:05:02 +00:00
Matthias Melcher
6cef760c1b Typo
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7093 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-18 13:03:10 +00:00
Matthias Melcher
795b2c6356 Added jpeg loading from memory. Added jpeg Fl_Widget->image() support for Fluid - but linking to fltk_images is required if this feature is used!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-18 11:38:42 +00:00
Manolo Gouy
b434df6061 changed events dispatching so command+key generates both FL_KEYBOARD and FL_KEYUP events
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7087 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-16 07:27:55 +00:00
Manolo Gouy
5a76896908 removed unused variables
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-15 20:35:58 +00:00
Matthias Melcher
fb1b0fab0a Added new type 'Binary Data' to Fluid. Use this to include an arbitrary file as a byte array into your source code. Changes to load jpegs etc. from program memory will follow.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-15 16:43:51 +00:00
Albrecht Schlosser
ea31edb241 Added new virtual methods, as discussed in fltk.development:
virtual Fl_Group*  Fl_Widget::as_group() const
  virtual Fl_Window* Fl_Widget::as_window() const
Todo: documentation is not yet complete.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-13 12:25:58 +00:00
Manolo Gouy
1ff2af5fd3 update event_x_root and event_x earlier is more accurate
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-11 09:32:26 +00:00
Manolo Gouy
881c882629 allows compilation with gcc-3.3
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-10 23:11:19 +00:00
Manolo Gouy
96125e6e4a closed memory leak
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7059 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-10 22:11:04 +00:00
Albrecht Schlosser
ee36ebc394 Reverting previous change (optimization of Fl_Group::clear),
because fl_throw_focus and fl_fix_focus would send events
that could access deleted widgets. This must be fixed first.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-07 21:14:35 +00:00
Albrecht Schlosser
ce7da76d6a Optimized Fl_Group::clear() and Fl_Scroll::clear() as discussed in
fltk.development in "Fl_Group::clear SLOW!" on Feb. 06/07, 2010 (no STR)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7038 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-07 18:52:26 +00:00
Manolo Gouy
5ec87ac848 simplifying clipping algorithm: done once in make_current() instead of repeated at each fl_restore_clip() call
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-02 17:13:55 +00:00
Manolo Gouy
c7b67bc252 fixes STR 2309 by updating Fl::e_x, e_y, e_x_root and e_y_root after window moves, resizes and activations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-01 17:41:32 +00:00
Manolo Gouy
4645ed9703 defined macro FL_CGRECTMAKE_COCOA that
contains the correct way to transform x,y,w,h into
a CGRect adequate for clipping

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-29 21:16:20 +00:00
Manolo Gouy
7f518b9287 Repaired table target that was overwriting the tabs target
and added native-chooser dependency to demo target.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-28 14:48:59 +00:00
Manolo Gouy
bbeead9259 minor changes so all demos work under Xcode.
Modified files are:
- test/demo.cxx
- test/demo.menu
- test/colbrowser.cxx

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-27 23:25:00 +00:00
Albrecht Schlosser
6fe1ac09f4 makedepend updates for all source directories (except src/xutf8).
src/Makefile:	adjusted WIN32 and Mac dependencies
test/Makefile:	dto.

Todo: src/xutf8/makedepend needs to be checked. There are obviously functions
and headers that are included in a platform dependent way.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-27 20:16:38 +00:00
Matthias Melcher
c83c170310 File chooser in preview mode would hand if user selected a special file in the /dev directory. It now shows a recycle symbol and also displays a folder and an empty file message. Untested on anything but OS X - sorry!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-26 10:22:49 +00:00
Matthias Melcher
8af182fe51 Without knowing Cygwin, this seems to make more sense to me?!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24 11:45:36 +00:00
Manolo Gouy
1eb95cd823 Three Cocoa-related changes:
- correct window resize in mandelbrot demo
- clip to 1-pixel and 0-pixel width now work
- modifier key presses are now correctly reported

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24 10:27:21 +00:00
Manolo Gouy
6f89a3baca added explicit cast to remove 64-bit compilation error that sometimes occur
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24 10:13:03 +00:00
Manolo Gouy
bb58589936 New texture-based gl_draw implementation now used also in 32-but compiles
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7027 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24 10:05:19 +00:00
Manolo Gouy
001a756b15 Text color now follows changes in standard colormap,
and better OS X version backwards compatibilit of executables.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24 08:55:41 +00:00
Manolo Gouy
e8c9f9eaa1 Better OS X version backwards compatibility of executables.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24 08:48:35 +00:00
Matthias Melcher
092c86c704 This is a very simple implementation of the host side of plugins. Plugins can be linked at compile time to extend Fluid with new command line options. A sample plugin will follow soon.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24 00:20:26 +00:00
Matthias Melcher
416f5b0dcd Still not having added Fl_Tree and Fl_Table to Fluid, I remembered the plugin concept we had early on. It occured to me that writing plugins must not be difficult, and that FLTK already has everything needed. So here it is, a plugin implementation for FLTK. The MSWindows/Cygwin implementation is untested due to lack of a machine. The dynamic loading still needs a test implementation. Comments welcome.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24 00:16:33 +00:00
Albrecht Schlosser
51acfa41eb Replaced _WIN32 symbols that had crept in with UTF-8 and the
new Fl_Table widget with WIN32.

Todo: check, if the conditional in test/table.cxx is useful at all


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-23 13:48:50 +00:00
Albrecht Schlosser
430eab49b7 Fixed a buffer overflow in fl_utf8from_mb() (STR #2279).
Todo: fix _WIN32 vs. WIN32 compiler macro issues.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7021 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-22 16:56:34 +00:00
yuri
ff29502d04 fix x86_64 linux build
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-21 19:59:24 +00:00
Greg Ercolano
a078c71b21 Committing native -> CRLF eol-style.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7019 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-18 19:08:26 +00:00
Greg Ercolano
a8d019d60a Added Fl_Table, Fl_Native_File_Chooser, Fl_Tree and related test programs
to ide/visualc/.

These files were /hand edited/ to make the changes.

    TO BE DONE: Someone (other than me) needs to add these to the ide/vs2005
		dir as well. I don't think these can be hand edited; 
		too much human unreadable GUID/hex code stuff..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-18 18:59:51 +00:00
Greg Ercolano
d9f37fe65b Small mod to FlTree doxygen docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-17 21:54:48 +00:00
Greg Ercolano
7ec7b561d8 Applied Manolo's patches from STR #2298:
o FLTK.xcodeproj.patch
	o native-filechooser-Info.plist

With these changes "FNFC will be part of the fltk framework, 
and there'll be a new demo target, native-filechooser." - MG




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-17 17:21:44 +00:00
Greg Ercolano
97ac940d91 Small indent / whitespace fixups, Manolo's doc modification for
Fl_Native_File_Chooser::options.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-17 17:09:00 +00:00
Greg Ercolano
7221382917 Checked in Manolo's 'diff.patch' mods from STR #2307
for building FLTK with 64bit on Snow Leopard.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7014 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-16 16:51:22 +00:00
Albrecht Schlosser
177f45fe98 Extended Fl_Widget::align_ flag from 8 bits to full (unsigned) size for
later extensions (currently all 8 bits are used).

Moved the align_ flag to the internal Fl_Label struct (where it should be).
There are no API changes, though.

I also reordered a few other variables for better alignment, so that there
is no size change of Fl_Widget on 32-bit platforms (currently 84 bytes on
Windows/32-bit and probably all 32-bit platforms).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-16 15:56:41 +00:00