Commit Graph

836 Commits

Author SHA1 Message Date
Albrecht Schlosser eb1af07952 Add Fl_Window::wait_for_expose() and test program (STR #3124).
Also modified .gitignore, svn-properties, Makefile and CMake-Files.

Todo: test/twowin.cxx and test/windowfocus.cxx need to be added to ide files
(MS VC++ and Xcode).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-26 23:58:05 +00:00
Manolo Gouy 5899b2cc6d Added missing include x.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-26 17:11:21 +00:00
Albrecht Schlosser 023589e703 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-22 19:07:55 +00:00
Albrecht Schlosser dd37bc2c12 Update dependencies
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 23:54:11 +00:00
Lauri Kasanen 7ebbe0baf4 Add a two-window focus test
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 12:45:49 +00:00
Lauri Kasanen d1d203ca57 Add support for dragging to reorder in Fl_Tree, STR #2828 (I)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 12:04:28 +00:00
Albrecht Schlosser d67f2e8e3e Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 09:31:37 +00:00
Albrecht Schlosser 105c2b466a Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 10:24:11 +00:00
Albrecht Schlosser 3dbc495127 Remove 'register storage class deprecated' compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10266 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 10:10:37 +00:00
Lauri Kasanen bbc8782b6a Move Xutf8.h to src/, update includes, refresh makedepends
This is an internal header.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 08:41:58 +00:00
Pierre Ossman f58b1a91b3 Add ability to set custom icons for windows. STR #2816.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 11:39:32 +00:00
Pierre Ossman 332dc1b7ac Add method to set any custom cursor, based on a Fl_RGB_Image object.
Also change our fallback cursors to use this method, so that fallback
cursors are handled in a platform independent manner. STR #2660.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 11:17:57 +00:00
Pierre Ossman 0cfc2554c6 Support for full screen over multiple monitors.
The API follows that of EWMH, which gives you a good control
over which monitors to use.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-11 09:10:53 +00:00
Ian MacArthur 460544455d Another stab at STR #3090.
Now, instead of just ignoring the scrollwheel
events, I try to make the scene zoom in/out
in response to the wheel instead.

Seems to be working; not sure I have the
zoom sensitivity set to a sensible avlue, though!



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-06 21:46:42 +00:00
Ian MacArthur 63b5ee9ef1 Tweak fracviewer.cxx to ignore mousewheel inputs,
which were confusing it and making it sometimes
unresponsive to mouse left or middle button drag
inputs...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-06 12:30:38 +00:00
Greg Ercolano 547570fca6 Fixes STR#3089; some UI fonts too large on linux.
See image attachment included with the STR.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10183 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-05 05:05:19 +00:00
Greg Ercolano e0c747ee0b 1) Add descriptive tooltips to widgets in 'scheme' test.
2) Changed Fl_Scrollbar to show a 50% tab, so that the
   "///" scrollbar tab decorations are visible when the
   gtk+ scheme is enabled.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-24 02:59:19 +00:00
Greg Ercolano b04ec356b3 Added as per RFC on fltk.coredev 05/23/2014.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 23:32:27 +00:00
Manolo Gouy 07dd8ba328 Added copy/paste from/to FLTK applications of graphical data.
Added Fl_Image_Surface class to draw into an Fl_Image object.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 16:47:21 +00:00
Greg Ercolano 46521bf437 Implements STR #2621: Add line numbers to Fl_Text_Display.
Applied LZA's patch and included some mods to address TODO items and ABI issues.

Also update CREDITS with LZA and a few other notably absent names.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-21 06:56:59 +00:00
Fabien Costantini 54b0123eab Added a new portable sleep API(ABI compatible). Now features a flexible multi-usage sleep() api accepting decimals, msleep() for millisecs only, usleep() for microsecs. Updated Makefiles, cmakefiles, vs2008, vs2010 with the new Fl_sleep add-on. Documented new API. still needs to be added in Xcode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-21 04:10:12 +00:00
Manolo Gouy 6c92cc9a8d Fix STR#3063: compilation using Mac OS 10.4
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-27 13:57:09 +00:00
Ian MacArthur 770c280708 Adjust test/demo.cxx to support the newly added
"gleam" scheme.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-26 21:21:14 +00:00
Greg Ercolano c5d5ba1cf5 Applying the etorres gleam patch. STR #2672.
TODO: Xcode 4 ide needs fl_gleam.cxx added
      Test of Visual Studio IDE mods (which were hand-modified)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-25 04:24:41 +00:00
