- Timestamp:
- Apr 28, 2017 9:26:55 AM (8 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:
- 28a09b0
- Parents:
- 0215e0a
- Location:
- src/sas/qtgui
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/UI/DataExplorerUI.ui
rcd2cc745 r61a92d4 7 7 <x>0</x> 8 8 <y>0</y> 9 <width> 405</width>9 <width>501</width> 10 10 <height>630</height> 11 11 </rect> … … 133 133 </layout> 134 134 </item> 135 <item row="0" column="1" >135 <item row="0" column="1" colspan="2"> 136 136 <spacer name="horizontalSpacer_7"> 137 137 <property name="orientation"> … … 146 146 </spacer> 147 147 </item> 148 <item row="2" column="0"> 148 <item row="1" column="0" colspan="3"> 149 <widget class="QTreeView" name="treeView"> 150 <property name="contextMenuPolicy"> 151 <enum>Qt::NoContextMenu</enum> 152 </property> 153 <property name="acceptDrops"> 154 <bool>true</bool> 155 </property> 156 <property name="editTriggers"> 157 <set>QAbstractItemView::NoEditTriggers</set> 158 </property> 159 <property name="dragEnabled"> 160 <bool>true</bool> 161 </property> 162 <property name="dragDropOverwriteMode"> 163 <bool>true</bool> 164 </property> 165 <property name="dragDropMode"> 166 <enum>QAbstractItemView::DropOnly</enum> 167 </property> 168 <property name="defaultDropAction"> 169 <enum>Qt::CopyAction</enum> 170 </property> 171 <property name="selectionMode"> 172 <enum>QAbstractItemView::ExtendedSelection</enum> 173 </property> 174 <attribute name="headerVisible"> 175 <bool>false</bool> 176 </attribute> 177 </widget> 178 </item> 179 <item row="2" column="0" colspan="2"> 149 180 <layout class="QGridLayout" name="gridLayout_2"> 150 181 <item row="0" column="0" rowspan="2"> … … 197 228 <widget class="QComboBox" name="cbFitting"> 198 229 <property name="sizePolicy"> 199 <sizepolicy hsizetype="Minimum " vsizetype="Fixed">230 <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 200 231 <horstretch>0</horstretch> 201 232 <verstretch>0</verstretch> 202 233 </sizepolicy> 203 234 </property> 235 <property name="font"> 236 <font> 237 <pointsize>12</pointsize> 238 </font> 239 </property> 204 240 <property name="sizeAdjustPolicy"> 205 241 <enum>QComboBox::AdjustToContents</enum> … … 231 267 </layout> 232 268 </item> 233 <item row="1" column="0" colspan="2"> 234 <widget class="QTreeView" name="treeView"> 235 <property name="contextMenuPolicy"> 236 <enum>Qt::NoContextMenu</enum> 237 </property> 238 <property name="acceptDrops"> 239 <bool>true</bool> 240 </property> 241 <property name="editTriggers"> 242 <set>QAbstractItemView::NoEditTriggers</set> 243 </property> 244 <property name="dragEnabled"> 245 <bool>true</bool> 246 </property> 247 <property name="dragDropOverwriteMode"> 248 <bool>true</bool> 249 </property> 250 <property name="dragDropMode"> 251 <enum>QAbstractItemView::DropOnly</enum> 252 </property> 253 <property name="defaultDropAction"> 254 <enum>Qt::CopyAction</enum> 255 </property> 256 <property name="selectionMode"> 257 <enum>QAbstractItemView::ExtendedSelection</enum> 258 </property> 259 <attribute name="headerVisible"> 260 <bool>false</bool> 261 </attribute> 262 </widget> 269 <item row="2" column="2"> 270 <spacer name="horizontalSpacer"> 271 <property name="orientation"> 272 <enum>Qt::Horizontal</enum> 273 </property> 274 <property name="sizeHint" stdset="0"> 275 <size> 276 <width>160</width> 277 <height>20</height> 278 </size> 279 </property> 280 </spacer> 263 281 </item> 264 282 </layout> -
src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py
r0215e0a r61a92d4 6 6 7 7 import sas.qtgui.Utilities.GuiUtils as GuiUtils 8 import sas.qtgui. ObjectFactory as ObjectFactory8 import sas.qtgui.Utilities.ObjectLibrary as ObjectLibrary 9 9 10 10 from FittingWidget import FittingWidget … … 75 75 """ 76 76 tab = FittingWidget(parent=self.parent, data=data, id=self.maxIndex+1) 77 # Add this tab to the object factory so it can be retrieved by scripting/jupyter78 Object Factory.addObject(self.tabName(), tab)77 # Add this tab to the object library so it can be retrieved by scripting/jupyter 78 ObjectLibrary.addObject(self.tabName(), tab) 79 79 self.tabs.append(tab) 80 80 self.maxIndex += 1 … … 96 96 if len(self.tabs) <= 1: 97 97 return 98 Object Factory.deleteObject(self.tabs[index].accessibleName())98 ObjectLibrary.deleteObjectByRef(self.tabs[index]) 99 99 del self.tabs[index] 100 100 self.removeTab(index) -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r180bd54 r61a92d4 122 122 self.model_parameters = None 123 123 self.lstParams.setAlternatingRowColors(True) 124 stylesheet = """ 125 QTreeView{ 126 alternate-background-color: #f6fafb; 127 background: #e8f4fc; 128 } 129 """ 130 self.lstParams.setStyleSheet(stylesheet) 124 131 125 132 # Poly model displayed in poly list … … 572 579 self.q_range_min, self.q_range_max, self.npts, self.log_points, self.weighting = \ 573 580 self.options_widget.state() 581 # set Q range labels on the main tab 582 self.lblMinRangeDef.setText(str(self.q_range_min)) 583 self.lblMaxRangeDef.setText(str(self.q_range_max)) 574 584 self.onPlot() 575 585 -
src/sas/qtgui/Perspectives/Fitting/OptionsWidget.py
r180bd54 r61a92d4 141 141 #print "MODEL CHANGED for property: %s. The value is now: %s" % \ 142 142 # (MODEL[top.row()], str(self.model.item(top.row()).text())) 143 143 144 # update if there's something to update 144 if str(self.model.item(top.row()).text()): #and 'RANGE' in MODEL[top.row()]:145 if str(self.model.item(top.row()).text()): 145 146 self.plot_signal.emit() 146 147 -
src/sas/qtgui/Utilities/ObjectLibrary.py
r0215e0a r61a92d4 8 8 this._objects[obj_name] = obj 9 9 10 def deleteObject(obj_name): 10 def deleteObjectByRef(obj): 11 for name, object in this._objects.iteritems(): 12 if object == obj: 13 del this._objects[name] 14 break 15 16 def deleteObjectByName(obj_name): 11 17 if obj_name in this._objects: 12 18 del this._objects[obj_name]
Note: See TracChangeset
for help on using the changeset viewer.