Commit Graph

702 Commits

Author SHA1 Message Date
Greg Ercolano
f71f365268 Removed HTML escapes on <> as per Albrecht's suggestion.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-26 18:10:54 +00:00
Greg Ercolano
6168f6fd4b doc mods to support fl_eventnames[].
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-26 17:49:19 +00:00
Greg Ercolano
0f87d7719b added docs for fl_eventnames[] and fl_fontnames[]. (fixes STR#2275)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7156 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-26 17:25:32 +00:00
Matthias Melcher
4a802a3159 Fixed menu item counting issue in Fluid (STR #2322), Added Fl_Menu_::find_item by callback
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-26 13:03:21 +00:00
Greg Ercolano
6376e36aa0 Documented supported HTML tags. (STR#2321)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-23 15:55:22 +00:00
Matthias Melcher
2f82fd0663 Mixed bag. Please see CHANGES.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20 21:14:47 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Greg Ercolano
b08153975c Updated filename.H function docs with indication of #include <FL/filename.H>
and in several cases, code examples.

Solves issue raised on fltk.general (12/30/09) by Alvin.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-01 18:30:49 +00:00
Matthias Melcher
2164880821 Fixed previous commit
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-28 23:10:11 +00:00
Matthias Melcher
ae9b3365aa Added an ID type to preferences which can be retrieved to then re-use the same dataset. IDs can be used in callbacks as user_data(). No need to keep an Fl_Preference around that would later require deleting.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-28 22:26:48 +00:00
Matthias Melcher
9048b4b895 Improved Preferences database. Branches can now be accessed by index. Added UUID generation (better versions needed for Unix and MSWin!). Added access to group name and path
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-27 20:14:04 +00:00
Albrecht Schlosser
9a505ef44c Fixed a name conflict with new (VC 2008 Express) winsock2.h versions
(POLLIN, POLLOUT, POLLERR) and another conflict (FORCE_POSITION flag) that
produced compile errors with VC 2008 (STR #2301).

Removed remaining code of the obsolete WSAAsyncSelect call from Fl_win32.cxx.

Removed some obsolete html tags from FL/Fl_Window.H and fixed some typos.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-24 11:40:26 +00:00
Ian MacArthur
cccf37522b Modify Fl.H to add method Fl::event_command();
that matches the "portable" FL_COMMAND key modifier



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-22 14:17:22 +00:00
Matthias Melcher
a5a5850e10 Yet another Cocoa patch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-21 18:43:13 +00:00
Matthias Melcher
bdbea14218 Patched for Cocoa.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6971 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-18 20:11:24 +00:00
Matthias Melcher
c8278a2344 New patches appliet for Cocoa port. Fixed(?) STR 2232 workaround for X11 keyrepeat bbbbuuuuuuggggg.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-13 12:03:26 +00:00
Matthias Melcher
64716f01e2 Applied the 'recap.zip' files to the Cocoa patch. About diaog now correct. Much other stuff should work better now. Exciting!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-12 18:26:12 +00:00
Matthias Melcher
0f0a4672c9 Fumbeling about at the Cocoa implementation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6960 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-08 23:15:30 +00:00
Greg Ercolano
79cd1d2ccb Small fixed to SebHoll's user_data() mods (init + copy ctor),
added select_all() to Fl_Tree and Fl_Tree_Item.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6957 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-08 08:39:31 +00:00
Greg Ercolano
a657069cc5 Checked in SebHoll's API mods, fixed indents.
o Added user_data() to Fl_Tree_Item
	o Added insert() and add() methods that allow specification of Fl_Tree_Prefs
	o Changed Fl_Pixmap args to Fl_Image for more flexibility
	o Fixes for positioning of items in the presence of user icons
	o find_children() changed from protected -> public



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6956 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-08 08:06:44 +00:00
Matthias Melcher
5bc48808b6 Removed typedef that simply renamed char* to Fl_String, as discussed in the mailing list.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6955 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-07 22:04:55 +00:00
Matthias Melcher
b2cffc688e Moved OS X code base to the more moder Cocoa toolkit thanks to the awesome work of Manolo Gouy (STR #2221). This is a big one! I tested all test applications under 32-bit autoconf and Xcode, and a few apps under 64bit intel. No PPC testing was done. Please verify this patch if you have the machine!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6951 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-06 22:21:55 +00:00
Albrecht Schlosser
4fa7fde790 Added missing svn properties and $Id$ tags.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6942 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-18 12:22:51 +00:00
Matthias Melcher
fa6888c32c Added const'nes too Fl_Counter::step()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6939 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-17 14:45:36 +00:00
Albrecht Schlosser
89ed04701a Removed unused members width_ and height_ from Fl_Scroll (STR #2289).
Removed obsolete <P> tags from doxygen docs (Fl_Scroll.H), fixed some typos.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-14 17:17:18 +00:00
Matthias Melcher
07a18370ad Added Fl_Tree source code, demo files, and documentation. Thanks, Greg!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6934 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-14 15:49:12 +00:00
Matthias Melcher
69601a6d58 Added doxygenified documentation for Fl_Table_Row
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6933 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-14 14:57:38 +00:00
Matthias Melcher
b802b74ae7 Added doxygenified documentation for Fl_Table_Row
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6932 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-14 14:51:10 +00:00
Matthias Melcher
e649ce327e Added doxygenified documentation for Fl_Table
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-14 14:34:29 +00:00
Matthias Melcher
fefa82e0b1 Adding Gerg's Fl_Table widget to FLTK 1.3 with kind permission. Documentation not yet added Support for both Visual Studio IDE's not yet added.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-14 13:05:37 +00:00
Matthias Melcher
1238d1576b Very crude extension of Fluid 1 to read Fluid 2 files (and possibly write them back as Fluid 1 files, but not Fluid 2!). Also, I started a README that points out the differences between FLTK 1 and FLTK 2 and tries to give some help in designing a downward compatible FLTK 3.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6912 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-10-02 19:08:55 +00:00