summaryrefslogtreecommitdiff
path: root/src/Fl_Table.cxx
AgeCommit message (Collapse)Author
2 dayswi[maxim nikonov
3 dayswipmaxim nikonov
2025-09-05Make Fl_Table::get_selection() 'const' (#1305)Albrecht Schlosser
See also branch-1.4 with FLTK_ABI_VERSION >= 10405: commit 9b9426bf6e1140b3f220c8868a1d97bdc5e7f544
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-03-19Remove obsolete build option 'FLTK_OPTION_STD'Albrecht Schlosser
This option is no longer needed since FLTK 1.5 always requires C++11.
2024-02-07Introduce "Modern CMake" in FLTKAlbrecht Schlosser
This is a big commit and there are too many changes to list them all. The main changes are: - rename all CMake build options to 'FLTK_*' - export library targets with namespace (prefix) 'fltk::' - standardize shared library target names with suffix '-shared' - set public build properties on libraries for consumers - document library names and aliases in README.CMake.txt - document changes in "Migrating Code from FLTK 1.3 to 1.4" - partial backwards compatibility for old user projects Included but not directly related changes: - fix Windows (Visual Studio) DLL build - add CMake function fl_debug_target() to show target properties - don't build test programs if FLTK is a subproject - internal: reformat CMake code: remove space before '(' Thanks to Matthias and Manolo for their help, testing, and feeback.
2023-10-31Fix typosAlbrecht Schlosser
2023-10-24Remove test/debug statements from Fl_Table.cxxAlbrecht Schlosser
2023-10-22Make Fl_String and Fl_Int_Vector private (#789)Albrecht Schlosser
- add CMake option 'OPTION_USE_STD' - add configure option '--enable-use_std' - move FL/Fl_String.H to src/Fl_String.H - move FL/Fl_Int_Vector.H to src/Fl_Int_Vector.H - remove Fl_String from demo program examples/callbacks.cxx - remove Fl_Int_Vector from public header FL/Fl_Table.H - some methods of Fl_Table are no longer inline - add CMake option OPTION_USE_STD to allow std::string in some selected functions and methods Experimental, may be removed before release: - use either Fl_Int_Vector or std::vector in Fl_Table depending on CMake OPTION_USE_STD or configure --enable-use_std Move all fl_filename* functions that use Fl_String to fluid Main changes in fluid: - add fluid_filename.h and .cxx - include "fluid_filename.h" rather than <FL/filename.H> Update fl_input(), fl_password() and test/ask - add maxchar parameter to fl_input() and fl_password() - fl_input_str() and fl_password_str() are optional and return std::string if enabled (FLTK_USE_STD)
2023-01-01FLUID refactor and macOS warnings removed (#623)Matthias Melcher
P renamed to g_project class Project renamed to class Fluid_Project fixes macOS type cast warnings
2022-11-06Use the new Fl_Int_Vector class in Fl_TableAlbrecht Schlosser
Replace local IntVector with Fl_Int_Vector
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.
2018-02-21Remove "#ifdef _WIN32" that made this source file break the separation ↵Manolo Gouy
between platform-independent and -dependent files. Several other platform-independent source files (e.g., Fl_Browser.cxx, Fl_Group.cxx) use malloc/realloc/free without including a special header file for the Windows platform. Thus, Fl_Table.cxx can just be likewise. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-09Replace "WIN32" with "_WIN32" or "Windows".Albrecht Schlosser
Replace compiler/preprocessor/platform macro "WIN32" with "_WIN32". Replace "WIN32" in text and documentation with "Windows". Replace "MSWindows" with "Windows". To do: README.Windows.txt (and maybe other documentation as well) needs updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-16Fix typo.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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
2017-05-04Added Fl_Table docs for how to deselect.Greg Ercolano
Issue raised by Mich Paw today on fltk.general. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-04-26Fl_Table was missing doxygen docs for several public + protected members.Greg Ercolano
Solves STR# 3381. Also: standardized doxygen comment style in both files; > /** */ doxygen commenting > 2 space indent Removed some confusing non-doxygen comments, and rewrote some confusing ones. Removed old license info Matt had imported from my original 2002 widget.. there was no reason for it to be in there; the Fl_Table code inside FLTK is licensed under the FLTK GPL license, no need for the extra noise in the docs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-26Remove compilation warnings: suggest parentheses around operand of ‘!’ ↵Manolo Gouy
or change ‘&’ to ‘&&’ git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26Remove FLTK_ABI_VERSION from all but *tree*.* and documentation.Albrecht Schlosser
Everything related to Fl_Tree and its test and demo programs has been cleaned. Documentation needs updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-18Fix and improve Fl_Table docs, fix some other typos.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-03Fixes STR #3113 memory overrunGreg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10225 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-16Fixes STR #3018 -- thanks kdiman for complete patch.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10104 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-16Fixes STR #3054Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10103 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24Fix some warnings for IRIX 6.5Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23Default behavior of table /without/ ABI mods is to follow strict ruleGreg Ercolano
where Tab and Shift-Tab navigate off the table widget. This enables the Tab key to work properly with: o The test/table program; Tab can move focus to other input fields o With the foo_v2.cxx example code in STR#2862, Tab can navigate to/from the Fl_Input field git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23o Added tab_cell_nav() method to control Tab/Shift-Tab navigation of table ↵Greg Ercolano
cells. o Added move_cursor(R,C,shiftflag). Needed allow Shift-Tab not to create a reverse selection. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9841 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-06Replaced 10302 with 10301 for FLTK_ABI_VERSIONMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-14Solves STR #2681.Greg Ercolano
Added ABI-breaking Fl_Table::scrollbar_size() with new ABI #ifdefs. tests/unittests program modified to test this feature if enabled. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9345 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-10-201) Fix STR#2742.Greg Ercolano
2) Fix fl_eventnames[] debugging stuff. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9142 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
2011-07-17Fixing STR #2679; Fl_Table makes use of FLTK's Fl::scrollbar_size() global.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8863 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
2010-10-26doxygen fixes:Greg Ercolano
o Docs added for set_selection(), get_selection(), is_selected() o Renamed confusing variable names for get/set selection functions. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7751 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26Added handling of Tab key for Fl_Table keyboard navigation.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20Mixed bag. Please see CHANGES.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7117 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