summaryrefslogtreecommitdiffstats
path: root/library/text.tcl
Commit message (Collapse)AuthorAgeFilesLines
* Fix [720879afe9] - WM_CHAR message handling. Patch from Christian Werner ↵jan.nijtmans2016-09-271-4/+4
|\ | | | | | | backported from http://www.androwish.org/index.html/info/a0da5845594cec28
* | Added comments justifying why we can rely on finding all the needed marks ↵fvogel2016-07-071-0/+13
| | | | | | | | still in the text widget at the time they are transformed into indices.
* | Better comments explaining the algorithm in ::tk::TextUndoRedoProcessMarksfvogel2016-07-051-7/+23
| |
* | Return indices making sense at undo/redo return time. The returned ranges ↵fvogel2016-07-041-0/+67
|/ | | | are optimized (no duplicates, no overlapping ranges). Works but needs polishing.
* Fixed bug [1669632fff] - text widget: autoseparator placement, <Control-1> ↵fvogel2015-10-091-0/+40
|\ | | | | | | cleanup
| * Fixed bug [1669632fff] cases (ii) and (iii) - Tolerate a shaky hand using ↵bug_1669632ffffvogel2015-10-041-0/+4
| | | | | | | | the mouse
| * Fixed bug [1669632fff] case (vi) - <<Cut>> is atomicfvogel2015-10-041-0/+9
| |
| * Fixed bug [1669632fff] case (v) - <<Clear>> is atomicfvogel2015-10-041-0/+8
| |
| * Added forgotten comment for case (iv)fvogel2015-10-041-0/+2
| |
| * Added forgotten comment for case (i)fvogel2015-10-041-0/+2
| |
| * Fixed bug [1669632fff] case (vii) - <<Undo>> shall not remove separatorsfvogel2015-10-041-0/+9
| |
| * Fixed bug [1669632fff] case (iv) - autoseparator was missing on ↵fvogel2015-10-031-0/+3
| | | | | | | | <Control-backslash>
| * Fixed bug [1669632fff] case (i) - autoseparator was missing on <Control-1>fvogel2015-10-031-0/+3
| |
* | Remove various unnecessary "global tcl_platform" occurrences, which are no ↵jan.nijtmans2015-08-051-2/+0
| | | | | | | | | | longer used. Add "Fit To Screen Width" menu entry to Windows (and android) console menu. Ported from androwish.
* | [Bug 3600251]: Inappropriate replacement of Mac binding.jan.nijtmans2013-01-101-1/+1
| |
* | define two more virtual bindings, and correct various Macjan.nijtmans2012-08-101-2/+2
| | | | | | | | bindings according to Apple OSX documentation. Doc updated as well
* | 8 new virtual events (doc not updated yet)jan.nijtmans2012-08-091-40/+8
| |
* | [Bug 3555644]: Better use of virtual events.jan.nijtmans2012-08-091-23/+1
| |
* | [Bug 3534137]: $tcl_platform(platform) != [tk windowingsystem]jan.nijtmans2012-06-101-2/+2
|\ \ | |/
| * [Bug 3534137]: $tcl_platform(platform) != [tk windowingsystem]jan.nijtmans2012-06-101-2/+2
| |\
| | * [Bug 3534137]: $tcl_platform(platform) != [tk windowingsystem]jan.nijtmans2012-06-101-3/+3
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * macosx/tkMacOSXColor.c (TkSetMacColor, TkpGetColor): use AppearanceMgrdas2006-09-101-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDefault.h: to retrieve platform std colors for text * macosx/tkMacOSXPort.h: selections, add "systemHighlightSecondary" color name for standard color of inactive selections. * library/text.tcl (aqua): change focus bindings to implement platform standard look for inactive text selections using this new color. * generic/tkTextBTree.c (TkTextIsElided): on TkAqua, don't show text * generic/tkTextDisp.c (GetStyle): selection when text widget * generic/tkText.c (TextEventProc): is in disabled state. * generic/tkEntry.c (DisplayEntry): change default TkAqua selection * macosx/tkMacOSXDefault.h: relief to "flat" (platform std). * generic/tkText.c (Tk_TextCmd): fix bug leading to default text selection relief string DEF_TEXT_SELECT_RELIEF being ignored. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): allow mouse event delivery to background windows with kWindowNoActivatesAttribute (e.g. overrideredirect windows), as these never come to the foreground they would not receive any mouse events otherwise. [Bug 1472624] * macosx/tkMacOSXWindowEvent.c (TkMacOSXGenerateFocusEvent): do not send focus events to any windows with kWindowNoActivatesAttribute. * macosx/tkMacOSXXStubs.c (XQueryColor, XQueryColors): implement basic XColor computation from pixel values, enough to make tkImg's window.c happy, fixes img::window failures reported on tcl-mac. * macosx/tkMacOSXMenu.c (DrawMenuEntryLabel): fix leak. [Bug 1554672] * macosx/Makefile: workaround bug in 'cp -pRH' on Darwin 6 and earlier, fixes 'make embedded' failure reported on tcl-mac; fix error from 'make deploy' with same build tree as previous 'make embedded'. * macosx/tkMacOSXEntry.c (TkpDrawEntryBorderAndFocus): fix typo. * unix/tcl.m4: sync with tcl/unix/tcl.m4.
| | * * library/bgerror.tcl: Updates to use Tcl 8.4 features. [Patch ↵dgp2006-01-251-20/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1237759] * library/button.tcl: * library/choosedir.tcl: * library/clrpick.tcl: * library/comdlg.tcl: * library/console.tcl: * library/dialog.tcl: * library/entry.tcl: * library/focus.tcl: * library/listbox.tcl: * library/menu.tcl: * library/msgbox.tcl: * library/palette.tcl: * library/panedwindow.tcl: * library/safetk.tcl: * library/scale.tcl: * library/scrlbar.tcl: * library/spinbox.tcl: * library/tearoff.tcl: * library/text.tcl: * library/tk.tcl: * library/tkfbox.tcl: * library/xmfbox.tcl:
| | * * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): check ifdas2005-09-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | process is in front on MouseDown, otherwise request process activation from BringWindowForward() via new isFrontProcess param. * macosx/tkMacOSXCarbonEvents.c (TkMacOSXInitCarbonEvents): register our event handler on the dispatcher target for all carbon events of interest to TkAqua; this replaces event processing directly from the event queue and thus allows to capture events that are syntesized by Carbon and sent directly to the dispatcher and not to the event queue. * macosx/tkMacOSXEvent.c: remove TkMacOSXCountAndProcessMacEvents(), rename ReceiveAndProcessEvent() to TkMacOSXReceiveAndProcessEvent(). (TkMacOSXReceiveAndProcessEvent): remove tk event processing before sending events to the dispatcher, all events of interest are now processed in our dispatcher target event handler. * macosx/tkMacOSXNotify.c (CarbonEventsCheckProc): dispatch events directly via TkMacOSXReceiveAndProcessEvent(), but dispatch no more than four carbon events at one time to avoid starving other event sources. * macosx/tkMacOSXEvent.c: formatting cleanup, move XSync() to XStubs, * macosx/tkMacOSXEvent.h: removed obsolete kEventClassWish handling. * macosx/tkMacOSXXStubs.c * macosx/tkMacOSXButton.c: conditionalize all debug message printing to * macosx/tkMacOSXCursor.c: stderr via TK_MAC_DEBUG define. * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXDialog.c: * macosx/tkMacOSXEvent.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMenubutton.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.c: * unix/configure.in: define TK_MAC_DEBUG on aqua when symbols enabled. * unix/configure: autoconf-2.13 * library/listbox.tcl: corrected comments. * library/text.tcl: * xlib/xcolors.c: fixed warning
| | * backport of text widget bug fixvincentdarley2005-05-131-2/+2
| | |
| | * * library/text.tcl (::tk::TextUpDownLine): revert 2004-11-23 as itcore_8_4_9hobbs2004-12-061-35/+8
| | | | | | | | | | | | prevented scrolling to bottom.
| | * fix to movement up/down in text widget by display linesvincentdarley2004-11-231-8/+35
| | |
| | * * library/text.tcl (::tk::TextTranspose): Ensure that Transpose ishobbs2004-08-261-11/+21
| | | | | | | | | | | | an atomic op to undo. Replace 'string compare' with 'ne'.
| | * * macosx/tkMacOSXMouseEvent.c: fixed modifiers for MouseWheel events.das2004-02-171-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/listbox.tcl: * library/text.tcl: * library/scrlbar.tcl: on Mac OS, add bindings for MouseWheel with modifiers, according to platform convention: Option increases scrolling speed 10 fold; Space scrolls horizontally. * macosx/Wish.pbproj/project.pbxproj: * macosx/tkAboutDlg.r: changed year in copyright strings to 2004.
| | * This gets the scroll wheel working for listboxes and text widgets for Mac OSwolfsuit2004-02-161-3/+10
| | | | | | | | | | | | | | | | | | X. It also changes the model to route scrollwheel events to the window under the pointer, not the focus window on X (and only on X). That is the correct behavior for Mac OS X.
| * | * library/text.tcl (TextCursorInSelection): [Patch 2585265]: Backportdkf2010-08-121-24/+31
| | | | | | | | | | | | | | | of factoring-out of decision logic for whether to delete the selected text.
| * | Fix [Bug 1854913] by improving the class bindings.dkf2009-10-251-9/+11
| | |
| * | backported fix for bug #1777362 to make events work for windows with hyphens ↵patthoyts2008-11-121-36/+52
| | | | | | | | | | | | in the path
* | | * library/text.tcl (TextCursorInSelection): [Patch 2585265]: Make itdkf2010-06-151-13/+25
| | | | | | | | | | | | | | | | | | so that pressing delete or backspace when the primary selection does not include the insertion cursor does not cause the deletion of the inserted text.
* | | Centralize the definitions of what keys do particular types of left and rightdkf2010-01-061-13/+13
| | | | | | | | | | | | movements in entries and text widgets. They vary between platforms!
* | | Fix [Bug 1854913] by improving the class bindings.dkf2009-10-251-9/+11
| | |
* | | Corrected mouse-wheel bindings for widgets. Now Shift-wheel always scrolls thedkf2008-12-281-1/+18
| | | | | | | | | | | | text widget horizontally on all platforms.
* | | bug #1777362 - handle windows with funky names by avoiding use of thepatthoyts2008-11-121-36/+52
|/ / | | | | | | window path for anchors.
* | * macosx/tkMacOSXColor.c (TkSetMacColor, TkpGetColor): use AppearanceMgrdas2006-09-101-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDefault.h: to retrieve platform std colors for text * macosx/tkMacOSXPort.h: selections, add "systemHighlightSecondary" color name for standard color of inactive selections, use this color as default for text widget -inactiveselectbackground to implement platform standard look for inactive text selections. * library/text.tcl (aqua): remove focus bindings to set selection color. * generic/tkTextBTree.c (TkTextIsElided): on TkAqua, don't show inactive * generic/tkTextDisp.c (GetStyle): text selection when text widget is in disabled state. * generic/tkEntry.c (DisplayEntry): change default TkAqua selection * macosx/tkMacOSXDefault.h: relief to "flat" (platform std). * generic/tkText.c (CreateWidget): fix bug leading to default text selection relief string DEF_TEXT_SELECT_RELIEF being ignored. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): allow mouse event delivery to background windows with kWindowNoActivatesAttribute (e.g. overrideredirect windows), as these never come to the foreground they would not receive any mouse events otherwise. [Bug 1472624] * macosx/tkMacOSXWindowEvent.c (TkMacOSXGenerateFocusEvent): do not send focus events to any windows with kWindowNoActivatesAttribute. * macosx/tkMacOSXXStubs.c (XQueryColor, XQueryColors): implement basic XColor computation from pixel values, enough to make tkImg's window.c happy, fixes img::window failures reported on tcl-mac. * macosx/tkMacOSXMenu.c (DrawMenuEntryLabel): fix leak. [Bug 1554672] * macosx/GNUmakefile: workaround bug in 'cp -pRH' on Darwin 6 and earlier, fixes 'make embedded' failure reported on tcl-mac; fix error from 'make deploy' with same build tree as previous 'make embedded'. * macosx/Wish.xcodeproj/project.pbxproj: add new tclUnixCompat.c file. * macosx/tkMacOSXEntry.c (TkpDrawEntryBorderAndFocus): fix typo. * unix/tcl.m4: sync with tcl/unix/tcl.m4. * unix/configure: autoconf-2.59
* | * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): check ifdas2005-09-101-20/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | process is in front on MouseDown, otherwise request process activation from BringWindowForward() via new isFrontProcess param. * macosx/tkMacOSXCarbonEvents.c (TkMacOSXInitCarbonEvents): register our event handler on the dispatcher target for all carbon events of interest to TkAqua; this replaces event processing directly from the event queue and thus allows to capture events that are syntesized by Carbon and sent directly to the dispatcher and not to the event queue. * macosx/tkMacOSXEvent.c: remove TkMacOSXCountAndProcessMacEvents(), rename ReceiveAndProcessEvent() to TkMacOSXReceiveAndProcessEvent(). (TkMacOSXReceiveAndProcessEvent): remove tk event processing before sending events to the dispatcher, all events of interest are now processed in our dispatcher target event handler. * macosx/tkMacOSXNotify.c (CarbonEventsCheckProc): dispatch events directly via TkMacOSXReceiveAndProcessEvent(), but dispatch no more than four carbon events at one time to avoid starving other event sources. * macosx/tkMacOSXEvent.c: formatting cleanup, move XSync() to XStubs, * macosx/tkMacOSXEvent.h: removed obsolete kEventClassWish handling. * macosx/tkMacOSXXStubs.c * macosx/tkMacOSXEvent.h: declare macosx internal procs as MODULE_SCOPE. * macosx/tkMacOSXEvent.c: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXButton.c: conditionalize all debug message printing to * macosx/tkMacOSXCursor.c: stderr via TK_MAC_DEBUG define. * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXDialog.c: * macosx/tkMacOSXEvent.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMenubutton.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.c: * unix/configure.in: define TK_MAC_DEBUG on aqua when symbols enabled. * unix/configure: autoconf-2.59 * unix/tkConfig.h.in: autoheader-2.59 * library/listbox.tcl: synced aqua MouseWheel bindings with * library/scrlbar.tcl: core-8-4-branch. * library/text.tcl: * xlib/xcolors.c: fixed warning
* | Very minor whitespace fixesdkf2005-07-261-7/+7
| |
* | Assorted cleaning up relating to [Patch 1237759]dkf2005-07-211-57/+70
| |
* | fix to two text widget bugsvincentdarley2005-05-131-2/+2
| |
* | fix to Home/End and display linesvincentdarley2005-04-181-9/+9
| |
* | remove debug codevincentdarley2004-10-181-2/+1
| |
* | fix to mousewheel scrollingvincentdarley2004-09-241-2/+13
| |
* | text widget 'peer' subcommand -- TIP#169 implementationvincentdarley2004-09-101-36/+41
| |