Commit Graph

3939 Commits

Author SHA1 Message Date
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
Albrecht Schlosser
1c6e95b545 CMake support: added platform test for HAVE_SCANDIR_POSIX,
added $Id$ tags and added copyright to (some of the) CMake files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7012 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-16 14:18:18 +00:00
Albrecht Schlosser
ff861ae5c0 Added missing table and tree examples to CMake build files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-15 16:07:19 +00:00
Albrecht Schlosser
ec908230a1 Added Fl_Table, Fl_Tree, and Fl_Native_File_Chooser CMake build files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7010 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-15 16:02:00 +00:00
Albrecht Schlosser
21235502c3 Fixed a Windows GDI leak when testing alpha blending capabilities,
simplified code by removing an obsolete if clause.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-15 14:29:48 +00:00
Greg Ercolano
3f2a7c829d Fixed missing #ifndef FL_DOXYGEN which was causing duplicate entries in FNFC docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-15 04:20:20 +00:00
Greg Ercolano
ebfb80908c Checked in on Manolo's behalf; FNFC.patch applied from STR#2298
to include a 'Show Hidden Files' checkbox for linux browser.
Small addition to Fl_File_Chooser to support this.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-14 23:08:06 +00:00
Greg Ercolano
4e08397c94 Hmm, looks like both define()s needed a fix. Thanks Mike!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-14 21:49:46 +00:00
Greg Ercolano
22546e2a9a Small fix to Ian's #if macro as per Mike's fltk.development post on 01/14/10.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7005 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-14 21:09:08 +00:00
Greg Ercolano
30371100ba whitespace fix
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7004 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-14 20:52:59 +00:00
Greg Ercolano
f910c1c181 Fl_Native_File_Chooser follow up maintenance.
* doxygen docs added
	* Changed all FNFC_XXX macros to full Fl_Native_File_Chooser names for doxygen
	* Added missing svn $Id tags
	* Small mods to Manolo's old_dir[] in Fl_Native_File_Chooser_FLTK to use a dynamic string instead of old_dir[300]



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-14 20:47:59 +00:00
Ian MacArthur
209e1bfea1 Argh - sorry, my bad... Will not build cleanly on OSX, needs a little tweak.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-14 19:57:08 +00:00
Ian MacArthur
c193aa13aa More Native File Chooser stuff.
The end of file Id tags aren't expanding correctly - looks like a typo.
This is an attempt to fix that!



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-14 19:38:23 +00:00
Ian MacArthur
7c3ae1559b I've tweaked the demo.menu to include Greg's new native file chooser test alongside the
existing fltk file chooser test.

Also, I've taken the liberty of making the native file chooser load the system icons by default
(Greg had them not loaded by default, but I think it looks better with them...) and I have
adjusted the Makefile accordingly to make the linked libraries match.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7000 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-14 18:42:13 +00:00
Albrecht Schlosser
fa7ce4cb92 added svn properties for Fl_Native_File_Chooser and test files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-14 17:15:12 +00:00
Greg Ercolano
2c3d7c7b45 FNFC continued -- Added makeinclude.in
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-13 23:29:43 +00:00
Greg Ercolano
1de0988c31 Added Fl_Native_File_Chooser widget (with manolo's cocoa mods) to FLTK.
* Source brought into CMP standards compliance
	* test program added (test/native-filechooser.cxx)
	* Tested with linux (Ubuntu8) and with OSX (cocoa and non-cocoa builds)

TODO:
	* Needs doxygen docs from Greg's original HTML documentation
	* Needs mods to Windows build files
	* Needs mods to cmake, and other build files
	* Needs Manolo's latest mods (from STR #2298) mentioned on and after "02:05 Jan 13, 2010"



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6997 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-13 23:13:59 +00:00
Matthias Melcher
139c88c618 Another bug in Fl_Preferences
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6996 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-13 22:13:50 +00:00
Matthias Melcher
68219958d0 Fl_Preferences now have an API to delete all nodes or entries at once.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-12 08:48:55 +00:00
Matthias Melcher
2e87701192 Fl_Preferences::copyTo() would fail if there is no tree root
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-11 19:43:27 +00:00
Matthias Melcher
12fecf6c4d Minor bugs in Fl_Preferences::copyTo(). Note to self: increase warning level!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-11 11:16:52 +00:00
Matthias Melcher
3d5d2b54f2 Added a function to copy an entire Fl_Preferences database into an Fl_Tree view. This will break IDEs that do not have Fl_Tree and Fl_Table added yet!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-10 22:37:56 +00:00
Ian MacArthur
a0eb792209 This is my test implementation of the UUID code for Fl_Preferences.cxx on win32.
Tested on XP and Vista and seems to be OK, but needs to be checked by others for confirmation.
Any issues and we should just back this out, I think, but I trust that all will be well. 
The actual implementation is probably "sub-optimal" however, so if someone would like to make it better...

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-09 13:54:37 +00:00
Matthias Melcher
bb34489826 Fixed stupid crash bug in Fl_Preferences.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-07 16:02:44 +00:00
Matthias Melcher
e5fed1d0fa Another update by Manolo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-04 16:57:11 +00:00
Albrecht Schlosser
339c8e972e Fixed previous commit (s/gethostbyname/gethostname/) and added
#if defined (__GNUC__) to remove #warnings from other (Windows) compilers.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6988 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-04 10:30:37 +00:00
Albrecht Schlosser
1a9b7d72d2 Temporary fix for Fl_Preferences on Windows, because gethostbyname would need
winsock (ws2_32.dll) - the final fix would have to load it dynamically or
use another function...

Also fixed the missing return statement (all platforms).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-04 09:40:25 +00:00