Changeset 53750a1 in sasview


Ignore:
Timestamp:
Mar 16, 2016 3:01:49 PM (8 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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:
82bc7a9, 66f21cd
Parents:
40fc798 (diff), 0d534de (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of https://github.com/SasView/sasview

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/gui_manager.py

    rd85c194 r0d534de  
    12901290                        wx.EVT_MENU(self, id, tool[2]) 
    12911291            if self._tool_menu is not None: 
    1292                 self._menubar.Append(self._tool_menu, '&Tool') 
     1292                self._menubar.Append(self._tool_menu, '&Tools') 
    12931293 
    12941294    def _add_current_plugin_menu(self): 
     
    13211321                for (menu, name) in menu_list: 
    13221322                    if self._applications_menu_pos == -1: 
    1323                         # Find the Help position and insert just before it if possible 
    1324                         help_pos = self._menubar.FindMenu("Help") 
    1325                         if help_pos == -1: 
     1323                        # Find the Analysis position and insert just after it if possible 
     1324                        analysis_pos = self._menubar.FindMenu("Analysis") 
     1325                        if analysis_pos == -1: 
    13261326                            self._menubar.Append(menu, name) 
    13271327                            self._applications_menu_pos = -1 
    13281328                        else: 
    1329                             self._menubar.Insert(help_pos-1, menu, name) 
    1330                             self._applications_menu_pos = help_pos - 1 
     1329                            self._menubar.Insert(analysis_pos+1, menu, name) 
     1330                            self._applications_menu_pos = analysis_pos + 1 
    13311331                    else: 
    13321332                        self._menubar.Insert(self._applications_menu_pos, menu, name) 
     
    14921492            if not plug_data_count or not plug_no_data_count: 
    14931493                self._applications_menu.RemoveItem(separator) 
    1494             self._menubar.Append(self._applications_menu, '&Analysis') 
     1494            #Windows introduces a "Window" menu item during the layout process 
     1495            #somehow.  We want it to be next to the last item with Help as 
     1496            #last. However Analysis gets stuck after Window in normal ordering 
     1497            #so force it to be next after the Tools menu item.  Should we add 
     1498            #another menu item will need to check if this is still where we  
     1499            #want Analysis.  This is NOT an issue on the Mac which does not 
     1500            #have the extra Window menu item. 
     1501            #      March 2016 Code Camp  -- PDB  
     1502            Tools_pos = self._menubar.FindMenu("Tools") 
     1503            self._menubar.Insert(Tools_pos+1,self._applications_menu, 
     1504                                 '&Analysis') 
    14951505            self._check_applications_menu() 
    14961506 
  • sasview/setup_exe.py

    rd85c194 r40fc798  
    265265# Copy the settings file for the sas.dataloader file extension associations 
    266266import sas.sascalc.dataloader.readers 
    267 f = os.path.join(sas.dataloader.readers.get_data_path(), 'defaults.json') 
     267f = os.path.join(sas.sascalc.dataloader.readers.get_data_path(), 'defaults.json') 
    268268if os.path.isfile(f): 
    269269    data_files.append(('.', [f])) 
Note: See TracChangeset for help on using the changeset viewer.