- Timestamp:
- Nov 29, 2018 7:45:44 AM (6 years ago)
- Branches:
- ESS_GUI_ordering
- Children:
- cdf8f00
- Parents:
- 376a939
- Location:
- src/sas/qtgui/Perspectives/Fitting
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
rce67f35 r8aa3c4d 49 49 from sas.qtgui.Perspectives.Fitting.MultiConstraint import MultiConstraint 50 50 from sas.qtgui.Perspectives.Fitting.ReportPageLogic import ReportPageLogic 51 from sas.qtgui.Perspectives.Fitting.OrderWidget import OrderWidget 51 52 52 53 TAB_MAGNETISM = 4 53 54 TAB_POLY = 3 55 TAB_ORDERING = 5 54 56 CATEGORY_DEFAULT = "Choose category..." 55 57 MODEL_DEFAULT = "Choose model..." … … 210 212 logic = FittingLogic(data=GuiUtils.dataFromItem(data_item)) 211 213 self._logic.append(logic) 214 # update the ordering tab 215 self.order_widget.updateData(self.all_data) 212 216 213 217 # Overwrite data type descriptor … … 324 328 self.tabResolution.setLayout(layout) 325 329 330 # Order widget 331 layout = QtWidgets.QGridLayout() 332 # pass all data items to access multiple datasets 333 self.order_widget = OrderWidget(self, self.all_data) 334 layout.addWidget(self.order_widget) 335 self.tabOrder.setLayout(layout) 336 326 337 # Define bold font for use in various controls 327 338 self.boldFont = QtGui.QFont() … … 412 423 # Delegates for custom editing and display 413 424 self.lstMagnetic.setItemDelegate(MagnetismViewDelegate(self)) 425 # Initial status of the ordering tab - invisible 426 self.tabFitting.removeTab(TAB_ORDERING) 414 427 415 428 def initializeCategoryCombo(self): … … 500 513 """ Enable/disable chain fitting """ 501 514 self.is_chain_fitting = isChecked 515 # show/hide the ordering tab 516 if isChecked: 517 self.tabFitting.insertTab(TAB_ORDERING, self.tabOrder, "Order") 518 else: 519 self.tabFitting.removeTab(TAB_ORDERING) 502 520 503 521 def toggle2D(self, isChecked): … … 1756 1774 1757 1775 fitters = [] 1758 for fit_index in self.all_data: 1776 # order datasets if chain fit 1777 order = self.all_data 1778 if self.is_chain_fitting: 1779 order = self.order_widget.ordering() 1780 for fit_index in order: 1759 1781 fitter_single = Fit() if fitter is None else fitter 1760 1782 data = GuiUtils.dataFromItem(fit_index) -
src/sas/qtgui/Perspectives/Fitting/UI/FittingWidgetUI.ui
r0d2629f r8aa3c4d 7 7 <x>0</x> 8 8 <y>0</y> 9 <width> 651</width>10 <height> 540</height>9 <width>540</width> 10 <height>600</height> 11 11 </rect> 12 12 </property> … … 428 428 </layout> 429 429 </widget> 430 <widget class="QWidget" name="tabOrder"> 431 <attribute name="title"> 432 <string>Order</string> 433 </attribute> 434 </widget> 430 435 </widget> 431 436 </item>
Note: See TracChangeset
for help on using the changeset viewer.