Changeset 1452132 in sasview


Ignore:
Timestamp:
Aug 23, 2012 6:13:24 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
f9d8cd5
Parents:
754c436
Message:

About menu: added nist umd sns logos

Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/aboutbox.py

    r3c965fd r1452132  
    104104                                                   config._acknowledgement) 
    105105        self.static_line_2 = wx.StaticLine(self, -1) 
     106        self.bitmap_button_nist = wx.BitmapButton(self, -1, wx.NullBitmap) 
     107        self.bitmap_button_umd = wx.BitmapButton(self, -1, wx.NullBitmap) 
     108        self.bitmap_button_sns = wx.BitmapButton(self, -1, wx.NullBitmap) 
    106109        self.bitmap_button_nsf = wx.BitmapButton(self, -1, 
    107110                                                 wx.NullBitmap) 
     
    113116        self.__set_properties() 
    114117        self.__do_layout() 
    115  
     118         
     119        self.Bind(wx.EVT_BUTTON, self.onNistLogo, self.bitmap_button_nist) 
     120        self.Bind(wx.EVT_BUTTON, self.onUmdLogo, self.bitmap_button_umd) 
     121        self.Bind(wx.EVT_BUTTON, self.onSnsLogo, self.bitmap_button_sns) 
    116122        self.Bind(wx.EVT_BUTTON, self.onNsfLogo, self.bitmap_button_nsf) 
    117123        self.Bind(wx.EVT_BUTTON, self.onDanseLogo, self.bitmap_button_danse) 
     
    137143         
    138144        # set bitmaps for logo buttons 
     145        image = file_dir + "/images/nist_logo.png" 
     146        if os.path.isfile(config._nist_logo): 
     147            image = config._nist_logo 
     148        logo = wx.Bitmap(image)         
     149        self.bitmap_button_nist.SetBitmapLabel(logo) 
     150         
     151        image = file_dir + "/images/umd_logo.png" 
     152        if os.path.isfile(config._umd_logo): 
     153            image = config._umd_logo 
     154        logo = wx.Bitmap(image)         
     155        self.bitmap_button_umd.SetBitmapLabel(logo) 
     156 
     157         
     158        image = file_dir + "/images/sns_logo.png" 
     159        if os.path.isfile(config._sns_logo): 
     160            image = config._sns_logo 
     161        logo = wx.Bitmap(image)         
     162        self.bitmap_button_sns.SetBitmapLabel(logo) 
     163         
    139164        image = file_dir + "/images/nsf_logo.png" 
    140165        if os.path.isfile(config._nsf_logo): 
     
    173198                                           wx.NORMAL, 0, "")) 
    174199        self.hyperlink_paper.Enable(True) 
     200        self.bitmap_button_nist.SetSize(self.bitmap_button_nist.GetBestSize()) 
     201        self.bitmap_button_umd.SetSize(self.bitmap_button_umd.GetBestSize()) 
     202        self.bitmap_button_sns.SetSize(self.bitmap_button_sns.GetBestSize()) 
    175203        self.bitmap_button_nsf.SetSize(self.bitmap_button_nsf.GetBestSize()) 
    176204        self.bitmap_button_danse.SetSize(self.bitmap_button_danse.GetBestSize()) 
     
    216244                       wx.LEFT|wx.TOP|wx.BOTTOM|wx.ADJUST_MINSIZE, 7) 
    217245        sizer_main.Add(self.static_line_2, 0, wx.EXPAND, 0) 
     246        sizer_logos.Add(self.bitmap_button_nist, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 
     247        sizer_logos.Add(self.bitmap_button_umd, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 
     248        sizer_logos.Add(self.bitmap_button_sns, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 
    218249        sizer_logos.Add(self.bitmap_button_nsf, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 
    219250        sizer_logos.Add(self.bitmap_button_danse, 0, 
     
    233264        # end wxGlade 
    234265 
     266    def onNistLogo(self, event):  
     267        """ 
     268        """ 
     269        # wxGlade: DialogAbout.<event_handler> 
     270        launchBrowser(config._nist_url) 
     271        event.Skip() 
     272         
     273    def onUmdLogo(self, event):  
     274        """ 
     275        """ 
     276        # wxGlade: DialogAbout.<event_handler> 
     277        launchBrowser(config._umd_url) 
     278        event.Skip() 
     279         
     280    def onSnsLogo(self, event):  
     281        """ 
     282        """ 
     283        # wxGlade: DialogAbout.<event_handler> 
     284        launchBrowser(config._sns_url) 
     285        event.Skip() 
     286                 
    235287    def onNsfLogo(self, event):  
    236288        """ 
  • sansview/local_config.py

    rc329f4d r1452132  
    3030_do_tutorial = True 
    3131_acknowledgement =  \ 
    32 '''This software was developed by the University of Tennessee as part of the 
    33 Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 
    34 project funded by the US National Science Foundation.  
     32'''This work originally developed as part of the DANSE project funded by the NSF 
     33under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS  
     34and ILL. 
    3535 
    3636''' 
     
    3838_download = "https://sourceforge.net/projects/sansviewproject/" 
    3939_authors = [] 
    40 _paper = "http://danse.us/trac/sans/newticket" 
    41 _license = "mailto:sansdanse@gmail.com" 
     40_paper = "http://sourceforge.net/apps/trac/sansviewproject/report" 
     41_license = "mailto:sansviewproject-developers@lists.sourceforge.net" 
    4242 
    4343 
     
    4747test_path =  os.path.abspath(os.path.join(os.path.dirname(__file__), "test")) 
    4848 
     49_nist_logo = "images/nist_logo.png" 
     50_umd_logo = "images/umd_logo.png" 
     51_sns_logo = "images/sns_logo.png" 
    4952_nsf_logo = os.path.join(icon_path, "nsf_logo.png") 
    5053_danse_logo = os.path.join(icon_path, "danse_logo.png") 
    5154_inst_logo = os.path.join(icon_path, "utlogo.gif") 
     55_nist_url = "http://www.nist.gov/" 
     56_umd_url = "http://www.umd.edu/" 
     57_sns_url = "http://neutrons.ornl.gov/" 
    5258_nsf_url = "http://www.nsf.gov" 
    5359_danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html" 
     
    5561_corner_image = os.path.join(icon_path, "angles_flat.png") 
    5662_welcome_image = os.path.join(icon_path, "SVwelcome.png") 
    57 _copyright = "(c) 2009 - 2012, University of Tennessee" 
     63_copyright = "(c) 2009 - 2011, University of Tennessee \n" 
     64_copyright += "(c) 2012, UMD, NIST, ORNL, ISIS, ESS and ILL" 
    5865 
    5966 
Note: See TracChangeset for help on using the changeset viewer.