summaryrefslogtreecommitdiffstats
path: root/library
Commit message (Collapse)AuthorAgeFilesLines
* * 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 '}'.
* Very minor whitespace fixesdkf2005-07-261-7/+7
|
* typo fixdgp2005-07-251-2/+2
|
* Apply some of the changes suggested in [Patch 1237759]dkf2005-07-2519-492/+495
|
* Assorted cleaning up relating to [Patch 1237759]dkf2005-07-211-57/+70
|
* more elaborate variant to get first prompt displayed without a puts callhobbs2005-05-311-2/+14
|
* * library/console.tcl (::tk::ConsoleInit): print out first prompthobbs2005-05-301-1/+7
| | | | and swallow the extra "% " that comes once from Tcl on Windows.
* change tk_popup to have sticky menustmh2005-05-271-2/+5
|
* fix to two text widget bugsvincentdarley2005-05-131-2/+2
|
* fix to Home/End and display linesvincentdarley2005-04-181-9/+9
|
* * 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.
* * library/comdlg.tcl: Added Macintosh file type validation todgp2005-04-051-1/+10
| | | | [::tk::FDGetFileTypes]. [Bug 1083878] (Thanks, Vince Darley)
* * library/panedwindow.tcl (::tk::panedwindow::Cursor): checkhobbs2005-02-121-2/+3
| | | | window existence on delayed call. [Bug 949792]
* Forgot newline at enddkf2005-01-311-1/+1
|
* Add es_ES-specific localization. [Bug 1111213]dkf2005-01-311-0/+5
|
* Fixed dialog parenting problem described by Keith Nash. Also tidied up callbacksdkf2005-01-181-15/+17
|
* More fixing of [Bug 600313]dkf2005-01-131-18/+24
|
* Partial fix of [Bug 600313]dkf2005-01-131-9/+13
|
* Coding style improvements for the widget demo. [FRQ 815118]dkf2004-12-2144-45/+131
|
* * library/console.tcl (::tk::console::ExpandVariable): correcthobbs2004-11-171-2/+2
| | | | array keyname expansion. [Bug 1004508] (bold)
* * library/msgs/it.msg: Updated Italian message catalog.dgp2004-11-161-6/+6
| | | | Thanks to Roberto Ugoccioni [Bug 1063675].
* Added Keith Vetter's tkGoldberg as an animation demo. Thanks Keith!dkf2004-11-082-1/+1736
|
* More animation demosdkf2004-11-073-1/+301
|
* Added a demo of simple animation to the widget tour.dkf2004-11-072-1/+164
|
* TIP #204 "Virtual Events for Keyboard Traversal" (patch #976928)jenglish2004-10-193-9/+21
|
* Rename all XBM format files to be called *.xbm instead of *.bmp [Bug 733835]dkf2004-10-1913-27/+27
|
* remove debug codevincentdarley2004-10-181-2/+1
|
* updated as of en.msg 1.14bagnonm2004-10-111-17/+21
|
* Swedish message catalog from Mats Bengtsson.bagnonm2004-10-111-0/+74
|
* fix to mousewheel scrollingvincentdarley2004-09-241-2/+13
|
* Make sure the state is correctly reset on dialog startup. [Bug 845189]dkf2004-09-101-1/+2
|
* Prevent tk_strictMotif poisoning of the Widget demo [Bug 1013942]dkf2004-09-101-2/+6
|
* text widget 'peer' subcommand -- TIP#169 implementationvincentdarley2004-09-103-56/+123
|
* * 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.
* * library/text.tcl (::tk::TextTranspose): Ensure that Transpose ishobbs2004-08-261-1/+11
| | | | an atomic op to undo.
* Don't add the default extension to env-var referencesdkf2004-08-111-2/+5
|
* More fixing of [Bug 987169] and simple support for [FRQ 979101]dkf2004-08-112-8/+26
|
* Fix [Bug 987169] for tk_messageBox and tk_chooseColordkf2004-08-052-89/+101
|
* * 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.
* * library/tkfbox.tcl: Corrected coding errors in most recent change.dgp2004-07-151-3/+3
| | | | Use [bind $w], not [$w configure] to modify bindings.
* Users can cause Unix file dialog to vanish early; treat like Cancel [Bug 987169]dkf2004-07-111-3/+19
|
* Fix minor mistakedkf2004-06-281-2/+2
|
* text widget fixesvincentdarley2004-06-041-2/+5
|
* Enabled TIP#152 style message detail on Unix/X11 platforms.dkf2004-05-131-5/+18
|
* * library/panedwindow.tcl (MarkSash): call DragSash to stop sashhobbs2004-05-031-1/+3
| | | | jump when B1 is pressed and released without moving. [Bug #932155]
* * library/bgerror.tcl (bgerror): rework to only set -topmost bithobbs2004-04-171-55/+34
| | | | | on Windows if necessary. Also use existing ::tk functions for placing dialog and managing focus/grab.
* Removed support for Mac OS Classic platform [Patch 918139]das2004-03-1712-102/+44
|
* * (addFormattedText): Correct off-by-one error.cc_benny2004-02-251-2/+2
|
* * doc/checkbutton.n: TIP#110 implementationhobbs2004-02-182-11/+59
| | | | | | | | | | | | | | | * doc/radiobutton.n: Tristate Checkbutton and Radiobuttons * generic/tkButton.c: * generic/tkButton.h: * library/demos/check.tcl: * library/demos/radio.tcl: * macosx/tkMacOSXButton.c: * macosx/tkMacOSXDefault.h: * tests/button.test: * unix/tkUnixButton.c: * unix/tkUnixDefault.h: * win/tkWinButton.c: * win/tkWinDefault.h:
* Esperanto and Polish message catalogs from Artur Trzewikdkf2004-02-102-0/+146
|