Greg Ercolano 98695591f4 Added 'help-test.html' to test the Fl_Help_View
HTML parser. (Feel free to expand these tests)

Modified the 'help' program to use this help file
as a default, since the old reference was to our
old documentation link that (1) no longer is released
with the code, and (2) is doxygen content our HTML
parser can't possibly handle.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-08 20:44:09 +00:00
Greg Ercolano 9b5f1d78e1 Fixes Micha's two NetBSD warning msgs (posted on fltk.general 12/16/13):
tree.cxx: 1443: warning: passing 'double' for argument 1 to 'void Fl_Tree::scrollbar_size(int)'
    tree.cxx: 1440: warning: passing 'double' for argument 1 to 'static void Fl::scrollbar_size(int)'



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-18 02:14:02 +00:00
Greg Ercolano d36882e67e Adds horizontal scrollbar to Fl_Tree as an ABI 1.3.3 feature.
***************************************************************
NOTE: You MUST uncomment the FLTK_ABI_VERSION in Enumerations.H
      to use these changes.
***************************************************************

Also: separated tree size calculation from draw() code,
so that one can cause the tree to recalculate immediately
after making modifications to the tree by calling Fl_Tree::calc_tree().

Numerous improvements to docs for the tree as well, enough
to create a rather large diff.

Large internal changes were needed to do this properly.
The following was added to the CHANGES file:

	- Fl_Tree: various related changes:
	    o Added horizontal scrollbar
	    o Separated draw() and tree size calculation
	    o Added new public methods:
	        > resize()           -- uses optimized dim calc, avoids tree recalc
		> next_item()        -- added parameters: direction, visibility
		> extend_selection() -- added parameters, improved algorithm
		> calc_dimensions()  -- calc tix/y/w/h, tox/y/w/h and scrollbars
		> calc_tree()        -- calc tree_w/tree_h
		> recalc_tree()      -- schedules calc_tree()
		> first_visible_item(), last_visible_item(), next_visible_item()
		> first_selected_item(), last_selected_item(), next_selected_item()
	    o Added protected variables:
	        > _tix/y/w/h      -- tree widget 'inner' dimension
		> _tox/y/w/h      -- tree widget 'outer' dimension
		> _tree_w,_tree_h -- entire tree hierarchy width/height
	    o Deprecated:
	        > item_clicked() -- use callback_item() instead
		> first_visible() -- use first_visible_item() instead
		> last_visible() -- use last_visible_item() instead

	- Fl_Tree_Item: various related changes:
	    o Added Fl_Tree ptr: needed for auto-recalc when item modified directly
	    o Added new methods tree(), recalc_tree()
	    o Added new ctor that accepts Fl_Tree*
	    o draw() parameters changed to include tree size calculations
	    o Deprecated:
	       > ctor using Fl_Tree_Prefs parameter (Fl_Tree* version better,
	         and must be used for 1.3.3 ABI features to work correctly)
	       > next_displayed() -- use next_visible() instead
	       > prev_displayed() -- use prev_visible() instead

	- test/tree: added tests for newly added features




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-15 18:59:02 +00:00
Greg Ercolano bedb7fd6f0 Fixes STR# 2973: collection of Sun compiler fixes to Makefiles.
o Adds $(CXXFLAGS) to $(CXX) commands
    o Implements older, more backwards compatible Bourne shell test(1) syntax for equality tests (= vs ==)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-21 17:23:09 +00:00
