Changeset f53cd30 in sasview


Ignore:
Timestamp:
Feb 19, 2015 4:08:49 AM (9 years ago)
Author:
krzywon
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:
83eff66
Parents:
e1251ef
Message:

Created and implemented an acknowledgement window that can be accessed
under the Help menu.

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • sasview/local_config.py

    r3a39c2e rf53cd30  
    77import sas.sasview 
    88import logging 
     9from sas.guiframe.config import _do_acknowledge 
    910 
    1011# Version of the application 
     
    2930# About box info 
    3031_do_aboutbox = True 
     32_do_acknowledge = True 
    3133_do_tutorial = True 
     34_acknowledgement_preamble =\ 
     35'''If you found this software useful to your work please remember to acknowledge  
     36its use in your publications as suggested below and reference the SasView website:  
     37http://www.sasview.org/index.html. Please also consider letting us know by sending us the  
     38reference to your work. This will help us to ensure the long term support and  
     39development of the software. 
     40''' 
     41_acknowledgement_publications = \ 
     42'''This work originally developed as part of the DANSE project funded by the NSF 
     43under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS  
     44and ILL. 
     45''' 
    3246_acknowledgement =  \ 
    3347'''This work originally developed as part of the DANSE project funded by the NSF 
  • src/sas/guiframe/config.py

    rfd5ac0d rf53cd30  
    2626# About box info 
    2727_do_aboutbox = True 
     28_do_acknowledge = True 
    2829_do_tutorial = True 
     30_acknowledgement_preamble =\ 
     31'''If you found this software useful to your work please remember to acknowledge  
     32its use in your publications as suggested below and reference the SasView website:  
     33http://www.sasview.org/index.html. Please also consider letting us know by sending us the  
     34reference to your work. This will help us to ensure the long term support and  
     35development of the software. 
     36''' 
     37_acknowledgement_publications = \ 
     38'''This work originally developed as part of the DANSE project funded by the NSF 
     39under grant DMR-0520547, and currently maintained by NIST, UMD, ORNL, ISIS, ESS  
     40and ILL. 
     41''' 
    2942_acknowledgement =  \ 
    3043'''This software was developed by the University of Tennessee as part of the 
  • src/sas/guiframe/gui_manager.py

    r707c6be rf53cd30  
    13511351            wx.EVT_MENU(self, id, self._onTutorial) 
    13521352             
     1353        if config._do_acknowledge: 
     1354            self._help_menu.AppendSeparator() 
     1355            self._help_menu.Append(id, '&Acknowledge', 'Acknowledging SasView') 
     1356            wx.EVT_MENU(self, id, self._onAcknowledge) 
     1357         
    13531358        if config._do_aboutbox: 
    13541359            self._help_menu.AppendSeparator() 
     
    20982103                self.SetStatusText(msg) 
    20992104                     
     2105    def _onAcknowledge(self, evt): 
     2106        """ 
     2107        Pop up the acknowledge dialog 
     2108         
     2109        :param evt: menu event 
     2110         
     2111        """ 
     2112        if config._do_acknowledge: 
     2113            import sas.guiframe.acknowledgebox as AcknowledgeBox 
     2114            dialog = AcknowledgeBox.DialogAcknowledge(None, -1, "") 
     2115            dialog.ShowModal() 
     2116                      
    21002117    def _onAbout(self, evt): 
    21012118        """ 
Note: See TracChangeset for help on using the changeset viewer.