This commit is contained in:
Sergey Kalinin 2018-03-05 18:07:30 +03:00
parent 77ba144afd
commit 53672ad0f3
17 changed files with 47 additions and 27 deletions

2
BUGS
View File

@ -28,3 +28,5 @@ balloon окне показать формат этой команды (такж
- При установки переменной editor(wrap) значения none на длинных строках при появлениии нижнего скролбара наблюдается глюк пока не объяснимый :( - При установки переменной editor(wrap) значения none на длинных строках при появлениии нижнего скролбара наблюдается глюк пока не объяснимый :(
Скрол бар начинает мерцать (то появиться то исчезнет) Скрол бар начинает мерцать (то появиться то исчезнет)

View File

@ -6,6 +6,10 @@
########################################################## ##########################################################
0.4.5 0.4.5
05.03.2018
- Fixed "Add new file" toolbar button press
- Fixed "Control+S" hotkey error
02.03.2018 02.03.2018
- GoToNumber entry replace - GoToNumber entry replace
@ -406,3 +410,5 @@ characters to the right of the insertion cursor.

View File

@ -337,3 +337,4 @@ proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General library. If this is what you want to do, use the GNU Library General
Public License instead of this License. Public License instead of this License.

View File

@ -8,3 +8,4 @@
1. BaseALT SimplyLinux - Bwidget ScrolledWindow dont work with options: 1. BaseALT SimplyLinux - Bwidget ScrolledWindow dont work with options:
-background -background
In Debian - it's all right In Debian - it's all right

2
TODO
View File

@ -60,3 +60,5 @@
поддержка frink (автоформаттер) поддержка frink (автоформаттер)
нумерация строк нумерация строк

BIN
img/param.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 B

BIN
img/param.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

View File

@ -4,7 +4,6 @@
# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru # # Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru #
# Author: Sergey Kalinin banzaj28@yandex.ru # # Author: Sergey Kalinin banzaj28@yandex.ru #
########################################################### ###########################################################
## GETTING OPERATORS FOR COMPLITE PROCEDURE # ## GETTING OPERATORS FOR COMPLITE PROCEDURE #
proc GetOp {} { proc GetOp {} {
global opList global opList
@ -59,8 +58,15 @@ proc SetDefStyle { text args } {
## CURSOR POSITION COUNTERED ## ## CURSOR POSITION COUNTERED ##
proc Position {} { proc Position {} {
global tree noteBook fontNormal fontBold replace global noteBook noteBookFiles fontNormal fontBold replace
set nodeEdit [$noteBook raise] set nodeEdit [$noteBook raise]
set tree [GetTreeForNode $nodeEdit]
if {$tree eq ".frmBody.frmCat.noteBook.ffiles.frmTreeFiles.treeFiles"} {
$noteBookFiles raise files
} elseif {$tree eq ".frmBody.frmCat.noteBook.fprojects.frmTree.tree"} {
$noteBookFiles raise projects
}
if {$nodeEdit == "" || $nodeEdit == "newproj" || $nodeEdit == "debug" || $nodeEdit == "about"} { if {$nodeEdit == "" || $nodeEdit == "newproj" || $nodeEdit == "debug" || $nodeEdit == "about"} {
return return
} }
@ -603,6 +609,9 @@ proc EditFile {tree node fileName} {
# set w [$noteBook insert end $node -text "$file" -image [Bitmap::get [file join $imgDir [GetImage $fileName].gif]] \ # set w [$noteBook insert end $node -text "$file" -image [Bitmap::get [file join $imgDir [GetImage $fileName].gif]] \
#-background $editor(bg) -foreground $editor(fg)] #-background $editor(bg) -foreground $editor(fg)]
set w [$noteBook insert end $node -text "$file" -image [Bitmap::get [file join $imgDir [GetImage $fileName].gif]]] set w [$noteBook insert end $node -text "$file" -image [Bitmap::get [file join $imgDir [GetImage $fileName].gif]]]
#set lblEditFileFullPath [label $w.lblEditFileFullPath -text [regsub -all -- {/|\\} $fileName " > "] -anchor w]
#pack $lblEditFileFullPath -side top -fill x
#puts $w #puts $w
# create array with file names # # create array with file names #
if {[info exists fileList($node)] != 1} { if {[info exists fileList($node)] != 1} {
@ -623,7 +632,7 @@ proc EditFile {tree node fileName} {
# pack $w.textLines -side left -fill y -expand true # pack $w.textLines -side left -fill y -expand true
# Editor textbox # Editor textbox
set scrwin [ScrolledWindow $w.scrwin -bg $editor(bg)] set scrwin [ScrolledWindow $w.scrwin -bg $editor(bg)]
pack $scrwin -side left -fill both -expand true pack $scrwin -side top -fill both -expand true
text $w.text -relief sunken -wrap $editor(wrap) -highlightthickness 0 \ text $w.text -relief sunken -wrap $editor(wrap) -highlightthickness 0 \
-undo 1 -font $editor(font) -blockcursor true -selectborderwidth 0 \ -undo 1 -font $editor(font) -blockcursor true -selectborderwidth 0 \
-selectbackground $editor(selectbg) -width 10 -background $editor(bg) \ -selectbackground $editor(selectbg) -width 10 -background $editor(bg) \
@ -964,12 +973,13 @@ proc ReadFileStructure {mod line lineNumber tree node} {
$tree insert end $node $prcNode$dot$lineNumber -text $procName \ $tree insert end $node $prcNode$dot$lineNumber -text $procName \
-data "prc_$procName"\ -data "prc_$procName"\
-image [Bitmap::get [file join $imgDir $img]] -font $fontNormal -image [Bitmap::get [file join $imgDir $img]] -font $fontNormal
#$tree insert end $prcNode$dot$lineNumber param_$prcNode$dot$lineNumber -text $params \
#-data "prc_$procName" \
#-image [Bitmap::get [file join $imgDir param.gif]] -font $fontNormal
} }
} }
} }
#################################### ####################################
GetOp GetOp

View File

@ -619,3 +619,4 @@ proc FileOperation::FileDialog {tree operation} {

View File

@ -263,14 +263,14 @@ pack $frm6.lblOvwrt -fill x
########## PROJECT-FILE-FUNCTION TREE ################## ########## PROJECT-FILE-FUNCTION TREE ##################
#set frmCat [frame .frmBody.frmCat -border 1 -relief sunken -bg $editor(bg)] #set frmCat [frame .frmBody.frmCat -border 1 -relief sunken -bg $editor(bg)]
set frmCat [frame .frmBody.frmCat -border 1 -relief sunken] set frmCat [frame .frmBody.frmCat -border 0 -relief flat]
pack $frmCat -side left -fill y -fill both pack $frmCat -side left -fill y -fill both
#set frmWork [frame .frmBody.frmWork -border 1 -relief sunken -bg $editor(bg)] #set frmWork [frame .frmBody.frmWork -border 1 -relief sunken -bg $editor(bg)]
set frmWork [frame .frmBody.frmWork -border 1 -relief sunken] set frmWork [frame .frmBody.frmWork -border 0 -relief flat]
pack $frmWork -side left -fill both -expand true pack $frmWork -side left -fill both -expand true
## CREATE PANE ## ## CREATE PANE ##
pane::create .frmBody.frmCat .frmBody.frmWork pane::create .frmBody.frmCat .frmBody.frmWork -percent 0.20
# NoteBook - Projects and Files # NoteBook - Projects and Files
#################### WORKING AREA #################### #################### WORKING AREA ####################
@ -285,11 +285,11 @@ set nbFiles [$noteBookFiles insert end files -text [::msgcat::mc "Files"] \
# Create FileTree # Create FileTree
#FileTree::create $nbFiles #FileTree::create $nbFiles
set frmTreeFiles [ScrolledWindow $nbFiles.frmTreeFiles -bg $editor(bg) -background $editor(bg) ] set frmTreeFiles [ScrolledWindow $nbFiles.frmTreeFiles -bd 0 -bg $editor(bg) -background $editor(bg) ]
set treeFiles [ set treeFiles [
Tree $frmTreeFiles.treeFiles \ Tree $frmTreeFiles.treeFiles \
-relief sunken -borderwidth 1 -width 5 -highlightthickness 0\ -relief sunken -borderwidth 0 -width 5 -highlightthickness 1\
-redraw 0 -dropenabled 1 -dragenabled 1 -dragevent 3 \ -redraw 0 -dropenabled 1 -dragenabled 1 -dragevent 3 \
-background $editor(bg) -selectbackground $editor(selectbg) -selectforeground white\ -background $editor(bg) -selectbackground $editor(selectbg) -selectforeground white\
-droptypes { -droptypes {
@ -314,10 +314,10 @@ GetMenuFileTree [menu .popMenuFileTree -bg $editor(bg) -fg $editor(fg)] ;# pop-u
bind $frmTreeFiles.treeFiles.c <Button-3> {catch [PopupMenuFileTree $treeFiles %X %Y]} bind $frmTreeFiles.treeFiles.c <Button-3> {catch [PopupMenuFileTree $treeFiles %X %Y]}
# Create Project tree # Create Project tree
set frmTree [ScrolledWindow $nbProjects.frmTree -bg $editor(bg)] set frmTree [ScrolledWindow $nbProjects.frmTree -bd 0 -bg $editor(bg)]
global tree noteBook global tree noteBook
set tree [Tree $frmTree.tree \ set tree [Tree $frmTree.tree \
-relief sunken -borderwidth 1 -width 3 -height 5 -highlightthickness 1\ -relief sunken -borderwidth 0 -width 3 -height 5 -highlightthickness 1\
-redraw 0 -dropenabled 1 -dragenabled 1 -dragevent 3 \ -redraw 0 -dropenabled 1 -dragenabled 1 -dragevent 3 \
-background $editor(bg) -selectbackground $editor(selectbg) -selectforeground white\ -background $editor(bg) -selectbackground $editor(selectbg) -selectforeground white\
-droptypes { -droptypes {
@ -375,7 +375,6 @@ $m add command -label [::msgcat::mc "Add to existing project"] -command {AddToPr
-font $fontNormal -state disable -font $fontNormal -state disable
$m add command -label [::msgcat::mc "Add as new project"] -command {OpenProj [$noteBookFiles raise]} -font $fontNormal $m add command -label [::msgcat::mc "Add as new project"] -command {OpenProj [$noteBookFiles raise]} -font $fontNormal
## POPUP PROJECT-MENU ## ## POPUP PROJECT-MENU ##
set m [menu .popupProj -font $fontNormal -bg $editor(bg) -fg $editor(fg)] set m [menu .popupProj -font $fontNormal -bg $editor(bg) -fg $editor(fg)]
GetProjMenu $m GetProjMenu $m
@ -388,7 +387,6 @@ $m add command -label [::msgcat::mc "Close"] -command {FileDialog [$noteBookFile
$m add command -label [::msgcat::mc "Close all"] -command {FileDialog [$noteBookFiles raise] close_all}\ $m add command -label [::msgcat::mc "Close all"] -command {FileDialog [$noteBookFiles raise] close_all}\
-font $fontNormal -font $fontNormal
bind $frmTree.tree.c <Button-3> {catch [PopupMenuTree %X %Y]} bind $frmTree.tree.c <Button-3> {catch [PopupMenuTree %X %Y]}
######### DEDERER: bind Wheel Scroll ################## ######### DEDERER: bind Wheel Scroll ##################
@ -422,7 +420,3 @@ if {[info exists workingProject]} {
} }
} }

View File

@ -94,3 +94,4 @@ proc GetMenu {m} {

View File

@ -30,7 +30,7 @@ namespace eval pane {
set pane(2) $f2 set pane(2) $f2
set pane(grip) [frame $master.grip -background $pane(-gripcolor) \ set pane(grip) [frame $master.grip -background $pane(-gripcolor) \
-width $width -height $height \ -width $width -height $height \
-bd 1 -relief raised -cursor $pane(-gripcursor)] -bd 0 -relief raised -cursor $pane(-gripcursor)]
if {! [string match v* $pane(-orient)] } { if {! [string match v* $pane(-orient)] } {
set pane(D) Y set pane(D) Y
@ -101,3 +101,4 @@ namespace eval pane {

View File

@ -1009,3 +1009,4 @@ proc InsertTitle {newFile type} {

View File

@ -23,7 +23,7 @@ proc CreateToolBar {} {
global toolBar fontBold noteBook tree imgDir editor global toolBar fontBold noteBook tree imgDir editor
if {$toolBar == "Yes"} { if {$toolBar == "Yes"} {
set bboxFile [ButtonBox .frmTool.bboxFile -spacing 0 -padx 1 -pady 1 -bg $editor(bg)] set bboxFile [ButtonBox .frmTool.bboxFile -spacing 0 -padx 1 -pady 1 -bg $editor(bg)]
add_toolbar_button $bboxFile new.png {AddToProjDialog file} [::msgcat::mc "Create new file"] add_toolbar_button $bboxFile new.png {AddToProjDialog file [$noteBookFiles raise]} [::msgcat::mc "Create new file"]
#add_toolbar_button $bboxFile open.png {FileDialog $tree open} [::msgcat::mc "Open file"] #add_toolbar_button $bboxFile open.png {FileDialog $tree open} [::msgcat::mc "Open file"]
add_toolbar_button $bboxFile save.png {FileDialog $tree save} [::msgcat::mc "Save file"] add_toolbar_button $bboxFile save.png {FileDialog $tree save} [::msgcat::mc "Save file"]
add_toolbar_button $bboxFile save_as.png {FileDialog $tree save_as} [::msgcat::mc "Save file as"] add_toolbar_button $bboxFile save_as.png {FileDialog $tree save_as} [::msgcat::mc "Save file as"]
@ -73,8 +73,3 @@ proc GoToLineButton {w} {
balloon $w.entGoTo set [::msgcat::mc "Goto line"] balloon $w.entGoTo set [::msgcat::mc "Goto line"]
} }

View File

@ -82,3 +82,4 @@ proc Translit {line} {
] ]
} }

View File

@ -342,3 +342,5 @@ proc FileNotePageRaise {nb s} {

View File

@ -163,3 +163,5 @@ option add *Dialog.msg.background $editor(bg)