Commit Graph

4048 Commits

Author SHA1 Message Date
yuri 757752d164 add rotated_text example to demo menu
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-24 19:11:08 +00:00
engelsman 2cad6d4004 removed unnecessary(?) date from examples.dox
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7732 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-24 13:57:38 +00:00
engelsman 7e2590ddea reworked doxygen comments for Fl::arg() and Fl::args() - part 2
added a note to examples.dox about the 'examples' directory

updated Fl_arg.cxx to move the description of standard FLTK options
to Fl::arg() and simplified/rationalized the Fl::args() description.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-24 12:53:53 +00:00
Matthias Melcher 10ebe9f862 New build instructions for OS X users.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-23 22:50:39 +00:00
engelsman 455b8c4a84 reworked doxygen comments for Fl::arg() and Fl::args() - part 1
harmonised parameter names in Fl.H and Fl_arg.cxx and reworked
doxygen comments to make them a bit clearer. More work required.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-23 16:34:22 +00:00
engelsman 0cbfd64a28 examples/howto-parse-args.cxx: now with added comments and svn:keywords
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7728 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-23 14:10:26 +00:00
engelsman a69425441a added examples/howto-parse-args.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-23 13:19:37 +00:00
Matthias Melcher 463416d0c7 Remove OS X Xcode compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-22 15:15:23 +00:00
Manolo Gouy 3eddf4dcfc Corrected mac key codes for FL_Delete and FL_Num_Lock keys
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-19 12:29:35 +00:00
Manolo Gouy 19231291e6 Improved portability to diverse Mac O X versions
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7724 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-18 10:49:04 +00:00
Greg Ercolano 0d6987a160 Strengthened doxygen docs for set_item_focus().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7722 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-12 15:46:30 +00:00
Greg Ercolano 430bbb9b27 set_item_focus() is now 'public'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7721 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-12 15:36:16 +00:00
Manolo Gouy 5c55379301 Added Doxygen doc to offscreen drawing functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-12 12:34:19 +00:00
Manolo Gouy fdc59c9870 Improved Doxygen doc of classes Fl_Graphics_Driver, Fl_PostScript_Printer, Fl_System_Printer, Fl_PostScript_Graphics_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7719 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-12 09:25:37 +00:00
Albrecht Schlosser aea80474f8 Optimized Fl_Group::clear() and Fl_Scroll::clear(). This speeds
up mass deletes (lots of children in a group) significantly.
See also STR #2409.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7718 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-12 08:12:44 +00:00
Greg Ercolano e1e119e1df Applied sjb's patch to fix STR #2429.
Removed #include <config.h> from public include files.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7715 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-11 18:10:32 +00:00
Greg Ercolano 63f2a30a65 Silence float->int compiler warnings on Snow Leopard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-11 18:02:00 +00:00
Greg Ercolano e778cc3351 gets() -> fgets(), added ctype.h include for toupper() when VT100 mode enabled.
TODO: Other fixes needed to get VT100 mode to compile on latest linux releases..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-11 01:49:20 +00:00
Greg Ercolano 9e82db43ae gets() -> fgets()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-11 01:41:50 +00:00
Greg Ercolano 2eb064fa45 Small mod to Silence compiler warnings on Tiger/OSX (STR#2428)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7711 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-09 01:31:38 +00:00
Manolo Gouy 9f8bbb2a11 Correctly account for position of dock in Fl::x() and Fl::h() functions
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-07 10:50:13 +00:00
Greg Ercolano 56c6a5b12a Silence compiler errors about argument() conversion to Fl_Align
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-01 02:45:57 +00:00
Greg Ercolano bc224390ea Small mods to allow SGI builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-01 00:30:08 +00:00
Ian MacArthur b15ececeb6 Commit to fix handling of Fl_Preferences UUID values on 64-bit WinXX and *nix systems.
Not tested as thoroughly as I would like - I don't have a 64-bit big-endian system...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-30 09:00:56 +00:00
Albrecht Schlosser b010bce1af Fixed unbalanced Windows OleInitialize/OleUnitialize calls
when loading/unloading the FLTK dll (STR #2417)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-27 14:57:53 +00:00
Albrecht Schlosser 5c968a2589 Fixed undefined behavior of fl_choice and others when closing
the message window instead of using a button (STR 2418).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-27 11:29:05 +00:00
Albrecht Schlosser 280720df7c Fixed Windows class name (xclass) setup and caching mechanism. This was
not yet completely converted to UTF-8. Cleaned up related code, removed
old comments.
Tested and confirmed that the xclass() setup works and that different
icons can be set for different window classes (as it was in FLTK 1.1.10).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-09 15:59:20 +00:00
Manolo Gouy 862648ebfc Fl_Device.H: added missing Doxygen comments
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-07 12:22:58 +00:00
Manolo Gouy f92bb184fe Fl_PostScript.H: better Doxygen doc
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7700 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-07 11:45:08 +00:00
Manolo Gouy 6c68126238 Some code reformatting
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-07 08:38:08 +00:00
Manolo Gouy c0a8d44710 Full support of UTF-8 text for PostScript printing/output in 2 ways:
- Latin characters (unicode <= 17F) and a few other symbols, among which the € (Euro),
are output using vectorial fonts
- All other characters are output as a bitmap copy of their offscreen rendition.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-04 15:01:07 +00:00
Manolo Gouy 3b3197a86a Simpler PostScript output of Fl_Bitmap objects
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-04 12:49:35 +00:00
Manolo Gouy 0dc7b5edc5 PostScript output of Fl_Pixmap objects: accept now arbitrarily large pixmaps
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-03 16:35:32 +00:00
yuri 71bf7c6400 add missing FL_EXPORT macro
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7694 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-02 19:38:08 +00:00
Albrecht Schlosser 5a3aced3ab New method: Fl_Group::remove(int index) to speed up the removal
of widgets if the widget's index is known. Thanks to Greg for the
patch. See also STR #2409.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7693 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-31 10:01:59 +00:00
Greg Ercolano 95aa651325 Small README mods
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-26 13:52:02 +00:00
Greg Ercolano c7ef0f1d17 Fl_Tree related mods
* open() / close() now can invoke the callback().
      New method callback_reason() lets one determine the cause.
      (Used FLU's tree for reference on this)

    * new Fl_Tree methods:
      > item_pathname()
      > show_item(), show_top(), show_middle(), show_bottom().
      > next_selected_item() -- loop through the selected items.
      > callback_item() -- the item that caused the callback
      > callback_reason() -- reason the callback was invoked
             FL_TREE_REASON_SELECTED    -- item was selected
             FL_TREE_REASON_DESELECTED  -- item was de-selected
             FL_TREE_REASON_OPENED      -- item was opened
             FL_TREE_REASON_CLOSED      -- item was closed
      > position()
      > display()

    * new Fl_Tree_Item methods:
      > find_child_item() -- searches children for a path
      > find_item()       -- searches self and children for a path
      > next(item)        -- loop forward through tree
      > prev(item)        -- loop backward through tree
      > first_selected_item()
      > next_selected_item()
      > x(), y(), w(), h()

    * deprecated:
      > item_clicked().  Use callback_item() instead

    * the 'docallback' optional integer argument for all methods
      is now back to 0 or 1 only. (Other values became unnecessary
      when above new callback() behavior was defined)

    * test/tree has new "Test Callback Flags" button to test the
      'docallback' flags for eg. open/close/select/deselect
      to make sure no bugs creep in.

    * INTERNAL: added free_path() to free special path array created by parse_path().

    * Various docs strengthened:
	* How to use first()/next() and last()/prev() to walk tree
    	> made sure more method's options use \param[in]
	> Added more \see references

    * Moved several implementations from .H -> .cxx
    * Added autoscroll to keyboard nav and mouse drags
    * test/unittests: added Fl_Tree to scrollsize test

        TODO:
	    o Horiz scroll bar (see Johannes Schock's email re. additions he sent)
	    o Need to allow keyboard nav to move focus to child FLTK widgets
	    o Fix fast-selections so that no gaps are left behind.
	      (Select all items from the last selected item to the current)
	    o Investigate non-default values of when() causing odd behavior.
	      (See the tree demo's when() pulldown..)

    * tree demo modified to include top/mid/bot buttons that test the above.

    * Keyboard navigation added:
		Up/Down       -- move focus
		Left/Right    -- closes/opens tree item in focus
		Spacebar      -- toggle selection state of item in focus
		Enter         -- selects the item in focus, deselecting all others
		Tab/Shift-Tab -- change widget focus

    * All Fl_Tree select() and deselect() methods now return a value
      that indicates if the item's state was changed.

    * Fixed focus box drawing (focus box resides more precisely within item's box)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-26 13:32:30 +00:00
Manolo Gouy 23303736e3 Fl_Bitmap.cxx: fixed error that could create dereferencing of NULL pointer
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-26 08:28:35 +00:00
Manolo Gouy 3b4db2357d Native file chooser-Mac OS X: fixed issue arising with OS 10.6
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-25 17:01:56 +00:00
Albrecht Schlosser f64829b7bf Fixed a bug that would have crashed the program on Windows versions
before Windows 2000 when printing pixmaps.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-25 08:45:33 +00:00
Albrecht Schlosser a493692f01 Fixed compiler warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-24 08:16:54 +00:00
Albrecht Schlosser 9f1fdb0887 made test/editors textsize "configurable" (by macro TS)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-24 08:12:50 +00:00
Albrecht Schlosser aedfb480ce added svn:ignore properties for tree.cxx and tree.h
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-24 07:48:21 +00:00
Manolo Gouy 3f4a81bc88 Fl_PostScript_Graphics_Driver : removed useless member variable color_ because equals to fl_color_
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-22 09:11:51 +00:00
Manolo Gouy 5a1db672e1 Fl_PostScript_Graphics_Driver::color() : fl_color_ global var should be set for fl_color() call to be correct.
Fixes STR 2401

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-22 08:24:37 +00:00
Manolo Gouy 814f65db73 Fl_PostScript_Graphics_Driver::color() : removed repetition of identical code
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-22 07:53:24 +00:00
Manolo Gouy 68cecd9025 Mac OS X: Speedup of Fl::set_fonts() if called repeatedly.
Fixes STR 2383

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-08-20 13:07:13 +00:00
Manolo Gouy 55c20361dd Renamed device-info.plist to device-Info.plist as it should be named
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7677 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-10 15:24:33 +00:00
Manolo Gouy 6d0807e40a File needed for device demo program and Xcode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7676 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-10 14:54:53 +00:00
Albrecht Schlosser 6bd9230bcf Updated CMake files and removed now obsolete test/tree.cxx and
test/tree.h files.
Note: CMake not yet tested with these modifications.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7675 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-10 14:25:46 +00:00