Ignore:
Timestamp:
Feb 18, 2013, 2:32:14 PM (12 years ago)
Author:
ldelgass
Message:

sync with trunk

Location:
branches/nanovis2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/nanovis2

  • branches/nanovis2/gui/scripts/main.tcl

    r3175 r3305  
    1616# ======================================================================
    1717#  AUTHOR:  Michael McLennan, Purdue University
    18 #  Copyright (c) 2004-2011  Purdue Research Foundation
     18#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
    1919#
    2020#  See the file "license.terms" for information on usage and
     
    175175
    176176# ----------------------------------------------------------------------
     177# START LOGGING
     178#
     179# If the $RAPPTURE_LOG directory is set to a directory used for
     180# logging, then open a log file and start logging.
     181# ----------------------------------------------------------------------
     182Rappture::Logger::init
     183
     184# ----------------------------------------------------------------------
    177185# INITIALIZE THE DESKTOP CONNECTION
    178186#
     
    189197.main configure -title [$tool xml get tool.title]
    190198wm withdraw .main
     199wm protocol .main WM_DELETE_WINDOW {Rappture::Logger::cleanup; exit}
    191200
    192201# if the FULLSCREEN variable is set, then nanoHUB wants us to go full screen
     
    219228    label $f.hubcntls.icon -image [Rappture::icon ask] -highlightthickness 0
    220229    pack $f.hubcntls.icon -side left
    221     button $f.hubcntls.about -text "About this tool" \
    222         -command [list Rappture::filexfer::webpage "$url/tools/$app"]
     230    button $f.hubcntls.about -text "About this tool" -command "
     231        [list Rappture::filexfer::webpage $url/tools/$app]
     232        Rappture::Logger::log help about
     233    "
    223234    pack $f.hubcntls.about -side top -anchor w
    224     button $f.hubcntls.questions -text Questions? \
    225         -command [list Rappture::filexfer::webpage "$url/resources/$app/questions"]
     235    button $f.hubcntls.questions -text Questions? -command "
     236        [list Rappture::filexfer::webpage $url/resources/$app/questions]
     237        Rappture::Logger::log help questions
     238    "
    226239    pack $f.hubcntls.questions -side top -anchor w
    227240}
Note: See TracChangeset for help on using the changeset viewer.