Changeset 3e001f9 in sasview for calculatorview


Ignore:
Timestamp:
Apr 6, 2013 1:36:03 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:
4bdd4fdb
Parents:
cb270ad2
Message:

Added tools, imageviwer and qrange cursors

Location:
calculatorview/src/sans/perspectives/calculator
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/calculator.py

    r49a8843 r3e001f9  
    6666        gensans_help = "Generic SANS" 
    6767        pyconsole_help = "Python Console." 
     68        imageviewer_help = "Load an image file and display the image." 
    6869        #data_editor_help = "Meta Data Editor" 
    6970        return [("Data Operation",  
     
    8081                ("Generic Scattering Calculator",  
    8182                        gensans_help, self.on_gen_model), 
    82                 ("Python Shell/Editor", pyconsole_help, self.on_python_console)] 
     83                ("Python Shell/Editor", pyconsole_help, self.on_python_console), 
     84                ("Image Viewer", imageviewer_help, self.on_image_viewer),] 
    8385               
    8486    def on_edit_data(self, event): 
     
    162164        self.put_icon(frame) 
    163165        frame.Show(True)  
     166 
     167    def on_image_viewer(self, event): 
     168        """ 
     169        Get choose an image file dialog 
     170         
     171        :param event: menu event 
     172        """ 
     173        from sans.perspectives.calculator.image_viewer import ImageView 
     174        image_view = ImageView(parent=self.parent) 
     175        image_view.load() 
    164176         
    165177    def on_python_console(self, event): 
     
    193205                except: 
    194206                    pass       
    195    
    196      
  • calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py

    r968f72d r3e001f9  
    662662        output = self.sld_data   
    663663        #frame_size = wx.Size(470, 470)     
    664         self.plot_frame = PlotFrame(self, -1, 'testView') 
     664        self.plot_frame = PlotFrame(self.parent.parent, -1, 'testView') 
    665665        frame = self.plot_frame 
    666666        frame.Show(False) 
     
    17901790        return flag 
    17911791 
    1792 class SasGenWindow(wx.Frame): 
     1792class SasGenWindow(wx.MDIChildFrame): 
    17931793    """ 
    17941794    GEN SAS main window 
     
    18021802        kwds['title'] = title 
    18031803         
    1804         wx.Frame.__init__(self, parent, *args, **kwds) 
     1804        wx.MDIChildFrame.__init__(self, parent, *args, **kwds) 
    18051805        self.parent = parent 
    18061806        self.omfpanel = OmfPanel(parent=self) 
     
    20022002        """ 
    20032003        """ 
    2004         frame = PlotFrame(self, -1, 'testView', self.scale2d) 
     2004        frame = PlotFrame(self.parent, -1, 'testView', self.scale2d) 
    20052005        add_icon(self.parent, frame) 
    20062006        frame.add_plot(plot) 
  • calculatorview/src/sans/perspectives/calculator/help_panel.py

    r318b5bbb r3e001f9  
    8484            <li><a href ="pycrust_help.html"  
    8585            target ="showframe">Python Shell</a><br></li> 
     86            <li><a href ="load_image_help.html"  
     87            target ="showframe">Image Viewer</a><br></li> 
    8688            </ul> 
    8789            </body> 
Note: See TracChangeset for help on using the changeset viewer.