summaryrefslogtreecommitdiffstats
path: root/library
Commit message (Collapse)AuthorAgeFilesLines
* *** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***macosx_8_4_merge_2002_08_31_trunkdas2002-08-3116-72/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tk.decls: * generic/tkInt.decls: added new "aqua" specific entries to the stubs tables. Changed all "unix" entries to "x11" to allow us to distinguish and build both "aqua" on MacOSX and "x11" on MacOSX. * generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can be passed to the resource compiler. * generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem] subcommand: returns "x11" when running on X11, "win32" on Windows, "classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon) * generic/tkFont.c (TkFontGetFirstTextLayout): new private function returning the first chunk of a Tk_TextLayout, i.e. until the first font change on the first line (or the whole first line if there is no such font change). * generic/tkMain.c: made Tcl_ThreadDataKey static * library/demos/puzzle.tcl: fixed button metrics for aqua * tests/cursor.test: check for presence of arrow cursor instead of heart cursor * xlib/xcolors.c: changed xColors static initialization to more standard C * macosx/Wish.pbproj/jingham.pbxuser (new): * macosx/Wish.pbproj/project.pbxproj (new): project for Apple's ProjectBuilder IDE. * macosx/Makefile (new): simple makefile for building the project from the command line via the ProjectBuilder tool 'pbxbuild'. * macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking for a AppMain.tcl file in its bundled Resources/Scripts folder. If present, argv[1] is set to that file and the Scripts folder is added to the auto_path. This allows tk apps to embed scripts within their bundle directory structure. * macosx/tkMacOSXInit.c (new): macosx adapted version of tkUnixInit.c: we initialize & cache the Carbon native encoding (e.g. 'macRoman') and try to find the tk script library files inside Tk packaged as a framework. * macosx/tkMacOSXNotify.c (new): new macosx specific merged Carbon/select-based notifier. * macosx/tkMacOSXEvent.c (new): * macosx/tkMacOSXEvent.h (new): * macosx/tkMacOSXKeyEvent.c (new): * macosx/tkMacOSXMouseEvent.c (new): * macosx/tkMacOSXWindowEvent.c (new): new macosx specific event handling functionality. * macosx/tkMacOSX.h (new): * macosx/tkMacOSXBitmap.c (new): * macosx/tkMacOSXButton.c (new): * macosx/tkMacOSXClipboard.c (new): * macosx/tkMacOSXColor.c (new): * macosx/tkMacOSXConfig.c (new): * macosx/tkMacOSXCursor.c (new): * macosx/tkMacOSXDefault.h (new): * macosx/tkMacOSXDialog.c (new): * macosx/tkMacOSXDraw.c (new): * macosx/tkMacOSXEmbed.c (new): * macosx/tkMacOSXFont.c (new): * macosx/tkMacOSXHLEvents.c (new): * macosx/tkMacOSXInt.h (new): * macosx/tkMacOSXKeyboard.c (new): * macosx/tkMacOSXMenu.c (new): * macosx/tkMacOSXMenubutton.c (new): * macosx/tkMacOSXMenus.c (new): * macosx/tkMacOSXPort.h (new): * macosx/tkMacOSXRegion.c (new): * macosx/tkMacOSXScale.c (new): * macosx/tkMacOSXScrlbr.c (new): * macosx/tkMacOSXSubwindows.c (new): * macosx/tkMacOSXTest.c (new): * macosx/tkMacOSXUtil.c (new): * macosx/tkMacOSXUtil.h (new): * macosx/tkMacOSXWm.c (new): * macosx/tkMacOSXWm.h (new): * macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk implementation in tk/mac. * macosx/tkMacOSXSend.c (new): only send to local interp implemented currently. * macosx/tkMacOSXDebug.h (new): * macosx/tkMacOSXDebug.c (new): new macosx specific functions for debugging MacOS events, regions, etc. * macosx/tkAboutDlg.r (new): * macosx/tkMacOSXApplication.r (new): * macosx/tkMacOSXCursors.r (new): * macosx/tkMacOSXLibrary.r (new): * macosx/tkMacOSXMenu.r (new): * macosx/tkMacOSXResource.r (new): * macosx/tkMacOSXXCursors.r (new): * macosx/tclets.r (new): sources for Rez resource compiler. * macosx/Wish.icns (new): Wish application icon. * generic/tk.h: * generic/default.h: * generic/tkBind.c: * generic/tkCmds.c: * generic/tkGrab.c: * generic/tkPointer.c: * generic/tkPort.h: * generic/tkSelect.c: * generic/tkStubLib.c: * generic/tkTest.c: * generic/tkText.c: * generic/tkWindow.c: * unix/tkUnix3d.c: * xlib/xgc.c: * xlib/X11/X.h: * xlib/X11/Xlib.h: * xlib/X11/Xutil.h: added #includes and #ifdefs for macosx * library/bgerror.tcl: * library/button.tcl: * library/console.tcl: * library/dialog.tcl: * library/entry.tcl: * library/listbox.tcl: * library/menu.tcl: * library/msgbox.tcl: * library/scrlbar.tcl: * library/spinbox.tcl: * library/text.tcl: * library/tk.tcl: * library/demos/menu.tcl: * library/demos/menubu.tcl: * library/demos/widget: check [tk windowingsystem] instead of and/or in addition to $tcl_platform(platform). * generic/tkInt.h: * mac/tkMacBitmap.c: * mac/tkMacWm.c: added missing CONSTification * generic/tkIntDecls.h: * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkPlatDecls.h: * generic/tkStubInit.c: regen
* * library/button.tcl: change the bindings to use Priv($w,relief)hobbs2002-08-131-135/+131
| | | | | instead of just Priv(relief). This ensures that neighboring buttons don't confuse (over)relief settings.
* Tweaked resizing behaviour of the image-viewer demo.dkf2002-08-121-4/+4
|
* * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd):hobbs2002-08-081-10/+10
| | | | | | * library/panedwindow.tcl: changed class from PanedWindow to Panedwindow to not conflict with existing bwidgets, but also to be more regular with other names used in the core.
* * library/spinbox.tcl (MouseSelect): when not in the entry, justhobbs2002-07-251-15/+11
| | | | | return instead of invoking - ButtonUp handles invoking already. [Bug #499168]
* * library/tk.tcl (RestoreFocusGrab): handle the case where thehobbs2002-07-251-3/+7
| | | | FocusGrab info is not set. [Bug #553283]
* * library/choosedir.tcl (tk::dialog::file::chooseDir):mdejong2002-07-225-40/+5
| | | | | | | | | | * library/clrpick.tcl (tk::dialog::file::chooseDir): * library/msgbox.tcl (tk::MessageBox): * library/tkfbox.tcl (tk::dialog::file): * library/xmfbox.tcl (tk::MotifFDialog): Revert [Tk patch 568278]. The transient window workaround is no longer needed since the fix for [Tk bug 570764] solved the problem for withdrawn transients.
* Oops. Minor fix to the previous fix.drh2002-07-191-2/+2
|
* Fix a bug in the Postscript encoding vector generator that was causingdrh2002-07-191-4/+3
| | | | postscript generation to fail under Win2K.
* * library/unsupported.tcl: Extended ExposePrivateVariable, andrmax2002-07-171-8/+16
| | | | ExposePrivateCommand to accept patterns as well.
* Improvements to bgerror dialog layout. [Bug #577086]dkf2002-07-041-6/+12
|
* Force the message box to have consistent background colours. [Bug#552515]dkf2002-06-281-9/+15
|
* Applied patch #546910 -- international postscript outputa_kovalenko2002-06-252-0/+1369
|
* * library/menu.tcl: corrected menus from being posted offscreenhobbs2002-06-221-36/+48
| | | | on Windows. [Bug #464451] (darley)
* * library/console.tcl: corrected the defaultPrompt substitutionhobbs2002-06-221-8/+5
| | | | [Bug #553207] and made Tab a default expansion key (like Escape).
* * doc/text.n: TIP #104 implementation which generalizes thehobbs2002-06-211-7/+3
| | | | | | | | | | | | | | | * generic/tkText.c: undo/redo stack to not be tied solely to the * generic/tkText.h: text widget. The APIs are still private. * generic/tkUndo.c: This also adds a stack limiting ability and * generic/tkUndo.h: a -maxundo option to the text widget (in * library/text.tcl: addition to the options from TIP #26) should * mac/tkMacDefault.h: users want to limit the undo/redo stack * tests/text.test: (should not be necessary in most cases). * unix/Makefile.in: [Patch #554763] (callewart) * unix/tkUnixDefault.h: * win/Makefile.in: * win/makefile.vc: * win/tkWinDefault.h:
* * Added catalog for UK English.dgp2002-06-171-0/+3
| | | | Currently includes only Color -> Colour translation.
* * library/choosedir.tcl (tk::dialog::file::chooseDir):mdejong2002-06-135-5/+40
| | | | | | | | | | | * library/clrpick.tcl (tk::dialog::file::chooseDir): * library/msgbox.tcl (tk::MessageBox): * library/tkfbox.tcl (tk::dialog::file): * library/xmfbox.tcl (tk::MotifFDialog): Remove the transient property on dialogs after they have been dismissed to insulate them from further state changes in the master. This keeps a withdrawn dialog from being mapped when the master is deiconified. [Tk patch 568278]
* * library/choosedir.tcl (tk::dialog::file::chooseDir):mdejong2002-06-126-12/+50
| | | | | | | | | | | | | * library/clrpick.tcl (tk::dialog::color): * library/dialog.tcl (tk_dialog): * library/msgbox.tcl (tk::MessageBox): * library/tkfbox.tcl (tk::dialog::file): * library/xmfbox.tcl (tk::MotifFDialog_Create): Only make the dialog window a transient if the master is visible. This check already appeared in some of the dialogs. This patch just copies the check into those that were lacking.
* fix for bug report #530212 "Bad Window Path Name in tkMenuFind"jenglish2002-06-111-5/+3
|
* Added "magic ampersand" approach for translated strings in standard dialogs.a_kovalenko2002-06-1014-306/+458
| | | | | All translations were modified to work with "magic ampersand". Russian translations added.
* * library/bgerror.tcl (tk::dialog::error::bgerror):mdejong2002-06-091-5/+2
| | | | | Don't set the bgerror dialog as a transient of itself since this operation is ill defined.
* Make non-default buttons in messagebox have -default normala_kovalenko2002-06-061-1/+3
|
* * A little namespace cleanup on Daniel Steffen'sdgp2002-05-201-16/+21
| | | | latest revisions to avoid defining new global commands.
* * mac/tkMacInit.c:das2002-05-202-13/+24
| | | | | | | * library/console.tcl: * library/tk.tcl: fix tk.tcl not sourcing library files that define bindings at startup on mac. (independent of tk library files being in resources or on auto_path)
* * Cleaned up namespace usage of the bgerrordgp2002-05-082-59/+62
| | | | dialog. Completes soft dependence on msgcat. [FR 539309]
* new feature, make dependence on msgcat soft, [539309]bagnonm2002-05-031-14/+16
|
* new feature, make dependence on msgcat soft, [539309]bagnonm2002-04-298-145/+143
|
* namespacing ::tk message catalogs, bug [546333]bagnonm2002-04-269-579/+594
|
* * library/button.tcl (ButtonLeave): corrected the 3hobbs2002-04-231-10/+11
| | | | | implementations of ButtonLeave to check for Priv(relief) existing before trying to use it. [Patch #541849]
* fixed translation of yes from si to "s\u00ed"bagnonm2002-04-161-1/+1
|
* Modifed the translation of Yes from "Si" to "S\u00ed"bagnonm2002-04-161-1/+1
|
* new feature request, 539309 make dependence on msgcat "soft"bagnonm2002-04-161-3/+30
| | | | | msgcat procedures as used in tk defined in case the package is not available.
* Middle button no longer double pastes into text! Also cleaned some code up.dkf2002-03-071-9/+8
|
* added catch around Triple-1 binding use of sel.lasthobbs2002-03-041-2/+2
|
* * library/console.tcl (ConsoleBind): Corrected console <<Paste>>dgp2002-03-011-2/+4
| | | | binding on Unix platforms.
* * library/scale.tcl: mirror B2 bindings to B3 on Windows to betterhobbs2002-02-261-1/+9
| | | | accomodate two button mice. [Patch #493145]
* improved proxy sash handling. (boudaillier)hobbs2002-02-261-7/+9
|
* Added proc comments. Made configuring sash cursor more efficient.hobbs2002-02-231-22/+65
| | | | | | Added Cursor timer that restores the default cursor when pointer is no longer over the sash. This is necessary because Leave events won't be seen when moving into a paned child.
* * library/panedwindow.tcl (ReleaseSash): changed to not pass x andhobbs2002-02-221-4/+4
| | | | y args at all (they aren't used).
* Fixed panedwindow binding bugs and added demos for it too.dkf2002-02-225-8/+122
|
* TIP #41 implementation, panedwindow [Patch #512503] (melski)hobbs2002-02-221-0/+136
|
* * library/entry.tcl:mdejong2002-02-152-6/+4
| | | | | | | | | * library/text.tcl: Adjust <Double-1> and <Triple-1> bindings so that no anchor point is set and the insertion cursor is set to the last character in the selection. [Bug 220943] * tests/event.test: Add test cases for double click and drag as well as triple click and drag in the text and entry widgets.
* * library/text.tcl (tk::TextButton1): made text receive focus evenhobbs2001-12-281-2/+5
| | | | | in disabled state for Windows to show selection and allow mouse-wheel scrolling.
* * library/entry.tcl:hobbs2001-12-273-241/+130
| | | | | | * library/spinbox.tcl: * library/text.tcl: added extra checks against bug #220269 and made spinbox reuse more of the entry procedure code.
* Added code to guess the correct default extension from whatever valuedkf2001-12-141-6/+27
| | | | | was selected in the filetypes option menu. Adapted from code by Chris Nelson submitted in Patch #492220.
* More widget demo improvements.dkf2001-11-301-13/+44
|
* Made tk_setPalette guess a reasonable default for the foreground colour.dkf2001-11-291-3/+11
|
* When a menu is torn off, a new "clone" menu is created which is an exactdrh2001-11-271-2/+4
| | | | | | | | copy of the original. The copy even includes the tearoff bar, though the tearoff bar is not displayed. But even though it wasn't displayed, the tearoff bar on the tearoff menu could be visited using keyboard traversal. This change makes it so that the (invisible) tearoff bar of tearoff menus is no longer visited on keyboard traversal.
* ** upport to 8.4 of mac code changes for 8.3.3 & various newdas2001-11-233-7/+6
| | | | | | ** changes for 8.4, some already backported to 8.3.4 (patch #435660) see ChangeLog for details