Changeset bcf1215 in sasview
- Timestamp:
- Nov 7, 2017 1:08:01 PM (7 years ago)
- Branches:
- 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
- Children:
- a657de3
- Parents:
- 5fba4c4
- Location:
- src/sas/qtgui/Perspectives/Inversion
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py
r7f5196e rbcf1215 30 30 # TODO: Remove data 31 31 # TODO: Modify plot references, don't just send new 32 # TODO: Explorer button - link to PR from AW33 32 # TODO: Update help with batch capabilities 34 # TODO: Window should not be fixed size35 33 # TODO: Easy way to scroll through results - no tabs in window(?) - 'spreadsheet' 36 34 # TODO: Method to export results in some meaningful way … … 135 133 self.calculateAllButton.clicked.connect(self.startThreadAll) 136 134 self.calculateThisButton.clicked.connect(self.startThread) 135 self.removeButton.clicked.connect(self.removeData) 137 136 self.helpButton.clicked.connect(self.help) 138 137 self.estimateBgd.toggled.connect(self.toggleBgd) … … 207 206 208 207 # Main Buttons 208 self.mapper.addMapping(self.removeButton, WIDGETS.W_REMOVE) 209 209 self.mapper.addMapping(self.calculateAllButton, WIDGETS.W_CALCULATE_ALL) 210 210 self.mapper.addMapping(self.calculateThisButton, … … 266 266 Enable buttons when data is present, else disable them 267 267 """ 268 self.removeButton.setEnabled(self.logic.data_is_loaded) 268 269 self.explorerButton.setEnabled(self.logic.data_is_loaded) 269 270 self.calculateAllButton.setEnabled(self.logic.data_is_loaded) … … 273 274 """ 274 275 Append a new file name to the data combobox 275 :param data: Data1D object 276 :param filename: data filename 277 :param data_ref: QStandardItem reference for data set to be added 276 278 """ 277 279 qt_item = QtCore.QString.fromUtf8(filename) … … 292 294 variant_ref = self.dataList.itemData(self.dataList.currentIndex()) 293 295 self.setCurrentData(variant_ref.toPyObject()) 296 297 def removeData(self): 298 """Remove the existing data reference from the P(r) Persepective""" 299 self._data_list.pop(self._data) 300 self.pr_plot_list.pop(self._data) 301 self.data_plot_list.pop(self._data) 302 self.dataList.removeItem(self.dataList.currentIndex()) 303 self.dataList.setCurrentIndex(0) 294 304 295 305 ###################################################################### … … 552 562 QtGui.QStandardItem(str(pr.iq0(out)))) 553 563 self.model.setItem(WIDGETS.W_BACKGROUND_INPUT, 554 QtGui.QStandardItem("{:.3f}".format(pr. background)))564 QtGui.QStandardItem("{:.3f}".format(pr.est_bck))) 555 565 self.model.setItem(WIDGETS.W_BACKGROUND_OUTPUT, 556 566 QtGui.QStandardItem(str(pr.background))) -
src/sas/qtgui/Perspectives/Inversion/InversionUtils.py
rc00a28ff rbcf1215 27 27 'W_SIGMA_POS_FRACTION', 28 28 # bottom buttons 29 'W_REMOVE', 29 30 'W_CALCULATE_ALL', 30 31 'W_CALCULATE_VISIBLE', -
src/sas/qtgui/Perspectives/Inversion/UI/TabbedInversionUI.ui
rc00a28ff rbcf1215 8 8 <y>0</y> 9 9 <width>458</width> 10 <height> 500</height>10 <height>679</height> 11 11 </rect> 12 12 </property> 13 13 <property name="sizePolicy"> 14 <sizepolicy hsizetype=" Preferred" vsizetype="Preferred">14 <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> 15 15 <horstretch>0</horstretch> 16 16 <verstretch>0</verstretch> … … 20 20 <size> 21 21 <width>458</width> 22 <height> 500</height>22 <height>679</height> 23 23 </size> 24 24 </property> 25 25 <property name="maximumSize"> 26 26 <size> 27 <width> 458</width>28 <height> 500</height>27 <width>16777215</width> 28 <height>16777215</height> 29 29 </size> 30 30 </property> … … 33 33 </property> 34 34 <layout class="QGridLayout" name="gridLayout_7"> 35 <item row=" 3" column="0">35 <item row="4" column="0"> 36 36 <layout class="QHBoxLayout" name="horizontalLayout_8"> 37 37 <property name="sizeConstraint"> 38 38 <enum>QLayout::SetDefaultConstraint</enum> 39 39 </property> 40 <item> 41 <widget class="QPushButton" name="removeButton"> 42 <property name="text"> 43 <string>Remove</string> 44 </property> 45 </widget> 46 </item> 40 47 <item> 41 48 <widget class="QPushButton" name="calculateThisButton"> … … 89 96 </layout> 90 97 </item> 91 <item row=" 2" column="0">98 <item row="3" column="0"> 92 99 <spacer name="verticalSpacer"> 93 100 <property name="orientation"> … … 102 109 </spacer> 103 110 </item> 104 <item row="1" column="0" >111 <item row="1" column="0" rowspan="2"> 105 112 <widget class="QTabWidget" name="PrTabWidget"> 106 113 <property name="sizePolicy"> … … 123 130 <string>P(r) Parameters</string> 124 131 </attribute> 125 <layout class="QVBoxLayout" name="verticalLayout_6" stretch="0,1,1,0 ">132 <layout class="QVBoxLayout" name="verticalLayout_6" stretch="0,1,1,0,0"> 126 133 <item> 127 134 <widget class="QGroupBox" name="dataSourceGroupBox"> … … 396 403 </widget> 397 404 </item> 398 </layout> 399 </widget> 400 <widget class="QWidget" name="tabOptions"> 401 <attribute name="title"> 402 <string>Outputs</string> 403 </attribute> 404 <layout class="QGridLayout" name="gridLayout_6"> 405 <item row="0" column="0"> 405 <item> 406 406 <widget class="QGroupBox" name="outputsGroupBox"> 407 407 <property name="title"> … … 578 578 </layout> 579 579 </widget> 580 </item>581 <item row="1" column="0">582 <spacer name="verticalSpacer_2">583 <property name="orientation">584 <enum>Qt::Vertical</enum>585 </property>586 <property name="sizeHint" stdset="0">587 <size>588 <width>20</width>589 <height>40</height>590 </size>591 </property>592 </spacer>593 580 </item> 594 581 </layout>
Note: See TracChangeset
for help on using the changeset viewer.