Changeset 09d414b in tol for tolbase/lib/toltk/editor.tcl
- Timestamp:
- Feb 14, 2012, 10:56:46 AM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 3d8e270
- Parents:
- 2f74496
- File:
-
- 1 edited
-
tolbase/lib/toltk/editor.tcl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/editor.tcl
r2f74496 r09d414b 454 454 "funsearch" "CmdSearch" "[mc {Search function}] (CTRL+G)" \ 455 455 "sep4" "--" ""\ 456 "uni dent" "CmdUnIdent" "[mc Unident] (CTRL+U)" \457 "i dent" "CmdIdent" "[mc Ident] (CTRL+I)" \456 "unindent" "CmdUnIndent" "[mc Unindent] (CTRL+U)" \ 457 "indent" "CmdIndent" "[mc Indent] (CTRL+I)" \ 458 458 "sep5" "--" ""\ 459 459 "bprint" "CmdPrint" "[mc Print]" \ … … 751 751 F { ::Editor::CmdFind $this } 752 752 G { ::Editor::CmdSearch $this } 753 I { ::Editor::CmdI dent $this }753 I { ::Editor::CmdIndent $this } 754 754 N { ::Editor::CmdNew $this } 755 755 R { ::Editor::CmdReplace $this } 756 756 S { ::Editor::CmdSave $this } 757 757 T { ::Editor::CmdFont $this } 758 U { ::Editor::CmdUnI dent $this }758 U { ::Editor::CmdUnIndent $this } 759 759 X { ::Editor::CmdCut $this } 760 760 Y { ::Editor::CmdRedo $this } … … 1354 1354 } 1355 1355 1356 proc ::Editor::CmdI dent {this} {1356 proc ::Editor::CmdIndent {this} { 1357 1357 upvar \#0 ${this}::data data 1358 1358 variable options 1359 ::BayesText::I dent $data(txt,ctext) $options(charsIdent)1360 } 1361 1362 proc ::Editor::CmdUnI dent {this} {1359 ::BayesText::Indent $data(txt,ctext) $options(charsIndent) 1360 } 1361 1362 proc ::Editor::CmdUnIndent {this} { 1363 1363 upvar \#0 ${this}::data data 1364 1364 variable options 1365 ::BayesText::UnI dent $data(txt,ctext) $options(charsIdent)1365 ::BayesText::UnIndent $data(txt,ctext) $options(charsIndent) 1366 1366 } 1367 1367 … … 1749 1749 label $f1.lChars -text [mc characters] 1750 1750 1751 label $f1.lCharsI dent -text [mc "Characters to ident"]1752 SpinBox $f1.sbCharsI dent -justify right -width 4 \1751 label $f1.lCharsIndent -text [mc "Characters to indent"] 1752 SpinBox $f1.sbCharsIndent -justify right -width 4 \ 1753 1753 -editable 0 -range {1 8} \ 1754 -textvariable ::Editor::tmpOpt(var,charsI dent)1754 -textvariable ::Editor::tmpOpt(var,charsIndent) 1755 1755 1756 1756 frame $f1.f -width 25 … … 1758 1758 grid $f1.f $f1.chEdited $f1.sbEdited $f1.lFiles -sticky nw -padx 2 1759 1759 grid ^ $f1.chLine $f1.sbLinePos $f1.lChars -sticky nw -padx 2 1760 grid ^ $f1.lCharsI dent $f1.sbCharsIdent -sticky nw -padx 21760 grid ^ $f1.lCharsIndent $f1.sbCharsIndent -sticky nw -padx 2 1761 1761 grid rowconfigure $f1 2 -weight 1 1762 1762 grid columnconfigure $f1 3 -weight 1 … … 1782 1782 set tmpOpt(var,chLine) $options(chLine) 1783 1783 set tmpOpt(var,posLine) $options(posLine) 1784 set tmpOpt(var,charsI dent) $options(charsIdent)1784 set tmpOpt(var,charsIndent) $options(charsIndent) 1785 1785 } 1786 1786 … … 1881 1881 set options(chLine) [$rini Editor chLine 1] 1882 1882 set options(posLine) [$rini Editor posLine 78] 1883 set options(charsIdent) [$rini Editor charsIdent 2] 1883 # ticket https://www.tol-project.org/ticket/1168 1884 set cindent [$rini Editor charsIndent -1] 1885 if { $cindent == -1 } { 1886 # no aparecia la clave charsIndent, pregunto por la vieja 1887 set options(charsIndent) [$rini Editor charsIdent 2] 1888 } else { 1889 # aparecia la clave, hay que pasar al nombre Indent 1890 set options(charsIndent) $cindent 1891 } 1884 1892 } 1885 1893 … … 1908 1916 $wini Editor chLine $options(chLine) 1909 1917 $wini Editor posLine $options(posLine) 1910 $wini Editor charsI dent $options(charsIdent)1918 $wini Editor charsIndent $options(charsIndent) 1911 1919 ::iniFile::Flush 1912 1920 }
Note: See TracChangeset
for help on using the changeset viewer.
