2018-02-05 11:24:14 +03:00
|
|
|
###########################################################
|
|
|
|
# Tcl/Tk Project Manager #
|
|
|
|
# Distrubuted under GPL #
|
|
|
|
# Copyright (c) "Sergey Kalinin", 2002, http://nuk-svk.ru #
|
|
|
|
# Author: Sergey Kalinin banzaj28@yandex.ru #
|
|
|
|
###########################################################
|
|
|
|
|
|
|
|
Modules
|
|
|
|
## MAIN INTERFACE ##
|
2018-02-15 12:51:28 +03:00
|
|
|
#
|
|
|
|
if {[info exists topLevelGeometry]} {
|
|
|
|
wm geometry . $topLevelGeometry
|
|
|
|
} else {
|
|
|
|
wm geometry . 1200x1024+0+0
|
|
|
|
}
|
|
|
|
|
2018-02-05 11:24:14 +03:00
|
|
|
wm title . "Tcl/Tk Project Manager $ver"
|
|
|
|
wm iconname . "Tcl/Tk Project Manager $ver"
|
2018-02-15 16:25:06 +03:00
|
|
|
#image create photo icon -format png -file [file join $imgDir icons large projman.png]
|
|
|
|
image create photo icon -data {
|
|
|
|
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
|
|
|
|
WXMAAAsSAAALEgHS3X78AAAAB3RJTUUH1AoBATAgUp33UQAAE4hJREFUeJy1WmmQW9WV/t6T9KTW
|
|
|
|
rlarW+q92+72hgMYG6iAsQGzBsZJjMFZPZmaSWAqM1QWhsxUSM0kVYHJ/EgqVFKpVFIwIWAgTGKc
|
|
|
|
gMGGtIndbru9dWP3vqg37ct70tPblzs/JLW7jW2aUDlV94ek++79vnvOPdsT8FeIquKu/n4kLRZ8
|
|
|
|
FgBjmvh8Pg/9l7/E5JYt+AoA21+z7t9KKAD00sHz+PVjj+EdAFtyOXhZFrG77sIBAF8C0F6ZR61w
|
|
|
|
fCyxfghoS2WObemGsRj8r7yCkwDmamqw96c/xczhw3gJwOsApMqz1sqwVMZSsASAXhkGALPyHfnY
|
|
|
|
BJ544gm6o6PD19XVtba5ufkxv9//paW/nzlzBsePfzPqdI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eHCjh079h44cOAwgPzV5l6GRJplWV8kHGl2
|
|
|
|
1jiZrtVd2LlzJ9xeN+bn50NTk1MnJUlKoFzcL/ZGdUEQJqPR6POyojSomuawCIJaAZ0GwK4UPABE
|
|
|
|
o1E9GAyyAGqxvJ69khgon2hWEIQz58+fv4Zl2Zsfeugh982fvBklqYT3B9+HIimMaZp+AG6U8zjK
|
|
|
|
Wllc13Wd53l+GkDKNE2raZrVNzViZfGPUvoRr9c71tra2jw3N3caF2vqlZDIa5r2p9nZ2VW/+c1v
|
|
|
|
du3fv9/T1d2F6alptLa2ghBSfXlOAxffxlQ7ADyALIAUyqdf7R585LqV47gT99xzzydQ7umsVKrt
|
|
|
|
lBnTNH/W1NT0pizL4pGeI/B4PBgdHX2N5/kFlA9WBz6YC1Xt0cDHLLgpisomEolrpqenz1VArVSq
|
|
|
|
GKREInGuWCwe1jStJx6PHyoUCkOEkBkAMZQrOO1j/9niKkIBCOFibv9Rn2UAuFBupXtQ/r+GUlmP
|
|
|
|
Q6Up9rck8HGFwvI/m9CoBD8sqdr+H8azwnc3xO1JAAAAAElFTkSuQmCC
|
|
|
|
}
|
2018-02-15 16:00:22 +03:00
|
|
|
wm iconphoto . icon
|
2018-02-05 11:24:14 +03:00
|
|
|
wm protocol . WM_DELETE_WINDOW Quit
|
|
|
|
wm overrideredirect . 0
|
|
|
|
wm positionfrom . user
|
|
|
|
#wm resizable . 0 0
|
|
|
|
|
|
|
|
frame .frmMenu -border 1 -relief raised -background $editor(bg)
|
|
|
|
frame .frmTool -border 1 -relief raised -background $editor(bg)
|
|
|
|
frame .frmBody -border 1 -relief raised -background $editor(bg)
|
|
|
|
frame .frmStatus -border 1 -relief sunken -bg $editor(bg)
|
|
|
|
pack .frmMenu -side top -padx 1 -fill x
|
|
|
|
pack .frmTool -side top -padx 1 -fill x
|
|
|
|
pack .frmBody -side top -padx 1 -fill both -expand true
|
|
|
|
pack .frmStatus -side top -padx 1 -fill x
|
|
|
|
|
|
|
|
########## CREATE MENU LINE ##########
|
|
|
|
menubutton .frmMenu.mnuFile -text [::msgcat::mc "File"] -menu .frmMenu.mnuFile.m -font $fontNormal -bg $editor(bg) -fg $editor(fg)
|
|
|
|
set m [menu .frmMenu.mnuFile.m -bg $editor(bg) -fg $editor(fg)]
|
|
|
|
$m add cascade -label [::msgcat::mc "New"] -menu $m.new -font $fontNormal
|
|
|
|
set mn [menu $m.new -bg $editor(bg) -fg $editor(fg)]
|
|
|
|
$mn add command -label [::msgcat::mc "New file"] -command {AddToProjDialog file}\
|
|
|
|
-font $fontNormal -accelerator "Ctrl+N"
|
|
|
|
$mn add command -label [::msgcat::mc "New directory"] -command {AddToProjDialog directory}\
|
|
|
|
-font $fontNormal -accelerator "Ctrl+N"
|
|
|
|
$mn add command -label [::msgcat::mc "New project"] -command {NewProjDialog "new"}\
|
|
|
|
-font $fontNormal
|
2018-02-13 13:23:40 +03:00
|
|
|
#$m add command -label [::msgcat::mc "Open"] -command {FileDialog $tree open}\
|
2018-02-08 16:53:55 +03:00
|
|
|
#-font $fontNormal -accelerator "Ctrl+O" -state disable
|
|
|
|
$m add command -label [::msgcat::mc "Save"] -command {FileDialog $tree save}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal -accelerator "Ctrl+S"
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Save as"] -command {FileDialog $tree save_as}\
|
2018-02-07 15:49:20 +03:00
|
|
|
-font $fontNormal
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Save all"] -command {FileDialog $tree save_all}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Close"] -command {FileDialog $tree close}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal -accelerator "Ctrl+W"
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Close all"] -command {FileDialog $tree close_all}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Delete"] -command {FileDialog $tree delete}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal -accelerator "Ctrl+D"
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Compile file"] -command {MakeProj compile file} -font $fontNormal -accelerator "Ctrl+F8"
|
|
|
|
$m add command -label [::msgcat::mc "Run file"] -command {MakeProj run file} -font $fontNormal -accelerator "Ctrl+F9"
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Print"] -command PrintDialog\
|
|
|
|
-font $fontNormal -accelerator "Ctrl+P"
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Settings"] -command Settings -font $fontNormal
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Exit"] -command Quit -font $fontNormal -accelerator "Ctrl+Q"
|
|
|
|
|
|
|
|
##.frmMenu 'Project' ##
|
|
|
|
|
|
|
|
proc GetProjMenu {m} {
|
|
|
|
global fontNormal
|
|
|
|
$m add command -label [::msgcat::mc "Project settings"] -command {NewProj edit $activeProject ""}\
|
|
|
|
-font $fontNormal
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Open project"] -command {OpenProj} -font $fontNormal
|
|
|
|
$m add command -label [::msgcat::mc "New project"] -command {NewProjDialog new} -font $fontNormal
|
|
|
|
$m add command -label [::msgcat::mc "Delete project"] -command DelProj -font $fontNormal
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Add to project"] -command AddToProjDialog -font $fontNormal
|
|
|
|
$m add command -label [::msgcat::mc "Delete from project"]\
|
|
|
|
-command {FileDialog delete} -font $fontNormal
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Make archive"] -command MakeTGZ -font $fontNormal -accelerator "F7"
|
|
|
|
$m add command -label [::msgcat::mc "Make RPM"] -command MakeRPM -font $fontNormal -accelerator "F6"
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Compile"] -command {MakeProj compile proj} -font $fontNormal -accelerator "F8"
|
|
|
|
$m add command -label [::msgcat::mc "Run"] -command {MakeProj run proj} -font $fontNormal -accelerator "F9"
|
|
|
|
}
|
|
|
|
|
|
|
|
menubutton .frmMenu.mnuProj -text [::msgcat::mc "Project"] -menu .frmMenu.mnuProj.m -font $fontNormal -bg $editor(bg) -fg $editor(fg)
|
|
|
|
set m [menu .frmMenu.mnuProj.m -bg $editor(bg) -fg $editor(fg)]
|
|
|
|
GetProjMenu $m
|
|
|
|
|
|
|
|
##.frmMenu 'Edit' ##
|
|
|
|
menubutton .frmMenu.mnuEdit -text [::msgcat::mc "Edit"] -menu .frmMenu.mnuEdit.m -font $fontNormal -bg $editor(bg) -fg $editor(fg)
|
|
|
|
## BUILDING EDIT-MENU FOR MAIN AND POP-UP MENU ##
|
|
|
|
proc GetMenu {m} {
|
|
|
|
global fontNormal fontBold imgDir editor
|
|
|
|
$m add command -label [::msgcat::mc "Undo"] -font $fontNormal -accelerator "Ctrl+Z"\
|
2018-02-05 12:08:16 +03:00
|
|
|
-state normal -command {TextOperation undo}
|
|
|
|
$m add command -label [::msgcat::mc "Redo"] -font $fontNormal -accelerator "Ctrl+G"\
|
|
|
|
-state normal -command {TextOperation redo}
|
2018-02-05 11:24:14 +03:00
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Procedure name complit"] -font $fontNormal -accelerator "Ctrl+J" -state normal\
|
|
|
|
-command {
|
|
|
|
set nb "$noteBook.f[$noteBook raise]"
|
|
|
|
auto_completition_proc $nb.text
|
|
|
|
unset nb
|
|
|
|
}
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Copy"] -font $fontNormal -accelerator "Ctrl+C"\
|
2018-02-05 12:08:16 +03:00
|
|
|
-command {TextOperation copy}
|
2018-02-05 11:24:14 +03:00
|
|
|
$m add command -label [::msgcat::mc "Paste"] -font $fontNormal -accelerator "Ctrl+V"\
|
2018-02-05 12:08:16 +03:00
|
|
|
-command {TextOperation paste}
|
2018-02-05 11:24:14 +03:00
|
|
|
$m add command -label [::msgcat::mc "Cut"] -font $fontNormal -accelerator "Ctrl+X"\
|
2018-02-05 12:08:16 +03:00
|
|
|
-command {TextOperation cut}
|
2018-02-05 11:24:14 +03:00
|
|
|
$m add separator
|
2018-02-07 17:03:37 +03:00
|
|
|
$m add command -label [::msgcat::mc "Select all"] -font $fontNormal -accelerator "Ctrl+/"\
|
2018-02-05 11:24:14 +03:00
|
|
|
-command {
|
|
|
|
set nb [$noteBook raise]
|
|
|
|
if {$nb == "" || $nb == "newproj" || $nb == "about" || $nb == "debug"} {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
set nb "$noteBook.f$nb"
|
|
|
|
SelectAll $nb.text
|
|
|
|
unset nb
|
|
|
|
}
|
2018-02-07 17:03:37 +03:00
|
|
|
$m add command -label [::msgcat::mc "Comment selected"] -font $fontNormal -accelerator "Ctrl+,"\
|
|
|
|
-command {TextOperation comment}
|
|
|
|
$m add command -label [::msgcat::mc "Uncomment selected"] -font $fontNormal -accelerator "Ctrl+." \
|
2018-02-07 15:49:20 +03:00
|
|
|
-command {TextOperation uncomment}
|
|
|
|
|
2018-02-05 11:24:14 +03:00
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Goto line"] -command GoToLine -font $fontNormal\
|
|
|
|
-accelerator "Ctrl+G"
|
|
|
|
$m add command -label [::msgcat::mc "Find"] -command Find -font $fontNormal -accelerator "Ctrl+F"
|
|
|
|
$m add command -label [::msgcat::mc "Replace"] -command ReplaceDialog -font $fontNormal\
|
|
|
|
-accelerator "Ctrl+R"
|
|
|
|
$m add cascade -label [::msgcat::mc "Encode"] -menu $m.encode -font $fontNormal
|
|
|
|
set me [menu $m.encode -bg $editor(bg) -fg $editor(fg)]
|
|
|
|
$me add command -label [::msgcat::mc "KOI8-R"] -command {TextEncode koi8-r} -font $fontNormal
|
|
|
|
$me add command -label [::msgcat::mc "CP1251"] -command {TextEncode cp1251} -font $fontNormal
|
|
|
|
$me add command -label [::msgcat::mc "CP866"] -command {TextEncode cp866} -font $fontNormal
|
|
|
|
}
|
|
|
|
GetMenu [menu .frmMenu.mnuEdit.m -bg $editor(bg) -fg $editor(fg)];# main edit menu
|
|
|
|
GetMenu [menu .popMnuEdit -bg $editor(bg) -fg $editor(fg)] ;# pop-up edit menu
|
|
|
|
|
|
|
|
## VIEW MENU ##
|
|
|
|
menubutton .frmMenu.mnuView -text [::msgcat::mc "View"] -menu .frmMenu.mnuView.m -font $fontNormal -bg $editor(bg) -fg $editor(fg)
|
|
|
|
set m [menu .frmMenu.mnuView.m -bg $editor(bg) -fg $editor(fg)]
|
|
|
|
$m add checkbutton -label [::msgcat::mc "Toolbar"] -font $fontNormal -state normal\
|
|
|
|
-offvalue "No" -onvalue "Yes" -variable toolBar -command {ToolBar}
|
|
|
|
$m add command -label [::msgcat::mc "Split edit window"] -font $fontNormal -accelerator "F4" -state disable\
|
|
|
|
-command SplitWindow
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Refresh"] -font $fontNormal -accelerator "F5" -state normal\
|
|
|
|
-command UpdateTree
|
|
|
|
|
|
|
|
##.frmMenu Settings ##
|
|
|
|
menubutton .frmMenu.mnuCVS -text [::msgcat::mc "Modules"] -menu .frmMenu.mnuCVS.m \
|
|
|
|
-font $fontNormal -state normal -bg $editor(bg) -fg $editor(fg)
|
|
|
|
set m [menu .frmMenu.mnuCVS.m -bg $editor(bg) -fg $editor(fg)]
|
|
|
|
if {$module(tkcvs) != ""} {
|
|
|
|
$m add command -label "TkCVS" -command {DoModule tkcvs} -font $fontNormal
|
|
|
|
}
|
|
|
|
if {$module(tkdiff) != ""} {
|
|
|
|
$m add command -label "TkDIFF+" -command {DoModule tkdiff} -font $fontNormal
|
|
|
|
}
|
|
|
|
if {$module(tkregexp) != ""} {
|
|
|
|
$m add command -label "TkREGEXP" -command {DoModule tkregexp} -font $fontNormal
|
|
|
|
}
|
|
|
|
if {$module(gitk) != ""} {
|
|
|
|
$m add command -label "Gitk" -font $fontNormal -command {
|
|
|
|
DoModule gitk
|
|
|
|
GetTagList [file join $workDir $activeProject.tags] ;# geting tag list
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
menubutton .frmMenu.mnuHelp -text [::msgcat::mc "Help"] -menu .frmMenu.mnuHelp.m \
|
|
|
|
-underline 0 -font $fontNormal -bg $editor(bg) -fg $editor(fg)
|
|
|
|
set m [menu .frmMenu.mnuHelp.m -bg $editor(bg) -fg $editor(fg)]
|
|
|
|
$m add command -label [::msgcat::mc "Help"] -command ShowHelp \
|
|
|
|
-accelerator F1 -font $fontNormal
|
|
|
|
$m add command -label [::msgcat::mc "About ..."] -command AboutDialog \
|
|
|
|
-font $fontNormal
|
|
|
|
|
|
|
|
pack .frmMenu.mnuFile .frmMenu.mnuProj .frmMenu.mnuEdit .frmMenu.mnuView .frmMenu.mnuCVS -side left
|
|
|
|
pack .frmMenu.mnuHelp -side right
|
|
|
|
## Bind command ##
|
|
|
|
bind . <F1> ShowHelp
|
|
|
|
bind . <F5> UpdateTree
|
|
|
|
bind . <F6> MakeRPM
|
|
|
|
bind . <F7> MakeTGZ
|
|
|
|
bind . <F8> {MakeProj compile proj}
|
|
|
|
bind . <Control-F8> {MakeProj compile file}
|
|
|
|
bind . <F9> {MakeProj run proj}
|
|
|
|
bind . <Control-F9> {MakeProj run file}
|
|
|
|
bind . <Control-ograve> AddToProjDialog
|
|
|
|
bind . <Control-n> AddToProjDialog
|
|
|
|
bind . <Control-ocircumflex> AddToProjDialog
|
|
|
|
bind . <Control-a> AddToProjDialog
|
|
|
|
bind . <Control-eacute> Quit
|
|
|
|
bind . <Control-q> Quit
|
|
|
|
bind . <Control-ccedilla> PrintDialog
|
|
|
|
bind . <Control-p> PrintDialog
|
|
|
|
## TOOLBAR ##
|
|
|
|
proc add_toolbar_button {path icon command helptext} {
|
|
|
|
global editor imgDir
|
|
|
|
image create photo $icon -format png -file [file join $imgDir $icon]
|
|
|
|
$path add -image $icon \
|
|
|
|
-highlightthickness 0 -takefocus 0 -relief link -bd 1 -activebackground $editor(bg)\
|
|
|
|
-padx 1 -pady 1 -command $command -helptext $helptext
|
|
|
|
}
|
|
|
|
# Separator for toolbar
|
|
|
|
set sepIndex 0
|
|
|
|
proc Separator {} {
|
|
|
|
global sepIndex editor
|
2018-02-15 16:25:06 +03:00
|
|
|
set f [frame .frmTool.separator$sepIndex -width 10 -border 1 \
|
|
|
|
-background $editor(bg) -relief raised]
|
2018-02-05 11:24:14 +03:00
|
|
|
incr sepIndex 1
|
|
|
|
return $f
|
|
|
|
}
|
|
|
|
proc CreateToolBar {} {
|
|
|
|
global toolBar fontBold noteBook tree imgDir editor
|
|
|
|
if {$toolBar == "Yes"} {
|
|
|
|
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"]
|
2018-02-13 13:23:40 +03:00
|
|
|
#add_toolbar_button $bboxFile open.png {FileDialog $tree open} [::msgcat::mc "Open file"]
|
2018-02-08 16:53:55 +03:00
|
|
|
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_all.png {FileDialog $tree save_all} [::msgcat::mc "Save all"]
|
2018-02-05 11:24:14 +03:00
|
|
|
add_toolbar_button $bboxFile printer.png {PrintDialog} [::msgcat::mc "Print ..."]
|
2018-02-08 16:53:55 +03:00
|
|
|
add_toolbar_button $bboxFile close.png {FileDialog $tree close} [::msgcat::mc "Close"]
|
2018-02-05 11:24:14 +03:00
|
|
|
|
|
|
|
set bboxEdit [ButtonBox .frmTool.bboxEdit -spacing 0 -padx 1 -pady 1 -bg $editor(bg)]
|
|
|
|
add_toolbar_button $bboxEdit copy.png {TextOperation copy} [::msgcat::mc "Copy into clipboard"]
|
|
|
|
add_toolbar_button $bboxEdit cut.png {TextOperation cut} [::msgcat::mc "Cut into clipboard"]
|
|
|
|
add_toolbar_button $bboxEdit paste.png {TextOperation paste} [::msgcat::mc "Paste from clipboard"]
|
|
|
|
add_toolbar_button $bboxEdit undo.png {TextOperation undo} [::msgcat::mc "Undo"]
|
|
|
|
add_toolbar_button $bboxEdit redo.png {TextOperation redo} [::msgcat::mc "Redo"]
|
|
|
|
|
|
|
|
|
|
|
|
set bboxProj [ButtonBox .frmTool.bboxProj -spacing 0 -padx 1 -pady 1 -bg $editor(bg)]
|
|
|
|
|
|
|
|
add_toolbar_button $bboxProj doit.png {MakeProj run proj} [::msgcat::mc "Running project"]
|
|
|
|
add_toolbar_button $bboxProj doit_file.png {MakeProj run file} [::msgcat::mc "Running file"]
|
|
|
|
add_toolbar_button $bboxProj archive.png {MakeTGZ} [::msgcat::mc "Make TGZ"]
|
|
|
|
|
|
|
|
set bboxHelp [ButtonBox .frmTool.bboxHelp -spacing 0 -padx 1 -pady 1 -bg $editor(bg)]
|
|
|
|
add_toolbar_button $bboxHelp help.png {ShowHelp} [::msgcat::mc "Help"]
|
|
|
|
|
|
|
|
pack $bboxFile [Separator] $bboxEdit [Separator] $bboxProj [Separator] $bboxHelp -side left -anchor w
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
########## STATUS BAR ##########
|
|
|
|
set frm1 [frame .frmStatus.frmHelp -bg $editor(bg)]
|
|
|
|
set frm2 [frame .frmStatus.frmActive -bg $editor(bg)]
|
|
|
|
set frm3 [frame .frmStatus.frmProgress -relief sunken -bg $editor(bg)]
|
|
|
|
set frm4 [frame .frmStatus.frmLine -bg $editor(bg)]
|
|
|
|
set frm5 [frame .frmStatus.frmFile -bg $editor(bg)]
|
|
|
|
set frm6 [frame .frmStatus.frmOvwrt -bg $editor(bg)]
|
|
|
|
pack $frm1 $frm4 $frm6 $frm2 $frm5 -side left -fill x
|
|
|
|
pack $frm3 -side left -fill x -expand true
|
2018-02-15 16:25:06 +03:00
|
|
|
label $frm1.lblHelp -width 25 -relief sunken -font $fontNormal \
|
|
|
|
-anchor w -bg $editor(bg) -fg $editor(fg)
|
2018-02-05 11:24:14 +03:00
|
|
|
pack $frm1.lblHelp -fill x
|
2018-02-15 16:25:06 +03:00
|
|
|
label $frm4.lblLine -width 10 -relief sunken -font $fontNormal \
|
|
|
|
-anchor w -bg $editor(bg) -fg $editor(fg)
|
2018-02-05 11:24:14 +03:00
|
|
|
pack $frm4.lblLine -fill x
|
2018-02-15 16:25:06 +03:00
|
|
|
label $frm2.lblActive -width 25 -relief sunken -font $fontNormal \
|
|
|
|
-anchor center -bg $editor(bg) -fg $editor(fg)
|
2018-02-05 11:24:14 +03:00
|
|
|
pack $frm2.lblActive -fill x
|
2018-02-15 16:25:06 +03:00
|
|
|
label $frm3.lblProgress -relief sunken -font $fontNormal \
|
|
|
|
-anchor w -bg $editor(bg) -fg $editor(fg)
|
2018-02-05 11:24:14 +03:00
|
|
|
pack $frm3.lblProgress -fill x
|
2018-02-15 16:25:06 +03:00
|
|
|
label $frm5.lblFile -width 10 -relief sunken -font $fontNormal \
|
|
|
|
-anchor w -bg $editor(bg) -fg $editor(fg)
|
2018-02-05 11:24:14 +03:00
|
|
|
pack $frm5.lblFile -fill x
|
2018-02-15 16:25:06 +03:00
|
|
|
label $frm6.lblOvwrt -width 10 -relief sunken -font $fontNormal \
|
|
|
|
-anchor center -bg $editor(bg) -fg $editor(fg)
|
2018-02-05 11:24:14 +03:00
|
|
|
pack $frm6.lblOvwrt -fill x
|
|
|
|
|
|
|
|
########## PROJECT-FILE-FUNCTION TREE ##################
|
|
|
|
|
|
|
|
set frmCat [frame .frmBody.frmCat -border 1 -relief sunken -bg $editor(bg)]
|
|
|
|
pack $frmCat -side left -fill y -fill both
|
|
|
|
set frmWork [frame .frmBody.frmWork -border 1 -relief sunken -bg $editor(bg)]
|
|
|
|
pack $frmWork -side left -fill both -expand true
|
|
|
|
|
|
|
|
## CREATE PANE ##
|
|
|
|
pane::create .frmBody.frmCat .frmBody.frmWork
|
|
|
|
|
2018-02-08 16:37:50 +03:00
|
|
|
# NoteBook - Projects and Files
|
|
|
|
#################### WORKING AREA ####################
|
|
|
|
set noteBookFiles [NoteBook $frmCat.noteBook -font $fontNormal -side top -bg $editor(bg) -fg $editor(fg)]
|
|
|
|
pack $noteBookFiles -fill both -expand true -padx 2 -pady 2
|
|
|
|
set nbProjects [$noteBookFiles insert end projects -text [::msgcat::mc "Projects"]]
|
|
|
|
set nbFiles [$noteBookFiles insert end files -text [::msgcat::mc "Files"]]
|
|
|
|
|
|
|
|
FileTree::create $nbFiles
|
|
|
|
|
|
|
|
# tree
|
|
|
|
set frmTree [ScrolledWindow $nbProjects.frmTree -bg $editor(bg)]
|
2018-02-05 11:24:14 +03:00
|
|
|
global tree noteBook
|
|
|
|
set tree [Tree $frmTree.tree \
|
|
|
|
-relief sunken -borderwidth 1 -width 5 -height 5 -highlightthickness 1\
|
|
|
|
-redraw 0 -dropenabled 1 -dragenabled 1 -dragevent 3 \
|
|
|
|
-background $editor(bg) -selectbackground $editor(selectbg) -selectforeground white\
|
|
|
|
-droptypes {
|
|
|
|
TREE_NODE {copy {} move {} link {}}
|
|
|
|
LISTBOX_ITEM {copy {} move {} link {}}
|
|
|
|
} -opencmd {TreeOpen} -closecmd {TreeClose}]
|
|
|
|
$frmTree setwidget $tree
|
|
|
|
pack $frmTree -side top -fill both -expand true
|
|
|
|
|
2018-02-08 16:37:50 +03:00
|
|
|
$noteBookFiles raise projects
|
|
|
|
|
|
|
|
$tree bindText <Double-ButtonPress-1> "TreeDoubleClick $tree [$tree selection get]"
|
|
|
|
$tree bindText <ButtonPress-1> "TreeOneClick $tree [$tree selection get]"
|
|
|
|
$tree bindImage <Double-ButtonPress-1> "TreeDoubleClick $tree [$tree selection get]"
|
|
|
|
$tree bindImage <ButtonPress-1> "TreeOneClick $tree [$tree selection get]"
|
2018-02-05 11:24:14 +03:00
|
|
|
$tree bindText <Shift-Button-1> {$tree selection add [$tree selection get]}
|
2018-02-08 16:53:55 +03:00
|
|
|
bind $frmTree.tree.c <Control-acircumflex> {FileDialog $tree delete}
|
|
|
|
bind $frmTree.tree.c <Control-d> {FileDialog $tree delete}
|
2018-02-05 11:24:14 +03:00
|
|
|
bind $frmTree.tree.c <Return> {
|
|
|
|
set node [$tree selection get]
|
2018-02-08 16:37:50 +03:00
|
|
|
TreeOneClick $tree $node
|
|
|
|
TreeDoubleClick $tree $node
|
2018-02-05 11:24:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
## POPUP FILE-MENU ##
|
|
|
|
set m .popupFile
|
|
|
|
menu $m -font $fontNormal -bg $editor(bg) -fg $editor(fg)
|
|
|
|
$m add command -label [::msgcat::mc "New file"] -command {AddToProjDialog file}\
|
|
|
|
-font $fontNormal -accelerator "Ctrl+N"
|
|
|
|
$m add command -label [::msgcat::mc "New directory"] -command {AddToProjDialog directory}\
|
|
|
|
-font $fontNormal -accelerator "Alt + Ctrl+N"
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Open"] -command {FileDialog $tree open}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal -accelerator "Ctrl+O" -state disable
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Save"] -command {FileDialog $tree save}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal -accelerator "Ctrl+S"
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Save as"] -command {FileDialog $tree save_as}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal -accelerator "Ctrl+A"
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Save all"] -command {FileDialog $tree save_all}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Close"] -command {FileDialog $tree close}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal -accelerator "Ctrl+W"
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Close all"] -command {FileDialog $tree close_all}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Delete"] -command {FileDialog $tree delete}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal -accelerator "Ctrl+D"
|
|
|
|
$m add separator
|
|
|
|
$m add command -label [::msgcat::mc "Compile file"] -command {MakeProj compile file} -font $fontNormal -accelerator "Ctrl+F8"
|
|
|
|
$m add command -label [::msgcat::mc "Run file"] -command {MakeProj run file} -font $fontNormal -accelerator "Ctrl+F9"
|
|
|
|
|
|
|
|
## POPUP PROJECT-MENU ##
|
|
|
|
set m [menu .popupProj -font $fontNormal -bg $editor(bg) -fg $editor(fg)]
|
|
|
|
GetProjMenu $m
|
|
|
|
|
|
|
|
## TABS popups ##
|
|
|
|
set m .popupTabs
|
|
|
|
menu $m -font $fontNormal -bg $editor(bg) -fg $editor(fg)
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Close"] -command {FileDialog $tree close}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal -accelerator "Ctrl+W"
|
2018-02-08 16:53:55 +03:00
|
|
|
$m add command -label [::msgcat::mc "Close all"] -command {FileDialog $tree close_all}\
|
2018-02-05 11:24:14 +03:00
|
|
|
-font $fontNormal
|
|
|
|
|
|
|
|
proc PopupMenuTab {menu x y} {
|
|
|
|
tk_popup $menu $x $y
|
|
|
|
}
|
|
|
|
|
|
|
|
bind $frmTree.tree.c <Button-3> {catch [PopupMenuTree %X %Y]}
|
|
|
|
|
|
|
|
######### DEDERER: bind Wheel Scroll ##################
|
|
|
|
bind $frmTree.tree.c <Button-4> "$tree yview scroll -3 units"
|
|
|
|
bind $frmTree.tree.c <Button-5> "$tree yview scroll 3 units"
|
|
|
|
bind $frmTree.tree.c <Shift-Button-4> "$tree xview scroll -2 units"
|
|
|
|
bind $frmTree.tree.c <Shift-Button-5> "$tree xview scroll 2 units"
|
|
|
|
|
|
|
|
#################### WORKING AREA ####################
|
|
|
|
set noteBook [NoteBook $frmWork.noteBook -font $fontNormal -side top -bg $editor(bg) -fg $editor(fg)]
|
|
|
|
pack $noteBook -fill both -expand true -padx 2 -pady 2
|
2018-02-08 16:37:50 +03:00
|
|
|
$noteBook bindtabs <ButtonRelease-1> "PageRaise $tree [$noteBook raise]"
|
2018-02-05 11:24:14 +03:00
|
|
|
$noteBook bindtabs <Button-3> {catch [PopupMenuTab .popupTabs %X %Y]}
|
|
|
|
|
|
|
|
#bind . <Control-udiaeresis> PageTab
|
|
|
|
#bind . <Control-M> PageTab
|
|
|
|
|
|
|
|
bind . <Control-Next> {PageTab 1}
|
|
|
|
bind . <Control-Prior> {PageTab -1}
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
CreateToolBar
|
|
|
|
GetProj $tree
|
|
|
|
$tree configure -redraw 1
|
|
|
|
set activeProject ""
|
|
|
|
focus -force $tree
|
|
|
|
|