summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
AgeCommit message (Collapse)Author
2019-02-01Additional fix for STR #2531Matthias Melcher
Wiggeling characters in Fl_Text_Display due to advanced kerning.
2019-02-01STR 2531: Fl_Text_Display no longer wiggles.Matthias Melcher
On MacOS and other systems that support kerning, dragging a selection over text would make the text to the right of the selection jump in x by a fraction of a pixel. The new code makes sure that the text stays rock solid.
2019-01-17Android CMake: icons, docs, more appsMatthias 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-06-21Android: on-screen keyboard no longer pops up on text output widgetsMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18Fix Fl_Text_Editor overstrike mode (STR #3463).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-31Replace FL/x.H with FL/platform.H - step 2 (STR #3435).Albrecht Schlosser
This second step replaces FL/x.H with FL/platform.H in all source files. Dependencies have been adjusted as well. This commit completes the replacement of FL/x.H with FL/platform.H. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-23Fixes issued raised in STR #3422; Fl_Text_Display constructor order issues;Greg Ercolano
organize member initialization first, method calls last. Also: Reorg'ed member initialization to match order in .H to detect missing member inits. Noticed member mModifyingTabDistance is unused. Tagged with XXX: but left in place, since it's a protected member, and might be utilized by user code. We should probably remove this member. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-05Fix drawing of tab characters when display is rescaled.Manolo Gouy
The problem is announced in comment #99 of http://www.fltk.org/str.php?L3320 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-02Addresses STR# 3423; adds missing scrollbar_size() methods and honors global ↵Greg Ercolano
Fl::scrollbar_size(). Includes mods to unittest's scrollbar size test. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-28Solves STR# 2682, Albrecht's comment #13. Applied slightly modified version ofGreg Ercolano
chris's test_02.diff patch (comment #19). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-27STR #3395: Revisions as per chris's comment #4.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-26Solves STR#3395.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-25Fix scrollbar issue of Fl_Text_Display (STR #3412).Albrecht Schlosser
This fix disables a part of the optimization introduced in svn r11208 (STR #3272). For more information see comments in STR #3412. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-21Revert accidentally committed part of r12511 (STR #2788).Albrecht Schlosser
r12511: "Addresses STR #2788 for cursor positioning with mouse-click ..." The here reverted part was the proposed patch of STR #3412: "Fl_Text_Display scroll bug (style table with font != textsize() + wrap)". See patch file: http://www.fltk.org/strfiles/3412/quickfix.patch git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-18Addresses STR #2788 for cursor positioning with mouse-click on different ↵Greg Ercolano
sides of character. Applying guyben's patch (with small mods suggested by albrecht & greg in comments 7-11). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-04Fix line number alignment in Fl_Text_Display/Editor (STR #3363).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-01Fl_Text_Display documentation updates.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-17Handle non-ASCII characters when selecting a word or moving the cursor by ↵Manolo Gouy
one word. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12149 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-05Fl_Text_Display documentation clarifications.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12135 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-01Bringing over fix [r12000] from 1.3 current to the porting branch.Greg Ercolano
Applying my suggested patch to solve immediate issues with STR #3231. Probably more needs to be done (see STR), but at least solves the immediate issues. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12001 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-04-24Remove FL_ABI_VERSION directivesManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-01Complete removal of platform-dependent code from Fl_Text_Display.cxxManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-01Begin to remove platform-specific code from Fl_Text_Display.cxxManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31Move dnd and character-composition related functions from Fl_System_Driver ↵Manolo Gouy
to Fl_Screen_Driver git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11489 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-03-28Rewrite Fl_dnd.cxx under the driver model.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26Isolate the definition of the 3 public, OS-dependent types (Fl_Offscreen, ↵Manolo Gouy
Fl_Region, Fl_Bitmask). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11432 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
2016-02-22Fix unused variable compiler warning.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-22Fix Fl_Text_Display line numbers and scrolling (STR #3272).Albrecht Schlosser
Fix slow scrolling, line number display, and scrollbars (STR #3272). Optimized wrap mode - removed unnecessary wrap margin calculations. The speed-up is significant, but there is still room for improvements. Refactored parts of the code to make the decisions more modular and (hopefully) obvious. This commit also fixes some positioning issues with different scrollbar alignments and the new line number display. Fix line number display with wrap mode (hiding text behind scrollbars). Note: same changes as r11202 and r11205 in branch-1.3. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11208 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
2015-07-21Selected text is now displayed using a color that contrasts with the ↵Manolo Gouy
background color (This commit is in the interest of allowing the release of FLTK 1.3.4 not to be delayed). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-17Remove unnecessary include file (STR #3133).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-14Fixes STR #3219, deactivate colors issue with Fl_Text_Display/Editor.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-13Fix problem with fl_contrast() affecting text color unnecessarilyGreg Ercolano
when drawing normal (unselected) text. (See thread on fltk.coredev started 04/07/2015, "RFC: Fl_Text_Display style buffer color weirdness") git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-03Fix uninitialized variable compiler warning (part of STR #2813).Albrecht Schlosser
Thanks to Csaba for finding this and providing a patch. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-28Stop using dynamic_cast when performing text drag (Mac OS only).Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-30Update copyright and CHANGES.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10416 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-30Fix out-of-bounds memory access in Fl_Text_Display (STR #2730).Albrecht Schlosser
This bug would only show up in wrap mode. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10415 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-28Added missing #if FLTK_ABI_VERSION >= 10303, that prevented ABI-preserving ↵Manolo Gouy
compilation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-27Explicitly document NULL is not a valid argument for ↵Greg Ercolano
Fl_Text_Display::linenumber_format(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10397 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-27Internally manage alloc'ed copy of linenumber_format().Greg Ercolano
(As per Alrecht's comment #9 in STR #2621) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10396 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-06Adding some parameter docs.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-21Removed unused variable last_y to prevent this warning under mingw:Greg Ercolano
Compiling Fl_Text_Display.cxx... Fl_Text_Display.cxx: In member function 'void Fl_Text_Display::draw_line_numbers(bool)': Fl_Text_Display.cxx:2875:9: warning: variable 'last_y' set but not used [-Wunused-but-set-variable] git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-21Implements STR #2621: Add line numbers to Fl_Text_Display.Greg Ercolano
Applied LZA's patch and included some mods to address TODO items and ABI issues. Also update CREDITS with LZA and a few other notably absent names. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10152 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