Commit Graph

54 Commits

Author SHA1 Message Date
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
Greg Ercolano
347007964e Various fixes:
o pre-selection of first cell
	o simplified input selection
	o Enabled ESC to quit app (original app did not handle it)
	o Ignore Fl_Tab to make tab navigation operate as expected



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7750 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 10:58:42 +00:00
Greg Ercolano
0beca57ddf Various mods:
o Added comments
	o Some code fixes
	o Direct typing now replaces text instead of inserts



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7749 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 10:39:19 +00:00
Greg Ercolano
ce8972cca4 Added missing ident trailer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7742 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 08:55:50 +00:00
Greg Ercolano
c9491500e5 Added new table-with-keyboard-nav.cxx to solve STR #2374.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7741 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 08:53:39 +00:00
Greg Ercolano
aea80f7bb6 Added example howto for making a button with text over an image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7740 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 02:32:02 +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
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
9416e3480a README.examples file modified to include an as-is disclaimer and BUGS section.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7633 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-07 01:57:34 +00:00