summaryrefslogtreecommitdiff
path: root/src/Fl_Input_.cxx
AgeCommit message (Collapse)Author
46 hourswipmaxim nikonov
2026-01-24Let Fl_Text_Editor and Fl_Input handle gracefully composed unicode characters.ManoloFLTK
2024-09-12Fix typo in Doxygen text: unod --> undoManoloFLTK
2023-11-15Fixes return type of Fl_Input_::dvalue()Matthias Melcher
2023-11-07FLUID: Adds template for tutorial.Matthias Melcher
Tutorial still to be written. Also adds convenience methods to Fl_Input_ for getting and setting numeric values.
2023-08-03#211: adds optional parameter for Fl_Input_::drawtext()Matthias Melcher
Does not change the original API but adds a function and keeps the original automatic.
2023-04-26Multiline Fl_Input: fix move up/down in non ASCII textManoloFLTK
2023-04-17Add const qualifiers to can_undo and can_redo (#720)ZJUGKC
2023-04-14Memory leak in Input_ #716Matthias Melcher
2023-02-27Fix malloc/delete mismatchMatthias Melcher
2023-02-10Unlimited undo/redo for Fl_Input_ and Fl_Text_Buffer (#558) (#676)Matthias Melcher
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
2022-11-26Local undo per Fl_Text_Buffer and Fl_Input_ (#557)Matthias Melcher
2022-11-07Document Fl_Multiline_Output keynav and caret cursorGreg Ercolano
2022-01-07Re-organize cross-platform support for text input methods.ManoloFLTK
FLTK 1.3 supports complex text input methods (TIMs) for the 3 platforms (X11, Windows, macOS). This support has an interface with FLTK that is common for X11 and Windows, via (undocumented) functions fl_set_spot(), fl_set_status() and fl_reset_spot(). In contrast, and because it's been developed independently, the interface between the macOS TIM and FLTK 1.3 is completely different : static functions FL::insertion_point_location() and Fl::reset_marked_text(). The present change implements a single TIM/FLTK interface used by all platforms based on functions fl_set_spot() and fl_reset_spot(). The previous macOS-specific functions FL::insertion_point_location() and Fl::reset_marked_text() are maintained only for compatibility with 1.3 and deprecated.
2021-12-12Fix IME problem (issue #270)YX
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-02-02Added Fl_Input_::append() method (STR #2953).Matthias Melcher
2018-12-27Fixing some minor lint, found by Pavel Shlyak using PVS studioMatthias Melcher
2018-06-26Move Fl_Screen_Driver.H from FL/ to src/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-26Android: Widgets can now request the on-screen keyboard when they get focus. ↵Matthias Melcher
This may fail if visible_focus is disabled. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-31Fix compiler warnings.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31Finish removal of platform-dependent code from Fl_Input_.cxxManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31Begin to remove platform-dependent code from Fl_Input_.cxxManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31Begin to remove platform-dependent code from the Fl.H header file.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27Fix compiler warnings (STR #2988) - final commit.Albrecht Schlosser
This commit includes all fixes from branch-1.3 (svn r 11243) and additional fixes for warnings that crept in during the porting efforts, particularly C++ ("//") comments in C and included header files, and some more. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-13Details on PORTME items. Move fl_parse_color() to screen drivers.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-11Mark places that need to be refactored with // PORTME:Matthias Melcher
Searching for __APPLE, WIN32 or X11 did give me many false results. I instead marked most ifdef's that I would like to get rid of with the text // PORTME:, so they can be easily found by a global search. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-03Updated platform specific #if's to report unimplemented code when compiling ↵Matthias Melcher
with FL_PORTING defined and WIN32 and __APPLE__ undefined> git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-28Update the default word detection to stop for /\&Lauri Kasanen
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10402 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-27Fix documentation of Fl_Input_::word_start() and word_end().Albrecht Schlosser
Documentation changes in svn r10383 (STR #3014) said that this would skip "space-separated" words, which is not true. Note: The set of word separators is currently not documented, it is inconsistent with Fl_Text_Display/Fl_Text_Editor, and not UTF-8-aware. Also, word selection and the above methods use different word delimiters. This should be fixed in a later release (after 1.3.3). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10394 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-16Fix word select dragging bug in text input (STR #3014).Albrecht Schlosser
Thanks to Evan Laforge for spotting this and supplying a patch. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10383 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-08Mac OS text input: removed the Fl::marked_text_length() function that's not ↵Manolo Gouy
necessary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-13Mac OS: added support for the text input feature introduced in OS 10.7 ↵Manolo Gouy
"Lion" where pressing and holding some key opens a window with possible accented characters. This feature is used by the Fl_Input_ and Fl_Text_Editor widgets. User-defined text input widgets can optionally use this feature, but the default behavior is to not use it. Fl_Secret_Input turns it off, for example. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-24Mac OS text input: defined a small API that user-defined text editing ↵Manolo Gouy
widgets can use to signal marked text. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-19Mac OS text input: marked text is now underlined.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05fix a typo and indenting.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05Fixed build error in msvs because Fl ref to FULLSCREEN enum was not ↵Fabien Costantini
accessible in Fl_Widget. new inline is_fullscreen() getter has been implemented to avoid a build error with (at least) msvc compilers. Fixed a ton of warnings / problems when bilding on windows 64 bits target with ms toolchain. cleaned up about 200 warnings raised when building win74 targets. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-06Fixed Fl_Input_::maximum_size() documentation and Fl_Input::replace()Albrecht Schlosser
to honor maximum_size() as number of allowed characters (STR #2747). This was a hangover from FLTK 1.1, where the number of bytes was equal to the number of characters. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28STR 2684: increased right margin in Fl_Input_ so that a cursor at the end of ↵Matthias Melcher
a line would always be fully visible. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9068 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-02-11Fix STR #2560: use bullet instead of asterisk to hide secret input.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20Added new tab_nav() control for Fl_Multiline_Input tab navigation behavior.Greg Ercolano
New default behavior is what most users expect; hitting Tab navigates over the widget. Fl_Input modified to support the new flag. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-18Fix STR #2486: cursor position was wrong in some tab-containing wrapped lines.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8052 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-10-28Fixed a bunch of warnings from gcc 4.4.5 . Most of these are parenthesis ↵Matthias Melcher
missing to make the precedence of && over || obvious. Ah well, why not... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-10Updated the Fluid IDE support for the current source file structure. Changed ↵Matthias Melcher
the Fl_Tree rendering code around a bit to make the tree more like MSWindows on Windows and more like Apple on Apple machines. I hope you guys like it. I also moved the function to load Fl_Preferences into an Fl_Tree into the Fl_Tree class where it belongs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-07Removed typedef that simply renamed char* to Fl_String, as discussed in the ↵Matthias Melcher
mailing list. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6955 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-19Fl_Input_: improved draing and warping for large fontsMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121