393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
|
$w.m.ms add command -label "All Right" -command "selectMergeAll $top 2"
$w.m add cascade -label "Goto" -underline 0 -menu $w.m.mg
menu $w.m.mg
$w.m.mg add command -accelerator "Up" -label "Previous" -command "nextMerge $top -1"
$w.m.mg add command -accelerator "Down" -label "Next" -command "nextMerge $top 1"
if {$anyC} {
$w.m.mg add command -accelerator "Shift-Up" -label "Previous Conflict" -command "nextMerge $top -1000"
$w.m.mg add command -accelerator "Shift-Down" -label "Next Conflict" -command "nextMerge $top 1000"
} else {
$w.m.mg add command -accelerator "Shift-Up" -label "Previous 10" -command "nextMerge $top -10"
$w.m.mg add command -accelerator "Shift-Down" -label "Next 10" -command "nextMerge $top 10"
}
$w.m add cascade -label "Config" -underline 0 -menu $w.m.mc
menu $w.m.mc
$w.m.mc add radiobutton -label "Line end LF" -value lf -variable ::eskil($top,mergetranslation)
$w.m.mc add radiobutton -label "Line end CRLF" -value crlf -variable ::eskil($top,mergetranslation)
if {$::eskil($top,mode) eq "conflict"} {
$w.m.mc add separator
|
|
|
<
>
|
|
<
<
|
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
|
$w.m.ms add command -label "All Right" -command "selectMergeAll $top 2"
$w.m add cascade -label "Goto" -underline 0 -menu $w.m.mg
menu $w.m.mg
$w.m.mg add command -accelerator "Up" -label "Previous" -command "nextMerge $top -1"
$w.m.mg add command -accelerator "Down" -label "Next" -command "nextMerge $top 1"
if {$anyC} {
$w.m.mg add command -accelerator "Ctrl-Up" -label "Previous Conflict" -command "nextMerge $top -1000"
$w.m.mg add command -accelerator "Ctrl-Down" -label "Next Conflict" -command "nextMerge $top 1000"
}
$w.m.mg add command -accelerator "Shift-Up" -label "Previous 10" -command "nextMerge $top -10"
$w.m.mg add command -accelerator "Shift-Down" -label "Next 10" -command "nextMerge $top 10"
$w.m add cascade -label "Config" -underline 0 -menu $w.m.mc
menu $w.m.mc
$w.m.mc add radiobutton -label "Line end LF" -value lf -variable ::eskil($top,mergetranslation)
$w.m.mc add radiobutton -label "Line end CRLF" -value crlf -variable ::eskil($top,mergetranslation)
if {$::eskil($top,mode) eq "conflict"} {
$w.m.mc add separator
|
437
438
439
440
441
442
443
444
445
446
447
448
449
450
|
ttk::button $w.f.b1 -text "Prev" -command "nextMerge $top -1"
ttk::button $w.f.b2 -text "Next" -command "nextMerge $top 1"
bind $w <Key-Down> "focus $w ; nextMerge $top 1"
bind $w <Key-Up> "focus $w ; nextMerge $top -1"
bind $w <Shift-Key-Down> "focus $w ; nextMerge $top 10"
bind $w <Shift-Key-Up> "focus $w ; nextMerge $top -10"
ttk::button $w.f.bs -text "Save" -command "saveMerge $top"
ttk::button $w.f.bq -text "Close" -command "closeMerge $top"
wm protocol $w WM_DELETE_WINDOW "closeMerge $top"
grid $w.f.rb1 $w.f.rb2 $w.f.rb3 $w.f.rb4 x $w.f.b1 $w.f.b2 x \
$w.f.bl $w.f.br x $w.f.bs $w.f.bq -sticky we -padx 1
|
>
>
|
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
|
ttk::button $w.f.b1 -text "Prev" -command "nextMerge $top -1"
ttk::button $w.f.b2 -text "Next" -command "nextMerge $top 1"
bind $w <Key-Down> "focus $w ; nextMerge $top 1"
bind $w <Key-Up> "focus $w ; nextMerge $top -1"
bind $w <Shift-Key-Down> "focus $w ; nextMerge $top 10"
bind $w <Shift-Key-Up> "focus $w ; nextMerge $top -10"
bind $w <Control-Key-Down> "focus $w ; nextMerge $top 1000"
bind $w <Control-Key-Up> "focus $w ; nextMerge $top -1000"
ttk::button $w.f.bs -text "Save" -command "saveMerge $top"
ttk::button $w.f.bq -text "Close" -command "closeMerge $top"
wm protocol $w WM_DELETE_WINDOW "closeMerge $top"
grid $w.f.rb1 $w.f.rb2 $w.f.rb3 $w.f.rb4 x $w.f.b1 $w.f.b2 x \
$w.f.bl $w.f.br x $w.f.bs $w.f.bq -sticky we -padx 1
|