Changeset 3782 for trunk/gui/scripts/sidebarframe.tcl
- Timestamp:
- Jul 12, 2013 11:57:45 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/sidebarframe.tcl
r3330 r3782 43 43 44 44 public method insert {pos args} 45 public method exists {which} 45 46 public method panel {which} 46 47 public method select {which} … … 63 64 private variable _width "auto" ;# width adjusted by sash or "auto" 64 65 private variable _counter 0 ;# counter for auto-generated names 66 private variable _title2panel 65 67 } 66 68 … … 249 251 -command [itcl::code $this _toggleTab $pname] 250 252 253 set _title2panel($panel(-title)) $pname 251 254 Rappture::Tooltip::text $itk_component(tabs)-$pname \ 252 255 "Open/close sidebar for $panel(-title)" … … 303 306 } 304 307 } 308 } 309 310 # ---------------------------------------------------------------------- 311 # USAGE: exists <which> 312 # 313 # Returns the frame representing the requested panel. The <which> 314 # argument can be a panel index, name, or title, or the keyword 315 # "current" for the selected panel. 316 # ---------------------------------------------------------------------- 317 itcl::body Rappture::SidebarFrame::exists { title } { 318 if { [info exists _title2panel($title)] } { 319 return 1 320 } 321 return 0 305 322 } 306 323
Note: See TracChangeset
for help on using the changeset viewer.