Changeset 09d414b in tol
- Timestamp:
- Feb 14, 2012, 10:56:46 AM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 3d8e270
- Parents:
- 2f74496
- Location:
- tolbase/lib/toltk
- Files:
-
- 5 edited
- 2 moved
-
bystext.tcl (modified) (2 diffs)
-
editor.tcl (modified) (8 diffs)
-
images/indent.gif (moved) (moved from tolbase/lib/toltk/images/ident.gif)
-
images/unindent.gif (moved) (moved from tolbase/lib/toltk/images/unident.gif)
-
msgs/es.msg (modified) (2 diffs)
-
tolbase.tcl (modified) (3 diffs)
-
tolconfig_gui.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/bystext.tcl
r2f74496 r09d414b 634 634 635 635 #///////////////////////////////////////////////////////////////////////////// 636 proc ::BayesText::I dent {editor chars} {637 # 638 # PURPOSE: I dent text636 proc ::BayesText::Indent {editor chars} { 637 # 638 # PURPOSE: Indent text 639 639 # 640 640 #///////////////////////////////////////////////////////////////////////////// … … 655 655 656 656 #///////////////////////////////////////////////////////////////////////////// 657 proc ::BayesText::UnI dent {editor chars} {658 # 659 # PURPOSE: UnI dent text657 proc ::BayesText::UnIndent {editor chars} { 658 # 659 # PURPOSE: UnIndent text 660 660 # 661 661 #///////////////////////////////////////////////////////////////////////////// -
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 } -
tolbase/lib/toltk/msgs/es.msg
r2f74496 r09d414b 753 753 mcset es "Undo" "Deshacer" 754 754 mcset es "Redo" "Rehacer" 755 mcset es "I dent" "Aumentar sangrÃa"756 mcset es "Uni dent" "Disminuir sangrÃa"755 mcset es "Indent" "Aumentar sangrÃa" 756 mcset es "Unindent" "Disminuir sangrÃa" 757 757 mcset es "Font" "Fuente" 758 758 mcset es "Save and Compile" "Guardar y compilar" … … 812 812 mcset es "Show line at" "Mostrar lÃnea en" 813 813 mcset es "characters" "caracteres" 814 mcset es "Characters to i dent" "Caracteres a identar"814 mcset es "Characters to indent" "Caracteres a indentar" 815 815 mcset es "CVS Options" "Opciones de CVS" 816 816 mcset es "Show differences" "Mostrar diferencias" -
tolbase/lib/toltk/tolbase.tcl
r2f74496 r09d414b 57 57 } 58 58 59 source [file join $toltk_script_path "editor.tcl"] 59 60 source [file join $toltk_script_path "markuphelper.tcl"] 60 61 source [file join $toltk_script_path "tolpkg.tcl"] … … 293 294 set widgets(eval) $sw1.eval 294 295 296 # aseguramos que se lean las opciones de Editor que vamos a compartir 295 297 #Creamos text con resaltado TOL 296 298 set w_eval [::BayesText::CreateHLText $widgets(eval) tol \ … … 318 320 bind $w_eval <F7> "::BayesText::TolSyntaxCheck $w_eval ; break" 319 321 bind $w_eval <F10> "::TolConsole::OpenEval ; break" 322 323 bind $w_eval <Control-Key-i> { 324 ::BayesText::Indent %W $::Editor::options(charsIndent) 325 break 326 } 327 328 bind $w_eval <Control-Key-u> { 329 ::BayesText::UnIndent %W $::Editor::options(charsIndent) 330 break 331 } 320 332 321 333 ## 1) Create a horizontal toolbar frame... -
tolbase/lib/toltk/tolconfig_gui.tcl
r2f74496 r09d414b 90 90 grid rowconfigure $f 0 -weight 1 91 91 grid columnconfigure $f 0 -weight 1 92 set pw [ PanedWindow $f.pw -side bottom -pad 0 -width 4 ] 93 set paneLeft [ $pwMain add ] 94 set paneRight [ $pwMain add ] 95 92 96 set tree $f.tree 93 97 wtree $tree 94 98 $tree configure -table no -filter yes -columns { 95 99 { {image text} -tags NAME -label "Name" } 96 { {text} -tags STATUS -label "Value" -editable yes}100 { {text} -tags STATUS -label "Value" } 97 101 } 98 102 grid $tree -row 0 -column 0 -sticky "snew"
Note: See TracChangeset
for help on using the changeset viewer.
