Changeset 0f71b65 in tol for tolbase/lib/toltk/editor.tcl
- Timestamp:
- Nov 25, 2016, 9:34:48 AM (10 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 0bf09a4
- Parents:
- f738c05
- File:
-
- 1 edited
-
tolbase/lib/toltk/editor.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/editor.tcl
rf738c05 r0f71b65 578 578 $me add command -label [mc "Select all"] -accelerator CTRL+E \ 579 579 -command [list ::Editor::CmdSelectAll $this] 580 581 #CVS Utilities582 #$m add separator583 #set mc [menu $f.m.cvs -tearoff 0]584 #$m add cascade -label [mc "CVS Utilities"] -menu $mc585 #$mc add command -label [mc "TkCVS"] \586 # -command [list ::Editor::CmdTkcvs $this 0]587 #$mc add command -label [mc "TkDiff"] \588 # -command [list ::Editor::CmdTkcvs $this 1]589 590 580 591 581 bind $data(txt,ctext) <Button-3> "tk_popup $m %X %Y" … … 1269 1259 1270 1260 #///////////////////////////////////////////////////////////////////////////// 1271 proc ::Editor::CmdTkcvs { this mode} {1272 #1273 # PURPOSE: Execute CVS utilities1274 #1275 # PARAMETERS:1276 # this -> Instance of editor1277 # mode -> type of execution (0 -> tkCvs, 1 -> tkdiff)1278 #1279 #/////////////////////////////////////////////////////////////////////////////1280 global toltk_bin1281 global tkcvs_library1282 1283 variable options1284 upvar \#0 ${this}::data data1285 1286 if {$mode == 0} {1287 set cmd "[file join $toltk_bin wish84.exe] [file join $tkcvs_library tkcvs.tcl]"1288 #exec c:/TclTk/bin/wish84.exe c:/TclTk/bin/tkcvs.tcl -dir $options(lastDir) &1289 exec $cmd -dir $options(lastDir) &1290 } else {1291 set cmd "[file join $toltk_bin wish84.exe] [file join $tkcvs_library tkdiff.tcl]"1292 #exec c:/TclTk/bin/wish84.exe c:/TclTk/bin/tkdiff.tcl $data(nameFile) &1293 exec $cmd $data(nameFile) &1294 }1295 1296 1297 }1298 1299 #/////////////////////////////////////////////////////////////////////////////1300 1261 # Comandos de edición (deshacer, cortar, copiar, pegar, buscar, remplazar,...) 1301 1262 #/////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.
