From 71f7937446664ba7394656da6c40b01220331627 Mon Sep 17 00:00:00 2001 From: Sergey Kalinin Date: Sun, 4 Feb 2018 16:12:12 +0300 Subject: [PATCH] Fixed paste text highlight Fixed setting edited flag when paste the text from buffer Change authors email and home page --- BUGS | 4 +- CHANGELOG | 9 +- INSTALL | 4 +- TODO | 4 +- completition.tcl | 8 +- editor.tcl | 35 +- help.tcl | 4 +- highlight/caml.tcl | 4 +- highlight/erlang.tcl | 4 +- highlight/fortran.tcl | 4 +- highlight/html.tcl | 4 +- highlight/java.tcl | 4 +- highlight/perl.tcl | 4 +- highlight/php.tcl | 4 +- highlight/rivet.tcl | 4 +- highlight/ruby.tcl | 4 +- highlight/spec.tcl | 4 +- highlight/tcl.tcl | 17 +- highlight/tex.tcl | 1155 ++++++++++++++++++++++++++++++++--- hlp/ab.htm | 2 +- hlp/en/projman/pmabout.html | 6 +- hlp/ru/convert.tcl | 4 +- hlp/ru/projman/about.html | 2 +- hlp/ru/projman/faq.txt | 4 +- hlp/ru/projman/pmabout.html | 6 +- img/copy.gif | Bin 1211 -> 1215 bytes img/new.gif | Bin 669 -> 673 bytes img/old/copy.gif | Bin 1211 -> 1215 bytes img/old/new.gif | Bin 669 -> 673 bytes img/old/paste.gif | Bin 1201 -> 1205 bytes img/old/save.gif | Bin 704 -> 708 bytes img/old/save_as.gif | Bin 1135 -> 1139 bytes img/paste.gif | Bin 1201 -> 1205 bytes img/save.gif | Bin 704 -> 708 bytes img/save_as.gif | Bin 1135 -> 1139 bytes install.tcl | 4 +- main.tcl | 4 +- msgs/de.msg | 4 +- msgs/en.msg | 4 +- msgs/fr.msg | 4 +- msgs/ru.msg | 4 +- msgs/ru_koi8.msg | 4 +- procedure.tcl | 12 +- projects.tcl | 4 +- projman.conf | 4 +- projman.tcl | 4 +- settings.tcl | 12 +- taglist.tcl | 4 +- 48 files changed, 1189 insertions(+), 183 deletions(-) diff --git a/BUGS b/BUGS index 3edcaf9..2ba091e 100644 --- a/BUGS +++ b/BUGS @@ -1,8 +1,8 @@ ###################################################### # Tcl/Tk project Manager # Distributed under GNU Public License -# Author: Sergey Kalinin banzaj@lrn.ru -# Copyright (c) "CONERO lab", 2002, http://conero.lrn.ru +# Author: Sergey Kalinin banzaj28@yandex.ru +# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru ###################################################### - Файл проекта, убрать расширение diff --git a/CHANGELOG b/CHANGELOG index 64e9e96..9ddf034 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,11 +1,14 @@ ######################################################### # Tcl/Tk Project Manager # Distributed under GNU Public License -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru +# Author: Sergey Kalinin banzaj28@yandex.ru ######################################################### 0.4.5 +04.02.2018 +- Fixed paste text highlight +- Fixed setting edited flag when paste the text from buffer 22/01/2018 - Remove ctags support @@ -367,6 +370,8 @@ Fixed bug with PageRise function + + diff --git a/INSTALL b/INSTALL index 617a7ab..e022708 100644 --- a/INSTALL +++ b/INSTALL @@ -1,7 +1,7 @@ ######################################################### # Tcl/Tk Project Manager -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru +# Author: Sergey Kalinin banzaj28@yandex.ru ######################################################### 1. Install Tcl/Tk, BWidget first diff --git a/TODO b/TODO index 64f34c3..e6e5ede 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,8 @@ ########################################################## # Tcl/Tk project Manager # Distributed under GNU Public License -# Copyright (c) "CONERO lab", 2002, http://conero.lrn.ru -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru +# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru +# Author: Sergey Kalinin banzaj28@yandex.ru ########################################################## 1. GUI diff --git a/completition.tcl b/completition.tcl index 93cf7d8..d784ec2 100644 --- a/completition.tcl +++ b/completition.tcl @@ -1,8 +1,8 @@ ########################################################### # Tcl/Tk Project Manager # # Distrubuted under GPL # -# Copyright (c) "CONERO lab", 2002, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### # AutoCompletition Procedure # # Author Alex DEDERER # @@ -13,13 +13,10 @@ proc auto_completition { widget } { set box [$widget bbox insert] set box_x [expr [lindex $box 0] + [winfo rootx $widget] ] set box_y [expr [lindex $box 1] + [winfo rooty $widget] + [lindex $box 3] ] - set cnt 0 set pos "1.0" set last_pos "" set pattern "$start_word\\w*" - #set pattern "" - set list_word($start_word) 1 while { ([set start [$widget search -count cnt -regexp -- $pattern $pos end]] != "") } { set word [$widget get $start "$start + $cnt chars"] @@ -174,4 +171,5 @@ proc auto_completition_key { widget K A } { + diff --git a/editor.tcl b/editor.tcl index cb97c32..36ad39a 100644 --- a/editor.tcl +++ b/editor.tcl @@ -1,8 +1,8 @@ ########################################################### # Tcl/Tk Project Manager # # all procedure file # -# Copyright (c) "CONERO lab", 2002, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### ## GETTING OPERATORS FOR COMPLITE PROCEDURE # @@ -47,8 +47,7 @@ proc Position {} { set posX [lindex [split $pos "."] 1] set lbl .frmStatus.frmLine.lblLine $lbl configure -text $pos -font $fontBold - - + return $pos } proc ReplaceChar {text} { global replace @@ -972,7 +971,32 @@ proc EditFile {node fileName} { bind $text "tk_textCopy $w.text;break" bind $text "tk_textCopy $w.text;break" bind $text "tk_textPaste $w.text;break" - bind $text "tk_textPaste $w.text;break" + #bind $text "tk_textPaste $w.text;break" + bind $text { + set startPos [Position] + set nodeEdit [$noteBook raise] + EditFlag $nodeEdit $file 1 + set fileList($nodeEdit) [list [lindex $fileList($nodeEdit) 0] 1] + tk_textPaste $w.text + set endPos [Position] + set lineBegin [lindex [split $startPos "."] 0] + set lineEnd [lindex [split $endPos "."] 0] + for {set line $lineBegin} {$line <= $lineEnd} {incr line} { + if {$nodeEdit == "" || $nodeEdit == "newproj" || $nodeEdit == "settings" || $nodeEdit == "about" || $nodeEdit == "debug"} { + } else { + set textEdit "$noteBook.f$nodeEdit.text" + set editLine [$textEdit get $line.0 $line.end] + if {$autoFormat == "Yes"} { + if {$fileExt != "for"} { + TabIns $textEdit + } + } + HighLight $fileExt $textEdit $editLine $line $nodeEdit + } + } + break + } + bind $text "auto_completition $text" bind $text "auto_completition $text" bind $text "auto_completition_proc $text" @@ -1147,3 +1171,4 @@ GetOp + diff --git a/help.tcl b/help.tcl index afac26c..7624db6 100644 --- a/help.tcl +++ b/help.tcl @@ -4,8 +4,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # help module # -# Copyright (c) "CONERO lab", 2002, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### #package require BWidget diff --git a/highlight/caml.tcl b/highlight/caml.tcl index 8f62e0a..f4d6747 100644 --- a/highlight/caml.tcl +++ b/highlight/caml.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### set beginQuote "0.0" set endQuote "2.0" diff --git a/highlight/erlang.tcl b/highlight/erlang.tcl index e233151..e74fcd3 100644 --- a/highlight/erlang.tcl +++ b/highlight/erlang.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### set beginQuote "0.0" set endQuote "2.0" diff --git a/highlight/fortran.tcl b/highlight/fortran.tcl index 8042558..2b3658f 100644 --- a/highlight/fortran.tcl +++ b/highlight/fortran.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### set beginQuote "0.0" set endQuote "2.0" diff --git a/highlight/html.tcl b/highlight/html.tcl index b0384fa..00afa99 100644 --- a/highlight/html.tcl +++ b/highlight/html.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### proc HighLightHTML {text line lineNumber node} { diff --git a/highlight/java.tcl b/highlight/java.tcl index 7c4e088..b2669e8 100644 --- a/highlight/java.tcl +++ b/highlight/java.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### set beginQuote "0.0" set endQuote "2.0" diff --git a/highlight/perl.tcl b/highlight/perl.tcl index c464044..62f6083 100644 --- a/highlight/perl.tcl +++ b/highlight/perl.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### set beginQuote "0.0" set endQuote "2.0" diff --git a/highlight/php.tcl b/highlight/php.tcl index 3f04525..7158e76 100644 --- a/highlight/php.tcl +++ b/highlight/php.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### proc HighLightPHP {text line lineNumber node} { diff --git a/highlight/rivet.tcl b/highlight/rivet.tcl index 5f28dec..7032dbe 100644 --- a/highlight/rivet.tcl +++ b/highlight/rivet.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### proc HighLightRIVET {text line lineNumber node} { diff --git a/highlight/ruby.tcl b/highlight/ruby.tcl index 4958d0b..2626d52 100644 --- a/highlight/ruby.tcl +++ b/highlight/ruby.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### set beginQuote "0.0" set endQuote "2.0" diff --git a/highlight/spec.tcl b/highlight/spec.tcl index 8510220..db4a5d6 100644 --- a/highlight/spec.tcl +++ b/highlight/spec.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # version 0.0.1 # # SPEC highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### proc HighLightSPEC {text line lineNumber node} { diff --git a/highlight/tcl.tcl b/highlight/tcl.tcl index 0511d42..91548fc 100644 --- a/highlight/tcl.tcl +++ b/highlight/tcl.tcl @@ -1,16 +1,14 @@ -########################################################### -# Tcl/Tk Project Manager # -# version 0.0.1 # -# TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # -########################################################### +########################################### +# Tcl/Tk Project Manager +# version 0.0.1 +# TCL highlight file +# Copyright (c) Sergey Kalinin 2001, http://nuk-svk.ru +# Author: Sergey Kalinin (aka BanZaj) banzaj28@gmail.com +########################################### proc HighLightTCL {text line lineNumber node} { global fontNormal fontBold editorFontBold tree imgDir noteBook global editor color - # set pos [$text index insert] - # set lineNumber [lindex [split $pos "."] 0] set startIndex 0 # bind text tags for highlightning # @@ -226,3 +224,4 @@ proc HighLightTCL {text line lineNumber node} { + diff --git a/highlight/tex.tcl b/highlight/tex.tcl index 7434781..1b56630 100644 --- a/highlight/tex.tcl +++ b/highlight/tex.tcl @@ -1,106 +1,1082 @@ ########################################################### # Tcl/Tk Project Manager # -# version 0.0.1 # -# TCL highlight file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Distributed under GPL # +# all procedure file # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### -proc HighLightTEX {text line lineNumber node} { - global tree color noteBook - global editor - $text tag configure bold -font $editor(fontBold) - $text tag configure procName -font $editor(fontBold) -foreground $color(procName) - $text tag configure param -foreground $color(param) - $text tag configure subParam -foreground $color(subParam) +## INSERT TEXT INTO ENTRY BOmX ## +proc InsertEnt {entry text} { + $entry delete 0 end + $entry insert end $text +} + +## GET TEXT FROM ENTRY WIDGET ## +proc Text {entry} { + set text [$entry get] +} +## FONT SELECTOR DIALOG ## +proc SelectFontDlg {font text} { + set font [SelectFont .fontdlg -parent . -font $font] + if { $font != "" } { + InsertEnt $text $font + } +} +## STATUS BAR OR ANYTHING LABEL TEXT UPDATE ## +proc LabelUpdate {widget value} { + global fontNormal + $widget configure -text $value -font $fontNormal +} +## SHOW PUP-UP MENUS ## +proc PopupMenuTree {x y} { + global tree fontNormal fontBold imgDir activeProject + set node [$tree selection get] + if {$node ==""} { + set answer [tk_messageBox\ + -message "[::msgcat::mc "Not found active project"]"\ + -type ok -icon warning] + case $answer { + ok {return 0} + } + } + $tree selection set $node + set item [$tree itemcget $node -data] + if {[string range $item 0 2] == "prj"} { + set activeProject [string range $item 4 end] + .frmStatus.frmActive.lblActive configure -text [$tree itemcget $node -text] -font $fontBold + tk_popup .popupProj $x $y + return + } + if {[info exists fileList($node)] != 1} { + # set fileList($node) $item + tk_popup .popupFile $x $y + } +} +proc PopupMenuEditor {x y} { + tk_popup .popMnuEdit $x $y +} +## GETTING FILE ATTRIBUTES ## +proc FileAttr {file} { + global tcl_platform + set fileAttribute "" + # get file modify time + if {$tcl_platform(platform) == "windows"} { + set unixTime [file mtime $file] + set modifyTime [clock format $unixTime -format "%d/%m/%Y, %H:%M"] + append fileAttribute $modifyTime + } elseif {$tcl_platform(platform) == "mac"} { - $text tag configure keyWord -foreground $color(keyWord) - $text tag configure comments -foreground $color(comments) - $text tag configure variable -foreground $color(var) - $text tag configure string -foreground $color(string) - $text tag configure brace -foreground $color(brace) - $text tag configure percent -foreground $color(percent) - $text tag configure bindKey -foreground $color(bindKey) - $text tag configure lightBracket -background $color(braceBG) -foreground $color(braceFG) +} elseif {$tcl_platform(platform) == "unix"} { + set unixTime [file mtime $file] + set modifyTime [clock format $unixTime -format "%d/%m/%Y, %H:%M"] + append fileAttribute $modifyTime +} +# get file size +set size [file size $file] +if {$size < 1024} { + set fileSize "$size b" + } + if {$size >= 1024} { + set s [expr ($size.0) / 1024] + set dot [string first "\." $s] + set int [string range $s 0 [expr $dot - 1]] + set dec [string range $s [expr $dot + 1] [expr $dot + 2]] + set fileSize "$int.$dec Kb" + } + if {$size >= 1048576} { + set s [expr ($size.0) / 1048576] + set dot [string first "\." $s] + set int [string range $s 0 [expr $dot - 1]] + set dec [string range $s [expr $dot + 1] [expr $dot + 2]] + set fileSize "$int.$dec Mb" + } + append fileAttribute ", $fileSize" +} +## OPEN TREE PROCEDURE +proc TreeOpen {node} { + global fontNormal tree projDir workDir activeProject fileList noteBook findString imgDir fontBold - set startIndex 0 - set keyWord [info commands] - # for OOP extention - foreach n {class method attribute constructor destructor invariant attribute binding new delete} { - lappend keyWord $n - } - set startPos 0 - set workLine $line - regexp -nocase -all -- {(\\)([a-zA-Z])*} string match v1 v2 - while {$workLine != ""} { - if {[regexp -nocase -all {(\\)([a-zA-Z])*} $workLine a b c]} { - set start [string first $a $workLine] - set end $start - incr end [string length $a] - set workLine [string range $workLine $end end] - incr start $startPos - incr end $startPos - $text tag add keyWord $lineNumber.$start $lineNumber.$end - set startPos $end + $tree selection set $node + set item [$tree itemcget $node -data] + if {[string range $item 0 2] == "prj"} { + set activeProject [string range $item 4 end] + puts $activeProject + .frmStatus.frmActive.lblActive configure -text [$tree itemcget $node -text] -font $fontBold + $tree itemconfigure $node -image [Bitmap::get [file join $imgDir openfold.gif]] + if {[file exists [file join $workDir $activeProject.tags]] == 1} { + GetTagList [file join $workDir $activeProject.tags] ;# geting tag list } else { - break - } + DoModule ctags + } } - # string " " highlight - set startPos 0 - set workLine $line - while {$workLine != ""} { - if {[regexp "\".*?\"" $workLine a b]} { - set start [string first $a $workLine] - set end $start - incr end [string length $a] - set workLine [string range $workLine $end end] - incr start $startPos - incr end $startPos - $text tag add string $lineNumber.$start $lineNumber.$end - set startPos $end + if {[info exists fileList($node)] != 1} { + set fileList($node) $item + if {[file isdirectory $item] == 1} { + $tree itemconfigure $node -image [Bitmap::get [file join $imgDir openfold.gif]] + } + } +} +## CLOSE TREE PROCEDURE ## +proc TreeClose {node} { + global fontNormal tree projDir workDir activeProject fileList noteBook findString imgDir fontBold + + $tree selection set $node + set item [$tree itemcget $node -data] + if {[string range $item 0 2] == "prj"} { + $tree itemconfigure $node -image [Bitmap::get [file join $imgDir folder.gif]] + } + if {[info exists fileList($node)] != 1} { + if {[file isdirectory $item] == 1} { + $tree itemconfigure $node -image [Bitmap::get [file join $imgDir folder.gif]] + } + } +} +## TREE ONE CLICK PROCEDURE ## +proc TreeOneClick {node} { + global fontNormal tree projDir workDir activeProject fileList noteBook findString imgDir fontBold + $tree selection set $node + set item [$tree itemcget $node -data] + if {[string range $item 0 2] == "prj"} { + set activeProject [string range $item 4 end] + puts $activeProject + .frmStatus.frmActive.lblActive configure -text [$tree itemcget $node -text] -font $fontBold + if {[file exists [file join $workDir $activeProject.tags]] == 1} { + GetTagList [file join $workDir $activeProject.tags] ;# geting tag list } else { - break - } + DoModule ctags + } + return } - set startPos 0 - set workLine $line - while {$workLine != ""} { - if {[regexp {\{.*?\}} $workLine a b]} { - set start [string first $a $workLine] - set end $start - incr end [string length $a] - set workLine [string range $workLine $end end] - incr start [expr $startPos +1] - incr end [expr $startPos - 1] - $text tag add param $lineNumber.$start $lineNumber.$end - set startPos $end + if {[info exists fileList($node)] != 1} { + if {[file isdirectory $item] == 1} { + return } else { - break - } + if {[file exists $item] == 1} { + LabelUpdate .frmStatus.frmHelp.lblHelp [FileAttr $item] + } + } + } else { + PageRaise $node } - set startPos 0 - set workLine $line - while {$workLine != ""} { - if {[regexp {\[.*?\]} $workLine a b]} { - set start [string first $a $workLine] - set end $start - incr end [string length $a] - set workLine [string range $workLine $end end] - incr start [expr $startPos + 1] - incr end [expr $startPos - 1] - $text tag add subParam $lineNumber.$start $lineNumber.$end - set startPos $end + if {[string range $item 0 2] == "prc"} { + set parent [$tree parent $node] + set file [$tree itemcget $parent -data] + set fileExt [string range [file extension $file] 1 end] + if {[info exists fileList($parent)] == 0} { + EditFile $parent $file + } + PageRaise $parent + $tree selection set $node + set text "$noteBook.f$parent.text" + set index1 [expr [string first "_" $item]+1] + set index2 [expr [string last "_" $item]11] + if {$fileExt == "java" || $fileExt == "ja"} { + set findString "class [string range $item $index1 $index2] " + } elseif {$fileExt == "perl" || $fileExt == "pl"} { + set findString "sub [string range $item $index1 $index2]" + } elseif {$fileExt == "ml" || $fileExt == "mli"} { + set findString "let [string range $item $index1 $index2]" + } elseif {$fileExt == "php" || $fileExt == "phtml"} { + set findString "function [string range $item $index1 $index2]" + puts $findString + #return + } elseif {$fileExt == "rb"} { + set findString "class [string range $item $index1 $index2]" } else { - break - } + set findString "proc [string range $item $index1 $index2] " + } + FindProc $text $findString $node + focus -force $text } - # add comment # - if [regexp -nocase -all -indices -- {%} $line pos] { - set cur [lindex $pos 1] - $text tag add comments $lineNumber.$cur $lineNumber.end - return 0 +} +## TREE DOUBLE CLICK PROCEDURE ## +proc TreeDoubleClick {node} { + global fontNormal tree projDir workDir activeProject fileList noteBook findString imgDir fontBold + + $tree selection set $node + set item [$tree itemcget $node -data] + if {[$tree itemcget $node -open] == 1} { + $tree itemconfigure $node -open 0 + } elseif {[$tree itemcget $node -open] == 0} { + $tree itemconfigure $node -open 1 } + if {[string range $item 0 2] == "prj"} { + set activeProject [string range $item 4 end] + .frmStatus.frmActive.lblActive configure -text [$tree itemcget $node -text] -font $fontBold + GetTagList [file join $workDir $activeProject.tags] ;# geting tag list + } + + if {[info exists fileList($node)] != 1} { + if {[file isdirectory $item] == 1} { + GetFilesSubdir $node $item + } else { + if {[file exists $item] == 1} { + EditFile $node $item + LabelUpdate .frmStatus.frmFile.lblFile "[file size $item] b." + } + } + } + if {[string range $item 0 2] == "prc"} { + $tree selection set $node + set parent [$tree parent $node] + if {[info exists fileList($parent)] != 1} { + set file [$tree itemcget $parent -data] + EditFile $parent $file + $noteBook raise $parent + } else { + $noteBook raise $parent + } + set text "$noteBook.f$parent.text" + set index1 [expr [string first "_" $item]+1] + set index2 [expr [string last "_" $item]11] + set findString "proc [string range $item $index1 $index2] " + FindProc $text $findString $node + focus -force $text + } + +} +## GETTING FILES FROM SUBCIR ## +proc GetFilesSubdir {node dir} { + global fontNormal tree projDir workDir activeProject imgDir count + global backUpFileShow + set count 1 + set rList "" + if {[catch {cd $dir}] != 0} { + return "" + } + foreach file [lsort [glob -nocomplain .*]] { + if {$file == "." || $file == ".."} { + puts $file + } else { + lappend rList [list [file join $dir $file]] + set fileName [file join $file] + set img [GetImage $fileName] + set dot "_" + regsub -all {\.} $fileName "_" subNode + set subNode "$activeProject$dot$node$dot$subNode$dot$count" + if {[$tree exists $subNode] == 1} {return} + if {$backUpFileShow == "Yes"} { + $tree insert end $node $subNode -text $fileName \ + -data [file join $dir $fileName] -open 1\ + -image [Bitmap::get [file join $imgDir $img.gif]]\ + -font $fontNormal + } + if {$backUpFileShow == "No"} { + if {[file isdirectory $fileName] == 1} { + $tree insert end $node $subNode -text $fileName \ + -data [file join $dir $fileName] -open 1\ + -image [Bitmap::get [file join $imgDir $img.gif]]\ + -font $fontNormal + } else { + if {[string index $fileName end] != "~"} { + $tree insert end $node $subNode -text $fileName \ + -data [file join $dir $fileName] -open 1\ + -image [Bitmap::get [file join $imgDir $img.gif]]\ + -font $fontNormal + } + } + } + } + incr count + } + foreach file [lsort [glob -nocomplain *]] { + lappend rList [list [file join $dir $file]] + set fileName [file join $file] + set img [GetImage $fileName] + set dot "_" + regsub -all {\.} $fileName "_" subNode + set subNode "$activeProject$dot$node$dot$subNode$dot$count" + if {[$tree exists $subNode] == 1} {return} + if {$backUpFileShow == "Yes"} { + $tree insert end $node $subNode -text $fileName \ + -data [file join $dir $fileName] -open 1\ + -image [Bitmap::get [file join $imgDir $img.gif]]\ + -font $fontNormal + } + if {$backUpFileShow == "No"} { + if {[file isdirectory $fileName] == 1} { + $tree insert end $node $subNode -text $fileName \ + -data [file join $dir $fileName] -open 1\ + -image [Bitmap::get [file join $imgDir $img.gif]]\ + -font $fontNormal + } else { + if {[string index $fileName end] != "~"} { + $tree insert end $node $subNode -text $fileName \ + -data [file join $dir $fileName] -open 1\ + -image [Bitmap::get [file join $imgDir $img.gif]]\ + -font $fontNormal + } + } + } + incr count + } + $tree itemconfigure $node -open 1 +} +## GETTING FILES FROM PROJECT DIR AND INSERT INTO TREE WIDGET ## +proc GetFiles {dir project tree} { + global fontNormal backUpFileShow imgDir + set rList "" + set count 1 + if {[catch {cd $dir}] != 0} { + return "" + } + foreach file [lsort [glob -nocomplain .*]] { + if {$file == "." || $file == ".."} { + puts $file + } else { + lappend rList [list [file join $dir $file]] + set fileName [file join $file] + set img [GetImage $fileName] + set dot "_" + regsub -all {\.} $fileName "_" subNode + set subNode "$project$dot$subNode$dot$count" + if {$backUpFileShow == "Yes"} { + $tree insert end $project $subNode -text $fileName \ + -data [file join $dir $fileName] -open 1\ + -image [Bitmap::get [file join $imgDir $img.gif]]\ + -font $fontNormal + } + if {$backUpFileShow == "No"} { + if {[string index $fileName end] != "~"} { + $tree insert end $project $subNode -text $fileName \ + -data [file join $dir $fileName] -open 1\ + -image [Bitmap::get [file join $imgDir $img.gif]]\ + -font $fontNormal + } + } + } + incr count + } + + foreach file [lsort [glob -nocomplain *]] { + lappend rList [list [file join $dir $file]] + set fileName [file join $file] + set img [GetImage $fileName] + set dot "_" + regsub -all {\.} $fileName "_" subNode + set subNode "$project$dot$subNode$dot$count" + if {$backUpFileShow == "Yes"} { + $tree insert end $project $subNode -text $fileName \ + -data [file join $dir $fileName] -open 1\ + -image [Bitmap::get [file join $imgDir $img.gif]]\ + -font $fontNormal + } + if {$backUpFileShow == "No"} { + if {[string index $fileName end] != "~"} { + $tree insert end $project $subNode -text $fileName \ + -data [file join $dir $fileName] -open 1\ + -image [Bitmap::get [file join $imgDir $img.gif]]\ + -font $fontNormal + } + } + incr count + } + $tree configure -redraw 1 +} +## GETTING PROJECT NAMES FROM DIR AND PUTS INTO +proc GetProj {tree} { + global projDir workDir fontNormal imgDir module + set rList "" + if {[catch {cd $workDir}] != 0} { + return "" + } + foreach proj [lsort [glob -nocomplain *.proj]] { + lappend rList [list [file join $workDir $proj]] + set projFile [open [file join $workDir $proj] r] + set prjName [file rootname $proj] + while {[gets $projFile line]>=0} { + scan $line "%s" keyWord + set string [string range $line [string first "\"" $line] [string last "\"" $line]] + set string [string trim $string "\""] + if {$keyWord == "ProjectName"} { + regsub -all " " $string "_" project + set projName "$string" + } + if {$keyWord == "ProjectDirName"} { + set projList($prjName) [file dirname $string] + puts "$projList($prjName) - $string" + $tree insert end root $prjName -text "$projName" -font $fontNormal \ + -data "prj_$prjName" -open 0\ + -image [Bitmap::get [file join $imgDir folder.gif]] + GetFiles [file join $string] $prjName $tree + set dir $string + } + } + } + $tree configure -redraw 1 +} + +## ABOUT PROGRAMM DIALOG ## +proc AboutDialog {} { + global docDir imgDir tree noteBook ver fontNormal dataDir env + set w {} + # prevent double creation "About" page + if { [catch {set w [$noteBook insert end about -text [::msgcat::mc "About ..."]]} ] } { + $noteBook raise about + return + } + frame $w.frmImg -borderwidth 2 -relief ridge -background white + image create photo imgAbout -format gif -file [file join $imgDir projman.gif] + label $w.frmImg.lblImg -image imgAbout + pack $w.frmImg.lblImg -side top -pady 5 -padx 5 + + frame $w.frmlbl -borderwidth 2 -relief ridge + label $w.frmlbl.lblVersion -text "[::msgcat::mc Version] $ver" + label $w.frmlbl.lblCompany -text "License: GPL" + label $w.frmlbl.lblAuthorName -text "[::msgcat::mc Author]: Sergey Kalinin" + label $w.frmlbl.lblEmail -text "[::msgcat::mc E-mail]: banzaj28@gmail.com" + label $w.frmlbl.lblWWW -fg black \ + -text "[::msgcat::mc "Home page"]: https://bitbucket.org/svk28/projman/ , https://nuk-svk.ru" + + pack $w.frmlbl.lblVersion $w.frmlbl.lblCompany $w.frmlbl.lblAuthorName \ + $w.frmlbl.lblEmail $w.frmlbl.lblWWW -side top -padx 5 + frame $w.frmThanks -borderwidth 2 -relief ridge + label $w.frmThanks.lblThanks -text "[::msgcat::mc Thanks]" -font $fontNormal + text $w.frmThanks.txtThanks -width 10 -height 10 -font $fontNormal\ + -selectborderwidth 0 -selectbackground #55c4d1 -width 10 + pack $w.frmThanks.lblThanks -pady 5 + pack $w.frmThanks.txtThanks -fill both -expand true + + frame $w.frmBtn -borderwidth 2 -relief ridge + button $w.frmBtn.btnOk -text [::msgcat::mc "Close"] -borderwidth {1} \ + -command { + $noteBook delete about + $noteBook raise [$noteBook page end] + } + pack $w.frmBtn.btnOk -pady 2 + pack $w.frmImg -side top -fill x + pack $w.frmlbl -side top -expand true -fill both + pack $w.frmThanks -side top -expand true -fill both + pack $w.frmBtn -side top -fill x + + bind $w "$noteBook delete about" + bind $w "$noteBook delete about" + bind $w {$noteBook delete about} + # + #bind $w.frmlbl.lblWWW { + # .frmBody.frmWork.noteBook.fabout.frmlbl.lblWWW configure -fg blue -cursor hand1 + # LabelUpdate .frmStatus.frmHelp.lblHelp "Goto http://nuk-svk.ru" + #} + #bind $w.frmlbl.lblWWW { + # .frmBody.frmWork.noteBook.fabout.frmlbl.lblWWW configure -fg black + # LabelUpdate .frmStatus.frmHelp.lblHelp "" + #} + #bind $w.frmlbl.lblWWW {GoToURL "http://nuk-svk.ru"} + # + bind $w.frmlbl.lblEmail { + .frmBody.frmWork.noteBook.fabout.frmlbl.lblEmail configure -fg blue -cursor hand1 + LabelUpdate .frmStatus.frmHelp.lblHelp "Send email \"banzaj28@yandex.ru\"" + } + bind $w.frmlbl.lblEmail { + .frmBody.frmWork.noteBook.fabout.frmlbl.lblEmail configure -fg black + LabelUpdate .frmStatus.frmHelp.lblHelp "" + } + #bind $w.frmlbl.lblEmail {SendEmail "http://nuk-svk.ru"} + + + $noteBook raise about + focus $w.frmBtn.btnOk + if {[file exists $env(HOME)/projects/tcl/projman]==1} { + set file [open [file join $dataDir THANKS] r] + } else { + set file [open [file join $docDir THANKS] r] + } + while {[gets $file line]>=0} { + $w.frmThanks.txtThanks insert end "$line\n" + } + close $file + $w.frmThanks.txtThanks configure -state disable +} +## CLOSE FILE ## +proc CloseFile {} { + global docDir imgDir tree noteBook ver fontNormal node + set w [$noteBook itemcget page option insert end settings -text [::msgcat::mc "Settings"]] + + $noteBook raise settings +} +## GET LOCALE NAMES FROM MESSAGES FILE ## +proc GetLocale {} { + global msgDir localeList + set localeList "" + if {[catch {cd $msgDir}] != 0} { + return "" + } + foreach file [lsort [glob -nocomplain *.msg]] { + lappend localeList [list [file rootname $file]] + } + return $localeList +} +## MAKING TAR ARCHIVE ## +proc MakeTGZ {} { + global activeProject tgzDir tgzNamed workDir projDir env tcl_platform + if {$activeProject == ""} { + set answer [tk_messageBox\ + -message [::msgcat::mc "Not found active project"]\ + -type ok -icon warning\ + -title [::msgcat::mc "Warning"]] + case $answer { + ok {return 0} + } + } + FileDialog save_all + set file [open [file join $workDir $activeProject.proj] r] + while {[gets $file line]>=0} { + scan $line "%s" keyWord + set string [string range $line [string first "\"" $line] [string last "\"" $line]] + set string [string trim $string "\""] + if {$keyWord == "ProjectDirName"} { + set dir "$string" + } + if {$keyWord == "ProjectVersion"} { + set version "$string" + } + if {$keyWord == "ProjectRelease"} { + set release "$string" + } + } + close $file + set res [split $tgzNamed "-"] + set name [lindex $res 0] + set ver [lindex $res 1] + set rel [lindex $res 2] + if {$name == "projectName"} { + set name $activeProject + } + if {$ver == "version"} { + append name "-$version" + } + if {$rel == "release"} { + append name "-$release" + } + # multiplatform featuring # + if {$tcl_platform(platform) == "windows"} { + append name ".zip" + } elseif {$tcl_platform(platform) == "mac"} { + append name ".zip" + } elseif {$tcl_platform(platform) == "unix"} { + append name ".tar.gz" + } + catch {cd $projDir} res + if {[file exists [file join $tgzDir $name]] == 1} { + set answer [tk_messageBox\ + -message "[::msgcat::mc "File already exists. Overwrite?"] \"$name\" ?"\ + -type yesno -icon question -default yes\ + -title [::msgcat::mc "Question"]] + case $answer { + yes {file delete [file join $tgzDir $name]} + no {return 0} + } + } + # multiplatform featuring # + if {$tcl_platform(platform) == "windows"} { + catch [exec pkzip -r -p [file join $tgzDir $name] [file join $activeProject *]] err + } elseif {$tcl_platform(platform) == "mac"} { + catch [exec zip -c [file join $tgzDir $name] $activeProject] err + } elseif {$tcl_platform(platform) == "unix"} { + catch [exec tar -czvf [file join $tgzDir $name] $activeProject] err + } + # message dialog # + set msg "[::msgcat::mc "Archive created in"] [file join $tgzDir $name]" + set icon info + set answer [tk_messageBox\ + -message "$msg"\ + -type ok -icon $icon] + case $answer { + ok {return 0} + } +} + +## MAKING RPM ## +proc MakeRPM {} { + global activeProject tgzDir tgzNamed workDir projDir env tcl_platform + + set answer [tk_messageBox\ + -message "[::msgcat::mc "Not implemented yet"]"\ + -type ok -icon info] + case $answer { + ok {return 0} + } + + + if {$activeProject == ""} { + set answer [tk_messageBox\ + -message "[::msgcat::mc "Not found active project"]"\ + -type ok -icon warning -title [::msgcat::mc "Warning"]] + case $answer { + ok {return 0} + } + } + + set file [open [file join $workDir $activeProject.proj] r] + while {[gets $file line]>=0} { + scan $line "%s" keyWord + set string [string range $line [string first "\"" $line] [string last "\"" $line]] + set string [string trim $string "\""] + if {$keyWord == "ProjectDirName"} { + set dir "$string" + } + if {$keyWord == "ProjectVersion"} { + set version "$string" + } + if {$keyWord == "ProjectRelease"} { + set release "$string" + } + } + close $file + set res [split $tgzNamed "-"] + set name [lindex $res 0] + set ver [lindex $res 1] + set rel [lindex $res 2] + if {$name == "projectName"} { + set name $activeProject + } + if {$ver == "version"} { + append name "-$version" + } + if {$rel == "release"} { + append name "-$release" + } + append name ".tar.gz" + catch {cd $projDir} res + if {[file exists $tgzDir/$name] == 1} { + set answer [tk_messageBox\ + -message "[::msgcat::mc "File already exists. Overwrite?"] \"$name\" ?"\ + -type yesno -icon question -default yes] + case $answer { + yes {file delete $tgzDir/$name} + no {return 0} + } + } + catch [exec tar -czvf $tgzDir/$name $activeProject] pipe +} + +## PROGRESS DIALOG ## +proc Progress {oper} { + global progval + if {$oper == "start"} { + set prg [ProgressBar .frmStatus.frmProgress.lblProgress.progress\ + -variable progval -type infinite -borderwidth 0] + pack $prg -side left -fill both -expand true + } elseif {$oper == "stop"} { + destroy .frmStatus.frmProgress.lblProgress.progress + } + # ProgUpdate +} +proc ProgUpdate { } { + global progval + set progval 5 +} + +## SHOW HELP WINDOW ## +proc ShowHelp {} { + global dataDir + if {[winfo exists .help] == 1} { + focus -force .help + raise .help + } else { + TopLevelHelp + } + if {[catch {set word [selection get]} error] != 0} { + set word " " + } else { + puts $word + TopLevelHelp + SearchWord $word + } +} + +## EXEC EXTERNAL BROWSER AND GOTO URL ## +proc GoToURL {url} { + global env tcl_platform + if {$tcl_platform(platform) == "windows"} { + set pipe [open "|iexplore $url" "r"] + } elseif {$tcl_platform(platform) == "mac"} { + set pipe [open "|iexplore $url" "r"] + } elseif {$tcl_platform(platform) == "unix"} { + set pipe [open "|$env(BROWSER) $url" "r"] + } + fileevent $pipe readable + fconfigure $pipe -buffering none -blocking no +} +## SEND EMAIL PROCEDURE ## +proc SendEmail {mail} { + global env tcl_platform + if {$tcl_platform(platform) == "windows"} { + + } elseif {$tcl_platform(platform) == "mac"} { + + } elseif {$tcl_platform(platform) == "unix"} { +# set pipe [open "|$env(BROWSER) $url" "r"] + set answer [tk_messageBox\ + -message "[::msgcat::mc "Not implemented yet"]"\ + -type ok -icon info] + case $answer { + ok {return 0} + } +} +# fileevent $pipe readable +# fconfigure $pipe -buffering none -blocking no +} +## QUIT PROJECT MANAGER PROCEDURE ## +proc Quit {} { + set v [FileDialog close_all] + if {$v == "cancel"} { + return + } else { + exit + } +} +## PRINT DIALOG ## +proc PrintDialog {} { + global fontNormal fontBold selectPrint + set wp .print + # destroy the print window if it already exists + if {[winfo exists $wp]} { + destroy $wp + } + # create the new "find" window + toplevel $wp + wm transient $wp . + wm title $wp [::msgcat::mc "Print ..."] + wm resizable $wp 0 0 + frame $wp.frmLbl + frame $wp.frmEnt + frame $wp.frmField + frame $wp.frmBtn + pack $wp.frmLbl $wp.frmEnt $wp.frmField $wp.frmBtn -side top -fill x + label $wp.frmLbl.lblPrint -text [::msgcat::mc "Print command"] -font $fontNormal + pack $wp.frmLbl.lblPrint -fill x -expand true -padx 2 + entry $wp.frmEnt.entPrint -font $fontNormal + pack $wp.frmEnt.entPrint -fill x -expand true -padx 2 + + checkbutton $wp.frmField.chkSelect -text [::msgcat::mc "Print selected text"] -variable selectPrint\ + -font $fontNormal -onvalue true -offvalue false ;#-command Check + pack $wp.frmField.chkSelect -fill x -expand true -padx 2 + + button $wp.frmBtn.btnPrint -text [::msgcat::mc "Print"] -font $fontNormal -width 12 -relief groove\ + -command { + Print [.print.frmEnt.entPrint get] + destroy .print + } + button $wp.frmBtn.btnCancel -text [::msgcat::mc "Cancel"] -font $fontNormal -width 12 -relief groove\ + -command "destroy .print" + pack $wp.frmBtn.btnPrint $wp.frmBtn.btnCancel -side left -padx 2 -pady 2 -fill x -expand true + InsertEnt $wp.frmEnt.entPrint "lpr" + bind $wp "destroy .print" +} +## PRINT COMMAND ## +proc Print {command} { + global noteBook fontNormal fontBold fileList selectPrint tmpDir + set node [$noteBook raise] + set text "$noteBook.f$node.frame.text" + set command lpr + + if {$node == "newproj" || $node == "settings" || $node == "about" || $node == ""} { + set answer [tk_messageBox\ + -message "[::msgcat::mc "Don't selected file"]"\ + -type ok -icon warning\ + -title [::msgcat::mc "Warning"]] + case $answer { + ok {return 0} + } + } + if {$selectPrint == "true"} { + set selIndex [$text tag ranges sel] + set start [lindex $selIndex 0] + set end [lindex $selIndex 1] + set prnText [$text get $start $end] + set file [file join $tmpDir projprn.tmp] + set f [open $file "w"] + puts $f $prnText + close $f + } else { + set file [lindex $fileList($node) 0] + } + set pipe [open "|$command $file" "r"] + fileevent $pipe readable + fconfigure $pipe -buffering none -blocking no +} + +## GETTING EXTERNAL MODULES ## +proc Modules {} { + global tcl_platform + global module tclDir dataDir binDir + # TkDIFF loading + foreach m {tkcvs tkdiff gitk tkregexp} { + if {$tcl_platform(platform) == "unix"} { + if {$m == "tkregexp"} { + set module($m) "[file join $binDir tkregexp.tcl]" + break + } + set string [exec whereis $m] + scan $string "%s%s" v module($m) + if {[info exists module($m)] && [file isdirectory $module($m)] == 0} { + puts "Find $module($m)" + } else { + set module($m) "" + } + } + } +} + +## RUNNING MODULE ## +proc DoModule {mod} { + global tcl_platform + global module activeProject projDir tree tclDir dataDir workDir + if {$activeProject == ""} { + set answer [tk_messageBox\ + -message "[::msgcat::mc "Not found active project"]"\ + -type ok -icon warning\ + -title [::msgcat::mc "Warning"]] + case $answer { + ok {return 0} + } + } + set file [open [file join $workDir $activeProject.proj] r] + while {[gets $file line]>=0} { + scan $line "%s" keyWord + set string [string range $line [string first "\"" $line] [string last "\"" $line]] + set string [string trim $string "\""] + if {$keyWord == "ProjectName"} { + set projName "$string" + } + if {$keyWord == "ProjectFileName"} { + set projFileName "$string" + } + if {$keyWord == "ProjectDirName"} { + set dir "$string" + } + if {$keyWord == "ProjectCompiler"} { + set projCompiler "$string" + } + if {$keyWord == "ProjectInterp"} { + set projInterp "$string" + } + } + close $file + + puts $dir + + set curDir [pwd] + case $mod { + tkcvs { + set pipe [open "|$module(tkcvs) -dir $dir" "r"] + fileevent $pipe readable + fconfigure $pipe -buffering none -blocking no + } + tkdiff { + set files [$tree selection get] + if {[llength $files] == 0} { + set answer [tk_messageBox\ + -message "[::msgcat::mc "Don't selected file"]"\ + -type ok -icon warning\ + -title [::msgcat::mc "Warning"]] + case $answer { + ok {return 0} + } + } + if {[llength $files] == 1} { + if {$files != ""} { + set file1 [$tree itemcget $files -data] + } + set command "-r $file1" + } + if {[llength $files] == 2} { + if {[lindex $files 0] != ""} { + set file1 [$tree itemcget [lindex $files 0] -data] + } + if {[lindex $files 1] != ""} { + set file2 [$tree itemcget [lindex $files 1] -data] + } + set command "$file1 $file2" + } + if {[llength $files] > 2} { + set answer [tk_messageBox\ + -message "[::msgcat::mc "Must be one or two file select!"]"\ + -type ok -icon info\ + -title [::msgcat::mc "Warning"]] + case $answer { + ok {return 0} + } + } + set pipe [open "|$module(tkdiff) $command" "r"] + fileevent $pipe readable + fconfigure $pipe -buffering none -blocking no + } + tkregexp { + set files [$tree selection get] + if {[llength $files] == 0} { + set command "" + } elseif {[llength $files] == 1} { + if {$files != ""} { + set file [$tree itemcget $files -data] + } + set command "$file" + } else { + set answer [tk_messageBox\ + -message "[::msgcat::mc "Must be one file select!"]"\ + -type ok -icon info\ + -title [::msgcat::mc "Warning"]] + case $answer { + ok {return 0} + } + } + puts "$module(tkregexp) $command" + set pipe [open "|$module(tkregexp) $command" "r"] + fileevent $pipe readable + fconfigure $pipe -buffering none -blocking no + } + gitk { + set pipe [open "|$module(gitk)" "r"] + fileevent $pipe readable + fconfigure $pipe -buffering none -blocking no + } + } +} + +proc SelectDir {dir} { + global projDir workDir openProjDir + set dirName [tk_chooseDirectory -initialdir $dir\ + -title "[::msgcat::mc "Select directory"]"\ + -parent .] + return $dirName +} +## UPDATE TREE ## +proc UpdateTree {} { + global tree + $tree delete [$tree nodes root] + GetProj $tree +} +## TOOLBAR ON/OFF PROCEDURE ## +proc ToolBar {} { + global toolBar + if {$toolBar == "Yes"} { + CreateToolBar + } elseif {$toolBar == "No"} { + destroy .frmTool.btnNew .frmTool.btnSave .frmTool.btnSaveAs .frmTool.btnSaveAll\ + .frmTool.btnCopy .frmTool.btnPaste .frmTool.btnCut .frmTool.btnDo .frmTool.btnPrint\ + .frmTool.btnDoFile .frmTool.btnTGZ .frmTool.btnHelp .frmTool.btnClose + .frmTool configure -height 1 + } +} + + +## LOADING HIGHLIGHT FILES ## +proc HighLight {ext text line lineNumber node} { + global font tree color noteBook hlDir + + if {[file exists [file join $hlDir $ext.tcl]] == 1} { + HighLight[string toupper $ext] $text $line $lineNumber $node + } elseif {($ext == "htm") || ($ext == "xml") || ($ext == "fm") || ($ext == "html")} { + HighLightHTML $text $line $lineNumber $node + } elseif {($ext == "pl")} { + HighLightPERL $text $line $lineNumber $node + } elseif {($ext == "for")} { + HighLightFORTRAN $text $line $lineNumber $node + } elseif {($ext == "ml") || ($ext == "mli")} { + HighLightML $text $line $lineNumber $node + } elseif {($ext == "rvt") || ($ext == "tml")} { + HighLightRIVET $text $line $lineNumber $node + } elseif {($ext == "php") || ($ext == "phtml")} { + HighLightPHP $text $line $lineNumber $node + } elseif {($ext == "rb")} { + HighLightRUBY $text $line $lineNumber $node + } else { + HighLightTCL $text $line $lineNumber $node + } +} + +## GET IMAGE FOR tree AND notebook WIDGETS ## +proc GetImage {fileName} { + global imgDir + if {[file isdirectory $fileName] == 1} { + set img "folder" + set data "dir" + } elseif {[string match "*.tcl" $fileName] == 1} { + set img "tcl" + set data "src" + } elseif {[string match "*.tk" $fileName] == 1} { + set img "tk" + set data "src" + } elseif {[string match "*.rvt" $fileName] == 1} { + set img "rvt" + set data "src" + } elseif {[string match "*.tex" $fileName] == 1} { + set img "tex" + set data "src" + } elseif {[string match "*.html" $fileName] == 1 || [string match "*.htm" $fileName] == 1} { + set img "html" + set data "src" + } elseif {[string match "*.gif" $fileName] == 1 || [string match "*.xpm" $fileName] == 1 || \ + [string match "*.png" $fileName] == 1 || [string match "*.jpg" $fileName] == 1 || \ + [string match "*.xbm" $fileName] == 1 || [string match "*.jpeg" $fileName] == 1 || \ + [string match "*.bmp" $fileName] == 1} { + set img "img" + set data "img" + } elseif {[string match "*.xml" $fileName] == 1} { + set img "xml" + set data "xml" + } elseif {[string match "*.java" $fileName] == 1 || [string match "*.ja" $fileName] == 1} { + set img "java" + set data "src" + } elseif {[string match "*.c" $fileName] == 1} { + set img "c" + set data "src" + } elseif {[string match "*.cpp" $fileName] == 1} { + set img "cpp" + set data "src" + } elseif {[string match "*.spec" $fileName] == 1} { + set img "rpm" + set data "src" + } elseif {[string match "*.pl" $fileName] == 1} { + set img "perl" + set data "src" + } elseif {[string match "*.for" $fileName] == 1 || [string match "*.f" $fileName] == 1} { + set img "fortran" + set data "src" + } elseif {[string match "*.ml" $fileName] == 1 || [string match "*.mli" $fileName] == 1} { + set img "caml" + set data "src" + } elseif {[string match "*.tml" $fileName] == 1 || [string match "*.rvt" $fileName] == 1} { + set img "tclhtml" + set data "src" + } elseif {[string match "*.php" $fileName] == 1 || [string match "*.phtml" $fileName] == 1} { + set img "php" + set data "src" + } elseif {[string match "*.rb" $fileName] == 1} { + set img "ruby" + set data "src" + } else { + set img "file" + set data "txt" + } + + return $img +} + +proc GetExtention {node} { + global fileList + set ext [string range [file extension [file tail [lindex $fileList($node) 0]]] 1 end] + return $ext +} + + +proc TextOperation {oper} { + global noteBook + set nb [$noteBook raise] + if {$nb == "" || $nb == "newproj" || $nb == "about" || $nb == "debug"} { + return + } + set nb "$noteBook.f$nb" + switch $oper { + "copy" {tk_textCopy $nb.text} + "paste" {tk_textPaste $nb.text} + "cut" {tk_textCut $nb.text} + "redo" {$nb.text edit redo} + "undo" {$nb.text edit undo} + } + unset nb } @@ -112,3 +1088,6 @@ proc HighLightTEX {text line lineNumber node} { + + + diff --git a/hlp/ab.htm b/hlp/ab.htm index a1e3b46..d816272 100644 --- a/hlp/ab.htm +++ b/hlp/ab.htm @@ -10,7 +10,7 @@

