summaryrefslogtreecommitdiff
path: root/src/Fl_Browser_.cxx
AgeCommit message (Collapse)Author
2 dayswipmaxim nikonov
2023-11-27Fix compiler warning, dependencies, and trailing whitespaceAlbrecht Schlosser
The benign warning was: ‘Fl_Browser_::hscrollbar’ will be initialized after [-Wreorder] ‘int Fl_Browser_::linespacing_’ ...
2023-11-25Adds `linespacing()` to `Fl_Browser_` and all derived widgetsMatthias Melcher
2023-02-06Use fl_utf_strcasecmp() for Unicode-aware case-insensitive comparisonsManoloFLTK
2023-02-06Don't assume strcasecmp() is a function because of Visual studio CManoloFLTK
2023-02-06Add necessary #include "flstring.h"ManoloFLTK
2023-02-06Fix "\todo Add a flag to ignore case" from Fl_Browser_.cxxManoloFLTK
2023-02-02Fix position() methods that shadow Fl_Widget::position()Matthias Melcher
* `FL_DEPRECATED` macro to mark `position()` method that shadow `Fl_Widget::position()` #69 (#666)
2023-01-05Add close buttons for individual tabs in Fl_Tabs (#628)Matthias Melcher
Add close buttons for Fl_Tabs Introducing callback reasons FLUID shows all FL_WHEN_... options Adding Fl_Tabs overflow types Improved test/tabs to show new features
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2017-09-13Fixed small doxygen inconsistencies for do_callback value.Greg Ercolano
Internally Fl_Browser passes the raw value of when() as the "do_callbacks" value, so it's important that ALL non-zero values mean "do the callback' (and not just 1). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12457 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-29Fix compiler warnings (gcc 6.1).Albrecht Schlosser
Some of these warnings were benign (code formatting), but one of them showed a potential bug (zero divide in test/fraciewer.cxx). Fixed warnings: 1 this 'while' clause does not guard... [-Wmisleading-indentation] 1 this 'for' clause does not guard... [-Wmisleading-indentation] 1 this 'else' clause does not guard... [-Wmisleading-indentation] git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11850 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29Fix Fl_Browser::textsize(int) to adjust the scrollbars (STR #3057).Albrecht Schlosser
Setting a different text size didn't affect the scrollbars. Port of branch-1.3, r11453 and r11464. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11465 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-05Changed Fl_Multi_Browser behaviour on the Mac OS platform so multiple selectionManolo Gouy
is done by cmd-click rather than ctrl-click, as is expected on this platform. Also, updated the documentation to describe the effects of ctrl-, shift- and cmd-clicks. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10882 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-05Fixes for Manolo's reopen of STR#2886.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9737 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-13Fixes STR#2886: prevents scrollbars from drawingGreg Ercolano
when widget is sized too small to be visible. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(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
2010-11-28Fixed Copyright to 2010.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20Added Fl_Widget_Tracker in handle() methods etc. to avoid accessing widgetsAlbrecht Schlosser
after deletion (STR #1306). This is all I could find, but maybe there are more places in the code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19Fixed sorting in Fl_Browser - last item would not be sorted (STR #2300)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7103 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-02Fl_Browser mods for scrollbar sizingGreg Ercolano
1) Moved Fl::scrollbar_size() implementation from Fl_Browser_ to Fl:: 2) Modified Fl_Browser as per fltk.dev discussions: * Deprecate Fl_Browser scrollbar_width() method * Introduce Fl_Browser scrollbar_size() method with global fallback behavior * Docs for above Todo: Make similar changes to other scrollbar oriented widgets git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6737 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-27Doxgen mods for Fl_Browser*:Greg Ercolano
o Added \see for all methods that seemed to need it o Fix to has_scroll() enum docs as per Albrecht's comments o Other small doc tweaks git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-25 o Major mods to Fl_Browser_.{cxx.H}'s doxygen docsGreg Ercolano
o Small mods to Fl_Browser.{cxx,H}'s doxygen docs o FL_SORT_ASC/DESC -> FL_SORT_ASCENDING/DESCENDING (includes necessary mod to test/browser.cxx demo) TODO: Fl_Browser needs new '\see Related methods: ' that was initiated in Fl_Browser_ git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01Changed Copyright in 'src' directoryMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-26STR #2113: added sorting and a few other functions to Fl_Browser_.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6600 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-06Replaced all occurrences of the deprecated fl_clip() function byAlbrecht Schlosser
fl_push_clip(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-20doxygen comments for undocumented features in Fl_Browser_, Fl_Button, Fl_Chart.engelsman
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-16Doxygen documentation : took the opportunity to update copyright info as we ↵Fabien Costantini
modified already in batch almost all sources, added also a fil doxygen command to class headers to harmonize with original matt Fl_Widget dox. format. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-15Doxygen documentation. Fixed somes typos and also H4 remanent misplaced ↵Fabien Costantini
tags and comments. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-14Doxygen Documentation WP2 done.Fabien Costantini
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-13WP1 merged from my branch, WP2 reserved, todo list updated.Fabien Costantini
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-23First attempt at consistently using Fl_Font as a type for the font index and ↵Matthias Melcher
Fl_Font_Size as a type to measure font height (or rather size). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-15Fl_Browser_ and friends now support FL_WHEN_ENTER_KEY for both Enter/ReturnMichael R Sweet
and double-clicks (STR #1818) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-10-07STR #1742: Updated documentation to reflect the true nature of "selection()" ↵Matthias Melcher
and "value()" for Fl_Multi_Browser which can be quite surprisin for unsuspecting customers. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-24- Fluid avoids writing unsopported combinations of the Matthias Melcher
"when()" flags (STR #1501) - Fl_Browser_ would allow keyboard callbacks even though "when()" was set to "never" (STR #1501) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-16Merge all of the scrollbar sizes into a single API callMichael R Sweet
(Fl::scrollbar_size()) rather than a bunch of separate APIs and hardcoded values (STR #1800) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-03-28STR 1183: swapping two items in an Fl_Browser_ widget would corrupt ↵Matthias Melcher
redrawing if either item was "top". This fix swaps the top_ variable correctly, and also swaps the selection flag as the user would expect. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-31STR #1133: Text was drawn twice when the scrollbar arrangement changed, ↵Matthias Melcher
causing antialiasing making characters appear somewhat "bold". This was fixed by correctly erasing the background again when redrawing the browser. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08Add additional Fl_Browser_ fixes for STR #834.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-16Added redraw on focus vi FL_PUSH for roller, browser and sliderMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12Fl_Browser_ didn't update the position properly when an item wasMichael R Sweet
deleted (STR #839) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12Fl_Browser_ was calling the callback multiple times for a singleMichael R Sweet
selection change with FL_WHEN_CHANGED (STR #834) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4328 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16Update source file headers with STR web page.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-11Bump width of focus box by 1 (STR #786)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10Fixed the drawing of the Fl_Browser_ selection box (STR #786)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24Copyright updates.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-07-27More doco updates.Michael R Sweet
All of the core widgets now consistently set changed() before calling the callback function for a change in value; this allows programs to check the changed() state in a callback to see why they are being called (STR #475) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-11Copyright updates and prep for 1.1.5rc1.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-11-01The keypad Enter key works as the normal Enter/Return key inMichael R Sweet
common widgets (STR #191) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-30Copyright update for 1.1.3 release (not quite yet, but soon...)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121