Changeset e32b120 in sasview
- Timestamp:
- Oct 26, 2017 8:54:02 AM (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:
- 8045572
- Parents:
- d2d0441e
- Location:
- src/sas/qtgui
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
r6cbf8a5 re32b120 648 648 """ 649 649 """ 650 print("actionInversion TRIGGERED")650 self._current_perspective = self.perspectiveChanged("PrInversion") 651 651 pass 652 652 … … 654 654 """ 655 655 """ 656 self._current_perspective = self.perspectiveChanged("PrInversion")657 656 print("actionInvariant TRIGGERED") 658 657 pass -
src/sas/qtgui/Perspectives/PrInversion/PrInversionPerspective.py
rd2d0441e re32b120 1 import logging 2 1 3 from PyQt4 import QtGui, QtCore, QtWebKit 2 4 3 5 # sas-global 4 #import sas.qtgui.Utilities.GuiUtils as GuiUtils6 import sas.qtgui.Utilities.GuiUtils as GuiUtils 5 7 6 8 # pr inversion gui elements 7 from sas.qtgui.Perspectives.PrInversion.UI.TabbedPrInversionUI import \8 9 from PrInversionUtils import WIDGETS 10 from UI.TabbedPrInversionUI import Ui_PrInversion 9 11 10 12 class PrInversionWindow(QtGui.QTabWidget, Ui_PrInversion): … … 21 23 22 24 self._manager = parent 23 24 25 self._model_item = QtGui.QStandardItem() 25 26 self._helpView = QtWebKit.QWebView() … … 29 30 self._allow_close = False 30 31 32 # Set initial values 33 self._path = "" 34 self._background = 0.0 35 self._qmin = 0.0 36 self._qmax = 1.0 37 self._slit_height = 0.0 38 self._slit_width = 0.0 39 self._terms = 10 40 self._regularization = 0.0001 41 self._max_distance = 140 42 self._bgd_input = False 43 self._terms_button = False 44 self._reg_button = False 45 # Set results 46 self._rg = 0.0 47 self._i_0 = 0.0 48 self._comp_time = 0.0 49 self._chi_dof = 0.0 50 self._oscillations = 0.0 51 self._pos_fraction = 0.0 52 self._sigma_pos_fraction = 0.0 53 31 54 # Let's choose the Standard Item Model. 32 55 self.model = QtGui.QStandardItemModel(self) 56 # Set up the Widget Map 57 self.setupMapper() 58 # Set values 59 self.setupModel() 60 # Link user interactions with methods 61 self.setupLinks() 62 63 self.communicate = GuiUtils.Communicate() 64 logging.debug("P(r) Inversion Perspective loaded") 33 65 34 66 def allowBatch(self): … … 54 86 # Maybe we should just minimize 55 87 self.setWindowState(QtCore.Qt.WindowMinimized) 88 89 def setupLinks(self): 90 self.calculateButton.clicked.connect(self.calculatePrInversion) 91 self.statusButton.clicked.connect(self.status) 92 self.helpButton.clicked.connect(self.help) 93 self.estimateBgd.toggled.connect(self.toggleBgd) 94 self.manualBgd.toggled.connect(self.toggleBgd) 95 self.explorerButton.clicked.connect(self.openExplorerWindow) 96 pass 97 98 def setupMapper(self): 99 # Set up the mapper. 100 self.mapper = QtGui.QDataWidgetMapper(self) 101 self.mapper.setOrientation(QtCore.Qt.Vertical) 102 self.mapper.setModel(self.model) 103 104 # Filename 105 self.mapper.addMapping(self.dataFileName, WIDGETS.W_FILENAME) 106 # Background 107 self.mapper.addMapping(self.backgroundInput, WIDGETS.W_BACKGROUND) 108 self.mapper.addMapping(self.estimateBgd, WIDGETS.W_ESTIMATE) 109 self.mapper.addMapping(self.manualBgd, WIDGETS.W_MANUAL_INPUT) 110 111 # Qmin/Qmax 112 self.mapper.addMapping(self.minQInput, WIDGETS.W_QMIN) 113 self.mapper.addMapping(self.maxQInput, WIDGETS.W_QMAX) 114 115 # Slit Parameter items 116 self.mapper.addMapping(self.slitWidthInput, WIDGETS.W_SLIT_WIDTH) 117 self.mapper.addMapping(self.slitHeightInput, WIDGETS.W_SLIT_HEIGHT) 118 119 # Parameter Items 120 self.mapper.addMapping(self.regularizationConstantInput, WIDGETS.W_REGULARIZATION) 121 self.mapper.addMapping(self.regConstantSuggestionButton, WIDGETS.W_REGULARIZATION_SUGGEST) 122 self.mapper.addMapping(self.explorerButton, WIDGETS.W_EXPLORE) 123 self.mapper.addMapping(self.maxDistanceInput, WIDGETS.W_MAX_DIST) 124 self.mapper.addMapping(self.noOfTermsInput, WIDGETS.W_NO_TERMS) 125 self.mapper.addMapping(self.noOfTermsSuggestionButton, WIDGETS.W_NO_TERMS_SUGGEST) 126 127 # Output 128 self.mapper.addMapping(self.rgValue, WIDGETS.W_RG) 129 self.mapper.addMapping(self.iQ0Value, WIDGETS.W_I_ZERO) 130 self.mapper.addMapping(self.backgroundValue, WIDGETS.W_BACKGROUND) 131 self.mapper.addMapping(self.computationTimeValue, WIDGETS.W_COMP_TIME) 132 self.mapper.addMapping(self.chiDofValue, WIDGETS.W_CHI_SQUARED) 133 self.mapper.addMapping(self.oscillationValue, WIDGETS.W_OSCILLATION) 134 self.mapper.addMapping(self.posFractionValue, WIDGETS.W_POS_FRACTION) 135 self.mapper.addMapping(self.sigmaPosFractionValue, WIDGETS.W_SIGMA_POS_FRACTION) 136 137 # Main Buttons 138 self.mapper.addMapping(self.calculateButton, WIDGETS.W_CALCULATE) 139 self.mapper.addMapping(self.statusButton, WIDGETS.W_STATUS) 140 self.mapper.addMapping(self.helpButton, WIDGETS.W_HELP) 141 142 self.mapper.toFirst() 143 144 def setupModel(self): 145 """ 146 Update boxes with latest values 147 """ 148 item = QtGui.QStandardItem(self._path) 149 self.model.setItem(WIDGETS.W_FILENAME, item) 150 item = QtGui.QStandardItem(self._background) 151 self.model.setItem(WIDGETS.W_BACKGROUND, item) 152 self.estimateBgd.click() 153 self.backgroundInput.setEnabled(self._bgd_input) 154 item = QtGui.QStandardItem(self._qmin) 155 self.model.setItem(WIDGETS.W_QMIN, item) 156 item = QtGui.QStandardItem(self._qmax) 157 self.model.setItem(WIDGETS.W_QMAX, item) 158 item = QtGui.QStandardItem(self._slit_width) 159 self.model.setItem(WIDGETS.W_SLIT_WIDTH, item) 160 item = QtGui.QStandardItem(self._slit_height) 161 self.model.setItem(WIDGETS.W_SLIT_HEIGHT, item) 162 item = QtGui.QStandardItem(self._terms) 163 self.model.setItem(WIDGETS.W_NO_TERMS, item) 164 item = QtGui.QStandardItem(self._regularization) 165 self.model.setItem(WIDGETS.W_REGULARIZATION, item) 166 item = QtGui.QStandardItem(self._max_distance) 167 self.model.setItem(WIDGETS.W_MAX_DIST, item) 168 item = QtGui.QStandardItem(self._rg) 169 self.model.setItem(WIDGETS.W_RG, item) 170 item = QtGui.QStandardItem(self._i_0) 171 self.model.setItem(WIDGETS.W_I_ZERO, item) 172 item = QtGui.QStandardItem(self._background) 173 self.model.setItem(WIDGETS.W_BACKGROUND, item) 174 item = QtGui.QStandardItem(self._comp_time) 175 self.model.setItem(WIDGETS.W_COMP_TIME, item) 176 item = QtGui.QStandardItem(self._chi_dof) 177 self.model.setItem(WIDGETS.W_CHI_SQUARED, item) 178 item = QtGui.QStandardItem(self._oscillations) 179 self.model.setItem(WIDGETS.W_OSCILLATION, item) 180 item = QtGui.QStandardItem(self._pos_fraction) 181 self.model.setItem(WIDGETS.W_POS_FRACTION, item) 182 item = QtGui.QStandardItem(self._sigma_pos_fraction) 183 self.model.setItem(WIDGETS.W_SIGMA_POS_FRACTION, item) 184 185 # GUI Actions 186 def calculatePrInversion(self): 187 pass 188 189 def status(self): 190 pass 191 192 def help(self): 193 pass 194 195 def toggleBgd(self, item): 196 pass 197 198 def openExplorerWindow(self): 199 # TODO: This depends on SVCC-45 200 pass -
src/sas/qtgui/Perspectives/PrInversion/UI/TabbedPrInversionUI.ui
rd2d0441e re32b120 7 7 <x>0</x> 8 8 <y>0</y> 9 <width> 588</width>10 <height>5 25</height>9 <width>458</width> 10 <height>500</height> 11 11 </rect> 12 </property> 13 <property name="sizePolicy"> 14 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 15 <horstretch>0</horstretch> 16 <verstretch>0</verstretch> 17 </sizepolicy> 12 18 </property> 13 19 <property name="minimumSize"> 14 20 <size> 15 <width>588</width> 16 <height>470</height> 21 <width>458</width> 22 <height>500</height> 23 </size> 24 </property> 25 <property name="maximumSize"> 26 <size> 27 <width>458</width> 28 <height>500</height> 17 29 </size> 18 30 </property> … … 20 32 <string>P(r) Inversion</string> 21 33 </property> 22 <widget class="QTabWidget" name="PrTabWidget"> 23 <property name="geometry"> 24 <rect> 25 <x>10</x> 26 <y>10</y> 27 <width>565</width> 28 <height>471</height> 29 </rect> 30 </property> 31 <property name="currentIndex"> 32 <number>0</number> 33 </property> 34 <widget class="QWidget" name="tabMain"> 35 <attribute name="title"> 36 <string>P(r) Parameters</string> 37 </attribute> 38 <layout class="QGridLayout" name="gridLayout_9"> 39 <item row="2" column="0"> 40 <layout class="QVBoxLayout" name="verticalLayout_5" stretch="2,1,1,3"> 41 <property name="bottomMargin"> 42 <number>10</number> 43 </property> 34 <layout class="QGridLayout" name="gridLayout_7"> 35 <item row="3" column="0"> 36 <layout class="QHBoxLayout" name="horizontalLayout_8"> 37 <property name="sizeConstraint"> 38 <enum>QLayout::SetDefaultConstraint</enum> 39 </property> 40 <item> 41 <widget class="QPushButton" name="calculateButton"> 42 <property name="sizePolicy"> 43 <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> 44 <horstretch>0</horstretch> 45 <verstretch>0</verstretch> 46 </sizepolicy> 47 </property> 48 <property name="text"> 49 <string>Calculate</string> 50 </property> 51 </widget> 52 </item> 53 <item> 54 <spacer name="horizontalSpacer"> 55 <property name="orientation"> 56 <enum>Qt::Horizontal</enum> 57 </property> 58 <property name="sizeType"> 59 <enum>QSizePolicy::Expanding</enum> 60 </property> 61 <property name="sizeHint" stdset="0"> 62 <size> 63 <width>40</width> 64 <height>20</height> 65 </size> 66 </property> 67 </spacer> 68 </item> 69 <item> 70 <widget class="QPushButton" name="statusButton"> 71 <property name="sizePolicy"> 72 <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> 73 <horstretch>0</horstretch> 74 <verstretch>0</verstretch> 75 </sizepolicy> 76 </property> 77 <property name="text"> 78 <string>Status</string> 79 </property> 80 </widget> 81 </item> 82 <item> 83 <widget class="QPushButton" name="helpButton"> 84 <property name="sizePolicy"> 85 <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> 86 <horstretch>0</horstretch> 87 <verstretch>0</verstretch> 88 </sizepolicy> 89 </property> 90 <property name="text"> 91 <string>Help</string> 92 </property> 93 </widget> 94 </item> 95 </layout> 96 </item> 97 <item row="2" column="0"> 98 <spacer name="verticalSpacer"> 99 <property name="orientation"> 100 <enum>Qt::Vertical</enum> 101 </property> 102 <property name="sizeHint" stdset="0"> 103 <size> 104 <width>20</width> 105 <height>2</height> 106 </size> 107 </property> 108 </spacer> 109 </item> 110 <item row="1" column="0"> 111 <widget class="QTabWidget" name="PrTabWidget"> 112 <property name="sizePolicy"> 113 <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> 114 <horstretch>0</horstretch> 115 <verstretch>0</verstretch> 116 </sizepolicy> 117 </property> 118 <property name="minimumSize"> 119 <size> 120 <width>0</width> 121 <height>0</height> 122 </size> 123 </property> 124 <property name="currentIndex"> 125 <number>0</number> 126 </property> 127 <widget class="QWidget" name="tabMain"> 128 <attribute name="title"> 129 <string>P(r) Parameters</string> 130 </attribute> 131 <layout class="QVBoxLayout" name="verticalLayout_6" stretch="0,1,1,0"> 44 132 <item> 45 133 <widget class="QGroupBox" name="groupBox"> … … 48 136 </property> 49 137 <layout class="QGridLayout" name="gridLayout_2"> 138 <item row="1" column="0"> 139 <layout class="QHBoxLayout" name="horizontalLayout_3" stretch="2,1,0,2,2"> 140 <item> 141 <widget class="QLabel" name="label_5"> 142 <property name="text"> 143 <string>Background Level:</string> 144 </property> 145 </widget> 146 </item> 147 <item> 148 <widget class="QLineEdit" name="backgroundInput"> 149 <property name="enabled"> 150 <bool>false</bool> 151 </property> 152 <property name="text"> 153 <string>0.0</string> 154 </property> 155 </widget> 156 </item> 157 <item> 158 <widget class="QLabel" name="label_10"> 159 <property name="text"> 160 <string><html><head/><body><p>Ã 161 <span style=" vertical-align:super;">-1</span></p></body></html></string> 162 </property> 163 </widget> 164 </item> 165 <item> 166 <widget class="QRadioButton" name="estimateBgd"> 167 <property name="text"> 168 <string>Estimate</string> 169 </property> 170 </widget> 171 </item> 172 <item> 173 <widget class="QRadioButton" name="manualBgd"> 174 <property name="text"> 175 <string>Manual Input</string> 176 </property> 177 </widget> 178 </item> 179 </layout> 180 </item> 50 181 <item row="0" column="0"> 51 <layout class="QVBoxLayout" name="verticalLayout"> 52 <item> 53 <layout class="QHBoxLayout" name="horizontalLayout_2"> 54 <item> 55 <widget class="QLabel" name="label"> 56 <property name="text"> 57 <string>Data File Name:</string> 58 </property> 59 </widget> 60 </item> 61 <item> 62 <widget class="QLineEdit" name="lineEdit"> 63 <property name="enabled"> 64 <bool>true</bool> 65 </property> 66 <property name="frame"> 67 <bool>false</bool> 68 </property> 69 <property name="readOnly"> 70 <bool>false</bool> 71 </property> 72 </widget> 73 </item> 74 </layout> 75 </item> 76 <item> 77 <layout class="QHBoxLayout" name="horizontalLayout_3" stretch="2,1,0,2,2"> 78 <item> 79 <widget class="QLabel" name="label_5"> 80 <property name="text"> 81 <string>Background Level:</string> 82 </property> 83 </widget> 84 </item> 85 <item> 86 <widget class="QLineEdit" name="lineEdit_4"> 87 <property name="enabled"> 88 <bool>false</bool> 89 </property> 90 <property name="text"> 91 <string>0.0</string> 92 </property> 93 </widget> 94 </item> 95 <item> 96 <widget class="QLabel" name="label_10"> 97 <property name="text"> 98 <string><html><head/><body><p>Ã 99 <span style=" vertical-align:super;">-1</span></p></body></html></string> 100 </property> 101 </widget> 102 </item> 103 <item> 104 <widget class="QRadioButton" name="radioButton_2"> 105 <property name="text"> 106 <string>Estimate</string> 107 </property> 108 </widget> 109 </item> 110 <item> 111 <widget class="QRadioButton" name="radioButton"> 112 <property name="text"> 113 <string>Manual Input</string> 114 </property> 115 </widget> 116 </item> 117 </layout> 182 <layout class="QHBoxLayout" name="horizontalLayout_2"> 183 <item> 184 <widget class="QLabel" name="label"> 185 <property name="text"> 186 <string>Data File Name:</string> 187 </property> 188 </widget> 189 </item> 190 <item> 191 <widget class="QLineEdit" name="dataFileName"> 192 <property name="enabled"> 193 <bool>true</bool> 194 </property> 195 <property name="frame"> 196 <bool>false</bool> 197 </property> 198 <property name="readOnly"> 199 <bool>false</bool> 200 </property> 201 </widget> 118 202 </item> 119 203 </layout> … … 128 212 </property> 129 213 <layout class="QGridLayout" name="gridLayout_3"> 130 <item row="1" column="0"> 131 <layout class="QVBoxLayout" name="verticalLayout_3"> 132 <item> 133 <layout class="QHBoxLayout" name="horizontalLayout_4"> 134 <item> 135 <widget class="QLabel" name="label_7"> 136 <property name="text"> 137 <string>Min:</string> 138 </property> 139 </widget> 140 </item> 141 <item> 142 <widget class="QLineEdit" name="lineEdit_5"> 143 <property name="enabled"> 144 <bool>true</bool> 145 </property> 146 </widget> 147 </item> 148 <item> 149 <widget class="QLabel" name="label_11"> 150 <property name="text"> 151 <string><html><head/><body><p>Ã 214 <item row="0" column="0"> 215 <layout class="QHBoxLayout" name="horizontalLayout_4"> 216 <item> 217 <widget class="QLabel" name="label_7"> 218 <property name="text"> 219 <string>Min:</string> 220 </property> 221 </widget> 222 </item> 223 <item> 224 <widget class="QLineEdit" name="minQInput"> 225 <property name="enabled"> 226 <bool>true</bool> 227 </property> 228 </widget> 229 </item> 230 <item> 231 <widget class="QLabel" name="label_11"> 232 <property name="text"> 233 <string><html><head/><body><p>Ã 152 234 <span style=" vertical-align:super;">-1</span></p></body></html></string> 153 154 155 156 157 158 159 160 161 162 163 164 <widget class="QLineEdit" name="lineEdit_6">165 166 167 168 169 170 171 172 173 235 </property> 236 </widget> 237 </item> 238 <item> 239 <widget class="QLabel" name="label_8"> 240 <property name="text"> 241 <string>Max:</string> 242 </property> 243 </widget> 244 </item> 245 <item> 246 <widget class="QLineEdit" name="maxQInput"> 247 <property name="enabled"> 248 <bool>true</bool> 249 </property> 250 </widget> 251 </item> 252 <item> 253 <widget class="QLabel" name="label_9"> 254 <property name="text"> 255 <string><html><head/><body><p>Ã 174 256 <span style=" vertical-align:super;">-1</span></p></body></html></string> 175 </property> 176 </widget> 177 </item> 178 </layout> 257 </property> 258 </widget> 179 259 </item> 180 260 </layout> … … 189 269 </property> 190 270 <layout class="QGridLayout" name="gridLayout"> 191 <item row="1" column="0"> 192 <layout class="QVBoxLayout" name="verticalLayout_2"> 193 <item> 194 <layout class="QHBoxLayout" name="horizontalLayout"> 195 <item> 196 <widget class="QLabel" name="label_3"> 197 <property name="text"> 198 <string>Height</string> 199 </property> 200 </widget> 201 </item> 202 <item> 203 <widget class="QLineEdit" name="lineEdit_2"> 204 <property name="enabled"> 205 <bool>true</bool> 206 </property> 207 </widget> 208 </item> 209 <item> 210 <widget class="QLabel" name="label_6"> 211 <property name="text"> 212 <string><html><head/><body><p>Ã 271 <item row="0" column="0"> 272 <layout class="QHBoxLayout" name="horizontalLayout"> 273 <item> 274 <widget class="QLabel" name="label_3"> 275 <property name="text"> 276 <string>Height</string> 277 </property> 278 </widget> 279 </item> 280 <item> 281 <widget class="QLineEdit" name="slitHeightInput"> 282 <property name="enabled"> 283 <bool>true</bool> 284 </property> 285 </widget> 286 </item> 287 <item> 288 <widget class="QLabel" name="label_6"> 289 <property name="text"> 290 <string><html><head/><body><p>Ã 213 291 <span style=" vertical-align:super;">-1</span></p></body></html></string> 214 215 216 217 218 219 220 221 222 223 224 225 <widget class="QLineEdit" name="lineEdit_3">226 227 228 229 230 231 232 233 234 292 </property> 293 </widget> 294 </item> 295 <item> 296 <widget class="QLabel" name="label_4"> 297 <property name="text"> 298 <string>Width</string> 299 </property> 300 </widget> 301 </item> 302 <item> 303 <widget class="QLineEdit" name="slitWidthInput"> 304 <property name="enabled"> 305 <bool>true</bool> 306 </property> 307 </widget> 308 </item> 309 <item> 310 <widget class="QLabel" name="label_2"> 311 <property name="text"> 312 <string><html><head/><body><p>Ã 235 313 <span style=" vertical-align:super;">-1</span></p></body></html></string> 236 </property> 237 </widget> 238 </item> 239 </layout> 314 </property> 315 </widget> 240 316 </item> 241 317 </layout> … … 246 322 <item> 247 323 <widget class="QGroupBox" name="groupBox_5"> 324 <property name="sizePolicy"> 325 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 326 <horstretch>0</horstretch> 327 <verstretch>0</verstretch> 328 </sizepolicy> 329 </property> 248 330 <property name="toolTip"> 249 331 <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> … … 256 338 <string>Parameters</string> 257 339 </property> 258 <widget class="QWidget" name="gridLayoutWidget"> 259 <property name="geometry"> 260 <rect> 261 <x>10</x> 262 <y>20</y> 263 <width>511</width> 264 <height>123</height> 265 </rect> 266 </property> 267 <layout class="QGridLayout" name="gridLayout_4" rowstretch="0,0,0"> 268 <property name="margin"> 269 <number>4</number> 270 </property> 271 <item row="2" column="1"> 272 <widget class="QLineEdit" name="lineEdit_9"/> 273 </item> 274 <item row="1" column="1"> 275 <widget class="QLineEdit" name="lineEdit_8"/> 276 </item> 277 <item row="0" column="1"> 278 <widget class="QLineEdit" name="lineEdit_7"/> 279 </item> 280 <item row="0" column="0"> 281 <widget class="QLabel" name="label_12"> 282 <property name="text"> 283 <string>Number of Terms</string> 284 </property> 285 </widget> 286 </item> 287 <item row="2" column="0"> 288 <widget class="QLabel" name="label_14"> 289 <property name="text"> 290 <string>Max distance [Ã 340 <layout class="QGridLayout" name="gridLayout_8"> 341 <item row="1" column="0"> 342 <widget class="QLabel" name="label_13"> 343 <property name="text"> 344 <string>Regularization constant</string> 345 </property> 346 </widget> 347 </item> 348 <item row="0" column="2"> 349 <widget class="QPushButton" name="noOfTermsSuggestionButton"> 350 <property name="enabled"> 351 <bool>false</bool> 352 </property> 353 <property name="text"> 354 <string/> 355 </property> 356 </widget> 357 </item> 358 <item row="2" column="2"> 359 <widget class="QPushButton" name="explorerButton"> 360 <property name="sizePolicy"> 361 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 362 <horstretch>0</horstretch> 363 <verstretch>0</verstretch> 364 </sizepolicy> 365 </property> 366 <property name="toolTip"> 367 <string><html><head/><body><p>Open the D<span style=" vertical-align:sub;">max</span> explorer window.</p></body></html></string> 368 </property> 369 <property name="layoutDirection"> 370 <enum>Qt::LeftToRight</enum> 371 </property> 372 <property name="text"> 373 <string>Explore</string> 374 </property> 375 </widget> 376 </item> 377 <item row="0" column="1"> 378 <widget class="QLineEdit" name="noOfTermsInput"/> 379 </item> 380 <item row="2" column="1"> 381 <widget class="QLineEdit" name="maxDistanceInput"/> 382 </item> 383 <item row="0" column="0"> 384 <widget class="QLabel" name="label_12"> 385 <property name="text"> 386 <string>Number of Terms</string> 387 </property> 388 </widget> 389 </item> 390 <item row="1" column="2"> 391 <widget class="QPushButton" name="regConstantSuggestionButton"> 392 <property name="enabled"> 393 <bool>false</bool> 394 </property> 395 <property name="text"> 396 <string/> 397 </property> 398 </widget> 399 </item> 400 <item row="2" column="0"> 401 <widget class="QLabel" name="label_14"> 402 <property name="text"> 403 <string>Max distance [Ã 291 404 ]</string> 292 </property> 293 </widget> 294 </item> 295 <item row="1" column="0"> 296 <widget class="QLabel" name="label_13"> 297 <property name="text"> 298 <string>Regularization constant</string> 299 </property> 300 </widget> 301 </item> 302 <item row="2" column="2" alignment="Qt::AlignHCenter"> 303 <widget class="QPushButton" name="pushButton_4"> 304 <property name="sizePolicy"> 305 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 306 <horstretch>0</horstretch> 307 <verstretch>0</verstretch> 308 </sizepolicy> 309 </property> 310 <property name="toolTip"> 311 <string><html><head/><body><p>Open the D<span style=" vertical-align:sub;">max</span> explorer window.</p></body></html></string> 312 </property> 313 <property name="layoutDirection"> 314 <enum>Qt::LeftToRight</enum> 315 </property> 316 <property name="text"> 317 <string>Explore</string> 318 </property> 319 </widget> 320 </item> 321 <item row="0" column="2"> 322 <widget class="QPushButton" name="pushButton_5"> 323 <property name="enabled"> 324 <bool>false</bool> 325 </property> 326 <property name="text"> 327 <string/> 328 </property> 329 </widget> 330 </item> 331 <item row="1" column="2"> 332 <widget class="QPushButton" name="pushButton_6"> 333 <property name="enabled"> 334 <bool>false</bool> 335 </property> 336 <property name="text"> 337 <string/> 338 </property> 339 </widget> 340 </item> 341 </layout> 342 </widget> 405 </property> 406 </widget> 407 </item> 408 <item row="1" column="1"> 409 <widget class="QLineEdit" name="regularizationConstantInput"/> 410 </item> 411 </layout> 343 412 </widget> 344 413 </item> 345 414 </layout> 346 </item> 347 </layout> 348 </widget> 349 <widget class="QWidget" name="tabOptions"> 350 <attribute name="title"> 351 <string>Outputs</string> 352 </attribute> 353 <layout class="QGridLayout" name="gridLayout_6"> 354 <item row="0" column="0"> 355 <widget class="QGroupBox" name="groupBox_4"> 356 <property name="title"> 357 <string>Outputs</string> 358 </property> 359 <widget class="QWidget" name="verticalLayoutWidget_3"> 360 <property name="geometry"> 361 <rect> 362 <x>10</x> 363 <y>20</y> 364 <width>521</width> 365 <height>281</height> 366 </rect> 367 </property> 368 <layout class="QVBoxLayout" name="verticalLayout_4"> 369 <item> 370 <layout class="QGridLayout" name="gridLayout_5"> 371 <item row="3" column="1"> 372 <widget class="QLineEdit" name="lineEdit_15"> 373 <property name="enabled"> 374 <bool>false</bool> 375 </property> 376 </widget> 377 </item> 378 <item row="5" column="1"> 379 <widget class="QLineEdit" name="lineEdit_17"> 380 <property name="enabled"> 381 <bool>false</bool> 382 </property> 383 </widget> 384 </item> 385 <item row="7" column="1"> 386 <widget class="QLineEdit" name="lineEdit_19"> 387 <property name="enabled"> 388 <bool>false</bool> 389 </property> 390 </widget> 391 </item> 392 <item row="3" column="0"> 393 <widget class="QLabel" name="label_17"> 394 <property name="text"> 395 <string>Background</string> 396 </property> 397 </widget> 398 </item> 399 <item row="8" column="0"> 400 <widget class="QLabel" name="label_29"> 401 <property name="text"> 402 <string>1-sigma positive fraction</string> 403 </property> 404 </widget> 405 </item> 406 <item row="5" column="0"> 407 <widget class="QLabel" name="label_19"> 408 <property name="text"> 409 <string>Chi^2/dof</string> 410 </property> 411 </widget> 412 </item> 413 <item row="2" column="0"> 414 <widget class="QLabel" name="label_16"> 415 <property name="text"> 416 <string>I(Q=0)</string> 417 </property> 418 </widget> 419 </item> 420 <item row="6" column="0"> 421 <widget class="QLabel" name="label_20"> 422 <property name="text"> 423 <string>Oscillations</string> 424 </property> 425 </widget> 426 </item> 427 <item row="1" column="1"> 428 <widget class="QLineEdit" name="lineEdit_13"> 429 <property name="enabled"> 430 <bool>false</bool> 431 </property> 432 </widget> 433 </item> 434 <item row="7" column="0"> 435 <widget class="QLabel" name="label_21"> 436 <property name="text"> 437 <string>Positive Fraction</string> 438 </property> 439 </widget> 440 </item> 441 <item row="6" column="1"> 442 <widget class="QLineEdit" name="lineEdit_18"> 443 <property name="enabled"> 444 <bool>false</bool> 445 </property> 446 </widget> 447 </item> 448 <item row="4" column="0"> 449 <widget class="QLabel" name="label_18"> 450 <property name="text"> 451 <string>Computation TIme</string> 452 </property> 453 </widget> 454 </item> 455 <item row="2" column="1"> 456 <widget class="QLineEdit" name="lineEdit_14"> 457 <property name="enabled"> 458 <bool>false</bool> 459 </property> 460 </widget> 461 </item> 462 <item row="4" column="1"> 463 <widget class="QLineEdit" name="lineEdit_16"> 464 <property name="enabled"> 465 <bool>false</bool> 466 </property> 467 </widget> 468 </item> 469 <item row="1" column="0"> 470 <widget class="QLabel" name="label_15"> 471 <property name="text"> 472 <string>Rg</string> 473 </property> 474 </widget> 475 </item> 476 <item row="3" column="2"> 477 <widget class="QLabel" name="label_26"> 478 <property name="text"> 479 <string>Ã 415 </widget> 416 <widget class="QWidget" name="tabOptions"> 417 <attribute name="title"> 418 <string>Outputs</string> 419 </attribute> 420 <layout class="QGridLayout" name="gridLayout_6"> 421 <item row="0" column="0"> 422 <widget class="QGroupBox" name="groupBox_4"> 423 <property name="title"> 424 <string>Outputs</string> 425 </property> 426 <layout class="QGridLayout" name="gridLayout_4"> 427 <item row="0" column="1"> 428 <widget class="QLabel" name="label_23"> 429 <property name="text"> 430 <string>Calculated Value</string> 431 </property> 432 <property name="alignment"> 433 <set>Qt::AlignCenter</set> 434 </property> 435 </widget> 436 </item> 437 <item row="0" column="2"> 438 <widget class="QLabel" name="label_28"> 439 <property name="text"> 440 <string>Units</string> 441 </property> 442 </widget> 443 </item> 444 <item row="6" column="1"> 445 <widget class="QLineEdit" name="oscillationValue"> 446 <property name="enabled"> 447 <bool>false</bool> 448 </property> 449 </widget> 450 </item> 451 <item row="3" column="0"> 452 <widget class="QLabel" name="label_17"> 453 <property name="text"> 454 <string>Background</string> 455 </property> 456 </widget> 457 </item> 458 <item row="7" column="1"> 459 <widget class="QLineEdit" name="posFractionValue"> 460 <property name="enabled"> 461 <bool>false</bool> 462 </property> 463 </widget> 464 </item> 465 <item row="2" column="2"> 466 <widget class="QLabel" name="label_25"> 467 <property name="text"> 468 <string>Ã 480 469 -1</string> 481 </property> 482 </widget> 483 </item> 484 <item row="4" column="2"> 485 <widget class="QLabel" name="label_27"> 486 <property name="text"> 487 <string>secs</string> 488 </property> 489 </widget> 490 </item> 491 <item row="2" column="2"> 492 <widget class="QLabel" name="label_25"> 493 <property name="text"> 494 <string>Ã 470 </property> 471 </widget> 472 </item> 473 <item row="3" column="1"> 474 <widget class="QLineEdit" name="backgroundValue"> 475 <property name="enabled"> 476 <bool>false</bool> 477 </property> 478 </widget> 479 </item> 480 <item row="1" column="0"> 481 <widget class="QLabel" name="label_15"> 482 <property name="text"> 483 <string>Rg</string> 484 </property> 485 </widget> 486 </item> 487 <item row="1" column="2"> 488 <widget class="QLabel" name="label_24"> 489 <property name="text"> 490 <string>Ã 491 </string> 492 </property> 493 </widget> 494 </item> 495 <item row="6" column="0"> 496 <widget class="QLabel" name="label_20"> 497 <property name="text"> 498 <string>Oscillations</string> 499 </property> 500 </widget> 501 </item> 502 <item row="4" column="0"> 503 <widget class="QLabel" name="label_18"> 504 <property name="text"> 505 <string>Computation Time</string> 506 </property> 507 </widget> 508 </item> 509 <item row="4" column="2"> 510 <widget class="QLabel" name="label_27"> 511 <property name="text"> 512 <string>secs</string> 513 </property> 514 </widget> 515 </item> 516 <item row="2" column="0"> 517 <widget class="QLabel" name="label_16"> 518 <property name="text"> 519 <string>I(Q=0)</string> 520 </property> 521 </widget> 522 </item> 523 <item row="3" column="2"> 524 <widget class="QLabel" name="label_26"> 525 <property name="text"> 526 <string>Ã 495 527 -1</string> 496 </property> 497 </widget> 498 </item> 499 <item row="1" column="2"> 500 <widget class="QLabel" name="label_24"> 501 <property name="text"> 502 <string>Ã 503 </string> 504 </property> 505 </widget> 506 </item> 507 <item row="8" column="1"> 508 <widget class="QLineEdit" name="lineEdit_12"/> 509 </item> 510 <item row="0" column="2"> 511 <widget class="QLabel" name="label_28"> 512 <property name="text"> 513 <string>Units</string> 514 </property> 515 </widget> 516 </item> 517 <item row="0" column="1"> 518 <widget class="QLabel" name="label_23"> 519 <property name="text"> 520 <string>Calculated Value</string> 521 </property> 522 <property name="alignment"> 523 <set>Qt::AlignCenter</set> 524 </property> 525 </widget> 526 </item> 527 <item row="0" column="0"> 528 <widget class="QLabel" name="label_22"> 529 <property name="text"> 530 <string>Parameter</string> 531 </property> 532 </widget> 533 </item> 534 </layout> 535 </item> 536 </layout> 537 </widget> 538 </widget> 539 </item> 540 </layout> 541 </widget> 542 </widget> 543 <widget class="QWidget" name="layoutWidget"> 544 <property name="geometry"> 545 <rect> 546 <x>10</x> 547 <y>480</y> 548 <width>561</width> 549 <height>31</height> 550 </rect> 551 </property> 552 <layout class="QHBoxLayout" name="horizontalLayout_8"> 553 <property name="sizeConstraint"> 554 <enum>QLayout::SetMinimumSize</enum> 555 </property> 556 <item> 557 <widget class="QPushButton" name="pushButton"> 558 <property name="text"> 559 <string>Calculate</string> 560 </property> 528 </property> 529 </widget> 530 </item> 531 <item row="0" column="0"> 532 <widget class="QLabel" name="label_22"> 533 <property name="text"> 534 <string>Parameter</string> 535 </property> 536 </widget> 537 </item> 538 <item row="8" column="0"> 539 <widget class="QLabel" name="label_29"> 540 <property name="text"> 541 <string>1-sigma positive fraction</string> 542 </property> 543 </widget> 544 </item> 545 <item row="2" column="1"> 546 <widget class="QLineEdit" name="iQ0Value"> 547 <property name="enabled"> 548 <bool>false</bool> 549 </property> 550 </widget> 551 </item> 552 <item row="5" column="0"> 553 <widget class="QLabel" name="label_19"> 554 <property name="text"> 555 <string>Chi^2/dof</string> 556 </property> 557 </widget> 558 </item> 559 <item row="1" column="1"> 560 <widget class="QLineEdit" name="rgValue"> 561 <property name="enabled"> 562 <bool>false</bool> 563 </property> 564 </widget> 565 </item> 566 <item row="5" column="1"> 567 <widget class="QLineEdit" name="chiDofValue"> 568 <property name="enabled"> 569 <bool>false</bool> 570 </property> 571 </widget> 572 </item> 573 <item row="4" column="1"> 574 <widget class="QLineEdit" name="computationTimeValue"> 575 <property name="enabled"> 576 <bool>false</bool> 577 </property> 578 </widget> 579 </item> 580 <item row="7" column="0"> 581 <widget class="QLabel" name="label_21"> 582 <property name="text"> 583 <string>Positive Fraction</string> 584 </property> 585 </widget> 586 </item> 587 <item row="8" column="1"> 588 <widget class="QLineEdit" name="sigmaPosFractionValue"> 589 <property name="enabled"> 590 <bool>false</bool> 591 </property> 592 </widget> 593 </item> 594 </layout> 595 </widget> 596 </item> 597 <item row="1" column="0"> 598 <spacer name="verticalSpacer_2"> 599 <property name="orientation"> 600 <enum>Qt::Vertical</enum> 601 </property> 602 <property name="sizeHint" stdset="0"> 603 <size> 604 <width>20</width> 605 <height>40</height> 606 </size> 607 </property> 608 </spacer> 609 </item> 610 </layout> 561 611 </widget> 562 </item> 563 <item> 564 <spacer name="horizontalSpacer"> 565 <property name="orientation"> 566 <enum>Qt::Horizontal</enum> 567 </property> 568 <property name="sizeHint" stdset="0"> 569 <size> 570 <width>40</width> 571 <height>20</height> 572 </size> 573 </property> 574 </spacer> 575 </item> 576 <item> 577 <widget class="QPushButton" name="pushButton_2"> 578 <property name="text"> 579 <string>Status</string> 580 </property> 581 </widget> 582 </item> 583 <item> 584 <widget class="QPushButton" name="pushButton_3"> 585 <property name="text"> 586 <string>Help</string> 587 </property> 588 </widget> 589 </item> 590 </layout> 591 </widget> 612 </widget> 613 </item> 614 </layout> 592 615 </widget> 593 616 <resources/> -
src/sas/qtgui/Perspectives/__init__.py
r6cbf8a5 re32b120 9 9 FittingWindow.name: FittingWindow, 10 10 InvariantWindow.name: InvariantWindow, 11 PrInversionWindow.name: PrInversionWindow ,11 PrInversionWindow.name: PrInversionWindow 12 12 }
Note: See TracChangeset
for help on using the changeset viewer.