Changeset 4bee68d in sasview
- Timestamp:
- Apr 26, 2011 11:46:00 AM (14 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:
- 34b9813
- Parents:
- 5901bb9
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r6f28e70 r4bee68d 1044 1044 if self.defaultPanel is None: 1045 1045 return 1046 for id in self.panels.keys():1046 for id, panel in self.panels.iteritems(): 1047 1047 if id == 'default': 1048 1048 # Show default panel … … 1052 1052 flag = self._mgr.GetPane(self.panels["data_panel"].window_name).IsShown() 1053 1053 self._mgr.GetPane(self.panels["data_panel"].window_name).Show(flag) 1054 el se:1054 elif panel not in self.plot_panels.values() : 1055 1055 self._mgr.GetPane(self.panels[id].window_name).IsShown() 1056 1056 self._mgr.GetPane(self.panels[id].window_name).Hide() 1057 if self._toolbar != None and not self._toolbar.IsShown():1058 self._toolbar.Show(True)1059 self._on_toggle_toolbar()1057 #if self._toolbar != None and not self._toolbar.IsShown(): 1058 # self._toolbar.Show(True) 1059 #self._on_toggle_toolbar() 1060 1060 1061 1061 self._mgr.Update() … … 1117 1117 panel.Close() 1118 1118 self._mgr.Update() 1119 print "here here "1120 1119 return 1121 1120 if ID in self.panels.keys(): … … 1208 1207 #remove panels for new states 1209 1208 for plug in self.plugins: 1210 reader, ext = plug.get_extensions() 1211 if ext is not None and ext.strip() != ''\ 1212 and ext.lower() not in EXTENSIONS: 1213 plug.clear_panel() 1209 #reader, ext = plug.get_extensions() 1210 #if ext is not None and ext.strip() != ''\ 1211 # and ext.lower() not in EXTENSIONS: 1212 # print "herer clearpanel_geuiframe" 1213 plug.clear_panel() 1214 if self.defaultPanel != None: 1215 default_panel = self.panels['default'] 1216 self.panels = {'default': default_panel} 1217 else: 1218 #self.clear_panel() 1219 self.panels = {} 1220 1221 self.plot_panels = {} 1214 1222 self.panel_on_focus = None 1215 1223 self.cpanel_on_focus = None -
guiframe/local_perspectives/plotting/plotting.py
r52f3c98 r4bee68d 94 94 def clear_panel(self): 95 95 """ 96 """ 97 pass 96 Clear and Hide all plot panels 97 """ 98 for group_id in self.plot_panels.keys(): 99 panel = self.plot_panels[group_id] 100 panel.graph.reset() 101 self.hide_panel(group_id) 102 self.plot_panels = {} 98 103 99 104 def clear_panel_by_id(self, group_id): -
sansview/perspectives/fitting/fitpanel.py
r4e78f56 r4bee68d 198 198 for uid, panel in self.opened_pages.iteritems(): 199 199 #Don't return any panel is the exact same page is created 200 if uid == panel.uid :200 if uid == panel.uid and panel.data == state.data: 201 201 # the page is still opened 202 202 panel.reset_page(state=state) … … 207 207 # add data associated to the page created 208 208 if panel is not None: 209 self._manager.store_page(page=panel.uid, data=state.data) 209 self._manager.store_data(uid=panel.uid, 210 data=state.data, 211 caption=panel.window_caption) 210 212 panel.reset_page(state=state) 211 213 panel.save_current_state() -
sansview/perspectives/fitting/fitting.py
r29d6fa5 r4bee68d 316 316 #state = self.state_reader.get_state() 317 317 if state != None: 318 state = state.clone() 318 319 # store fitting state in temp_state 319 320 self.temp_state.append(state) … … 347 348 #set state 348 349 data = self.parent.create_gui_data(state.data) 349 350 350 data.group_id = state.data.group_id 351 351 self.parent.add_data(data_list={data.id:data}) -
sansview/perspectives/fitting/pagestate.py
rc0ff8cc r4bee68d 1454 1454 1455 1455 except: 1456 #self.call_back(format=ext)1457 self.state= state1456 self.call_back(format=ext) 1457 #self.state= state 1458 1458 raise 1459 1459
Note: See TracChangeset
for help on using the changeset viewer.