Commit Graph

63 Commits

Author SHA1 Message Date
Greg Ercolano
1f06318f9a Fixes STR #2964.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-22 18:27:05 +00:00
Greg Ercolano
b2a54c3679 o Fixed tab navigation problem with this demo
o Prevent Fl_Output from erasing if value unchanged (allows text selection
  and keyboard nav of the Fl_Output widget..)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-25 23:20:29 +00:00
Greg Ercolano
5979afb5bf Adding an example to demonstrate how to create an Fl_Browser with icons on the items.
Based on an example I'd added to STR#1739 to demo someone's patch.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 18:40:53 +00:00
Greg Ercolano
0ed7405c49 o Modified example to take advantage of new Fl_Table::tab_cell_nav() method
o Changed behavior of example to be more predictable
o Enter key can be used to toggle edit mode
o User can navigate table cells with arrow keys or tab/shift-tab without slipping into cell edit mode
o Fixed other issues with Alt, Shift, multicell selection..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 08:02:02 +00:00
Greg Ercolano
bdd227806f o Simplified example to take advantage of Fl_Table's existing features.
o Replaced hard coded row/col counts.
o Enabled arrow keyboard navigation (setting Fl::OPTION_ARROW_FOCUS)
o Fixed small bug in handle() that was calling Fl_Table::handle() instead of Fl_Table_Row::handle()
  that was preventing Fl_Table_Row's row selection from working..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9840 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-19 21:02:12 +00:00
Greg Ercolano
9c6014f2d5 Small fixes to keyboard navigation and 'current cell' coloring.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9839 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-19 10:34:03 +00:00
Greg Ercolano
684ad6910b Added Fl::option() setting to allow arrow keys to navigate table.
This example was written before 1.3, and was dependent on the 'old' FLTK behavior
where arrow keys could be used to navigate widget focus (in addition to Tab).

The 'new' FLTK behavior (1.3 and up) disables arrow key focus nav by default,
which is bad for this program, so we enable the old FLTK behavior with Fl::option().



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9838 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-18 20:00:04 +00:00
Greg Ercolano
fdca0bcde1 Small fix to column max width calculation: take into account width of header.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9837 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-17 06:06:52 +00:00
Greg Ercolano
84f374f805 Solves STR#2889, increases reusability of SetSize() in example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9728 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-20 18:32:59 +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
Greg Ercolano
1e9a7ae21d Removed unused argument..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-12 18:32:36 +00:00
Greg Ercolano
16fb1bad6a Added a new example to demonstrate complex widgets as children
of a tree with custom resizing behavior, selectable contents, etc.

Also demonstrates the need for the new FL_TREE_ITEM_HEIGHT_FROM_WIDGET feature.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9405 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-27 02:11:37 +00:00
Greg Ercolano
f58cd169c0 Various mods for Fl_Tree
o Fix STR#2828 (E): {Vertical|Widget} Gap
    o Moved Fabien's reselected methods to Fl_Tree_Prefs,
      return method made const, doxygen, removed underbars from methods
      (to follow general API)
    o Widgets can now appear to the right of labels.
      This can be controlled with item_draw_mode(FL_TREE_ITEM_DRAW_LABEL_AND_WIDGET)
    o Cleaned up Fl_Tree_Item::draw(), Fl_Tree::draw()
    o New methods:
            marginbottom()       -- [ABI feature] extra space below last tree element when scrolling
            widgetmarginleft()   -- [ABI feature] space to left of widget
            usericonmarginleft() -- space to left of usericon
            labelmarginleft()    -- space to left of label
            item_draw_mode()     -- control how items, widget() are drawn
    o Updated Fl_Tree docs, tree-elements.png
    o test/tree: added sliders to test the above new features,
      added "open all" and "close all" buttons
    o Probably other stuff..