Greg Ercolano 2082d7e197 Fixes STR# 2973: collection of Sun compiler fixes.
Applied str_2973_r9979_sun-fix-warnings-7.patch (with small mods)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-21 16:41:23 +00:00
Greg Ercolano 2fc6c3a39b Fixes STR #2985: prevent memory leaks with XGetWindowProperty()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-20 03:36:02 +00:00
Greg Ercolano 67ed1a8da9 STR# #2973: applied patch str_2973_r9958_sun-fix-errors-5.patch verbatim.
src/Fl_Tree_Item.cxx -- solve: "Fl_Tree_Item.cxx",    line 614: Error: Initializing int& requires an lvalue.
    FL/Fl_Preferences.H  -- solve: "FL/Fl_Preferences.H", line 196: Error: Fl_Preferences::RootNode is not accessible from 0
    FL/Fl_Tree_Item.H    -- solve: "Fl_Tree_Item.cxx",    line 614: Error: Initializing int& requires an lvalue.
    test/unittests.cxx   -- solve: "unittests.cxx",        line 95: Error: The type "UnitTest*[]" is incomplete.
            


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-16 20:25:14 +00:00
Greg Ercolano 33933f8c13 Added "Pick Dir" button to allow checking of directory browsing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9957 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-08-15 23:01:15 +00:00
Manolo Gouy b94c8b0d73 mac os: added mark of support for high resolution in 3 test applications.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9945 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-06-24 16:05:12 +00:00
Albrecht Schlosser 62ae23272b Add different selection_color()'s and tooltips to scheme test buttons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-12 23:30:55 +00:00
Greg Ercolano 85c1464715 Added some extra @@ tests for boundary conditions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-27 19:21:22 +00:00
Greg Ercolano fa75731c94 Fix for fl_measure() missing drawsymbol flag
Added comments
Added 3 line test.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-27 19:16:48 +00:00
Greg Ercolano ceb12d51ab Added unittest for checking symbol rendering and fl_measure() with symbols.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9850 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-27 18:32:41 +00:00
Greg Ercolano 449f36b6f8 Added Fl_Choice to browser test program to let one
change the browser type(), allowing testing of the
different browser modes..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 21:32:34 +00:00
Albrecht Schlosser f2dc7f90ff make schemes test window resizable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-10 15:14:03 +00:00
Greg Ercolano 4a2e8fa883 Added schemes test to unittests app, to check fltk schemes for artifacts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-08 20:37:00 +00:00
Manolo Gouy d9666eb8c9 Demo now runs Mac OS test applications both if they are bundled or unbundled.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-10 12:49:59 +00:00
Manolo Gouy 598e2cb63b MacOS: create a bundled version of all example programs with fltk-config --post
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9736 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-05 14:53:03 +00:00
Manolo Gouy 155e099f4a Documented how to make a Mac OS FLTK application launchable by dropping files on its icon.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9718 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-13 13:03:20 +00:00
Matthias Melcher 78039ecb55 Replaced 10302 with 10301 for FLTK_ABI_VERSION
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-06 20:46:14 +00:00
Manolo Gouy a413dd4340 Fix STR#2856: extend the fullscreen demo to show screen and work area sizes (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9605 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-14 15:09:46 +00:00
Manolo Gouy 483d064559 Fix STR#2856: extend the fullscreen demo to show screen and work area sizes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9604 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-14 14:36:11 +00:00
Manolo Gouy 0cfd9a1a23 button demo program: use fl_beep() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-02 08:59:45 +00:00
Greg Ercolano df5c8cc76f Fixed some keynav problems:
No focus, hitting down would skip first item
    Enter key to toggle was falling through to other widgets
    Removing an item that has focus clears item focus (to prevent wild ptr)

Added new methods:
	Fl_Tree::get_item_focus()
	Fl_Tree::first_visible()
	Fl_Tree::last_visible()
	Fl_Tree::is_vscroll_visible()

Simplified + fixed Fl_Tree_Item::next_displayed()

Fixed Fl_Tree_Item::visible_r(), was skipping item if it was a closed branch.

tree demo: fixed button ordering for "Test Suggestions" button



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-29 13:34:39 +00:00
Greg Ercolano 31f320e2c6 o Added new 0xffffffff 'transparent' color behavior for the item's bg color;
with this as the default color, Fl_Tree::color() can control the tree's background.
  Tests added to the test/tree application.

o test/tree.fl modified:
    o Added a 'Test Suggestions' button to document various tests
    o Added tests for new 'transparent' color behavior
    o Added test for STR#2832 to check if items can be drawn to the /right/ of child widgets

o Added new methods to Fl_Tree_Prefs:
    item_labelfont()     -- obsoletes labelfont()
    item_labelsize()     -- obsoletes labelsize()
    item_labelfgcolor()  -- obsoletes labelfgcolor()
    item_labelbgcolor()  -- obsoletes labelbgcolor()

