Changeset 23f300d in tol
- Timestamp:
- Feb 1, 2012, 7:45:19 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- e70625a
- Parents:
- 2a670e5
- Location:
- tolbase/lib/toltk
- Files:
-
- 2 edited
-
tolpkg.tcl (modified) (3 diffs)
-
tolpkg_gui.tcl (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/tolpkg.tcl
r2a670e5 r23f300d 32 32 33 33 proc ::TolPkg::BackupPackage { p {delete 0}} { 34 # backup is not working, some problem has being reported on Windows 7 35 return 1 34 36 set path [ GetPkgDirectory $p ] 35 37 if { [ file exists $path ] } { … … 44 46 45 47 proc ::TolPkg::RestoreBackup { p { delete 0 } } { 48 # backup is not working, some problem has being reported on Windows 7 49 return 1 46 50 set path [ GetPkgDirectory $p ] 47 51 set bak "${path}.bak" … … 55 59 56 60 proc ::TolPkg::DeleteBackup { p } { 61 # backup is not working, some problem has being reported on Windows 7 62 return 1 57 63 set path [ GetPkgDirectory $p ] 58 64 set bak "${path}.bak" -
tolbase/lib/toltk/tolpkg_gui.tcl
r2a670e5 r23f300d 985 985 } 986 986 987 proc ::TolPkgGUI::RefreshTree { } { 988 variable tree 989 990 $tree item delete all 991 FillTreeInfo $tree 992 } 993 987 994 proc ::TolPkgGUI::SyncServers { } { 988 995 variable tree 989 996 update 990 997 ::TolPkg::UpdateRepositoryInfo 991 $tree item delete all 992 FillTreeInfo $tree 998 RefreshTree 993 999 } 994 1000 … … 1062 1068 -cmdlabelitem "" 1063 1069 -customgui "" 1070 -refreshtree 0 1064 1071 } 1065 1072 set DlgProcessData(-label) [ mc "You are about to process"]: … … 1220 1227 } 1221 1228 puts "InstallPackages: $InstallList" 1222 DlgProcess $InstallList -title [ mc " Exportpackages" ] \1223 -label [ mc "You are about to export"]: \1229 DlgProcess $InstallList -title [ mc "Install packages" ] \ 1230 -label [ mc "You are about to install"]: \ 1224 1231 -beforestart ::TolPkgGUI::Installing \ 1225 -cmditem "InstallThisPackage" 1232 -cmditem "InstallThisPackage" -refreshtree 1 1226 1233 1227 1234 } … … 1242 1249 variable DlgProcessData 1243 1250 1244 DlgProcessStart 1251 DlgProcessStart 1252 set hasProcessed 0 1245 1253 foreach p $DlgProcessData(items) { 1246 1254 if { $DlgProcessData(status) ne "working" } break 1247 1255 DlgProcessItem $p 1248 1256 DlgProcessAdvance 1249 } 1250 DlgProcessStop 1257 set hasProcessed 1 1258 } 1259 DlgProcessStop 1260 if { $DlgProcessData(-refreshtree) && $hasProcessed } { 1261 after idle ::TolPkgGUI::RefreshTree 1262 } 1251 1263 } 1252 1264 … … 1286 1298 1287 1299 set installZipData [ tk_getOpenFile -defaultextension .zip -multiple 1 \ 1288 -parent $win -title [ mc "Select zip " ] \1300 -parent $win -title [ mc "Select zip packages" ] \ 1289 1301 -filetypes {{zip {.zip}}} ] 1290 1302 if { $installZipData ne "" } { … … 1295 1307 -label [ mc "You are about to install zip"]: \ 1296 1308 -beforestart ::TolPkgGUI::InstallingZip \ 1297 -cmditem InstallThisZip 1309 -cmditem InstallThisZip -refreshtree 1 1298 1310 } 1299 1311 } … … 1342 1354 -label [ mc "You are about to upgrade"]: \ 1343 1355 -beforestart ::TolPkgGUI::Upgrading \ 1344 -cmditem "InstallThisPackage" 1356 -cmditem "InstallThisPackage" -refreshtree 1 1345 1357 } 1346 1358 … … 1377 1389 -label [ mc "You are about to update"]: \ 1378 1390 -beforestart ::TolPkgGUI::Updating \ 1379 -cmditem "InstallThisPackage" 1391 -cmditem "InstallThisPackage" -refreshtree 1 1380 1392 } 1381 1393 1382 1394 proc ::TolPkgGUI::ImportSyncInfo { } { 1383 1395 Unimplemented "Import Sync Info" 1396 } 1397 1398 proc ::TolPkgGUI::ExportSyncInfo { } { 1399 Unimplemented "Export Sync Info" 1384 1400 } 1385 1401 … … 1390 1406 -icon warning \ 1391 1407 -type ok -message [ mc "Unimplemented option" ] 1392 }1393 1394 proc ::TolPkgGUI::ExportSyncInfo { } {1395 Unimplemented "Export Sync Info"1396 1408 } 1397 1409 … … 1447 1459 -beforestart ::TolPkgGUI::Exporting \ 1448 1460 -customgui "CreateSelectDir" \ 1449 -cmditem "ExportThisPackage" 1461 -cmditem "ExportThisPackage" -refreshtree 0 1450 1462 } 1451 1463 }
Note: See TracChangeset
for help on using the changeset viewer.
