Changeset 770
- Timestamp:
- Jun 13, 2007 9:15:38 AM (17 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/deviceEditor.tcl
r766 r770 37 37 private variable _current "" ;# active device editor 38 38 39 public common _ hubvisHosts ""40 41 public proc set HubvisServer {namelist} {39 public common _molvisHosts "" 40 41 public proc setMolvisServer {namelist} { 42 42 if {[regexp {^[a-zA-Z0-9\.]+:[0-9]+(,[a-zA-Z0-9\.]+:[0-9]+)*$} $namelist match]} { 43 set _ hubvisHosts $namelist43 set _molvisHosts $namelist 44 44 } else { 45 45 error "bad visualization server address \"$namelist\": should be host:port,host:port,..." … … 54 54 proc deviceEditor_init_resources {} { 55 55 Rappture::resources::register \ 56 hubvis_server Rappture::DeviceEditor::setHubvisServer56 molvis_server Rappture::DeviceEditor::setMolvisServer 57 57 } 58 58 … … 185 185 if {![winfo exists $itk_component(hull).mol]} { 186 186 catch {destroy $itk_component(hull).dev} 187 if {"" != $_ hubvisHosts} {188 Rappture::MolvisViewer $itk_component(hull).mol $_ hubvisHosts187 if {"" != $_molvisHosts} { 188 Rappture::MolvisViewer $itk_component(hull).mol $_molvisHosts 189 189 } else { 190 190 Rappture::MoleculeViewer $itk_component(hull).mol $this -
trunk/gui/scripts/molvisviewer.tcl
r767 r770 346 346 347 347 # 348 # Connect to the hubvis server.348 # Connect to the molvis server. 349 349 # If it's too busy, that server may 350 350 # forward us to another.
Note: See TracChangeset
for help on using the changeset viewer.