o Added 'Fonts and Colors' section to Fl_Tree docs

o Fl_Tree_Item ABI feature added: using bitflags instead of chars
  to keep the class small, as it gets instanced a lot. (fast + LIGHT)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-09 21:26:32 +00:00
Greg Ercolano 474feee1db o Added FL_TREE_ITEM_HEIGHT_FROM_WIDGET option to item_draw_mode()
to allow widgets to control the size of items in the tree
  (instead of vice versa).

o Added item_draw_mode(int) to allow for easier bitflag maintenance,
  since enums don't seem to be typesafe yet.

o Tree demo modified to demonstrate this feature.
  An important feature for adding large widgets to tree items.
  Will probably add an example, 'tree-of-tables' to demo this usage.

o Small doc fixes.

o Had to rename FL_TREE_ITEM_DRAW_WIDGET_ONLY to FL_TREE_ITEM_DRAW_DEFAULT.
  Its meaning for the bit fields changed when new bit fields were added.
  (The prev name just didn't make sense in the new context. Since it was
  just a few svn commits old and an unreleased ABI feature, it shouldn't
  affect anyone not in R&D)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9404 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-27 02:03:48 +00:00
Greg Ercolano db73861e7c allow 'open all' button to include root.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9401 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 04:47:49 +00:00
Fabien Costantini 88cbdd46f7 removed more 64 bits warning in curve/arc demos
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9392 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 02:06:52 +00:00
Fabien Costantini 636885f28c removed 64 bits warning in arc demo
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-24 02:03:10 +00:00
Greg Ercolano d07ef80207 Various Fl_Tree enhancements:
o Added keyboard navigation table
    o Added Shift-Click to extend selection, Ctrl-Space to toggle selection, Enter key toggle
    o Added protected extend_selection(from_item,to_item)
    o Cleanup of Fl_Tree::handle()
    o Limit ^A to multi-select mode only
    o Disable focus box in SELECT_NONE mode
    o test/tree: changed default mode to 'multiselect' (most often needs testing)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9385 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-23 16:31:51 +00:00
Greg Ercolano 67ea785bfd Forgot tree.fl (should have been in r9377)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22 13:55:17 +00:00
Greg Ercolano 055a7d47ed STR# 2827 cont'd:
> Prevent 'changed' flag from being set during reselect
> test/tree.fl: added chooser so user can test with item reselect enabled|disabled
  (Chooser deactivated if the ABI option is not enabled)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-19 08:50:04 +00:00
