Commit Graph

4071 Commits

Author SHA1 Message Date
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
Albrecht Schlosser
4245442f8a Applied Greg's patch to fluid (STR #2393) to prevent false error
messages when building .cxx and .h files from .fl files.
Updated the ide/VisualC6 project files, tested and built w/o
errors with Visual C++ 2008 Express (84 projects successful).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7674 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-10 14:01:22 +00:00
Albrecht Schlosser
faf8908684 Fixed typos and rewrote tree.fl -> tree.cxx/.h
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-10 10:51:54 +00:00
Matthias Melcher
32716d6b1e Updated the Fluid IDE support for the current source file structure. Changed the Fl_Tree rendering code around a bit to make the tree more like MSWindows on Windows and more like Apple on Apple machines. I hope you guys like it. I also moved the function to load Fl_Preferences into an Fl_Tree into the Fl_Tree class where it belongs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-10 09:44:45 +00:00
Manolo Gouy
8306c3d0b3 Fixed fl_XXX_offscreen functions when the current output goes to a printer or a PostScript device
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-09 17:31:33 +00:00
Manolo Gouy
0ac2bc4d40 Fixed use of x and y args when reading from offscreen buffer and test when w or h are too big
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-09 17:29:35 +00:00
Albrecht Schlosser
bd1ac8889b Updated fluid/ide_support.cxx and fltk.db to reflect recent
source file changes.
Updated ide/VisualC6 project files accordingly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-08 13:07:16 +00:00
Albrecht Schlosser
48b45fce19 Updated Windows and IDE README files. This will hopefully
help to reduce the IDE confusion.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-04 18:44:52 +00:00
Albrecht Schlosser
c6f1a5ba5a IDE jungle, step 2:
- moved ide/Xcode3.1 into ide/deprecated
 - moved ide/visualc  into ide/deprecated
These projects are obsolete and unmaintained now.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-04 17:24:44 +00:00
Albrecht Schlosser
c2539883fb First step cleaning up the IDE jungle:
- renamed ide/unsupported to ide/deprecated
 - fixed ide/vc2005 to make it compatible with VC++ 2010 Express
   (this was not really what we wanted, but I couldn't convert
    the older IDE files with VC++ 2010 Express)
 - FL/Fl_Device.H: fixed missing FL_EXPORT for building the FLTK dll
   (STR #2393).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-04 17:19:38 +00:00
Manolo Gouy
c835c08bb3 Fixed fl_copy_offscreen when output goes to a Quartz printer context.
Output to a PostScript context still needs to be fixed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-03 10:13:22 +00:00
Manolo Gouy
3e52876736 Removed obsolete Quickdraw information and Mac OS bugs
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-01 16:52:47 +00:00
Manolo Gouy
5cb826bd38 Documented fl_open_callback function.
-This line, and those below, will be ignored--

M    mac.H


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-01 16:51:28 +00:00
Manolo Gouy
dd823b703c Added missing Doxygen doc
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-01 15:35:28 +00:00
Manolo Gouy
8e16e6d436 Added missing * in Doxygen doc beginning
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-01 15:01:49 +00:00
Manolo Gouy
9316ab2cb8 Slight documentation improvement for 'class' Fl_Printer
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-01 14:41:00 +00:00
Manolo Gouy
61eb9377c8 Renamed global variable from fl_device to fl_graphics_driver to better express its class
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-01 13:21:32 +00:00
Albrecht Schlosser
737816b18b Changed src\Fl_Abstract_Printer.cxx to src\Fl_Paged_Device.cxx,
since this file has been renamed recently.
Todo: do corresponding changes to fluid to generate the IDE files
correctly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-29 21:30:45 +00:00
Albrecht Schlosser
d7712a0dfe Small corrections in cp1252*.txt files and
updated cp1252.png to reflect new (transposed) table order.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-25 14:24:26 +00:00
Albrecht Schlosser
b2a8a4eae9 Updated character table test files:
- transposed tables for better readability
 - removed ASCII control code mnemonics


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-25 14:10:52 +00:00
Albrecht Schlosser
0e22a7cb26 Added Mac OS Roman encoding test files for further UTF-8 testing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-25 13:47:43 +00:00
Manolo Gouy
142cefd106 Mac OS X: fixed bug where fl_draw(const char*, int, float, float) would not work on non-Quartz device
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-24 21:55:20 +00:00
Manolo Gouy
a40166931e Fl_PostScript.cxx: now outputs correctly all of the latin1 (iso-8859-1) character set
giving support for many latin alphabet-using languages.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-24 08:55:04 +00:00
Manolo Gouy
449b99dd86 Fix STR 2339 by defining new member function rtl_draw of class Fl_Graphics_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-21 15:49:45 +00:00
Manolo Gouy
6c2274f011 fl_begin_offscreen/fl_end_offscreen: added fl_push_noclip/fl_pop_clip to render Mac consistent with other platforms
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-19 15:19:13 +00:00
Manolo Gouy
2425499352 Fixed STR 2257. fl_read_image now accepts also reading from an off-screen buffer, as documented.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-18 16:31:15 +00:00
Manolo Gouy
006e5ff9c0 Removed commented out code
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7649 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-18 13:39:27 +00:00
Albrecht Schlosser
6710c83508 Fixed configure script portability problem (STR #2379)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-18 10:11:09 +00:00