Article #1338: FLTK 1.3.x Weekly Snapshot, r10036

  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Articles | Show Comments | Submit Comment ]

Article #1338: FLTK 1.3.x Weekly Snapshot, r10036

Created at 03:01 Dec 20, 2013 by mike

A new weekly snapshot of FLTK 1.3.x (r10036) is now available on the download page:

    http://www.fltk.org/software.php?VERSION=fltk-1.3.x-r10036

Commit Log:

------------------------------------------------------------------------
r10036 | greg.ercolano | 2013-12-17 21:14:02 -0500 (Tue, 17 Dec 2013) | 6
lines

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)'


------------------------------------------------------------------------
r10035 | greg.ercolano | 2013-12-16 05:26:44 -0500 (Mon, 16 Dec 2013) | 2
lines

Added Fl_Tree sort example.

------------------------------------------------------------------------
r10034 | greg.ercolano | 2013-12-15 13:59:02 -0500 (Sun, 15 Dec 2013) | 53
lines

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



------------------------------------------------------------------------
r10033 | greg.ercolano | 2013-12-13 23:12:21 -0500 (Fri, 13 Dec 2013) | 2
lines

Made smaller file size, tree image modified

------------------------------------------------------------------------
r10032 | greg.ercolano | 2013-12-13 23:01:10 -0500 (Fri, 13 Dec 2013) | 2
lines

Image defining new Fl_Tree inner/outer dimensions for forthcoming ABI 1.3.3
mods.

------------------------------------------------------------------------
r10031 | manolo | 2013-12-13 11:28:38 -0500 (Fri, 13 Dec 2013) | 2 lines

Fix for STR#3016: Fl_Input and Fl_Text_Editor have now the standard
behavior when doing
drag-n-drop of text: if the dragged text is dropped in the widget it comes
from, it's cut and pasted.
------------------------------------------------------------------------
r10030 | ossman | 2013-12-13 05:26:03 -0500 (Fri, 13 Dec 2013) | 5 lines

Catch WM_QUIT and convert it to SIGTERM. This gives Windows
applications a convenient way to request termination, rather
than forcing it. And it does so in a way that mimics UNIX's
way, allowing code reuse.

------------------------------------------------------------------------
r10029 | ossman | 2013-12-13 05:19:54 -0500 (Fri, 13 Dec 2013) | 4 lines

Add an autogen.sh script as is customary for autoconf based
projects. Also update the documentation to steer people to
use this scripts.

------------------------------------------------------------------------
Download | Home Page | Listing ]

Comments

Submit Comment ]

From heyzol, 09:30 Dec 25, 2013 (score=3)

Nice Toolkit!
Reply ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2015 by Bill Spitzak and others. This project is hosted by Seriss Corporation. Please report site problems to 'erco@seriss.com'.