Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Use psmenu with dirdiff window |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
2d052099ca9e54af4386d904617d3ed4 |
User & Date: | peter 2024-09-08 02:23:50.579 |
Context
2024-09-08
| ||
12:48 | Improved window browser with menu items. Cleaner exit. check-in: 6a713b1c5a user: peter tags: trunk | |
02:23 | Use psmenu with dirdiff window check-in: 2d052099ca user: peter tags: trunk | |
02:23 | Handle accellerator with state check-in: c7652f29e5 user: peter tags: trunk | |
Changes
Changes to src/clip.tcl.
︙ | ︙ | |||
148 149 150 151 152 153 154 155 156 157 158 159 160 161 | set ::eskil(wClip1) $t1 set ::eskil(wClip2) $t2 bind $t1 <Control-o> [list focus $t2] bind $t2 <Control-o> [list focus $t1] ttk::frame $top.f menubutton $top.f.mf -menu $top.f.mf.m -text "File" -underline 0 menu $top.f.mf.m $top.f.mf.m add command -label "Close" -underline 0 \ -command [list cleanupAndExit $top] $top.f.mf.m add separator $top.f.mf.m add command -label "Quit" -underline 0 \ | > | 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | set ::eskil(wClip1) $t1 set ::eskil(wClip2) $t2 bind $t1 <Control-o> [list focus $t2] bind $t2 <Control-o> [list focus $t1] # Have the file menu in top frame to save space ttk::frame $top.f menubutton $top.f.mf -menu $top.f.mf.m -text "File" -underline 0 menu $top.f.mf.m $top.f.mf.m add command -label "Close" -underline 0 \ -command [list cleanupAndExit $top] $top.f.mf.m add separator $top.f.mf.m add command -label "Quit" -underline 0 \ |
︙ | ︙ |
Changes to src/dirdiff.tcl.
︙ | ︙ | |||
1276 1277 1278 1279 1280 1281 1282 | if {[info exists ::dirdiff(localChanges)]} { $tree configure -changelist $::dirdiff(localChanges) } ttk::frame $win.fe1 ttk::frame $win.fe2 | | < < | | < | < < > | < < > | | | < | < | < | | < | < | < > | | < | | < < < < < < < | | < < > > > | | | < | < < | | | < < > | | | | < | | < | | | | < | | | < > | < | < > | | > > | 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 | if {[info exists ::dirdiff(localChanges)]} { $tree configure -changelist $::dirdiff(localChanges) } ttk::frame $win.fe1 ttk::frame $win.fe2 # Need to do this manually with snit $hull configure -menu $win.m psmenu::psmenu $win { "&File" { "C&ompare" -cmd "[mymethod DoDirCompare]" -acc "Alt-c" --- "&Close" -cmd "cleanupAndExit $win" --- "&Quit" -cmd "cleanupAndExit all" } "&Preferences" { "Prefs..." -cmd makeDirDiffPrefWin "Check" { _Radio -var ::Pref(dir,comparelevel) { "Do not check contents" -value 0 "Normal compare" -value 1 "Exact compare" -value 2 } "Ignore \$Keyword:\$" -var ::Pref(dir,ignorekey) } "P&lugins..." -cmd "editPrefPlugins $win 1" "Nice" { _Radio -var ::Pref(dir,nice) -cmd "[mymethod DoNice]" { 1 50 100 1000 } } --- "Save default" -cmd "saveOptions $win" } "&Tools" { "&New Diff Window" -cmd makeDiffWin "&Clip Diff" -cmd makeClipDiffWin if {$::tcl_platform(platform) eq "windows"} { if { ! [catch {package require registry}]} { --- "Setup &Registry" -cmd makeRegistryWin } } } "&Help" { "&Tutorial" -cmd makeTutorialWin "&About" -cmd makeAboutWin } if {$::eskil(debug)} { "&Debug" { if {$::tcl_platform(platform) eq "windows"} { "Console" -var consolestate \ -onvalue show -offvalue hide -cmd "console \\$consolestate" --- } "&Reread Source" -cmd {EskilRereadSource} --- "Redraw Window" -cmd {makeDirDiffWin} } } } $win ttk::button $win.bu -image $::img(upup) -command [mymethod UpDir] \ -underline 0 addBalloon $win.bu "Up in both." bind $win <Alt-u> "$win.bu invoke" #catch {font delete myfont} |
︙ | ︙ |