Changeset 2310d69 in sasview
- Timestamp:
- Jun 11, 2008 2:10:48 PM (16 years ago)
- 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:
- 4101eea
- Parents:
- de9483d
- Location:
- guiframe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
rcbb2e40 r2310d69 64 64 65 65 ## Next available ID for wx gui events 66 #TODO: No longer used - remove all calls to this 66 67 self.next_id = 20000 68 69 # Default locations 70 self._default_save_location = os.getcwd() 67 71 68 72 ## Default welcome panel … … 199 203 CenterPane(). 200 204 BestSize(wx.Size(900,800)). 201 MinSize(wx.Size( 900,800)).205 MinSize(wx.Size(800,700)). 202 206 Show()) 203 207 … … 216 220 CenterPane(). 217 221 BestSize(wx.Size(600,600)). 218 MinSize(wx.Size( 600,600)).222 MinSize(wx.Size(200,200)). 219 223 Hide()) 220 224 … … 235 239 #Show(). 236 240 BestSize(wx.Size(400,400)). 237 MinSize(wx.Size( 100,100)))238 239 240 def get_context_menu(self ):241 MinSize(wx.Size(300,200))) 242 243 244 def get_context_menu(self, graph=None): 241 245 """ 242 246 Get the context menu items made available … … 247 251 for item in self.plugins: 248 252 if hasattr(item, "get_context_menu"): 249 menu_list.extend(item.get_context_menu( ))253 menu_list.extend(item.get_context_menu(graph)) 250 254 251 255 return menu_list … … 533 537 #TODO: clean this up 534 538 from data_loader import choose_data_file 535 return choose_data_file(self) 539 path = choose_data_file(self, self._default_save_location) 540 if not path==None: 541 try: 542 self._default_save_location = os.path.dirname(path) 543 except: 544 pass 545 return path 546 547 def load_ascii_1D(self, path): 548 from data_loader import load_ascii_1D 549 return load_ascii_1D(path) 536 550 537 551 class DefaultPanel(wx.Panel): -
guiframe/local_perspectives/plotting/plotting.py
r278cc25 r2310d69 118 118 119 119 slicerpop.AppendSeparator() 120 item_list = self.parent.get_context_menu( )120 item_list = self.parent.get_context_menu(self.graph) 121 121 if not item_list==None: 122 122 for item in item_list: … … 131 131 slicerpop.AppendSeparator() 132 132 133 #id = wx.NewId() 134 #slicerpop.Append(id, '&Toggle Linear/Log scale') 135 #wx.EVT_MENU(self, id, self._onToggleScale) 136 133 137 id = wx.NewId() 134 slicerpop.Append(id, '& Toggle Linear/Logscale')135 wx.EVT_MENU(self, id, self._on ToggleScale)138 slicerpop.Append(id, '&Change scale') 139 wx.EVT_MENU(self, id, self._onProperties) 136 140 137 141 pos = event.GetPosition() -
guiframe/release_notes.txt
r7afdc14 r2310d69 6 6 Documentation to come... 7 7 8 1- Version 0.1. 08 1- Version 0.1.1 9 9 10 10 - Release date: 5/28/2008 11 12 - Changes: 13 * the Plugin.get_context_menu(graph) now takes a Graph object 11 14 12 15 Dependencies: … … 31 34 for additionally installed plug-ins. 32 35 - Fix the damned images directory folder... 36 - Allow user to remove a plottable from a graph (from code!) 37 - Allow perspectives to recognize their own plots and add context menu items. 38 - Catch error when trying to show log of negative or zero plots... update status bar. 33 39
Note: See TracChangeset
for help on using the changeset viewer.