TODO: Fix "scroll-beyond-bottom" (STR#2796)
TODO: Fix other items in STR#2828



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22 13:40:02 +00:00
Greg Ercolano
c7044ca009 Optimizations for when Fl_Tree is a container of FLTK widgets.
o Don't draw FLTK widgets outside tree's viewport.
   o Added tree-as-container.cxx example program, demos tree 
     w/50k tree items each with 6 widgets (300k total)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-18 15:20:20 +00:00
Greg Ercolano
db2cca57f1 Added table-with-keynav.cxx to emphasize keyboard/mouse selection
(as per a question on the newsgroup about how to do this..)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-14 19:45:50 +00:00
Greg Ercolano
0197e5b31c Small #ifdef mod for windows builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-02-29 05:42:12 +00:00
Greg Ercolano
a9397d9ca8 Added progress bar widget demo.
Nabbed from Greg's cheat sheet, with his permission.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-02-29 05:37:30 +00:00
Greg Ercolano
9f9c16ac16 Limit columns to 26 to ensure column labels are only A-Z.
(previous value of 30 was creating non-alpha label names..)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-29 21:10:59 +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
3110a13aa2 Modified tree-simple to demonstrate specifying front+back slashes in tree.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8635 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-06 04:27:49 +00:00
Greg Ercolano
6871a6512a Fl_Tree mods for handling escaped item menu names.
Docs clarified.
Also, tree-simple example's callback handler brought up to date.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8632 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-04 02:59:50 +00:00
Greg Ercolano
073e051589 Mods to examples Makefile for windows mingw/msys builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 19:10:13 +00:00
Greg Ercolano
35c7c2f14c Makefile modified to demonstrate use of fltk-config.
FLTK settings defined in a separate Makefile.FLTK
    which users can nab for their own use.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 16:11:45 +00:00
Greg Ercolano
d8d04b2485 Removed unncessary calls to set_value_hide() which was
causing a crash on windows.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 01:34:22 +00:00
Greg Ercolano
94a3cdaa47 Added dnd example to Makefile.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-10 22:25:59 +00:00
Greg Ercolano
3715d38360 Added a drag and drop example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-08 18:58:50 +00:00
Greg Ercolano
ba82efddcd Example was missing end() in ctor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8220 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-08 18:41:47 +00:00
Albrecht Schlosser
3eb5a172a3 Changed remaining _WIN32 to WIN32.
Added 'all' target to Makefile. Do we need the 'default' target?


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-05 22:28:39 +00:00
Greg Ercolano
974c369e3b Indenting mods for platform macro/includes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-05 17:58:16 +00:00
Greg Ercolano
bd539d4f90 Clarify platform ifdef's with indenting and grouping.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 18:44:25 +00:00
Albrecht Schlosser
e5c3b267ff Use Fl_Double_Window in table-sort example because of flickering.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 17:19:50 +00:00
Matthias Melcher
bcff5beb33 STR 2506: after reading Greg's comment, I modified my last commit to use 'dir' on all MSWindows builds
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 16:10:56 +00:00
Matthias Melcher
023fc6384c STR 2506: changed dependency on _WIN32 (deprecated) to _MSC_VER, assuming that Cygwin and MinGW apps on MSWindows will run in a Unix style shell.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8180 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 16:06:52 +00:00
Greg Ercolano
e4b4ecb53d Mods to allow building on Windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 02:05:56 +00:00
Greg Ercolano
5579dd81cc Added some descriptive text for the example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8133 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 20:28:44 +00:00
Manolo Gouy
202433d593 Replaced "^o" shortcut by FL_COMMAND+'o'
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-23 07:22:15 +00:00
Greg Ercolano
acfc66b01b Add an simple example application to open/save files using the FNFC.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8096 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-21 23:04:16 +00:00
yuri
554a50b33b fix linux build add ctype.h include for isdigit
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-11 20:28:43 +00:00
Greg Ercolano
675fff09cf Renamed table-with-keyboard-nav.cxx -> table-spreadsheet-with-keyboard-nav.cxx,
(since it is a spreadsheet as well as demonstrating keyboard nav in tables).



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 18:28:07 +00:00
Greg Ercolano
4f74131106 Code cleanup for two table spreadsheet examples.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 18:24:47 +00:00
Greg Ercolano
3d94092dcc Header mods for submission history, copyright notices, consistency.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7996 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 08:09:27 +00:00
Greg Ercolano
ca8f6d72b6 Small mod to spreadsheet example (single click cells)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 07:52:05 +00:00
Greg Ercolano
7457f0dcaf Added table-spreadsheet example.
Various example mods.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 07:49:22 +00:00
Greg Ercolano
4525d46ed9 Added color Fl_Text_Display example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 05:27:20 +00:00
Greg Ercolano
5ca2671de8 Added texteditor-simple example program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 20:26:00 +00:00
Greg Ercolano
4b22612fc4 Menubar example added.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 00:05:24 +00:00
Greg Ercolano
ddf187af37 Added sortable table example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 17:02:11 +00:00
Greg Ercolano
7d73741655 Added table-simple example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 04:39:30 +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
Greg Ercolano
3f41385ebc Imported widgettable.cxx from original Fl_Table widget test suite
as an FLTK example 'table-as-container.cxx'.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7754 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 12:21:17 +00:00