Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch tip-382 Excluding Merge-Ins
This is equivalent to a diff from 012b3cb0 to a66e998b
2011-10-24
| ||
19:13 | Implementation of TIP #382. check-in: a126d3d9 user: dgp tags: core-8-5-branch | |
2011-10-19
| ||
15:03 | add docs Closed-Leaf check-in: a66e998b user: dgp tags: tip-382 | |
2011-10-17
| ||
20:10 | Implementation for Carbon. check-in: 5a1e3c46 user: dgp tags: tip-382 | |
2011-10-11
| ||
11:34 | merge-mark check-in: 2ed2df82 user: jan.nijtmans tags: core-8-5-branch | |
2011-10-04
| ||
17:53 | Contributed implementation patch for TIP 382. check-in: c8b22e32 user: dgp tags: tip-382 | |
2011-10-01
| ||
19:14 | Tentative fix for bug 3410609 - use the keysym returned by XLookupString in preference to the raw one in the XEvent. Closed-Leaf check-in: 51167632 user: kennykb tags: bug-3410609 | |
2011-09-26
| ||
12:07 | merge-mark check-in: 012b3cb0 user: jan.nijtmans tags: core-8-5-branch | |
11:56 | Support Visual Studio 11 check-in: 19ec9437 user: jan.nijtmans tags: core-8-4-branch | |
2011-09-22
| ||
18:10 | Move -takefocus option out of ttkCoreOptionSpecs, explicitly specify it on individual widgets. [Bug 3404541], [Bug 1204186]. check-in: 4e45dfd3 user: jenglish tags: core-8-5-branch | |
Changes to doc/getOpenFile.n.
︙ | |||
31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | + + + + + + | as\fR command in the \fBFile\fR menu. If the user enters a file that already exists, the dialog box prompts the user for confirmation whether the existing file should be overwritten or not. .PP The following \fIoption\-value\fR pairs are possible as command line arguments to these two commands: .TP \fB\-confirmoverwrite\fR \fIboolean\fR Configures how the Save dialog reacts when the selected file already exists, and saving would overwrite it. A true value requests a confirmation dialog be presented to the user. A false value requests that the overwrite take place without confirmation. Default value is true. .TP \fB\-defaultextension\fR \fIextension\fR Specifies a string that will be appended to the filename if the user enters a filename without an extension. The default value is the empty string, which means no extension will be appended to the filename in any case. This option is ignored on Mac OS X, which does not require extensions to filenames, and the UNIX implementation guesses reasonable values for this from |
︙ |
Changes to library/tkfbox.tcl.
︙ | |||
978 979 980 981 982 983 984 985 986 987 988 989 990 991 | 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 | + + + + + + | } # The "-multiple" option is only available for the "open" file dialog. # if {$type eq "open"} { lappend specs {-multiple "" "" "0"} } # The "-confirmoverwrite" option is only for the "save" file dialog. # if {$type eq "save"} { lappend specs {-confirmoverwrite "" "" "1"} } # 2: default values depending on the type of the dialog # if {![info exists data(selectPath)]} { # first time the dialog has been popped up set data(selectPath) [pwd] set data(selectFile) "" |
︙ | |||
1855 1856 1857 1858 1859 1860 1861 | 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 | - + | } else { set selectFilePath [JoinFile $data(selectPath) $data(selectFile)] } set Priv(selectFile) $data(selectFile) set Priv(selectPath) $data(selectPath) |
︙ |
Changes to macosx/tkMacOSXDialog.c.
︙ | |||
80 81 82 83 84 85 86 | 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | - + + | NavCBRecPtr callBackParms, NavCallBackUserData callBackUD); static void InitFileDialogs(void); static int NavServicesGetFile(Tcl_Interp *interp, OpenFileData *ofd, AEDesc *initialDescPtr, char *initialFile, AEDescList *selectDescPtr, CFStringRef title, CFStringRef message, |
︙ | |||
362 363 364 365 366 367 368 | 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 | - + | initialPtr = &initialDesc; } if (typeVariablePtr) { initialtype = Tcl_GetVar(interp, Tcl_GetString(typeVariablePtr), TCL_GLOBAL_ONLY); } result = NavServicesGetFile(interp, &ofd, initialPtr, NULL, &selectDesc, |
︙ | |||
418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 | 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 | + - + + + | Tk_GetSaveFileObjCmd( ClientData clientData, /* Main window associated with interpreter. */ Tcl_Interp *interp, /* Current interpreter. */ int objc, /* Number of arguments. */ Tcl_Obj *CONST objv[]) /* Argument objects. */ { int i, result = TCL_ERROR; int confirmOverwrite = 1; char *initialFile = NULL; Tk_Window parent = NULL; AEDesc initialDesc = {typeNull, NULL}; AEDesc *initialPtr = NULL; FSRef dirRef; CFStringRef title = NULL, message = NULL; OpenFileData ofd; static const char *saveOptionStrings[] = { "-defaultextension", "-filetypes", "-initialdir", "-initialfile", |
︙ | |||
504 505 506 507 508 509 510 511 512 513 514 515 516 517 | 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 | + + + + + + - + | choice = Tcl_GetStringFromObj(objv[i + 1], &choiceLen); if (title) { CFRelease(title); } title = CFStringCreateWithBytes(NULL, (unsigned char *) choice, choiceLen, kCFStringEncodingUTF8, false); break; case SAVE_CONFIRMOW: if (Tcl_GetBooleanFromObj(interp, objv[i + 1], &confirmOverwrite) != TCL_OK) { return TCL_ERROR; } break; } } if (initialDesc.descriptorType == typeFSRef) { initialPtr = &initialDesc; } result = NavServicesGetFile(interp, &ofd, initialPtr, initialFile, NULL, |
︙ | |||
623 624 625 626 627 628 629 | 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 | - + | TkInitFileFilters(&ofd.fl); ofd.usePopup = 0; if (initialDesc.descriptorType == typeFSRef) { initialPtr = &initialDesc; } result = NavServicesGetFile(interp, &ofd, initialPtr, NULL, NULL, title, |
︙ | |||
774 775 776 777 778 779 780 781 782 783 784 785 786 787 | 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 | + | AEDesc *initialDescPtr, char *initialFile, AEDescList *selectDescPtr, CFStringRef title, CFStringRef message, const char *initialtype, int multiple, int confirmOverwrite, int isOpen, Tk_Window parent) { NavHandlerUserData data; NavDialogCreationOptions options; NavDialogRef dialogRef = NULL; CFStringRef *menuItemNames = NULL; |
︙ | |||
795 796 797 798 799 800 801 802 803 804 805 806 807 808 | 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 | + + + | return result; } options.optionFlags = kNavDontAutoTranslate | kNavDontAddTranslateItems | kNavSupportPackages | kNavAllFilesInPopup; if (multiple) { options.optionFlags |= kNavAllowMultipleFiles; } if (!confirmOverwrite) { options.optionFlags |= kNavDontConfirmReplacement; } options.modality = kWindowModalityAppModal; if (parent && ((TkWindow *) parent)->window != None && TkMacOSXHostToplevelExists(parent)) { options.parentWindow = TkMacOSXDrawableWindow(Tk_WindowId(parent)); TK_IF_HI_TOOLBOX (5, /* * Impossible to modify dialog modality with the Cocoa-based |
︙ |
Changes to win/tkWinDialog.c.
︙ | |||
588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 | 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 | + - + + + - + + + - - - - + + + - - - - - - - - - - - + + - - - - - - - - - - - - - - - | * GetSaveFileName(). */ { OPENFILENAMEW ofn; WCHAR file[TK_MULTI_MAX_PATH]; OFNData ofnData; int cdlgerr; int filterIndex = 0, result = TCL_ERROR, winCode, oldMode, i, multi = 0; int inValue, confirmOverwrite = 1; char *extension = NULL, *title = NULL; Tk_Window tkwin = (Tk_Window) clientData; HWND hWnd; Tcl_Obj *filterObj = NULL, *initialTypeObj = NULL, *typeVariableObj = NULL; Tcl_DString utfFilterString, utfDirString, ds; Tcl_DString extString, filterString, dirString, titleString; Tcl_Encoding unicodeEncoding = TkWinGetUnicodeEncoding(); ThreadSpecificData *tsdPtr = (ThreadSpecificData *) Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); static CONST char *saveOptionStrings[] = { "-defaultextension", "-filetypes", "-initialdir", "-initialfile", |
︙ | |||
688 689 690 691 692 693 694 | 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 | - - - - - + + + + + + + + + + | if (Tcl_TranslateFileName(interp, string, &ds) == NULL) { goto end; } Tcl_UtfToExternal(NULL, unicodeEncoding, Tcl_DStringValue(&ds), Tcl_DStringLength(&ds), 0, NULL, (char *) file, sizeof(file), NULL, NULL, NULL); Tcl_DStringFree(&ds); |
︙ | |||
736 737 738 739 740 741 742 | 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 | - + | ofn.Flags = OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_NOCHANGEDIR | OFN_EXPLORER | OFN_ENABLEHOOK| OFN_ENABLESIZING; ofn.lpfnHook = (LPOFNHOOKPROC) OFNHookProcW; ofn.lCustData = (LPARAM) &ofnData; if (open != 0) { ofn.Flags |= OFN_FILEMUSTEXIST; |
︙ |