Changeset 71361f0 in sasview
- Timestamp:
- Apr 8, 2017 5:03:31 PM (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:
- 1970780
- Parents:
- 9c391946
- Location:
- src/sas/qtgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/DataExplorer.py
r454670d r71361f0 444 444 plot2D.plot(plot_set) 445 445 self.plotAdd(plot2D) 446 #============================================ 447 ## Attach silx 448 #from silx.gui import qt 449 #from silx.gui.plot import StackView 450 #sv = StackView() 451 #sv.setColormap("jet", autoscale=True) 452 #sv.setStack(plot_set.data.reshape(1,100,100)) 453 ##sv.setLabels(["x: -10 to 10 (200 samples)", 454 ## "y: -10 to 5 (150 samples)"]) 455 #sv.show() 456 #============================================ 446 457 447 458 for item, plot_set in plots: -
src/sas/qtgui/GuiManager.py
r9c391946 r71361f0 196 196 def updatePerspective(self, data): 197 197 """ 198 Update perspective with data sent. 198 199 """ 199 200 assert isinstance(data, list) … … 203 204 msg = "No perspective is currently active." 204 205 logging.info(msg) 205 206 206 207 207 def communicator(self): … … 237 237 def updateStatusBar(self, text): 238 238 """ 239 """240 #self._workspace.statusbar.showMessage(text)239 Set the status bar text 240 """ 241 241 self.statusLabel.setText(text) 242 242 … … 287 287 c = Connection(LocalConfig.__update_URL__, LocalConfig.UPDATE_TIMEOUT) 288 288 response = c.connect() 289 if response is not None: 290 try: 291 content = response.read().strip() 292 logging.info("Connected to www.sasview.org. Latest version: %s" 293 % (content)) 294 version_info = json.loads(content) 295 except ValueError, ex: 296 logging.info("Failed to connect to www.sasview.org:", ex) 297 self.processVersion(version_info) 289 if response is None: 290 return 291 try: 292 content = response.read().strip() 293 logging.info("Connected to www.sasview.org. Latest version: %s" 294 % (content)) 295 version_info = json.loads(content) 296 self.processVersion(version_info) 297 except ValueError, ex: 298 logging.info("Failed to connect to www.sasview.org:", ex) 298 299 299 300 def processVersion(self, version_info): … … 311 312 msg = "Could not connect to the application server." 312 313 msg += " Please try again later." 313 #self.SetStatusText(msg)314 314 self.communicate.statusBarUpdateSignal.emit(msg) 315 315 -
src/sas/qtgui/UI/DataExplorerUI.ui
r29eb947 r71361f0 7 7 <x>0</x> 8 8 <y>0</y> 9 <width> 389</width>10 <height>6 93</height>9 <width>405</width> 10 <height>630</height> 11 11 </rect> 12 12 </property> … … 31 31 <string>Data</string> 32 32 </attribute> 33 <layout class="QGridLayout" name="gridLayout_ 6">33 <layout class="QGridLayout" name="gridLayout_11"> 34 34 <item row="0" column="0"> 35 35 <widget class="QGroupBox" name="groupBox"> … … 37 37 <string>Data</string> 38 38 </property> 39 <layout class="QGridLayout" name="gridLayout ">39 <layout class="QGridLayout" name="gridLayout_9"> 40 40 <item row="0" column="0"> 41 <layout class="Q HBoxLayout" name="horizontalLayout_2">42 <item >41 <layout class="QGridLayout" name="gridLayout"> 42 <item row="0" column="0" rowspan="2"> 43 43 <widget class="QPushButton" name="cmdLoad"> 44 44 <property name="sizePolicy"> … … 84 84 </widget> 85 85 </item> 86 <item> 86 <item row="0" column="1"> 87 <widget class="QPushButton" name="cmdDeleteData"> 88 <property name="text"> 89 <string>Delete</string> 90 </property> 91 </widget> 92 </item> 93 <item row="1" column="1"> 87 94 <widget class="QComboBox" name="cbSelect"> 88 95 <property name="sizePolicy"> … … 124 131 </widget> 125 132 </item> 126 <item>127 <spacer name="horizontalSpacer_7">128 <property name="orientation">129 <enum>Qt::Horizontal</enum>130 </property>131 <property name="sizeHint" stdset="0">132 <size>133 <width>128</width>134 <height>20</height>135 </size>136 </property>137 </spacer>138 </item>139 <item>140 <widget class="QPushButton" name="cmdDeleteData">141 <property name="text">142 <string>Delete</string>143 </property>144 </widget>145 </item>146 133 </layout> 147 134 </item> 148 <item row="1" column="0"> 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> 135 <item row="0" column="1"> 136 <spacer name="horizontalSpacer_7"> 137 <property name="orientation"> 138 <enum>Qt::Horizontal</enum> 139 </property> 140 <property name="sizeHint" stdset="0"> 141 <size> 142 <width>92</width> 143 <height>20</height> 144 </size> 145 </property> 146 </spacer> 178 147 </item> 179 148 <item row="2" column="0"> 180 <layout class="Q HBoxLayout" name="horizontalLayout">181 <item >149 <layout class="QGridLayout" name="gridLayout_2"> 150 <item row="0" column="0" rowspan="2"> 182 151 <widget class="QPushButton" name="cmdSendTo"> 183 152 <property name="sizePolicy"> … … 225 194 </widget> 226 195 </item> 227 <item >196 <item row="0" column="1"> 228 197 <widget class="QComboBox" name="cbFitting"> 229 198 <property name="sizePolicy"> … … 253 222 </widget> 254 223 </item> 255 <item >224 <item row="1" column="1"> 256 225 <widget class="QCheckBox" name="chkBatch"> 257 226 <property name="text"> … … 261 230 </item> 262 231 </layout> 232 </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> 263 263 </item> 264 264 </layout> … … 266 266 </item> 267 267 <item row="1" column="0"> 268 <layout class="QGridLayout" name="gridLayout_2"> 269 <item row="0" column="0"> 270 <widget class="QGroupBox" name="groupBox_3"> 271 <property name="title"> 272 <string>Plot</string> 273 </property> 274 <property name="flat"> 275 <bool>false</bool> 276 </property> 277 <property name="checkable"> 278 <bool>false</bool> 279 </property> 280 <layout class="QGridLayout" name="gridLayout_3"> 281 <item row="0" column="0"> 282 <widget class="QPushButton" name="cmdNew"> 283 <property name="text"> 284 <string>Create New</string> 285 </property> 286 </widget> 287 </item> 288 <item row="1" column="0"> 289 <widget class="QPushButton" name="cmdAppend"> 290 <property name="text"> 291 <string>Append to</string> 292 </property> 293 </widget> 294 </item> 295 <item row="1" column="1"> 296 <widget class="QComboBox" name="cbgraph"> 297 <property name="sizePolicy"> 298 <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> 299 <horstretch>0</horstretch> 300 <verstretch>0</verstretch> 301 </sizepolicy> 302 </property> 303 <property name="sizeAdjustPolicy"> 304 <enum>QComboBox::AdjustToContents</enum> 305 </property> 306 </widget> 307 </item> 308 </layout> 309 </widget> 268 <layout class="QGridLayout" name="gridLayout_10"> 269 <item row="0" column="0" rowspan="2"> 270 <layout class="QGridLayout" name="gridLayout_6"> 271 <item row="0" column="0"> 272 <widget class="QGroupBox" name="groupBox_3"> 273 <property name="title"> 274 <string>Plot</string> 275 </property> 276 <property name="flat"> 277 <bool>false</bool> 278 </property> 279 <property name="checkable"> 280 <bool>false</bool> 281 </property> 282 <layout class="QGridLayout" name="gridLayout_3"> 283 <item row="0" column="0"> 284 <widget class="QPushButton" name="cmdNew"> 285 <property name="text"> 286 <string>Create New</string> 287 </property> 288 </widget> 289 </item> 290 <item row="1" column="0"> 291 <widget class="QPushButton" name="cmdAppend"> 292 <property name="text"> 293 <string>Append to</string> 294 </property> 295 </widget> 296 </item> 297 <item row="1" column="1"> 298 <widget class="QComboBox" name="cbgraph"> 299 <property name="sizePolicy"> 300 <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> 301 <horstretch>0</horstretch> 302 <verstretch>0</verstretch> 303 </sizepolicy> 304 </property> 305 <property name="sizeAdjustPolicy"> 306 <enum>QComboBox::AdjustToContents</enum> 307 </property> 308 </widget> 309 </item> 310 </layout> 311 </widget> 312 </item> 313 <item row="0" column="1"> 314 <spacer name="horizontalSpacer_3"> 315 <property name="orientation"> 316 <enum>Qt::Horizontal</enum> 317 </property> 318 <property name="sizeHint" stdset="0"> 319 <size> 320 <width>103</width> 321 <height>48</height> 322 </size> 323 </property> 324 </spacer> 325 </item> 326 </layout> 310 327 </item> 311 <item row="0" column="1"> 312 <spacer name="horizontalSpacer_3"> 313 <property name="orientation"> 314 <enum>Qt::Horizontal</enum> 315 </property> 316 <property name="sizeHint" stdset="0"> 317 <size> 318 <width>108</width> 319 <height>111</height> 320 </size> 321 </property> 322 </spacer> 323 </item> 324 <item row="0" column="2" alignment="Qt::AlignBottom"> 328 <item row="1" column="1"> 325 329 <widget class="QPushButton" name="cmdHelp"> 326 330 <property name="text">
Note: See TracChangeset
for help on using the changeset viewer.