summaryrefslogtreecommitdiff
path: root/src/Fl_Table_Row.cxx
AgeCommit message (Collapse)Author
3 dayswipmaxim nikonov
2025-07-07Fl_Table_Row: replace private class CharVector with std::vectorAlbrecht Schlosser
FL/Fl_Table_Row.H: use `std::vector<uint8_t> _rowselect;`, remove declaration of class `CharVector` src/Fl_Table_Row.cxx: remove implementation of class `CharVector`, simplify loops (use range based for loops), use resize() to change vector size. Unify copyright year of Fl_Table* headers and implementation.
2025-01-22Fix Fl_Table_Row inconsistencies, final part (#1187)Albrecht Schlosser
Adjust internal vector sizes before and after changing the rows() in the base class to avoid inconsisten sizes. Note that the crash reported by the OP of PR #1187 was caused by more than one issue, not only the one fixed here. Thanks for the original patch to the author, GitHub user 'basiliscos'.
2025-01-14Fix return value of Fl_Table_Row::row_selected(int) (PR #1187)Albrecht Schlosser
As discussed in the context of PR #1187 the previous return value '-1' was misleading and undocumented. The docs mentioned only '1' and '0'. User code that used the return value as documented (like a `bool`) would make the wrong decision if the return value was '-1': true (selected) instead false (out of range). This commit fixes the code by doing what the docs define and clarifies the documentation. Further documentation improvements of Fl_Table (example code used a method that is not defined in Fl_Table) and of Fl_Table_Row are included as well. Doxygen docs of two methods of Fl_Table_Row moved to the .cxx file where they belong according to the CMP.
2021-11-24Better solution for issue #296Greg Ercolano
2021-11-24Solves Fl_Table_Row warning in issue #296Greg Ercolano
2021-03-21Remove unnecessary system includes from public headersAlbrecht Schlosser
Add includes of system headers in the implementation files where necessary.
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.
2019-04-29Fix compiler warning (issue #25)Albrecht Schlosser
src/Fl_Table_Row.cxx:56:25: warning: argument 2 range [18446744071562067969, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] arr = (char*)realloc(arr, count * sizeof(char)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes #25
2017-08-18Avoid #include's of unrelated system headers in Fl_Table*.H.Albrecht Schlosser
Possible side effect: programs that relied upon inclusion of unrelated system headers by FL/Fl_Table.H or FL/Fl_Table_Row.H may fail to compile. Removed include files (some only on certain platforms, list may be incomplete): #include <FL/Fl.H> // moved to implementation (.cxx) #include <FL/Fl_Box.H> // moved to implementation (.cxx) #include <FL/Fl_Scrollbar.H> // moved to implementation (.cxx) #include <sys/types.h> #include <string.h> // memcpy #include <malloc.h> // WINDOWS only: malloc/realloc #include <stdlib.h> // UNIX: malloc/realloc git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12390 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-13Fix for problem with posting 'popup menus' during user callbackGreg Ercolano
causing change in row/col selection of Fl_Table_Row. As reported by David Lopez in fltk.general on 11/09/2011, Subject: Popup menu over Fl_Table. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9172 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-12-05CMP mods: bracing, doxygen fixes for code examples and #if DOXYGEN -> #if ↵Greg Ercolano
FL_DOXYGEN. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7950 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-18Added missing svn properties and $Id$ tags.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6943 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-14Added Fl_Tree source code, demo files, and documentation. Thanks, Greg!Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6934 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-11-14Adding Gerg's Fl_Table widget to FLTK 1.3 with kind permission. ↵Matthias Melcher
Documentation not yet added Support for both Visual Studio IDE's not yet added. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121