© 1992-2001.

DataX/FLORIN, Inc. -CONERO lab +Sergey Kalinin diff --git a/hlp/en/projman/pmabout.html b/hlp/en/projman/pmabout.html index 57e6c0b..42b3431 100644 --- a/hlp/en/projman/pmabout.html +++ b/hlp/en/projman/pmabout.html @@ -1,7 +1,7 @@ About Tcl/Tk Project Manager

Tcl/Tk Project Manager

-

Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru -
Home page: http://conero.lrn.ru +

Author: Sergey Kalinin banzaj28@yandex.ru +
Home page: http://nuk-svk.ru

Tcl/Tk Project Manager is a full IDE for programming in TCL/Tk. It includes a project and file manager, a source editor with @@ -10,6 +10,6 @@ help system, and much more. Included TkDIFF+ - compare tools and TkREGEXP - a gr
Working an Unix (Linux tested) and Windows. -

© Copyright CONERO lab, 2002 +

© Copyright Sergey Kalinin, 2002 diff --git a/hlp/ru/convert.tcl b/hlp/ru/convert.tcl index ca86a62..d287edb 100644 --- a/hlp/ru/convert.tcl +++ b/hlp/ru/convert.tcl @@ -1,8 +1,8 @@ ###################################################### # Tk LaTeX Editor # Distributed under GNU Public License -# Author: Sergey Kalinin (BanZaj) banzaj@lrn.ru -# Copyright (c) "CONERO lab", 2002, http://conero.lrn.ru +# Author: Sergey Kalinin banzaj28@yandex.ru +# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru ###################################################### diff --git a/hlp/ru/projman/about.html b/hlp/ru/projman/about.html index af99090..d275bbd 100644 --- a/hlp/ru/projman/about.html +++ b/hlp/ru/projman/about.html @@ -10,7 +10,7 @@

