Changeset 3d18691 in sasview for src/sas/qtgui
- Timestamp:
- Aug 6, 2018 9:37:19 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 060413c
- Parents:
- 97df8a9
- git-author:
- wpotrzebowski <Wojciech.Potrzebowski@…> (10/27/17 04:35:49)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (08/06/18 09:37:19)
- Location:
- src/sas/qtgui
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
r8e2cd79 r3d18691 27 27 from sas.qtgui.MainWindow.AboutBox import AboutBox 28 28 from sas.qtgui.MainWindow.WelcomePanel import WelcomePanel 29 from sas.qtgui.MainWindow.CategoryManager import CategoryManager 29 30 30 31 from sas.qtgui.MainWindow.DataManager import DataManager … … 134 135 self.ackWidget = Acknowledgements() 135 136 self.aboutWidget = AboutBox() 137 self.categoryManagerWidget = CategoryManager(self._parent, manager=self) 136 138 self.welcomePanel = WelcomePanel() 137 139 self.grid_window = None 138 140 self._workspace.toolBar.setVisible(LocalConfig.TOOLBAR_SHOW) 139 141 self._workspace.actionHide_Toolbar.setText("Show Toolbar") 142 self.categoryManagerWidget = CategoryManager() 140 143 141 144 # Add calculators - floating for usability … … 419 422 self._workspace.actionHide_Toolbar.triggered.connect(self.actionHide_Toolbar) 420 423 self._workspace.actionStartup_Settings.triggered.connect(self.actionStartup_Settings) 421 self._workspace.actionCateg ry_Manager.triggered.connect(self.actionCategry_Manager)424 self._workspace.actionCategory_Manager.triggered.connect(self.actionCategory_Manager) 422 425 # Tools 423 426 self._workspace.actionData_Operation.triggered.connect(self.actionData_Operation) … … 611 614 pass 612 615 613 def actionCategry_Manager(self): 614 """ 615 """ 616 print("actionCategry_Manager TRIGGERED") 617 pass 616 def actionCategory_Manager(self): 617 """ 618 """ 619 self.categoryManagerWidget.show() 618 620 619 621 #============ TOOLS ================= -
src/sas/qtgui/MainWindow/MainWindow.py
re4335ae r3d18691 27 27 except Exception as ex: 28 28 import logging 29 logging.error("Application failed with: " +str(ex))30 print("Application failed with: ", ex)29 logging.error("Application failed with: "+str(ex)) 30 print("Application failed with: ", str(ex)) 31 31 32 32 def closeEvent(self, event): -
src/sas/qtgui/MainWindow/UI/MainWindowUI.ui
r2b39fea r3d18691 75 75 <addaction name="actionStartup_Settings"/> 76 76 <addaction name="separator"/> 77 <addaction name="actionCateg ry_Manager"/>77 <addaction name="actionCategory_Manager"/> 78 78 </widget> 79 79 <widget class="QMenu" name="menuTool"> … … 324 324 </property> 325 325 </action> 326 <action name="actionCateg ry_Manager">326 <action name="actionCategory_Manager"> 327 327 <property name="text"> 328 328 <string>Category Manager</string> -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r97df8a9 r3d18691 373 373 self.cbCategory.addItem(CATEGORY_DEFAULT) 374 374 self.cbCategory.addItems(category_list) 375 self.cbCategory.addItem(CATEGORY_STRUCTURE) 375 if CATEGORY_STRUCTURE not in category_list: 376 self.cbCategory.addItem(CATEGORY_STRUCTURE) 376 377 self.cbCategory.setCurrentIndex(0) 377 378 … … 523 524 self.communicate.copyFitParamsSignal.connect(self.onParameterCopy) 524 525 self.communicate.pasteFitParamsSignal.connect(self.onParameterPaste) 526 527 # Communicator signal 528 self.communicate.updateModelCategoriesSignal.connect(self.onCategoriesChanged) 525 529 526 530 def modelName(self): … … 2248 2252 self.createNewIndex(residuals_plot) 2249 2253 2254 def onCategoriesChanged(self): 2255 """ 2256 Reload the category/model comboboxes 2257 """ 2258 # Store the current combo indices 2259 current_cat = self.cbCategory.currentText() 2260 current_model = self.cbModel.currentText() 2261 2262 # reread the category file and repopulate the combo 2263 self.cbCategory.blockSignals(True) 2264 self.cbCategory.clear() 2265 self.readCategoryInfo() 2266 self.initializeCategoryCombo() 2267 2268 # Scroll back to the original index in Categories 2269 new_index = self.cbCategory.findText(current_cat) 2270 if new_index != -1: 2271 self.cbCategory.setCurrentIndex(new_index) 2272 self.cbCategory.blockSignals(False) 2273 # ...and in the Models 2274 self.cbModel.blockSignals(True) 2275 new_index = self.cbModel.findText(current_model) 2276 if new_index != -1: 2277 self.cbModel.setCurrentIndex(new_index) 2278 self.cbModel.blockSignals(False) 2279 2280 return 2281 2250 2282 def calcException(self, etype, value, tb): 2251 2283 """ -
src/sas/qtgui/Utilities/GuiUtils.py
r8e2cd79 r3d18691 260 260 # Fitting parameter paste from clipboard 261 261 pasteFitParamsSignal = QtCore.pyqtSignal() 262 # Notify about new categories/models from category manager 263 updateModelCategoriesSignal = QtCore.pyqtSignal() 262 264 263 265 def updateModelItemWithPlot(item, update_data, name=""):
Note: See TracChangeset
for help on using the changeset viewer.