Ignore:
Timestamp:
Jul 12, 2013 11:57:45 AM (11 years ago)
Author:
gah
Message:

fix multiple barchart results, fix PDB reader, dynamically create tabs for vtkviewer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/sidebarframe.tcl

    r3330 r3782  
    4343
    4444    public method insert {pos args}
     45    public method exists {which}
    4546    public method panel {which}
    4647    public method select {which}
     
    6364    private variable _width "auto"   ;# width adjusted by sash or "auto"
    6465    private variable _counter 0      ;# counter for auto-generated names
     66    private variable _title2panel
    6567}
    6668
     
    249251        -command [itcl::code $this _toggleTab $pname]
    250252
     253    set _title2panel($panel(-title)) $pname
    251254    Rappture::Tooltip::text $itk_component(tabs)-$pname \
    252255        "Open/close sidebar for $panel(-title)"
     
    303306        }
    304307    }
     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# ----------------------------------------------------------------------
     317itcl::body Rappture::SidebarFrame::exists { title } {
     318    if { [info exists _title2panel($title)] } {
     319        return 1
     320    }
     321    return 0
    305322}
    306323
Note: See TracChangeset for help on using the changeset viewer.