Changeset 0eff615 in sasview
- Timestamp:
- Sep 6, 2018 5:18:50 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:
- 6da3e3d
- Parents:
- c1cfa80
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
raa1db44 r0eff615 531 531 """ 532 532 self.communicate.copyFitParamsSignal.emit("") 533 self._workspace.actionPaste.setEnabled(True) 533 534 pass 534 535 … … 945 946 self._workspace.menubar.addAction(self._workspace.menuWindow.menuAction()) 946 947 self._workspace.menubar.addAction(self._workspace.menuHelp.menuAction()) 948 947 949 elif isinstance(perspective, Perspectives.PERSPECTIVES["Invariant"]): 948 950 self.checkAnalysisOption(self._workspace.actionInvariant) -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
reef298d4 r0eff615 47 47 from sas.qtgui.Perspectives.Fitting.MultiConstraint import MultiConstraint 48 48 from sas.qtgui.Perspectives.Fitting.ReportPageLogic import ReportPageLogic 49 50 49 51 50 … … 2935 2934 # first - regular params 2936 2935 param_list = [] 2936 2937 param_list.append(['model_name', str(self.cbModel.currentText())]) 2937 2938 def gatherParams(row): 2938 2939 """ … … 3021 3022 if lines[0] != 'sasview_parameter_values': 3022 3023 return False 3023 for line in lines[1:-1]: 3024 3025 model = lines[1].split(',') 3026 3027 if model[0] != 'model_name': 3028 return False 3029 3030 context['model_name'] = [model[1]] 3031 for line in lines[2:-1]: 3024 3032 if len(line) != 0: 3025 3033 item = line.split(',') … … 3047 3055 except IndexError: 3048 3056 pass 3057 3058 if str(self.cbModel.currentText()) != str(context['model_name'][0]): 3059 msg = QtWidgets.QMessageBox() 3060 msg.setIcon(QtWidgets.QMessageBox.Information) 3061 msg.setText("The model in the clipboard is not the same as the currently loaded model. \ 3062 Not all parameters saved may paste correctly.") 3063 msg.setStandardButtons(QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Cancel) 3064 result = msg.exec_() 3065 if result == QtWidgets.QMessageBox.Ok: 3066 pass 3067 else: 3068 return 3049 3069 3050 3070 self.updateFullModel(context) … … 3085 3105 param_repr = GuiUtils.formatNumber(param_dict[param_name][3+ioffset], high=True) 3086 3106 self._model_model.item(row, 3+ioffset).setText(param_repr) 3107 self.setFocus() 3108 3087 3109 3088 3110 # block signals temporarily, so we don't end up … … 3091 3113 self.iterateOverModel(updateFittedValues) 3092 3114 self._model_model.blockSignals(False) 3115 3093 3116 3094 3117 def updateFullPolyModel(self, param_dict): … … 3135 3158 param_repr = GuiUtils.formatNumber(param_dict[param_name][5+ioffset], high=True) 3136 3159 self._poly_model.item(row, 5+ioffset).setText(param_repr) 3160 self.setFocus() 3137 3161 3138 3162 # block signals temporarily, so we don't end up … … 3142 3166 self._poly_model.blockSignals(False) 3143 3167 3144 -
src/sas/qtgui/Utilities/GuiUtils.py
r9463ca2 r0eff615 260 260 # Fitting parameter paste from clipboard 261 261 pasteFitParamsSignal = QtCore.pyqtSignal() 262 262 263 # Notify about new categories/models from category manager 263 264 updateModelCategoriesSignal = QtCore.pyqtSignal()
Note: See TracChangeset
for help on using the changeset viewer.