Changeset 0f71b65 in tol for tolbase/lib/toltk/editor.tcl


Ignore:
Timestamp:
Nov 25, 2016, 9:34:48 AM (10 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
0bf09a4
Parents:
f738c05
Message:

Refs #1933
Se revisa el archivo init_toltk.tcl y se soluciona el arranque de tolbase desde otro directorio cambiando el 'current directory'.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7357 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/editor.tcl

    rf738c05 r0f71b65  
    578578  $me add command -label [mc "Select all"] -accelerator CTRL+E \
    579579                  -command [list ::Editor::CmdSelectAll $this]
    580  
    581   #CVS Utilities
    582   #$m add separator
    583   #set mc [menu $f.m.cvs -tearoff 0]
    584   #$m add cascade -label [mc "CVS Utilities"] -menu $mc
    585   #$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  
    590580
    591581  bind $data(txt,ctext) <Button-3>  "tk_popup $m %X %Y"
    … …  
    12691259
    12701260#/////////////////////////////////////////////////////////////////////////////
    1271   proc ::Editor::CmdTkcvs { this mode} {
    1272 #
    1273 # PURPOSE: Execute CVS utilities
    1274 #
    1275 # PARAMETERS:
    1276 #   this -> Instance of editor
    1277 #   mode -> type of execution (0 -> tkCvs, 1 -> tkdiff)
    1278 #
    1279 #/////////////////////////////////////////////////////////////////////////////
    1280   global toltk_bin
    1281   global tkcvs_library
    1282  
    1283   variable options
    1284   upvar \#0 ${this}::data data
    1285  
    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 #/////////////////////////////////////////////////////////////////////////////
    13001261# Comandos de edición (deshacer, cortar, copiar, pegar, buscar, remplazar,...)
    13011262#/////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.