Changeset 87b1c46 in tol
- Timestamp:
- Nov 15, 2016, 9:03:42 AM (10 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 4592f76
- Parents:
- 06f7d3d
- Location:
- tolbase/lib
- Files:
-
- 9 edited
-
byswidget/bfunctions/bfsql.tcl (modified) (2 diffs)
-
byswidget/bodbc/bodbc.tcl (modified) (2 diffs)
-
byswidget/loadByswidget.tcl (modified) (1 diff)
-
byswidget/pkgIndex.tcl (modified) (2 diffs)
-
toltk/bysgraph.tcl (modified) (11 diffs)
-
toltk/graph.tcl (modified) (15 diffs)
-
toltk/odbc.tcl (modified) (2 diffs)
-
toltk/sergraph.tcl (modified) (1 diff)
-
toltk/setgraph.tcl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/byswidget/bfunctions/bfsql.tcl
r06f7d3d r87b1c46 485 485 #NOTE: move traces to "DBQuery" 486 486 . configure -cursor watch 487 :: blt::busy hold .487 ::rbc::busy hold . 488 488 set lst {} 489 489 Tolcon_Trace "IniQuery: \ … … 507 507 Tolcon_Trace "EndQuery: [clock format [clock seconds] -format "%Y%m%d %T"]" 508 508 . configure -cursor "" 509 :: blt::busy release .509 ::rbc::busy release . 510 510 update 511 511 return $lst -
tolbase/lib/byswidget/bodbc/bodbc.tcl
r06f7d3d r87b1c46 306 306 # wait 307 307 if { 0 } { 308 blt::busy hold $widget(dlg)308 rbc::busy hold $widget(dlg) 309 309 update 310 310 } … … 329 329 # end wait 330 330 if { 0 } { 331 blt::busy release $widget(dlg)331 rbc::busy release $widget(dlg) 332 332 } 333 333 } -
tolbase/lib/byswidget/loadByswidget.tcl
r06f7d3d r87b1c46 9 9 package require bselectfields 10 10 package require btoplevel 11 package require btreeview12 package require btreeviewplus11 #@!NO package require btreeview 12 #@!NO package require btreeviewplus 13 13 package require bguifunction 14 14 package require bmultiselect -
tolbase/lib/byswidget/pkgIndex.tcl
r06f7d3d r87b1c46 18 18 bselectfields 19 19 btoplevel 20 btreeview21 btreeviewplus22 20 bguifunction 23 21 bmultiselect … … 28 26 bdialog 29 27 } { 30 #@!NO: bsersel btab 28 #@!NO: bsersel btab btreeview btreeviewplus 31 29 set dir [file join $maindir $d] 32 30 source [file join $dir pkgIndex.tcl] -
tolbase/lib/toltk/bysgraph.tcl
r06f7d3d r87b1c46 16 16 package require Tk 17 17 package require BWidget 18 package require BLT18 package require RBC 19 19 Bitmap::use 20 20 set toltk_script_path [file dirname [info script]] … … 37 37 # tmpOpt -> temporary array used to store the widgets and variables of the 38 38 # options dialog. 39 # instance -> asociative array of bltgraph widget's path with the instance39 # instance -> asociative array of rbc graph widget's path with the instance 40 40 # of bayesGraph. 41 41 # … … 138 138 set i 0 139 139 foreach fr $panel { 140 set widgets(gr,$i) [ blt::graph $fr.gr]140 set widgets(gr,$i) [rbc::graph $fr.gr] 141 141 set instance($fr.gr) $Instance 142 142 pack $widgets(gr,$i) -fill both -expand yes … … 686 686 proc ::bayesGraph::ZoomFrame { this } { 687 687 # 688 # PURPOSE: Sets zoom-frame mode for the bltgraph688 # PURPOSE: Sets zoom-frame mode for the rbc graph 689 689 # 690 690 # PARAMETERS: … … 699 699 proc ::bayesGraph::ZoomIn { this } { 700 700 # 701 # PURPOSE: Sets zoom-in mode for the bltgraph701 # PURPOSE: Sets zoom-in mode for the rbc graph 702 702 # 703 703 # PARAMETERS: … … 713 713 proc ::bayesGraph::ZoomOut { this } { 714 714 # 715 # PURPOSE: Sets zoom-out mode for the bltgraph715 # PURPOSE: Sets zoom-out mode for the rbc graph 716 716 # 717 717 # PARAMETERS: … … 727 727 proc ::bayesGraph::ScrollView { this } { 728 728 # 729 # PURPOSE: Sets scroll mode for the bltgraph729 # PURPOSE: Sets scroll mode for the rbc graph 730 730 # 731 731 # PARAMETERS: … … 741 741 proc ::bayesGraph::SetViewMode { this mode } { 742 742 # 743 # PURPOSE: Sets zoom (or scroll) mode for the bltgraph. It also enables and743 # PURPOSE: Sets zoom (or scroll) mode for the rbc graph. It also enables and 744 744 # disables toolbar buttons and sets cursors types acording to the 745 745 # mode choosen. … … 747 747 # PARAMETERS: 748 748 # this -> bayesgraph instance 749 # mode -> mode for the bltgraph749 # mode -> mode for the rbc graph 750 750 # 751 751 #///////////////////////////////////////////////////////////////////////////// … … 766 766 set item $widgets(gr,$gr) 767 767 $item configure -cursor $widgets(cursor,$active) 768 Blt_ViewMode $item $active768 Rbc_ViewMode $item $active 769 769 } 770 770 … … 837 837 for {set i 0} {$i<$data(gr,numGraph)} {incr i 1} { 838 838 set item $widgets(gr,$i) 839 blt::Crosshairs $item839 rbc::Crosshairs $item 840 840 } 841 841 } else { 842 842 for {set i 0} {$i<$data(gr,numGraph)} {incr i 1} { 843 843 set item $widgets(gr,$i) 844 blt::ClearCrosshairs $item844 rbc::ClearCrosshairs $item 845 845 } 846 846 } -
tolbase/lib/toltk/graph.tcl
r06f7d3d r87b1c46 1 1 #///////////////////////////////////////////////////////////////////////////// 2 2 # FILE : graph.tcl 3 # PURPOSE : This file is part of BLTToolkit3 # PURPOSE : This file is part of RBC Toolkit 4 4 #///////////////////////////////////////////////////////////////////////////// 5 5 6 # force bltload7 8 if { [info command "_ blt_InitStack"] eq "" } {9 blt::graph .__g__10 Blt_ZoomStack .__g__6 # force rbc load 7 8 if { [info command "_rbc_InitStack"] eq "" } { 9 rbc::graph .__g__ 10 Rbc_ZoomStack .__g__ 11 11 destroy .__g__ 12 rename blt::InitStack _blt_InitStack12 rename rbc::InitStack _rbc_InitStack 13 13 } 14 14 … … 25 25 } 26 26 27 if { [ catch { blt::busy patched } ] } {28 rename :: blt::busy _blt_busy29 interp alias {} :: blt::busy {} Busy_Patched30 puts "interp alias {} :: blt::busy {} Busy_Patched"27 if { [ catch { rbc::busy patched } ] } { 28 rename ::rbc::busy _rbc_busy 29 interp alias {} ::rbc::busy {} Busy_Patched 30 puts "interp alias {} ::rbc::busy {} Busy_Patched" 31 31 } 32 32 … … 39 39 # scroll 40 40 41 proc Blt_ViewMode { graph mode } {42 global zoomInfo 43 44 if { ![ blt::ClearMode $graph $mode] } return41 proc Rbc_ViewMode { graph mode } { 42 global zoomInfo 43 44 if { ![rbc::ClearMode $graph $mode] } return 45 45 46 46 set zoomInfo($graph,mode) $mode … … 48 48 if { [string equal $mode "scroll"] } { 49 49 # limpio el stack 50 blt::InitStack $graph $mode51 bind scroll-$graph <ButtonPress-1> { blt::SetScrollPoint %W %x %y }52 bind scroll-$graph <ButtonRelease-1> { blt::SetScrollPoint %W %x %y }50 rbc::InitStack $graph $mode 51 bind scroll-$graph <ButtonPress-1> { rbc::SetScrollPoint %W %x %y } 52 bind scroll-$graph <ButtonRelease-1> { rbc::SetScrollPoint %W %x %y } 53 53 # este evento posiblemente ya no hara falta 54 54 bind scroll-$graph <ButtonPress-3> { 55 55 if { [%W inside %x %y] } { 56 blt::ResetScroll %W57 } 58 } 59 blt::AddBindTag $graph scroll-$graph56 rbc::ResetScroll %W 57 } 58 } 59 rbc::AddBindTag $graph scroll-$graph 60 60 } elseif { [regexp "zoom-*" $mode] } { 61 61 puts "mode = $mode" 62 bind zoom-$graph <ButtonPress-1> { blt::SetZoomPoint %W %x %y }62 bind zoom-$graph <ButtonPress-1> { rbc::SetZoomPoint %W %x %y } 63 63 if { [string equal $mode zoom-frame] } { 64 bind zoom-$graph <ButtonRelease-1> { blt::SetZoomPoint %W %x %y }64 bind zoom-$graph <ButtonRelease-1> { rbc::SetZoomPoint %W %x %y } 65 65 } else { 66 66 bind zoom-$graph <ButtonRelease-1> "" … … 68 68 bind zoom-$graph <ButtonPress-3> { 69 69 if { [%W inside %x %y] } { 70 blt::ResetZoom %W71 } 72 } 73 blt::AddBindTag $graph zoom-$graph74 } 75 } 76 77 proc blt::RemoveBindTag { widget args } {70 rbc::ResetZoom %W 71 } 72 } 73 rbc::AddBindTag $graph zoom-$graph 74 } 75 } 76 77 proc rbc::RemoveBindTag { widget args } { 78 78 set oldTagList [bindtags $widget] 79 79 foreach tag $args { … … 85 85 } 86 86 87 proc blt::InitStack { graph {mode zoom-frame} } {87 proc rbc::InitStack { graph {mode zoom-frame} } { 88 88 global zoomInfo 89 89 90 _ blt_InitStack $graph90 _rbc_InitStack $graph 91 91 # this is to allow zoom in, out scroll 92 92 … … 95 95 96 96 97 proc blt::SetZoomScale { graph scale } {97 proc rbc::SetZoomScale { graph scale } { 98 98 global zoomInfo 99 99 … … 101 101 } 102 102 103 proc blt::ClearMode { graph newmode } {103 proc rbc::ClearMode { graph newmode } { 104 104 global zoomInfo 105 105 … … 111 111 if { [string equal $zoomInfo($graph,mode) "scroll"] } { 112 112 eval $graph marker delete [$graph marker names "scroll*"] 113 blt::RemoveBindTag $graph "scroll-region-$graph" "scroll-$graph"113 rbc::RemoveBindTag $graph "scroll-region-$graph" "scroll-$graph" 114 114 } else { 115 115 eval $graph marker delete [$graph marker names "zoom*"] 116 blt::RemoveBindTag $graph "select-region-$graph" "zoom-$graph"117 } 118 } else { 119 blt::InitStack $graph ""116 rbc::RemoveBindTag $graph "select-region-$graph" "zoom-$graph" 117 } 118 } else { 119 rbc::InitStack $graph "" 120 120 } 121 121 return 1 122 122 } 123 123 124 proc blt::ZoomScale { graph } {124 proc rbc::ZoomScale { graph } { 125 125 global zoomInfo 126 126 … … 166 166 } 167 167 168 proc blt::SetZoomPoint { graph x y } {168 proc rbc::SetZoomPoint { graph x y } { 169 169 global zoomInfo zoomMod 170 170 if { ![info exists zoomInfo($graph,corner)] } { 171 blt::InitStack $graph172 } 173 blt::GetCoords $graph $x $y $zoomInfo($graph,corner)174 175 #puts blt::SetZoomPoint171 rbc::InitStack $graph 172 } 173 rbc::GetCoords $graph $x $y $zoomInfo($graph,corner) 174 175 #puts rbc::SetZoomPoint 176 176 177 177 if { [string compare $zoomInfo($graph,mode) "zoom-frame"] } { 178 blt::ZoomScale $graph178 rbc::ZoomScale $graph 179 179 return 180 180 } … … 186 186 } 187 187 bind select-region-$graph <${modifier}Motion> { 188 blt::GetCoords %W %x %y B189 # blt::MarkPoint $graph B190 blt::Box %W188 rbc::GetCoords %W %x %y B 189 #rbc::MarkPoint $graph B 190 rbc::Box %W 191 191 } 192 192 if { $zoomInfo($graph,corner) == "A" } { … … 196 196 # First corner selected, start watching motion events 197 197 198 # blt::MarkPoint $graph A199 blt::ZoomTitleNext $graph200 201 blt::AddBindTag $graph select-region-$graph198 #rbc::MarkPoint $graph A 199 rbc::ZoomTitleNext $graph 200 201 rbc::AddBindTag $graph select-region-$graph 202 202 set zoomInfo($graph,corner) B 203 203 } else { 204 204 # Delete the modal binding 205 blt::RemoveBindTag $graph select-region-$graph206 blt::PushZoom $graph205 rbc::RemoveBindTag $graph select-region-$graph 206 rbc::PushZoom $graph 207 207 set zoomInfo($graph,corner) A 208 208 } 209 209 } 210 210 211 proc blt::SetScrollPoint { graph x y } {211 proc rbc::SetScrollPoint { graph x y } { 212 212 global zoomInfo 213 213 214 blt::GetCoords $graph $x $y A214 rbc::GetCoords $graph $x $y A 215 215 bind scroll-region-$graph <Any-Motion> { 216 blt::GetCoords %W %x %y B217 # blt::MarkPoint $graph B218 blt::Scroll %W216 rbc::GetCoords %W %x %y B 217 #rbc::MarkPoint $graph B 218 rbc::Scroll %W 219 219 } 220 220 if { $zoomInfo($graph,corner) == "A" } { … … 224 224 # First corner selected, start watching motion events 225 225 226 # blt::MarkPoint $graph A227 blt::ScrollTitle $graph228 229 blt::AddBindTag $graph scroll-region-$graph226 #rbc::MarkPoint $graph A 227 rbc::ScrollTitle $graph 228 229 rbc::AddBindTag $graph scroll-region-$graph 230 230 set zoomInfo($graph,corner) B 231 231 } else { … … 235 235 } 236 236 237 proc blt::Scroll { graph } {237 proc rbc::Scroll { graph } { 238 238 global zoomInfo 239 239 … … 257 257 } 258 258 259 proc blt::ResetScroll { graph } {259 proc rbc::ResetScroll { graph } { 260 260 global zoomInfo 261 261 262 262 eval $graph marker delete [$graph marker names "scroll*"] 263 blt::RemoveBindTag $graph scroll-region-$graph263 rbc::RemoveBindTag $graph scroll-region-$graph 264 264 set zoomInfo($graph,corner) A 265 265 } 266 266 267 proc blt::ScrollTitle { graph } {267 proc rbc::ScrollTitle { graph } { 268 268 if { [$graph cget -invertxy] } { 269 269 set coords "-Inf -Inf" -
tolbase/lib/toltk/odbc.tcl
r06f7d3d r87b1c46 225 225 variable tmpdata 226 226 227 blt::busy hold $tmpdata(dlg)227 rbc::busy hold $tmpdata(dlg) 228 228 update 229 229 if [catch "database dbtest $tmpdata(alias) $tmpdata(user) $tmpdata(password)" msg] { … … 249 249 $tmpdata(dlg) enddialog ok 250 250 } 251 blt::busy release $tmpdata(dlg)251 rbc::busy release $tmpdata(dlg) 252 252 } 253 253 -
tolbase/lib/toltk/sergraph.tcl
r06f7d3d r87b1c46 32 32 ::SeriesGraph::ShowSerieInfo %I %W %x %y 33 33 } ] 34 blt::AddBindTag $graph closest-point-$graph34 rbc::AddBindTag $graph closest-point-$graph 35 35 36 36 } -
tolbase/lib/toltk/setgraph.tcl
r06f7d3d r87b1c46 430 430 # 431 431 # PARAMETERS: 432 # path -> path of the bltgraph432 # path -> path of the rbc graph 433 433 # tableset -> command of the set 434 434 # set -> reference to the TOL set … … 511 511 # 512 512 # PARAMETERS: 513 # path -> path of the bltgraph513 # path -> path of the rbc graph 514 514 # tableset -> command of the set 515 515 # set -> reference to the TOL set … … 542 542 #///////////////////////////////////////////////////////////////////////////// 543 543 if [llength $list] { 544 eval blt::vector destroy $list544 eval rbc::vector destroy $list 545 545 } 546 546 } … … 1156 1156 proc ::SetGraphDialog::Finish {dialog} { 1157 1157 # 1158 # PURPOSE: Creates the bltvectors acording to the columns selection done by1158 # PURPOSE: Creates the rbc vectors acording to the columns selection done by 1159 1159 # the user. It also get the maximun and minimun x value of the 1160 1160 # selected series … … 1172 1172 proc ::SetGraphDialog::SetSelection {} { 1173 1173 # 1174 # PURPOSE: Creates the bltvectors acording to the columns selection done by1174 # PURPOSE: Creates the rbc vectors acording to the columns selection done by 1175 1175 # the user. It also get the maximun and minimun x value of the 1176 1176 # selected series
Note: See TracChangeset
for help on using the changeset viewer.