Fabien Costantini 1d3f79bc23 Made homogen the scope of the new fl_tree enum with previous Fl_Tree_Reason enum.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-16 03:29:56 +00:00
Fabien Costantini b31264e473 STR 2827 implementation. Implemented Reselect code and related API all within ABI controlled preprocessor blocks because of new attribute defintion would break ABI anyway. Because the code is already ABI controlled, I took the opportunity to keep keep the REASON enum sorted. Added test code in Tree.fl adequately.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-15 20:11:36 +00:00
Greg Ercolano 3cf006f5c3 Solves STR #2681.
Added ABI-breaking Fl_Table::scrollbar_size() with new ABI #ifdefs.
tests/unittests program modified to test this feature if enabled.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-14 20:35:56 +00:00
Fabien Costantini 8809c5d65d Fixed build error in msvs because Fl ref to FULLSCREEN enum was not accessible in Fl_Widget. new inline is_fullscreen() getter has been implemented to avoid a build error with (at least) msvc compilers. Fixed a ton of warnings / problems when bilding on windows 64 bits target with ms toolchain. cleaned up about 200 warnings raised when building win74 targets.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05 05:12:30 +00:00
Manolo Gouy 0b6f546b0f Added support for the additional key of ISO keyboards (aka 102-key keyboards) named FL_Iso_Key.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-26 16:54:54 +00:00
Manolo Gouy 08ce2e07d3 Fix STR#2641: true fullscreen windows that cover all their screen including menu bar, task bar, dock.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-23 16:47:53 +00:00
Manolo Gouy 01861dd47b Fixed error with \ key under Mac OS
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-09 21:24:57 +00:00
Manolo Gouy 34a045f2e3 The interface displays Fl_Menu_Bar / Fl_Sys_Menu_Bar class names.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-02-18 08:29:30 +00:00
Greg Ercolano 4e40f1b339 Mods to allow test/tree to add 20,000 items at a time to the tree to test for slowness.
Also added a test for the swap() method.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-19 12:52:53 +00:00
Albrecht Schlosser 82b6725d16 Added text constants for preference names (project and application) for
easier testing (removed duplicated strings).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9229 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-18 15:15:04 +00:00
Manolo Gouy 4be97ea19c Fixed the use of FL_SUBMENU_POINTER in Fl_Sys_Menu_Bar objects (Mac OS-specific).
Modified the menubar demo program to exercise the Fl_Sys_Menu_Bar class.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-11 16:16:31 +00:00
Albrecht Schlosser b9e2720061 Added missing svn properties to test/rotated_text.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-05 08:43:26 +00:00
Greg Ercolano 4f4a8fc3c7 Modifications to all LGPL headers for STR #2685.
(to clarify static exception LGPL by changing license references)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19 04:49:30 +00:00
Greg Ercolano 6fa9df7e90 Fixing STR #2679; Fl_Table makes use of FLTK's Fl::scrollbar_size() global.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-17 16:40:41 +00:00
Greg Ercolano 46d9c45536 Added Fl_Table to scrollbar resize unittests
as prep for resolving STR #2679.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8862 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-16 03:50:58 +00:00
Matthias Melcher 07cb1667ad Formatting
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8815 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16 15:11:18 +00:00
Matthias Melcher 189a563ef0 Fixed Copyright (another try - sorry!)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16 15:05:00 +00:00
Matthias Melcher a998fa5114 Fixed Copyright (damn, why does it not updae the ID?)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16 15:02:55 +00:00
Matthias Melcher fb1f981c39 Fixed Copyright (2
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16 15:02:14 +00:00
Matthias Melcher 5415e0ec09 Fixed Copyright
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16 15:01:30 +00:00
Ian MacArthur 6c9d1f7840 Modify the utf8 test demo code to handle surrogate pairs.
It was hard coded to cover the range 0 to 0xFFFF, i.e. the
Basic multilingual plane, even though the demo code allowed
any start index, for any plane, to be entered on the CLI...
As a result, attempts to view supplemental planes were always
just folded back into the BMP.
This change makes the code display the 64K Unicode points
starting at the index given on the CLI, so that the 
supplemental planes *can* now be viewed and tested.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-01 12:24:22 +00:00
Albrecht Schlosser 2999acc1bb Added some test parameters for fine tuning of image tests. These parameters
are implemented as compiler macros and can only be edited manually to test
different implementation details.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8609 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-20 13:38:28 +00:00
Manolo Gouy 1ad8cf320d Fixed a problem in the WIN32 version of Fl_Paged_Device::print_window_part() and
Fl_Paged_Device::print_window() where the window didn't redraw well in some
cases after printing.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8606 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-18 20:47:32 +00:00
Manolo Gouy f763b4b709 Use adequate shortcut for "New View" on the Mac platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8602 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-18 11:29:30 +00:00
Manolo Gouy 73a57f8ac8 Corrected typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-14 13:04:57 +00:00
Manolo Gouy 8b026342dd Following STR #2583, the behaviour of fl_draw_image() with d = 4 on Mac OS is here
made consistent with other platforms, that is, the 4th byte of each pixel is ignored
instead of treated as transparency data.
In the future, the fl_draw_image() signature may be extended with another argument
that would describe if and how transparency information is available.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-12 11:38:43 +00:00
Greg Ercolano 5ecca683a3 Tree demo: removed unused cruft, fixed custom icons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-19 22:39:00 +00:00
Albrecht Schlosser 2c129b4833 Added a default window title function for common dialogs (STR #2562).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-18 08:52:48 +00:00
Greg Ercolano 97847cfe26 Enlarged pulldown menu choosers slightly.
(They were too small vertically, cutting off font descenders under linux.)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-13 17:31:54 +00:00
Greg Ercolano 83fab9118e Fix problem with text running off edges of buttons. (linux/xft, osx..)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8419 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-13 16:13:04 +00:00
Albrecht Schlosser 3bb11b9993 Common dialogs like fl_message() and fl_ask() can now have a window
title (STR #2562).
Added a test case for disabling the hotspot and using a window title
to test/ask.cxx.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-12 12:08:52 +00:00
Albrecht Schlosser dce0fbe6ef More dependency updates (makedepend files).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8390 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 14:41:45 +00:00
Manolo Gouy 1e26d2db61 Removed uses of Fl_Native_File_Chooser_{MAC,WIN32}.H that no longer exist.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8389 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 14:08:08 +00:00
Manolo Gouy 17f80015dc Removed dependencies from Fl_File_Chooser_FLTK.H that no longer exists.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 14:00:36 +00:00
Greg Ercolano 5759f3151f Avoid non-ansi scoping issue with variables defined inside for() loops.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 00:08:45 +00:00
Manolo Gouy caef04e057 Fixed WIN32 crash when the file dialog window is cancelled.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-31 17:46:55 +00:00
Greg Ercolano 2c5006563f Fl_Tree API breaking changes (we haven't released 1.3.0 yet..):
Fl_Tree::labelsize() -> item_labelsize()            -- TO AVOID COLLISION WITH Fl_Widget::labelsize()!
    Fl_Tree::labelfont() -> item_labelfont()            -- TO AVOID COLLISION WITH Fl_Widget::labelfont()!

Fl_Tree_Prefs (internal) changes:
    Fl_Tree_Prefs::fgcolor() -> labelfgcolor()          -- for consistency with above
    Fl_Tree_Prefs::bgcolor() -> labelbgcolor()          -- for consistency with above
    Fl_Tree_Prefs::selectcolor() removed                -- uses Fl_Widget::selection_color() instead
    Fl_Tree_Prefs::inactivecolor() removed              -- was unused; inactive color procedurally calculated

Other Fl_Tree mods:
    o Fixed bug with select_all(item) and deselect_all(item)
      (they were not limiting themselves to children of specified item)
    o Fixed bug with item not drawing in its /own/ bgcolor when item selected
    o Fl_Tree uses the Fl_Widget::selection_color()
    o All methods that deal with 'font types' changed int -> Fl_Font
    o All methods that deal with 'font sizes' changed int -> Fl_Fontsize
    o Added needed methods to Fl_Tree for accessing colors:

        item_labelfgcolor()     -- access default fg color used for new items
        item_labelbgcolor()     -- access default bg color used for new items
        tree_connectorcolor()   -- access the connector line color

    o Small doxygen comment adjustments and general clarifications
    o test/tree demo modified to include testing of new label color methods, cleanup



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 20:22:06 +00:00
Albrecht Schlosser d655684c77 Added missing dependency on tree.fl, and extended target clean to delete
all fluid-generated .h files (as well as .cxx files).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-22 16:56:12 +00:00
Albrecht Schlosser b4c15eb8ae Fixed a few GNU compiler warnings (-pedantic): C++ comments in C files,
extraneous ';' and ',' and an invalid cast.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 20:52:38 +00:00
Albrecht Schlosser 7ada14f3b7 Reverting unintentionally committed experimental code in r8256. Sorry.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 13:40:26 +00:00
Albrecht Schlosser 313352b55f Updated documentation/README to reflect the new distribution of
pre-generated documentation as separate downloads.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 13:06:15 +00:00
Manolo Gouy 03af588ef9 Added missing #include's when compiled using Xcode
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 10:36:44 +00:00
Matthias Melcher 5f940c4e4b Remove screen dimension test
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-09 14:26:21 +00:00
Manolo Gouy 712554e3b0 Fixed STR #2512: crash in test/tree demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-09 08:34:13 +00:00
Albrecht Schlosser cdaff761f7 src/screen_xywh.cxx:
Fix X11 screen_init() if Xinerama is available, but not active.
Still investigating why there are nonsense dpi values under Cygwin/X11,
but maybe this is an X server problem.

test/hello.cxx:
Extended test statements - don't forget to remove before release.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 12:39:51 +00:00
Matthias Melcher 7dc05cb20e First attempt at finding the screen pixel sizes. Can't test Xinerame, MSWindows, or X11 yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 01:01:04 +00:00
Manolo Gouy 22111debb8 Fixed use of FLTK_HAVE_CAIRO under Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-06 13:17:21 +00:00
Manolo Gouy bc509d32eb Fix STR #2504 (first part). Replaced HAVE _CAIRO by FLTK_HAVE_CAIRO and USE_CAIRO
by FLTK_USE_CAIRO everywhere.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-06 10:24:58 +00:00
Albrecht Schlosser 21f1c67b60 Updated dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8179 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 15:15:48 +00:00
Matthias Melcher 210114ca0f test/help now finds some documentation. This kind of works, but since we decided to load a sample page instead, I will have to improve this... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 00:53:13 +00:00
Manolo Gouy 874bca74f5 Mac OS X: removed all uses of Carbon (except for older OS versions) and re-organized
text input around the NSTextInput protocol.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-03 16:50:34 +00:00
Manolo Gouy 29b06ba51b set file properties.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-02 15:31:09 +00:00
Albrecht Schlosser 335eb340ca More typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-02 14:54:20 +00:00
Albrecht Schlosser 0cf4899e78 Fixed typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-02 14:50:39 +00:00
Matthias Melcher 37002c6155 Changed checkers field color because pieces were close to invisibel on OS X. I hope this has no negative effect on very dark desktops... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-02 03:55:23 +00:00
Matthias Melcher e203237eb3 Integrated menu into demo resource branch for OS X. Indicating items that open more choices with ...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8167 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-02 03:50:54 +00:00
Matthias Melcher 5f2aa6ca9c Change colbrowser to btter conform to FLTK coding standards. For OS X bundle format, move the RGB file into the bundel.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8166 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 21:06:56 +00:00
Matthias Melcher 4be4baed6b native filchooser test now uses system colors and resizes nicely.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 20:27:07 +00:00
Matthias Melcher 028533b451 OS X adds a -psn_... argument to command line calls. Ignore that.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 20:17:58 +00:00
Matthias Melcher 4562798f69 Text sample field in utf8 test resizable
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 19:34:14 +00:00
Matthias Melcher 2f1b321054 Modified ut8 test program formatting to get closer to FLTK coding standards (2)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 19:04:26 +00:00
Matthias Melcher e43587256e Modified ut8 test program formatting to get closer to FLTK coding standards
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 18:57:37 +00:00
Matthias Melcher 199315aa31 Added resizability of the font display in the font demo
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 18:48:32 +00:00
Albrecht Schlosser a506811400 Adjusted test/hello.cxx for potentially wider XFT fonts and changed the
code to match the documentation in basics.dox.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 13:23:25 +00:00
Matthias Melcher e3fde20cf8 Using FL_COMMAND in test/editor shortcuts to make it Mac Keyboard compatible.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01 03:24:35 +00:00
Albrecht Schlosser 6e1ce92c62 Updated dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-30 15:35:33 +00:00
Albrecht Schlosser 5a2e5395b0 Updated dependencies
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-27 17:46:38 +00:00
Manolo Gouy a8530c73fa Adopted use of FL_LIBRARY #define symbol under Mac OS X. This allows to compile
client applications without including Mac OS system headers, with a gain in speed of 
compilation and portability. The source files of all FLTK libraries must now be compiled with 
-DFL_LIBRARY under Mac OS X. Make, CMake and Xcode project support files
have been modified accordingly.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-23 14:24:29 +00:00
Greg Ercolano 99fe2b88e7 Added "Tab Nav" and "Arrow Nav" toggle to the test/input program.
Also, added tooltip to describe new "Arrow Nav" button in test/navigation program.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-21 02:37:41 +00:00
Matthias Melcher a8e8831559 Moved global FLTK options into Fluid until we find a better setup. Restored the original Preferences demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 22:19:24 +00:00
Ian MacArthur 1e9e3970bd File was changed to use FL_PATH_MAX so needed to have <FL/filename.H> added to the include files so that it would compile on WIN32 hosts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 13:57:11 +00:00
Matthias Melcher 9092dccab8 Changed all fixed filename buffers (that I could find) to use FL_PATH_MX instead. Raised FL_PATH_MX from skipy 256 characters to 2048, which corresponds with modern file systems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19 21:20:10 +00:00
Greg Ercolano 0cd57058de Added toggle button to 'navigation' test program to control
new arrow focus behavior.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8043 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 23:21:32 +00:00
Manolo Gouy f451946d42 Homogenize use of re-encoding and transcoding (in favor of the latter).
Also, makes clear that the code is ready to deal with any encoding, not just fixed-length ones.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 17:38:39 +00:00
Albrecht Schlosser 895f80a0c7 Make sure that tooltips are always on in test/preferences, even if they
are disabled by system or user options. Otherwise users wouldn't get the
necessary tooltips if someone switched tooltips off.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 13:36:06 +00:00
Albrecht Schlosser eafeac5f98 Redefined NORMAL_INPUT_MOVE in src/Fl_Input.cxx to reflect the new option
Fl::option(Fl::OPTION_ARROW_FOCUS). Maybe this could improved, but this is
the shortest way to make the option work always.

Improved tooltips in test/preferences.fl for users and system managers.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 13:02:36 +00:00
Albrecht Schlosser 80677ac290 Changed all #include "config.h" to #include <config.h>.
This is necessary for out-of-source builds (e.g. CMake) to work correctly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15 12:11:16 +00:00
Matthias Melcher 318b3dea57 Added an 'Options' dialog (replacing test/preferences) that can be used to set system wide or user real options like Visible Focus.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 19:52:26 +00:00
Manolo Gouy 85a03a76c9 Fix STR #2348. Files encoded with UTF-8 or CP1252 are accepted. Any non-UTF-8-encoded
data is interpreted according to CP1252 and transcoded to UTF-8. By default, a warning
message is displayed when the input file was transcoded. This default behavior can be 
modified by changing a function pointer. A flag has been added to the Fl_Text_Buffer object
that informs the caller if the input file was transcoded to UTF-8.
The Fl_Text_Buffer.cxx file contains some preliminary code that could be used in the future
to input other encodings provided they are fixed-length (e.g., all ISO-8859-* character sets,
UTF-16). This code is not compiled at this point.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8004 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 19:24:28 +00:00
Albrecht Schlosser f9388a37df Removed unnecessary casts (STR #2308).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7982 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 23:58:32 +00:00
Albrecht Schlosser 97b4b0c704 Fixed Compiling with mingw-w64 (STR #2308).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 14:00:35 +00:00
Albrecht Schlosser e1cff96f1f Added Windows Resource Compiler ("RC") to configure/makeinclude for
easier cross-compiling (not yet fully supported).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7973 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-08 09:48:07 +00:00
Matthias Melcher 06e5a163cd Forgot to removed an unused line
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7964 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-06 17:42:48 +00:00
Matthias Melcher 52fcab2607 Fixed 'Fractal' demo. Tree's were not random at all.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7961 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-06 15:39:31 +00:00
Albrecht Schlosser f6975396a8 Reverted unintenional change of test/editor.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7948 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-04 12:06:29 +00:00
Albrecht Schlosser 2db2db587c Fixed typos and reformatted some lines that were longer than 80 characters.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7947 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-04 12:03:08 +00:00
Albrecht Schlosser 8c56fc7e22 Updated CMake files with patches from Michael Surette (STR #2317).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7919 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 10:34:43 +00:00
Greg Ercolano 4327734e69 More copyright 2010 mods.
Used: vi `grep -r 'Copyright .*Spitzak' . | grep -v 2010 | grep -v '/\.svn' | cut -d: -f1`


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-29 18:18:27 +00:00
Matthias Melcher a803cec1b7 Fixed even more Copyright to 2010. Probably still forgot some.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7906 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 21:28:30 +00:00
Matthias Melcher 7fc05e3505 Fixed more Copyright to 2010.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7904 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 21:12:59 +00:00
Matthias Melcher e454f97acc Fixed Copyright to 2010.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 21:06:39 +00:00
Matthias Melcher f560b71b0a Fixed Fl_Text_Display Tabulator calculations (STR #2450)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-27 21:15:52 +00:00
Matthias Melcher 1a793cdbc3 Tab is now alway 8 characters wide.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-27 20:49:27 +00:00
Matthias Melcher c6e46fed45 Preliminary implementation of Tab characters insisde Fl_Text-*. We still need to test wrapping, etc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7895 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-27 20:13:10 +00:00