summaryrefslogtreecommitdiffstats
path: root/library/tkfbox.tcl
Commit message (Collapse)AuthorAgeFilesLines
* * library/tkfbox.tcl (::tk::dialog::file::): fix typeMenuLab ref.hobbs2005-04-121-11/+41
| | | | | | | | | | 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: 0e16b439a5ecd4cd559cb221339c4b862ef31aa9
* More state resetting on dialog start. [Bug 845189]dkf2004-09-101-1/+3
| | | FossilOrigin-Name: 612839c91aa64430e167fbce2fe3a1a180311e2e
* * 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: e3defcc023d5f90d3a17e45274f7a2661cf80e3b
* * library/tkfbox.tcl (::tk::dialog::file::Update): use -directoryhobbs2004-07-221-8/+13
| | | | | | | [pwd] (instead of .) to get around some VFS edge case bugs. Use [bind $w], not [$w configure] to modify bindings. FossilOrigin-Name: 9838ea42bf3f0a47e1e3e5259fd25760c21d6671
* Users can cause Unix file dialog to vanish early; treat like Cancel [Bug 987169]dkf2004-07-111-1/+13
| | | FossilOrigin-Name: d5145ee96c75e32dca1a68d67f4eadd293c7d15d
* (::tk::dialog::file::ActivateEnt): allow typing filename intohobbs2003-11-121-3/+10
| | | | | | entry when tk_getOpenFile -multiple 1 is specified. [Bug #788069] FossilOrigin-Name: fddf381387e2a561163a2246f31520763ef66f55
* * library/tkfbox.tcl (::tk::dialog::file::Update): optimize thehobbs2003-11-111-35/+19
| | | | | | | | | dir/files list separation by using the -tails, -directory and -type option of 'glob'. Also passes the glob the -filetypes filters instead of calling string match over each file. [Patch #833819] FossilOrigin-Name: ec99053023753510c65f73f481d85c00ae20e294
* * library/tkfbox.tcl (IconList_Create,IconList_Add): Added optiondkf2003-10-291-2/+8
| | | | | | | munging to allow some control of foreground colours on Unix in the same way that you can influence the background. [Bug 795717] FossilOrigin-Name: 769cbce809d17d5f1630328e3172a7912cf05448
* Made the standard file dialogs use [grid] for their bottom area [Bug #673722]dkf2003-02-211-52/+33
| | | FossilOrigin-Name: 27ddaf3196c579e9042f871e335228d860891673
* * library/choosedir.tcl (tk::dialog::file::chooseDir):mdejong2002-07-221-8/+1
| | | | | | | | | | | | * 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. FossilOrigin-Name: 292849c2409f5249983e7e27590973fb92ae2c0a
* * library/choosedir.tcl (tk::dialog::file::chooseDir):mdejong2002-06-131-1/+8
| | | | | | | | | | | | | * 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] FossilOrigin-Name: e3449e31355a45e3e239f8ad595515b228bd311c
* * library/choosedir.tcl (tk::dialog::file::chooseDir):mdejong2002-06-121-2/+12
| | | | | | | | | | | | | | | * 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. FossilOrigin-Name: 627fc4dfc42deeb3dc0a7098e4b91919e6ba543d
* Added "magic ampersand" approach for translated strings in standard dialogs.a_kovalenko2002-06-101-46/+41
| | | | | | | All translations were modified to work with "magic ampersand". Russian translations added. FossilOrigin-Name: f34dcf01ddf22dc24ff6457fca33d8e39ad2c134
* new feature, make dependence on msgcat soft, [539309]bagnonm2002-04-291-31/+33
| | | FossilOrigin-Name: 21bd767606dc25d686705fb734424298a8611515
* 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. FossilOrigin-Name: 4d9d93a637526f4ac7541a0b39ca3e05bd7afab7
* Fixed string/list confusion in directory browser, and a typo in ChangeLogdkf2001-09-171-12/+13
| | | FossilOrigin-Name: 7aebeca26c59f627b8cb1ee84085fa26e60ff272
* Fix a problem in the Unix tk_getOpenFile dialog box. An error dialog box useddrh2001-09-121-1/+7
| | | | | | | to appear when you would point the file browser box at an empty directory and click on the canvas. FossilOrigin-Name: 54d36bea33a3b257a687b5fd0142624fc2ec0b19
* Corrections to problems introduced bydgp2001-08-091-3/+2
| | | | | | the TIP 44 changes. [Bug 449261] FossilOrigin-Name: 9b5bb3b39110e92b98a9f30146c6e1fef60a2a00
* Correction to TIP 44 implementation.dgp2001-08-011-3/+3
| | | FossilOrigin-Name: bba9ce93587b589d84cc2a4e3a7ca8de4740a027
* Merged changes from feature branch dgp-privates-into-namespace,dgp2001-08-011-203/+201
| | | | | | | implementing TIP 44. All Tk commands and variables matching tk[A-Z]* are now in the ::tk namespace. FossilOrigin-Name: 3c0c681d8883f0843b9dcb3f402c2773f6a438a7
* The new tk_chooseDirectory dialog box implementation was sometimes givingdrh2001-07-191-1/+2
| | | | | | | an error like this: can't read "data(list)": no such element in array. The problem is a race condition. This patch should fix the problem. FossilOrigin-Name: e1a1bffe9e20620a7bf50804f5930188e1150a3b
* * library/tkfbox.tcl: fixed selecting directories and single fileshobbs2001-03-301-9/+15
| | | | | | with spaces using tk_getOpenFile -multiple 1. [Bug #411640] FossilOrigin-Name: 01457710ef0c3889652451e419667cb626c6b897
* * library/tkfbox.tcl (OkCmd): Applied patch from [Bug: 6365],ericm2000-10-191-4/+3
| | | | | | | which adds safety for directory names containing spaces or which are non-lists. FossilOrigin-Name: 7c8cfc82d42e5321493578118f368a6b780c2e1e
* * library/tkfbox.tcl (::tk::dialog::file::Update): Correctedericm2000-08-291-3/+6
| | | | | | | handling of multi-pattern filters (eg, "* *.*"), which was broken by the getOpenFile performance patches applied earlier. FossilOrigin-Name: b4a0dd53a516bea8b31854c15e34c1db7d6e51fb
* * library/tkfbox.tcl: Fixed keyboard navigation in the iconlist.ericm2000-07-191-37/+38
| | | FossilOrigin-Name: 92fe7f62ded09bb447dfaf2bb88384c5c0864da7
* * library/msgs/de.msg: German message catalog.ericm2000-06-301-35/+50
| | | | | | | | | | | | | | | | | | | | | | * library/msgs/en.msg: English message catalog. * library/msgs/es.msg: Spanish message catalog. * library/msgs/fr.msg: French message catalog. * unix/Makefile.in: * unix/configure.in: * library/tk.tcl: * library/clrpick.tcl: * library/choosedir.tcl: * library/console.tcl: * library/msgbox.tcl: * library/tkfbox.tcl: * library/xmfbox.tcl: * library/bgerror.tcl: Applied patches from Laurent Duperval to provide localization of Tk dialogs. [RFE: 2671]. FossilOrigin-Name: fba5538c67f2c40b36cf85e267a90136a5a80bbd
* * doc/getOpenFile.n: Updated with information about -multiple.ericm2000-06-231-147/+399
| | | | | | | | | | | | | * library/choosedir.tcl: Tweaked to handle modified tkIconList API's. * library/tkfbox.tcl: Preliminary implementation of multiple selection; based on patch from [RFE: 604]. Some of the tkIconList functions changed to support this and to make the dialog faster. * library/xmfbox.tcl: Added support for multiple selection, from patch in [RFE: 4999]. FossilOrigin-Name: 6d6e691ec619d1ee337f77b3c504d9d8f89a1db6
* * library/choosedir.tcl (::tk::dialog::file::chooseDir::Config):hobbs2000-04-191-11/+8
| | | | | | | | | | | * library/tkfbox.tcl (::tk::dialog::file::Config): removed the extraneous glob on -initialdir after file isdir already returned 1 and moved cd trick into this case as the else already uses [pwd]. [Bug: 5181] * win/winMain.c: moved extern call out of WinMain func FossilOrigin-Name: 363c75beb90525f9a7136a709b82fc3a43a9bf41
* * library/menu.tcl (tkMenuInvoke): corrected naming of tearoffshobbs2000-03-311-7/+7
| | | | | | | | | | [Bug: 4506] * library/tkfbox.tcl (tkIconList_Goto): caused browsecmd to be called in tkIconList_Select. This causes the entry to be set properly when using the type-in-name-in-listbox bindings. FossilOrigin-Name: 4a69b854d6281d40ac0f7889086ef830eb652119
* * library/tkfbox.tcl: Moved an overlooked tkFDialog* function inscriptics-sc-2-0-fixedscriptics-sc-2-0-b5ericm2000-03-291-5/+5
| | | | | | | | | | | | | | | | ::tk::dialog::file namespace. * tests/unixWm.test: Added tests for memory leak conditions in tkUnixWm.c. * tests/canvas.test: Added test for bad configuration options on empty and non-empty canvas. * generic/tkCanvas.c: Removed bad code in CANV_CONFIGURE block of CanvasWidgetCmd; this was causing non-empty canvases to improperly handle bad configuration options [Bug: 4456]. FossilOrigin-Name: ac1293f78350b7396906cb7d2b1158459b7b8ebb
* * tests/filebox.test:ericm2000-03-241-149/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/choosedir.test: Updated tests. * library/xmfbox.tcl: Updated to stash data array in ::tk::dialog::file namespace instead of in global namespace. * library/tkfbox.tcl: Extended some functions to support creation of a choosedir dialog, to allow greater code reuse between the two dialogs. Moved tkFDialog* functions into a namespace (::tk::dialog::file). Because these are private Tk functions (and should thus not be used directly by users), this should not impact anybody (the tk_getOpenFile and tk_getSaveFile commands still exist at the global scope). * library/tk.tcl: * library/tclIndex: Updated function names for tkFDialog* functions and choosedir functions. * library/choosedir.tcl: New and improved implementation of tk_chooseDirectory dialog. Based on tk_getOpenFile dialog. * library/listbox.tcl: (tkListboxCancel) Added a check for empty string value for tkPriv(listboxPrev). Without this check, it's possible to get a stack trace under certain conditions. [Bug: 4373]. FossilOrigin-Name: 507a9fe0e822d879c18e4d215b8bb2275ed0aad0
* * library/tkfbox.tcl: Applied patch from bug #4117,ericm2000-02-071-2/+5
| | | | | | | | tk_getOpenFile/getSaveFile doesn't do the right thing when user types a directory name in the entry and a default extension is specified. FossilOrigin-Name: e349f95871fe0b6e0e664c2b2c24ce8c55da530a
* * library/tkfbox.tcl: Fixed bug relating to incorrect parentericm2000-01-211-8/+8
| | | | | | | values for error message boxes displayed by the file dialog (bug #3616). FossilOrigin-Name: 8cfb330249318e9476c1ed5dc7832dcf4e13c58d
* * library/entry.tcl:hobbs2000-01-061-4/+4
| | | | | | | | | | | | | | * library/focus.tcl: * library/listbox.tcl: * library/scale.tcl: * library/scrlbar.tcl: * library/tearoff.tcl: * library/text.tcl: * library/tkfbox.tcl: * library/xmfbox.tcl: fixed unprotected arg parsing through eval/after [Bug: 3943] FossilOrigin-Name: 27fac895c60473c5a773921f3f54648bcf82f0ad
* * library/tkfbox.tcl: updated tk_get*File to better match thehobbs1999-12-161-17/+14
| | | | | | | Windows file box it emulates, give proper support to -initialfile, and fixes lack of global tkPriv call. [Bug: 3735 3882] FossilOrigin-Name: ccc62ea5af1e8281f3f3f7269a2a74dc55bead15
* * library/clrpick.tcl:hobbs1999-11-241-47/+18
| | | | | | | | | | | * library/msgbox.tcl: * library/tk.tcl: * library/tkfbox.tcl: * library/xmfbox.tcl: fixed dialogs to center over -parent, added utility functions ::tk::PlaceWindow, ::tk::SetFocusGrab, ::tk::RestoreFocusGrab to tk.tcl to help FossilOrigin-Name: 21de21752ffde474338a379bb09367d06c05fc12
* 1999-09-01 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-021-84/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/msgbox.tcl: changed the behavior of tk_messageBox on Unix to be more Windows like in handling of <Return> and the default button * library/button.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/safetk.tcl: * library/scale.tcl: * library/scrlbar.tcl: * library/tearoff.tcl: * library/text.tcl: * library/tk.tcl: * library/tkfbox.tcl: * library/xmfbox.tcl: updated commands to use [string] ops instead of expr equality operators FossilOrigin-Name: 09a6499cb99c0cb6c16ea5a2e6076132489b9b8f
* * Merged 8.1 branch into the main trunkstanton1999-04-161-27/+42
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* Removed lintwelch1998-11-121-2/+2
| | | FossilOrigin-Name: e9574c334997c8ed3a327ababcfa287b29197a13
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* lintstanton1998-08-041-1/+0
| | | FossilOrigin-Name: 376517b43b4e52aaeb537052238ff4031cdeff77
* Merged changes between child workspace "/home/welch/ws/tk8.0.3" andwelch1998-06-271-112/+112
| | | | | | parent workspace "/ws/tk8.0". FossilOrigin-Name: 8885a9203612606d6698d622bf533823eef6afae
* fixed reinitialization bugsstanton1998-06-251-5/+16
| | | FossilOrigin-Name: 9cf66134bc3912d3555a10503cc832d42c821dee
* fixed initialdir bugstanton1998-06-241-2/+9
| | | FossilOrigin-Name: 2b8aafd98b01770bbc09858953f2dbdd8e88e9e2
* bug fix: 1) If the -initialdir option was "." the result would be ↵surles1998-06-031-5/+7
| | | | | "././foo.tcl" instead of an absolute path, like the Windows interface. 2) There is a traceVar on the data(selectPath) where the script was assumes the window exists. FossilOrigin-Name: 6dfad3e1ac4c46bc284f44b4f47d9bb379943a59
* Initial revisionrjohnson1998-04-011-0/+1437
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4