Changeset c31d41e7 in sasview
- Timestamp:
- Oct 25, 2017 10:06:06 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:
- f629e62f
- Parents:
- 9863343
- Location:
- src/sas/qtgui/Perspectives/Fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/GPUOptions.py
r9863343 rc31d41e7 48 48 # Get list of openCL options and add to GUI 49 49 cl_tuple = _get_clinfo() 50 i = 051 50 self.sas_open_cl = os.environ.get("SAS_OPENCL", "") 52 51 for title, descr in cl_tuple: 53 # Create an list item for each openCL option 54 check_box = QtGui.QCheckBox(self.openCLCheckBoxGroup) 55 check_box.setGeometry(20, 20 + i, 351, 30) 52 # Create an item for each openCL option 53 check_box = QtGui.QCheckBox() 56 54 check_box.setObjectName(_fromUtf8(descr)) 57 55 check_box.setText(_translate("GPUOptions", descr, None)) 56 self.optionsLayout.addWidget(check_box) 58 57 if (descr == self.sas_open_cl) or ( 59 58 title == "None" and not self.clicked): 60 59 check_box.click() 61 60 self.clicked = True 62 63 # Expand group and shift items down as more are added64 self.openCLCheckBoxGroup.resize(391, 60 + i)65 self.warningMessage.setGeometry(QtCore.QRect(20, 90 + i, 391, 37))66 self.okButton.setGeometry(QtCore.QRect(20, 127 + i, 93, 28))67 self.resetButton.setGeometry(QtCore.QRect(120, 127 + i, 93, 28))68 self.testButton.setGeometry(QtCore.QRect(220, 127 + i, 93, 28))69 self.helpButton.setGeometry(QtCore.QRect(320, 127 + i, 93, 28))70 self.resize(440, 167 + i)71 i += 3072 61 73 62 def createLinks(self): -
src/sas/qtgui/Perspectives/Fitting/UI/GPUOptionsUI.ui
r9863343 rc31d41e7 7 7 <x>0</x> 8 8 <y>0</y> 9 <width>43 8</width>10 <height>2 06</height>9 <width>432</width> 10 <height>241</height> 11 11 </rect> 12 12 </property> … … 20 20 <string>OpenCL Options</string> 21 21 </property> 22 <widget class="QPushButton" name="testButton"> 22 <property name="windowIcon"> 23 <iconset> 24 <normaloff>../../../UI/res/ball.ico</normaloff>../../../UI/res/ball.ico</iconset> 25 </property> 26 <widget class="QWidget" name="verticalLayoutWidget_2"> 23 27 <property name="geometry"> 24 28 <rect> 25 <x> 120</x>26 <y> 170</y>27 <width> 93</width>28 <height>2 8</height>29 <x>0</x> 30 <y>0</y> 31 <width>431</width> 32 <height>241</height> 29 33 </rect> 30 34 </property> 31 <property name="text"> 32 <string>Test</string> 33 </property> 34 </widget> 35 <widget class="QPushButton" name="helpButton"> 36 <property name="geometry"> 37 <rect> 38 <x>320</x> 39 <y>170</y> 40 <width>93</width> 41 <height>28</height> 42 </rect> 43 </property> 44 <property name="text"> 45 <string>Help</string> 46 </property> 47 <property name="autoDefault"> 48 <bool>true</bool> 49 </property> 50 </widget> 51 <widget class="QGroupBox" name="openCLCheckBoxGroup"> 52 <property name="geometry"> 53 <rect> 54 <x>20</x> 55 <y>20</y> 56 <width>391</width> 57 <height>111</height> 58 </rect> 59 </property> 60 <property name="title"> 61 <string>Available OpenCL Options</string> 62 </property> 63 </widget> 64 <widget class="QPushButton" name="resetButton"> 65 <property name="geometry"> 66 <rect> 67 <x>220</x> 68 <y>170</y> 69 <width>93</width> 70 <height>28</height> 71 </rect> 72 </property> 73 <property name="text"> 74 <string>Reset</string> 75 </property> 76 </widget> 77 <widget class="QPushButton" name="okButton"> 78 <property name="geometry"> 79 <rect> 80 <x>20</x> 81 <y>170</y> 82 <width>93</width> 83 <height>28</height> 84 </rect> 85 </property> 86 <property name="text"> 87 <string>OK</string> 88 </property> 89 </widget> 90 <widget class="QLabel" name="warningMessage"> 91 <property name="geometry"> 92 <rect> 93 <x>20</x> 94 <y>132</y> 95 <width>391</width> 96 <height>37</height> 97 </rect> 98 </property> 99 <property name="font"> 100 <font> 101 <pointsize>8</pointsize> 102 </font> 103 </property> 104 <property name="text"> 105 <string>WARNING: Running tests can take a few minutes!</string> 106 </property> 107 <property name="alignment"> 108 <set>Qt::AlignCenter</set> 109 </property> 35 <layout class="QVBoxLayout" name="verticalLayout" stretch="5,1,1"> 36 <property name="sizeConstraint"> 37 <enum>QLayout::SetMinimumSize</enum> 38 </property> 39 <property name="margin"> 40 <number>10</number> 41 </property> 42 <item> 43 <widget class="QGroupBox" name="openCLCheckBoxGroup"> 44 <property name="title"> 45 <string>Available OpenCL Options</string> 46 </property> 47 <widget class="QWidget" name="verticalLayoutWidget"> 48 <property name="geometry"> 49 <rect> 50 <x>0</x> 51 <y>10</y> 52 <width>411</width> 53 <height>131</height> 54 </rect> 55 </property> 56 <layout class="QVBoxLayout" name="optionsLayout"> 57 <property name="sizeConstraint"> 58 <enum>QLayout::SetMinimumSize</enum> 59 </property> 60 <property name="bottomMargin"> 61 <number>0</number> 62 </property> 63 </layout> 64 </widget> 65 </widget> 66 </item> 67 <item> 68 <widget class="QLabel" name="warningMessage"> 69 <property name="sizePolicy"> 70 <sizepolicy hsizetype="Minimum" vsizetype="Preferred"> 71 <horstretch>0</horstretch> 72 <verstretch>0</verstretch> 73 </sizepolicy> 74 </property> 75 <property name="font"> 76 <font> 77 <pointsize>8</pointsize> 78 </font> 79 </property> 80 <property name="text"> 81 <string>WARNING: Running tests can take a few minutes!</string> 82 </property> 83 <property name="alignment"> 84 <set>Qt::AlignCenter</set> 85 </property> 86 </widget> 87 </item> 88 <item> 89 <layout class="QHBoxLayout" name="horizontalLayout"> 90 <property name="sizeConstraint"> 91 <enum>QLayout::SetMinimumSize</enum> 92 </property> 93 <item> 94 <widget class="QPushButton" name="okButton"> 95 <property name="text"> 96 <string>OK</string> 97 </property> 98 </widget> 99 </item> 100 <item> 101 <widget class="QPushButton" name="resetButton"> 102 <property name="text"> 103 <string>Reset</string> 104 </property> 105 </widget> 106 </item> 107 <item> 108 <widget class="QPushButton" name="helpButton"> 109 <property name="text"> 110 <string>Help</string> 111 </property> 112 <property name="autoDefault"> 113 <bool>true</bool> 114 </property> 115 </widget> 116 </item> 117 <item> 118 <widget class="QPushButton" name="testButton"> 119 <property name="text"> 120 <string>Test</string> 121 </property> 122 </widget> 123 </item> 124 </layout> 125 </item> 126 </layout> 110 127 </widget> 111 128 </widget> -
src/sas/qtgui/Perspectives/Fitting/UI/GPUTestResultsUI.ui
r9863343 rc31d41e7 13 13 <property name="windowTitle"> 14 14 <string>OpenCL Test Results</string> 15 </property> 16 <property name="windowIcon"> 17 <iconset> 18 <normaloff>../../../UI/res/ball.ico</normaloff>../../../UI/res/ball.ico</iconset> 15 19 </property> 16 20 <widget class="QDialogButtonBox" name="okButton">
Note: See TracChangeset
for help on using the changeset viewer.