summaryrefslogtreecommitdiffstats
path: root/library
Commit message (Collapse)AuthorAgeFilesLines
* * library/demos/cscroll.tcl: add MouseWheel bindings for aqua.das2005-12-131-1/+15
| | | | | | | | | | | | | * macosx/tkMacOSXCarbonEvents.c (TkMacOSXInitCarbonEvents): * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent, GenerateMouseWheelEvent): add support for kEventMouseScroll events (smooth mouse wheel scrolling from mighty mouse or scrolling trackpad) by handling kEventMouseWheelMoved on application target as well as on dispatcher, in order to pick up synthesized MouseWheel events from HIObject handler (c.f. QA1453); add support for horizontal scrolling events by generating MouseWheel XEvent with Shift modifier. FossilOrigin-Name: e13a9e411db0d002287376eb0fc0bf04f0b9afb1
* * library/console.tcl (::tk::ConsoleInit): improve work-around tohobbs2005-11-301-2/+4
| | | | | | avoid '% ' from tclMain.c [Bug 1252259] FossilOrigin-Name: dfe77e0f0a3bf905ce5662ab9237ee91f9871544
* Fix bits that (should, and now do) refer to tk::IconList_CurSelectiondkf2005-11-253-6/+6
| | | FossilOrigin-Name: edc9d84743a3f078693245a1b05bf234e1960c55
* Bits and pieces relating to [Bug 600313]dkf2005-11-221-18/+7
| | | FossilOrigin-Name: 9c53ad94b373a9561219b3cf940577c6ac989478
* Fix [Bug 1335485]dkf2005-11-221-27/+31
| | | FossilOrigin-Name: 9cfa237253f256a2104f4a92495a9ab1355012b8
* bgerror dialog: Truncate error messages at 45 charactersjenglish2005-11-151-6/+7
| | | | | | instead of 30 [#1224235]. FossilOrigin-Name: 5f256ce2c0d3b0a088007b9fb7750f76f2561460
* * library/menu.tcl (::tk::MenuUnpost): remove leftover ] fromhobbs2005-10-161-2/+2
| | | | | | string equal mods of 2005-07-25. (sowadsky) FossilOrigin-Name: e7b9feb310523aabf0a0fb4de8ab50f335d74c7b
* * library/dialog.tcl (::tk_dialog): add tkwait visibility beforehobbs2005-10-051-2/+4
| | | | | | grab. [Bug 1216775] FossilOrigin-Name: 2accaed23b8019511c7ce0b039eda6da60e7843b
* Spelling mistake in el.msg [Bug #1305708]bagnonm2005-10-031-1/+1
| | | FossilOrigin-Name: 690e14beb4519010598044fefdedd1b38484ee74
* * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): check ifdas2005-09-103-27/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 FossilOrigin-Name: 2d5bab5246ad71fa16a0d6879b811ba0b6c84593
* * macosx/tkMacOSXCarbonEvents.c (AppEventHandlerProc): handle carbondas2005-08-092-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | events sent directly to application event target via the general TkMacOSXProcessEvent() in the same way as events posted to the event loop. Moved existing app event handlers to tkMacOSXWindowEvent.c. (TkMacOSXInitCarbonEvents): register our application event handler for kEventWindowExpanded events to deal with uncollapsing from the dock. * macosx/tkMacOSXEvent.h: made TkMacOSXProcessEvent() non-static, added * macosx/tkMacOSXEvent.c: new interp field to TkMacOSXEvent struct for use by app event handler. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): retrieve current window, partCode, modifiers and local cursor position from carbon mouse event if possible. Use new static GenerateButtonEvent() taking a MouseEventData struct instead of TkGenerateButtonEvent() to avoid recomputing already known values. Move process activation on MouseDown into BringWindowForward() to allow clicking on window titlebar widgets without activating process. Move code dealing with clicks in window titelbar into separate function HandleWindowTitlebarMouseDown() to avoid code duplication. Avoid repeated calls to TkMacOSXGetXWindow() by storing result in MouseEventData struct. (TkMacOSXButtonKeyState, XQueryPointer): try to get button and modifier state from currently processed carbon event (to avoid unnecessary IPC with the window server), otherwise use modern carbon API to get this info instead of Button() and GetKeys(); only retrieve info caller asks for (via non-NULL ptr passed to XQueryPointer). (ButtonModifiers2State): new static function converting carbon button and modifier state into tk state, allows detection of more than 3 mouse buttons (tk supports up to 5) and of NumLock and Fn modifier keys (NumLock is mapped to Mod3 and Fn to Mod4). * macosx/tkMacOSXWindowEvent.c (TkMacOSXProcessApplicationEvent): handle kEventWindowExpanded event to deal with window uncollapsing from the dock by generating tk Map event, handle kEventAppHidden and kEventAppShown events (moved here from tkMacOSXCarbonEvents.c). * macosx/tkMacOSXSubwindows.c (XUnmapWindow): only hide window when it is not iconified to avoid window flashing on collapse. * macosx/tkMacOSXWm.c: replaced Tk_DoWhenIdle() by Tcl_DoWhenIdle(). (TkMacOSXZoomToplevel): remove call to TrackBox(), now done in HandleWindowTitlebarMouseDown() in tkMacOSXMouseEvent.c. (TkpWmSetState): avoid window flashing on collapse by unmapping after calling CollapseWindow(); only uncollapse window if it is collapsed. * generic/tkInt.decls: changed TkMacOSXZoomToplevel() signature. * generic/tkIntPlatDecls.h: * macosx/tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): only call GetMenuItemCommandID() on KeyDown or KeyRepeat events. * macosx/tkMacOSXMenu.c (ReconfigureMacintoshMenu): remove call to obsolete AppendResMenu() API. * macosx/tkMacOSXKeyEvent.c: replaced all direct uses of expensive * macosx/tkMacOSXMenu.c: GetMouse() and TkMacOSXButtonKeyState() * macosx/tkMacOSXMenus.c: APIs by calls to XQueryPointer() * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXScrlbr.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDialog.c: replaced use of FrontNonFloatingWindow() * macosx/tkMacOSXKeyEvent.c: by ActiveNonFloatingWindow() as * macosx/tkMacOSXMenu.c: recommended by Carbon docs. * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDialog.c: fixed warnings * macosx/tkMacOSXTest.c: * macosx/tkMacOSXCarbonEvents.c: added CVS Id line to file header. * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXEvent.h: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.h: * macosx/tkMacOSXInt.h: declare macosx internal procs as MODULE_SCOPE. * macosx/tkMacOSXCarbonEvents.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXHLEvents.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXWindowEvent.c * library/bgerror.tcl: sync with core-8-4-branch changes of 2005-07-28. * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXMouseEvent.c: * generic/tkFrame.c: sync with core-8-4-branch changes of 2005-07-27. * generic/tkIntDecls.h: * generic/tkStubInit.c: * generic/tkFrame.c: * win/tkWinDraw.c: * unix/tkUnixDraw.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXInt.h: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXButton.c: sync with core-8-4-branch. * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXScale.c: * library/demos/menu.tcl: removed errant '}'. FossilOrigin-Name: 10965e80cdea5787c1f0c1189cd4b3239d4010eb
* Very minor whitespace fixesdkf2005-07-261-7/+7
| | | FossilOrigin-Name: 773001915229dcca76305249715882d042674552
* typo fixdgp2005-07-251-2/+2
| | | FossilOrigin-Name: 31e0110505aa3d65b31594c0ce7a1a5693918a2c
* Apply some of the changes suggested in [Patch 1237759]dkf2005-07-2519-492/+495
| | | FossilOrigin-Name: f4f7febb1fd0d382ec64762edd93acd98eedff6f
* Assorted cleaning up relating to [Patch 1237759]dkf2005-07-211-57/+70
| | | FossilOrigin-Name: 600dd1baa3d2f7cb47600544cf2f7412b4a3233f
* more elaborate variant to get first prompt displayed without a puts callhobbs2005-05-311-2/+14
| | | FossilOrigin-Name: 01d021c63897e2cfdf4408cc9a6b69d8ce92d03b
* * library/console.tcl (::tk::ConsoleInit): print out first prompthobbs2005-05-301-1/+7
| | | | | | and swallow the extra "% " that comes once from Tcl on Windows. FossilOrigin-Name: 0dd38a012e3cdcff47757caf41b5444efb7d5e4d
* change tk_popup to have sticky menustmh2005-05-271-2/+5
| | | FossilOrigin-Name: 43d515082482ed46ed6b97a5c62ca5118bd326db
* fix to two text widget bugsvincentdarley2005-05-131-2/+2
| | | FossilOrigin-Name: d5f52ddad69902c0063dd69bee04ca569a8b2501
* fix to Home/End and display linesvincentdarley2005-04-181-9/+9
| | | FossilOrigin-Name: 503637c737c55f17d41befd508f32ff987f96281
* * library/tkfbox.tcl (::tk::dialog::file::): fix typeMenuLab ref.hobbs2005-04-122-14/+53
| | | | | | | | | | Add undoc'd ::tk::dialog::file::showHiddenBtn var (default 0) that will add a "Show Hidden" checkbutton to tk_get*File and tk_chooseDirectory if set to true. * library/choosedir.tcl (::tk::dialog::file::chooseDir::): fix cancelBtn ref, add hiddenBtn ref for "Show Hidden" button. FossilOrigin-Name: 73207379889b7e26cb78211dd3e51968d2ac7751
* * library/comdlg.tcl: Added Macintosh file type validation todgp2005-04-051-1/+10
| | | | | | [::tk::FDGetFileTypes]. [Bug 1083878] (Thanks, Vince Darley) FossilOrigin-Name: 7058b664fdbf89af6a942bcdff661029c7ab9c38
* * library/panedwindow.tcl (::tk::panedwindow::Cursor): checkhobbs2005-02-121-2/+3
| | | | | | window existence on delayed call. [Bug 949792] FossilOrigin-Name: 2117577eec4a384dc663d948d6397d96260802a8
* Forgot newline at enddkf2005-01-311-1/+1
| | | FossilOrigin-Name: 0a6de1b934592ec2d59ef6ff7db26edd1cb940d7
* Add es_ES-specific localization. [Bug 1111213]dkf2005-01-311-0/+5
| | | FossilOrigin-Name: 47521c0c88066ccc4ac574d281375d375f50c76d
* Fixed dialog parenting problem described by Keith Nash. Also tidied up callbacksdkf2005-01-181-15/+17
| | | FossilOrigin-Name: f936eea21b6a4827861f6c0e541e3bb34f5cabd6
* More fixing of [Bug 600313]dkf2005-01-131-18/+24
| | | FossilOrigin-Name: 01c356f03bed261b8fd0be3aaf5f2b964581a95d
* Partial fix of [Bug 600313]dkf2005-01-131-9/+13
| | | FossilOrigin-Name: 656805097824fb9fda0422b12ebeba6fcb6cc7c5
* Coding style improvements for the widget demo. [FRQ 815118]dkf2004-12-2144-45/+131
| | | FossilOrigin-Name: c58c953e7667428b304fd82196496662a1e3d4d9
* * library/console.tcl (::tk::console::ExpandVariable): correcthobbs2004-11-171-2/+2
| | | | | | array keyname expansion. [Bug 1004508] (bold) FossilOrigin-Name: fad5897651e83ec8fa3710eefc55c54716f1309b
* * library/msgs/it.msg: Updated Italian message catalog.dgp2004-11-161-6/+6
| | | | | | Thanks to Roberto Ugoccioni [Bug 1063675]. FossilOrigin-Name: c6ffe7469389ad5b1bcbcb7aa9b952e2b5d1d79f
* Added Keith Vetter's tkGoldberg as an animation demo. Thanks Keith!dkf2004-11-082-1/+1736
| | | FossilOrigin-Name: 5990fa31ebf96dc59ef1c76503a1c828a0736140
* More animation demosdkf2004-11-073-1/+301
| | | FossilOrigin-Name: 33fceda03be78db63f351716602b8cc0ba6c0229
* Added a demo of simple animation to the widget tour.dkf2004-11-072-1/+164
| | | FossilOrigin-Name: 7e4b17b3d5859ddd2ecd065fa7e7d030731838bf
* TIP #204 "Virtual Events for Keyboard Traversal" (patch #976928)jenglish2004-10-193-9/+21
| | | FossilOrigin-Name: 50bf19de6f62a638e0611a2b0e82bc676d080c8f
* Rename all XBM format files to be called *.xbm instead of *.bmp [Bug 733835]dkf2004-10-1913-27/+27
| | | FossilOrigin-Name: 243c90c3032541d1a6b9bb85b39e3a65793906fc
* remove debug codevincentdarley2004-10-181-2/+1
| | | FossilOrigin-Name: fb5c00f1bdbfc0164018f280125dbef2b2a8f38e
* updated as of en.msg 1.14bagnonm2004-10-111-17/+21
| | | FossilOrigin-Name: 1b45edf873633c8b72a1023cb0b1f7c467d7a20e
* Swedish message catalog from Mats Bengtsson.bagnonm2004-10-111-0/+74
| | | FossilOrigin-Name: 2d3ca51d86ed30372b850f1c14d23d101cbf3293
* fix to mousewheel scrollingvincentdarley2004-09-241-2/+13
| | | FossilOrigin-Name: 8c2252a5659b4747606eebdba77b76a9ad32955a
* Make sure the state is correctly reset on dialog startup. [Bug 845189]dkf2004-09-101-1/+2
| | | FossilOrigin-Name: 8f1066e2ae46f292ac3e7b71709326b6498d33a4
* Prevent tk_strictMotif poisoning of the Widget demo [Bug 1013942]dkf2004-09-101-2/+6
| | | FossilOrigin-Name: ce3ce0656c7df14c5c83262451b92a6ef2f711da
* text widget 'peer' subcommand -- TIP#169 implementationvincentdarley2004-09-103-56/+123
| | | FossilOrigin-Name: 24c87e87ffd71144101ff6cab47226828e813d38
* * library/tkfbox.tcl (::tk::dialog::file::Create): use labelhobbs2004-09-061-15/+3
| | | | | | | instead of button for "File of type", as it properly handles -state disabled now. FossilOrigin-Name: faa3819692e66072b2339c65f90e1804ab48c0c8
* * library/text.tcl (::tk::TextTranspose): Ensure that Transpose ishobbs2004-08-261-1/+11
| | | | | | an atomic op to undo. FossilOrigin-Name: c1800ea3d43df6e4664219fbd52c256ee23fc928
* Don't add the default extension to env-var referencesdkf2004-08-111-2/+5
| | | FossilOrigin-Name: bc161ee18a7aff4bbaf56395864c0ed8f3dc9993
* More fixing of [Bug 987169] and simple support for [FRQ 979101]dkf2004-08-112-8/+26
| | | FossilOrigin-Name: 595dd0d3fc2f014355adb1d72c8d2c2b79b9e3c9
* Fix [Bug 987169] for tk_messageBox and tk_chooseColordkf2004-08-052-89/+101
| | | FossilOrigin-Name: a093deecc78b7f71eecc967518cea14e9fb5a40a
* * library/tkfbox.tcl (::tk::dialog::file::Update): use -directoryhobbs2004-07-221-6/+7
| | | | | | | | [pwd] (instead of .) to get around some VFS edge case bugs. Correct args passes to tk_messageBox when failing to cd. Add -force back to namespace import of msgcat. FossilOrigin-Name: d3bfef422e43c16c832cd70d6b8862b19393790e
* * library/tkfbox.tcl: Corrected coding errors in most recent change.dgp2004-07-151-3/+3
| | | | | | Use [bind $w], not [$w configure] to modify bindings. FossilOrigin-Name: 94b9b0c00c53bb991e795a8e756468521f099987