© 1992-2001.

DataX/FLORIN, Inc. -CONERO lab +Sergey Kalinin diff --git a/hlp/ru/projman/faq.txt b/hlp/ru/projman/faq.txt index 0ba1c71..d24be29 100644 --- a/hlp/ru/projman/faq.txt +++ b/hlp/ru/projman/faq.txt @@ -22,7 +22,7 @@ Tcl/Tk Project Manager FAQ 0.1 Tcl/Tk( Tcl/Tk http://www.tcl-tk.org), BWidget -Tcl/Tk Project Manager( http://conero.lrn.ru) +Tcl/Tk Project Manager( http://nuk-svk.ru) ProjMan INSTALL . @@ -56,5 +56,5 @@ Tcl/Tk Project Manager( -- Igor Didkovsky aka Gor (ididkovsky@mail.ru) -Segey Kalinin aka BanZaj (banzaj@lrn.ru) +Segey Kalinin (banzaj28@yandex.ru) diff --git a/hlp/ru/projman/pmabout.html b/hlp/ru/projman/pmabout.html index a33328f..92290bf 100644 --- a/hlp/ru/projman/pmabout.html +++ b/hlp/ru/projman/pmabout.html @@ -1,8 +1,8 @@ About Tcl/Tk Project Manager

Tcl/Tk Project Manager

Version 1.0.0
-

: (aka BanZaj) banzaj@lrn.ru -
: http://conero.lrn.ru +

: (aka BanZaj) banzaj28@yandex.ru +
: http://nuk-svk.ru

IDE Tcl/Tk

: @@ -20,6 +20,6 @@ Version 1.0.0


  -- IDE
- IDE -

© Copyright CONERO lab, 2002 +

© Copyright Sergey Kalinin, 2002 diff --git a/img/copy.gif b/img/copy.gif index e4557db57a36b7399884f36ab3a027c4084af17e..8bef3c7c13c18fab68f96fe442014706fa3ea9bf 100644 GIT binary patch delta 27 icmdnZxu0``05e~3YEgP>rGj^2PG(+a-exK0g^U1!;0YxF delta 23 ecmdnbxtnu?05g}fzn^Q6zd}x8(q=j4g^U1I*9PSP diff --git a/img/new.gif b/img/new.gif index 541da4fd3d3622c199f5fc8a01f752c8c3ed5fe5..fa061fa7756cfd7326a8a0f23b9189de1ee7a334 100644 GIT binary patch delta 27 icmbQsx{!6l1V+B#)S~p%N(Jx4oXot;yv?&1nHd3wlnFlo delta 23 ecmZ3;I+u0B1V%1re?QkCe}$aHq|NgfnHd3DqXz!~ diff --git a/img/old/copy.gif b/img/old/copy.gif index e4557db57a36b7399884f36ab3a027c4084af17e..8bef3c7c13c18fab68f96fe442014706fa3ea9bf 100644 GIT binary patch delta 27 icmdnZxu0``05e~3YEgP>rGj^2PG(+a-exK0g^U1!;0YxF delta 23 ecmdnbxtnu?05g}fzn^Q6zd}x8(q=j4g^U1I*9PSP diff --git a/img/old/new.gif b/img/old/new.gif index 541da4fd3d3622c199f5fc8a01f752c8c3ed5fe5..fa061fa7756cfd7326a8a0f23b9189de1ee7a334 100644 GIT binary patch delta 27 icmbQsx{!6l1V+B#)S~p%N(Jx4oXot;yv?&1nHd3wlnFlo delta 23 ecmZ3;I+u0B1V%1re?QkCe}$aHq|NgfnHd3DqXz!~ diff --git a/img/old/paste.gif b/img/old/paste.gif index 56d20473702fb487335a9d73a923697000b1b59b..bb1b731485349eebc45b4ca9f8f77f995621a046 100644 GIT binary patch delta 27 icmdnUxs`K+05e~3YEgP>rGj^2PG(+a-exK0>5Kq>#0dug delta 23 ecmdnWxsh{&05g}fzn^Q6zd}x8(q=j4>5KqW3kJsk diff --git a/img/old/save.gif b/img/old/save.gif index 549c17f611d2e6edbad1d1079ac04ebdfee33bd6..b288cfb9f8245d293e80e9eb63e357071992d090 100644 GIT binary patch delta 27 icmX@WdW3bu1V+B#)S~p%N(Jx4oXot;yv?&1)ffSd_6eu} delta 23 ecmX@YdVqDq1V%1re?QkCe}$aHq|Ngf)ffR^?FVQ8 diff --git a/img/old/save_as.gif b/img/old/save_as.gif index be9e8c294adf7853fc2e90cda59312d9ebdb301d..dd6566293210e300a5bb2d094fc85a5d5f17f153 100644 GIT binary patch delta 27 icmaFQ@tI?T05e~3YEgP>rGj^2PG(+a-exK0P(}cYrU^d) delta 23 ecmey&@t$LY05g}fzn^Q6zd}x8(q=j4P(}b=1qS~B diff --git a/img/paste.gif b/img/paste.gif index 56d20473702fb487335a9d73a923697000b1b59b..bb1b731485349eebc45b4ca9f8f77f995621a046 100644 GIT binary patch delta 27 icmdnUxs`K+05e~3YEgP>rGj^2PG(+a-exK0>5Kq>#0dug delta 23 ecmdnWxsh{&05g}fzn^Q6zd}x8(q=j4>5KqW3kJsk diff --git a/img/save.gif b/img/save.gif index 549c17f611d2e6edbad1d1079ac04ebdfee33bd6..b288cfb9f8245d293e80e9eb63e357071992d090 100644 GIT binary patch delta 27 icmX@WdW3bu1V+B#)S~p%N(Jx4oXot;yv?&1)ffSd_6eu} delta 23 ecmX@YdVqDq1V%1re?QkCe}$aHq|Ngf)ffR^?FVQ8 diff --git a/img/save_as.gif b/img/save_as.gif index be9e8c294adf7853fc2e90cda59312d9ebdb301d..dd6566293210e300a5bb2d094fc85a5d5f17f153 100644 GIT binary patch delta 27 icmaFQ@tI?T05e~3YEgP>rGj^2PG(+a-exK0P(}cYrU^d) delta 23 ecmey&@t$LY05g}fzn^Q6zd}x8(q=j4P(}b=1qS~B diff --git a/install.tcl b/install.tcl index 6be9ced..fe901ef 100644 --- a/install.tcl +++ b/install.tcl @@ -3,8 +3,8 @@ ########################################################### # Tcl/Tk Project Manager # # install script # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### ## SETTING VARIABLES AND DIRECTORYES ## diff --git a/main.tcl b/main.tcl index dee81db..6ca26ab 100644 --- a/main.tcl +++ b/main.tcl @@ -1,8 +1,8 @@ ########################################################### # Tcl/Tk Project Manager # # Distrubuted under GPL # -# Copyright (c) "CONERO lab", 2002, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### Modules diff --git a/msgs/de.msg b/msgs/de.msg index 8c4c643..691c686 100644 --- a/msgs/de.msg +++ b/msgs/de.msg @@ -1,7 +1,7 @@ ########################################################### # Tcl/Tk Project Manager # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### # german messages file # # Author: Roman Schaller # diff --git a/msgs/en.msg b/msgs/en.msg index c4ca9a7..001c5f8 100644 --- a/msgs/en.msg +++ b/msgs/en.msg @@ -1,8 +1,8 @@ ########################################################### # Tcl/Tk Project Manager # # english messages file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### ::msgcat::mcset en "About ..." diff --git a/msgs/fr.msg b/msgs/fr.msg index ae2a222..2bf5207 100644 --- a/msgs/fr.msg +++ b/msgs/fr.msg @@ -1,8 +1,8 @@ ########################################################### # Tcl/Tk Project Manager # # french messages file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # # Traduction: Michel SALVAGNIAC michel.salvagniac@free.fr # ########################################################### # french messages file # diff --git a/msgs/ru.msg b/msgs/ru.msg index 40e18fa..22cf6d3 100644 --- a/msgs/ru.msg +++ b/msgs/ru.msg @@ -1,8 +1,8 @@ ########################################################### # Tcl/Tk Project Manager # # russian messages file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### ::msgcat::mcset ru "About ..." "О программе" diff --git a/msgs/ru_koi8.msg b/msgs/ru_koi8.msg index a3ef67a..df6241a 100644 --- a/msgs/ru_koi8.msg +++ b/msgs/ru_koi8.msg @@ -1,8 +1,8 @@ ########################################################### # Tcl/Tk Project Manager # # russian messages file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### ::msgcat::mcset ru "About ..." " " diff --git a/procedure.tcl b/procedure.tcl index e3168fc..021be68 100644 --- a/procedure.tcl +++ b/procedure.tcl @@ -2,8 +2,8 @@ # Tcl/Tk Project Manager # # Distributed under GPL # # all procedure file # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### ## INSERT TEXT INTO ENTRY BOmX ## @@ -456,23 +456,23 @@ proc AboutDialog {} { # #bind $w.frmlbl.lblWWW { # .frmBody.frmWork.noteBook.fabout.frmlbl.lblWWW configure -fg blue -cursor hand1 - # LabelUpdate .frmStatus.frmHelp.lblHelp "Goto http://conero.lrn.ru" + # LabelUpdate .frmStatus.frmHelp.lblHelp "Goto http://nuk-svk.ru" #} #bind $w.frmlbl.lblWWW { # .frmBody.frmWork.noteBook.fabout.frmlbl.lblWWW configure -fg black # LabelUpdate .frmStatus.frmHelp.lblHelp "" #} - #bind $w.frmlbl.lblWWW {GoToURL "http://conero.lrn.ru"} + #bind $w.frmlbl.lblWWW {GoToURL "http://nuk-svk.ru"} # bind $w.frmlbl.lblEmail { .frmBody.frmWork.noteBook.fabout.frmlbl.lblEmail configure -fg blue -cursor hand1 - LabelUpdate .frmStatus.frmHelp.lblHelp "Send email \"banzaj@lrn.ru\"" + LabelUpdate .frmStatus.frmHelp.lblHelp "Send email \"banzaj28@yandex.ru\"" } bind $w.frmlbl.lblEmail { .frmBody.frmWork.noteBook.fabout.frmlbl.lblEmail configure -fg black LabelUpdate .frmStatus.frmHelp.lblHelp "" } - #bind $w.frmlbl.lblEmail {SendEmail "http://conero.lrn.ru"} + #bind $w.frmlbl.lblEmail {SendEmail "http://nuk-svk.ru"} $noteBook raise about diff --git a/projects.tcl b/projects.tcl index b300c26..b48d31a 100644 --- a/projects.tcl +++ b/projects.tcl @@ -1,8 +1,8 @@ ######################################################### # Tcl/Tk project Manager # Distributed under GNU Public License -# Author: Sergey Kalinin banzaj@lrn.ru -# Copyright (c) "CONERO lab", 2002, http://conero.lrn.ru +# Author: Sergey Kalinin banzaj28@yandex.ru +# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru ######################################################### proc NewProjDialog {type} { diff --git a/projman.conf b/projman.conf index 526bd59..d63d5b6 100644 --- a/projman.conf +++ b/projman.conf @@ -2,8 +2,8 @@ # TCL/Tk Project Manager # # version 0.3.8 # # # -# Copyright (c) "CONERO lab", 2001, http://conero.lrn.ru # -# Authors: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2001, http://nuk-svk.ru # +# Authors: Sergey Kalinin banzaj28@yandex.ru # ########################################################### # Modification date: Чт янв 11 10:38:33 MSK 2018 ########################################################### diff --git a/projman.tcl b/projman.tcl index 1e3195c..6bd8d79 100755 --- a/projman.tcl +++ b/projman.tcl @@ -3,8 +3,8 @@ ########################################################### # Tcl/Tk Project Manager # # Distrubuted under GPL # -# Copyright (c) "CONERO lab", 2002, http://conero.lrn.ru # -# Author: Sergey Kalinin (aka BanZaj) banzaj@lrn.ru # +# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru # +# Author: Sergey Kalinin banzaj28@yandex.ru # ########################################################### ########## VERSION INFORMATION ########## diff --git a/settings.tcl b/settings.tcl index bfcdd11..a1cf575 100644 --- a/settings.tcl +++ b/settings.tcl @@ -1,8 +1,8 @@ ###################################################### # Tcl/Tk project Manager # Distributed under GNU Public License -# Author: Sergey Kalinin banzaj@lrn.ru -# Home page: http://conero.lrn.ru +# Author: Sergey Kalinin banzaj28@yandex.ru +# Home page: http://nuk-svk.ru ###################################################### ## SETTING DIALOG ## @@ -40,8 +40,8 @@ proc Settings {} { puts $file "# TCL/Tk Project Manager #" puts $file "# version $ver #" puts $file "# #" - puts $file "# Copyright \(c\) \"CONERO lab\", 2001, http://conero.lrn.ru #" - puts $file "# Authors: Sergey Kalinin \(aka BanZaj\) banzaj@lrn.ru #" + puts $file "# Copyright \(c\) \"Sergey Kalinin\", 2001, http://nuk-svk.ru #" + puts $file "# Authors: Sergey Kalinin \(aka BanZaj\) banzaj28@yandex.ru #" puts $file "###########################################################" puts $file "# Modification date: [exec date]" puts $file "###########################################################\n" @@ -773,8 +773,8 @@ proc SaveSettings {} { puts $file "# TCL/Tk Project Manager #" puts $file "# version $ver #" puts $file "# #" - puts $file "# Copyright \(c\) \"CONERO lab\", 2001, http://conero.lrn.ru #" - puts $file "# Authors: Sergey Kalinin \(aka BanZaj\) banzaj@lrn.ru #" + puts $file "# Copyright \(c\) \"Sergey Kalinin\", 2001, http://nuk-svk.ru #" + puts $file "# Authors: Sergey Kalinin \(aka BanZaj\) banzaj28@yandex.ru #" puts $file "###########################################################\n" puts $file "# Modification date: [exec date]" puts $file "###########################################################\n" diff --git a/taglist.tcl b/taglist.tcl index 8ea21de..d74824c 100644 --- a/taglist.tcl +++ b/taglist.tcl @@ -1,8 +1,8 @@ ######################################################### # Tcl/Tk project Manager # Distributed under GNU Public License -# Author: Sergey Kalinin banzaj@lrn.ru -# Copyright (c) "CONERO lab", 2002, http://conero.lrn.ru +# Author: Sergey Kalinin banzaj28@yandex.ru +# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru ######################################################### proc GetTagList {tagFile} {