Changeset 170e95d in sasview for src/sas


Ignore:
Timestamp:
Oct 2, 2017 10:00:47 AM (6 years ago)
Author:
celinedurniak <celine.durniak@…>
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:
fca1f50
Parents:
7d353af
Message:

Corrected layout of Resolution panel

Location:
src/sas/qtgui/Calculators
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py

    rfc4fec8 r170e95d  
    599599        except: 
    600600            string_split = input_string.split(',') 
    601             if len(string_split) == 2: 
    602                 str_1 = string_split[0] 
    603                 str_2 = string_split[1] 
    604                 new_numbers_list.append(float(str_1)) 
    605                 new_numbers_list.append(float(str_2)) 
    606             elif len(string_split) == 1: 
    607                 str_1 = string_split[0] 
    608                 new_numbers_list.append(float(str_1)) 
     601            if len(string_split) == 1 or len(string_split) == 2: 
     602                new_numbers_list = [float(item) for item in string_split] 
    609603            else: 
    610604                msg = "The numbers must be one or two (separated by ',')" 
     
    735729        y_val = numpy.arange(qy_max, qy_min, -dy_size) 
    736730 
     731        if len(self.plotter.ax.patches): 
     732            self.plotter.ax.patches[0].remove() 
     733 
    737734        self.drawLines() 
    738735 
  • src/sas/qtgui/Calculators/UI/ResolutionCalculatorPanelUI.ui

    r7d353af r170e95d  
    1010    <x>0</x> 
    1111    <y>0</y> 
    12     <width>800</width> 
    13     <height>550</height> 
     12    <width>876</width> 
     13    <height>540</height> 
    1414   </rect> 
    1515  </property> 
     
    2323   <size> 
    2424    <width>800</width> 
    25     <height>550</height> 
     25    <height>540</height> 
    2626   </size> 
    2727  </property> 
     
    3939    <normaloff>:/res/ball.ico</normaloff>:/res/ball.ico</iconset> 
    4040  </property> 
    41   <layout class="QGridLayout" name="gridLayout_6"> 
    42    <item row="0" column="1" rowspan="5"> 
    43     <widget class="Line" name="line_4"> 
    44      <property name="orientation"> 
    45       <enum>Qt::Vertical</enum> 
    46      </property> 
    47     </widget> 
    48    </item> 
    49    <item row="0" column="2" rowspan="3"> 
    50     <widget class="QGraphicsView" name="graphicsView"> 
    51      <property name="sizePolicy"> 
    52       <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> 
    53        <horstretch>0</horstretch> 
    54        <verstretch>0</verstretch> 
    55       </sizepolicy> 
    56      </property> 
     41  <layout class="QGridLayout" name="gridLayout_7"> 
     42   <item row="0" column="0"> 
     43    <widget class="QGroupBox" name="groupBox"> 
    5744     <property name="minimumSize"> 
    5845      <size> 
    59        <width>350</width> 
    60        <height>400</height> 
     46       <width>400</width> 
     47       <height>0</height> 
    6148      </size> 
    6249     </property> 
    63     </widget> 
    64    </item> 
    65    <item row="1" column="0"> 
    66     <widget class="QGroupBox" name="groupBox_2"> 
     50     <property name="maximumSize"> 
     51      <size> 
     52       <width>16777215</width> 
     53       <height>350</height> 
     54      </size> 
     55     </property> 
    6756     <property name="title"> 
    68       <string>Q Location of the Estimation</string> 
    69      </property> 
    70      <layout class="QGridLayout" name="gridLayout_9"> 
     57      <string>Instrumental Parameters</string> 
     58     </property> 
     59     <layout class="QGridLayout" name="gridLayout_6"> 
    7160      <property name="margin"> 
    7261       <number>6</number> 
    7362      </property> 
    7463      <item row="0" column="0"> 
    75        <layout class="QGridLayout" name="gridLayout"> 
    76         <item row="0" column="0"> 
    77          <widget class="QLabel" name="label_21"> 
    78           <property name="minimumSize"> 
    79            <size> 
    80             <width>21</width> 
    81             <height>21</height> 
    82            </size> 
    83           </property> 
    84           <property name="text"> 
    85            <string>Qx:</string> 
    86           </property> 
    87          </widget> 
    88         </item> 
    89         <item row="0" column="1"> 
    90          <widget class="QLineEdit" name="txtQx"> 
    91           <property name="minimumSize"> 
    92            <size> 
    93             <width>100</width> 
    94             <height>21</height> 
    95            </size> 
    96           </property> 
    97           <property name="baseSize"> 
    98            <size> 
    99             <width>100</width> 
    100             <height>21</height> 
    101            </size> 
    102           </property> 
    103           <property name="toolTip"> 
    104            <string>Type the Qx value.</string> 
    105           </property> 
    106           <property name="text"> 
    107            <string>0.0</string> 
    108           </property> 
    109          </widget> 
    110         </item> 
    111         <item row="0" column="2"> 
    112          <widget class="QLabel" name="lblUnitQx"> 
    113           <property name="minimumSize"> 
    114            <size> 
    115             <width>18</width> 
    116             <height>21</height> 
    117            </size> 
    118           </property> 
    119           <property name="text"> 
    120            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
    121 &lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    122           </property> 
    123          </widget> 
    124         </item> 
    125         <item row="1" column="0"> 
    126          <widget class="QLabel" name="label_22"> 
    127           <property name="minimumSize"> 
    128            <size> 
    129             <width>21</width> 
    130             <height>21</height> 
    131            </size> 
    132           </property> 
    133           <property name="text"> 
    134            <string>Qy:</string> 
    135           </property> 
    136          </widget> 
    137         </item> 
    138         <item row="1" column="1"> 
    139          <widget class="QLineEdit" name="txtQy"> 
    140           <property name="minimumSize"> 
    141            <size> 
    142             <width>100</width> 
    143             <height>21</height> 
    144            </size> 
    145           </property> 
    146           <property name="baseSize"> 
    147            <size> 
    148             <width>100</width> 
    149             <height>21</height> 
    150            </size> 
    151           </property> 
    152           <property name="toolTip"> 
    153            <string>Type the Qy value.</string> 
    154           </property> 
    155           <property name="text"> 
    156            <string>0.0</string> 
    157           </property> 
    158          </widget> 
    159         </item> 
    160         <item row="1" column="2"> 
    161          <widget class="QLabel" name="lblUnitQy"> 
    162           <property name="minimumSize"> 
    163            <size> 
    164             <width>18</width> 
    165             <height>21</height> 
    166            </size> 
    167           </property> 
    168           <property name="text"> 
    169            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
    170 &lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    171           </property> 
    172          </widget> 
    173         </item> 
    174        </layout> 
    175       </item> 
    176      </layout> 
    177     </widget> 
    178    </item> 
    179    <item row="2" column="0" rowspan="2"> 
    180     <widget class="QGroupBox" name="groupBox_3"> 
    181      <property name="title"> 
    182       <string>Standard Deviation of the Resolution Distribution</string> 
    183      </property> 
    184      <layout class="QGridLayout" name="gridLayout_4"> 
    185       <property name="margin"> 
    186        <number>6</number> 
    187       </property> 
    188       <item row="0" column="0"> 
    189        <layout class="QGridLayout" name="gridLayout_2"> 
    190         <property name="bottomMargin"> 
    191          <number>5</number> 
    192         </property> 
    193         <item row="0" column="0"> 
    194          <widget class="QLabel" name="label"> 
    195           <property name="minimumSize"> 
    196            <size> 
    197             <width>76</width> 
    198             <height>21</height> 
    199            </size> 
    200           </property> 
    201           <property name="text"> 
    202            <string>Sigma_x:</string> 
    203           </property> 
    204          </widget> 
    205         </item> 
    206         <item row="0" column="1"> 
    207          <widget class="QLineEdit" name="txtSigma_x"> 
    208           <property name="enabled"> 
    209            <bool>true</bool> 
    210           </property> 
    211           <property name="minimumSize"> 
    212            <size> 
    213             <width>75</width> 
    214             <height>21</height> 
    215            </size> 
    216           </property> 
    217           <property name="baseSize"> 
    218            <size> 
    219             <width>100</width> 
    220             <height>21</height> 
    221            </size> 
    222           </property> 
    223           <property name="toolTip"> 
    224            <string>The x component of the geometric resolution, excluding sigma_lamda.</string> 
    225           </property> 
    226           <property name="text"> 
    227            <string>0.0008288</string> 
    228           </property> 
    229           <property name="readOnly"> 
    230            <bool>true</bool> 
    231           </property> 
    232          </widget> 
    233         </item> 
    234         <item row="0" column="2"> 
    235          <widget class="QLabel" name="lblUnitSigmax"> 
    236           <property name="minimumSize"> 
    237            <size> 
    238             <width>16</width> 
    239             <height>21</height> 
    240            </size> 
    241           </property> 
    242           <property name="text"> 
    243            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
    244 &lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    245           </property> 
    246          </widget> 
    247         </item> 
    248         <item row="0" column="3"> 
    249          <spacer name="horizontalSpacer"> 
    250           <property name="orientation"> 
    251            <enum>Qt::Horizontal</enum> 
    252           </property> 
    253           <property name="sizeHint" stdset="0"> 
    254            <size> 
    255             <width>78</width> 
    256             <height>20</height> 
    257            </size> 
    258           </property> 
    259          </spacer> 
    260         </item> 
    261         <item row="0" column="4"> 
    262          <widget class="QLabel" name="label_5"> 
    263           <property name="text"> 
    264            <string>Sigma_y:</string> 
    265           </property> 
    266          </widget> 
    267         </item> 
    268         <item row="0" column="5"> 
    269          <widget class="QLineEdit" name="txtSigma_y"> 
    270           <property name="enabled"> 
    271            <bool>true</bool> 
    272           </property> 
    273           <property name="minimumSize"> 
    274            <size> 
    275             <width>75</width> 
    276             <height>21</height> 
    277            </size> 
    278           </property> 
    279           <property name="baseSize"> 
    280            <size> 
    281             <width>100</width> 
    282             <height>21</height> 
    283            </size> 
    284           </property> 
    285           <property name="toolTip"> 
    286            <string>The y component of the geometric resolution, excluding sigma_lamda.</string> 
    287           </property> 
    288           <property name="text"> 
    289            <string>0.0008288</string> 
    290           </property> 
    291           <property name="readOnly"> 
    292            <bool>true</bool> 
    293           </property> 
    294          </widget> 
    295         </item> 
    296         <item row="0" column="6"> 
    297          <widget class="QLabel" name="lblUnitSigmay"> 
    298           <property name="text"> 
    299            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
    300 &lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    301           </property> 
    302          </widget> 
    303         </item> 
    304         <item row="1" column="0"> 
    305          <widget class="QLabel" name="label_2"> 
    306           <property name="minimumSize"> 
    307            <size> 
    308             <width>76</width> 
    309             <height>21</height> 
    310            </size> 
    311           </property> 
    312           <property name="text"> 
    313            <string>Sigma_lamd:</string> 
    314           </property> 
    315          </widget> 
    316         </item> 
    317         <item row="1" column="2"> 
    318          <widget class="QLabel" name="lblUnitSigmalamd"> 
    319           <property name="minimumSize"> 
    320            <size> 
    321             <width>16</width> 
    322             <height>21</height> 
    323            </size> 
    324           </property> 
    325           <property name="text"> 
    326            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
    327 &lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    328           </property> 
    329          </widget> 
    330         </item> 
    331         <item row="1" column="4"> 
    332          <widget class="QLabel" name="label_6"> 
    333           <property name="minimumSize"> 
    334            <size> 
    335             <width>70</width> 
    336             <height>21</height> 
    337            </size> 
    338           </property> 
    339           <property name="text"> 
    340            <string>(1D) Sigma:</string> 
    341           </property> 
    342          </widget> 
    343         </item> 
    344         <item row="1" column="5"> 
    345          <widget class="QLineEdit" name="txt1DSigma"> 
    346           <property name="enabled"> 
    347            <bool>true</bool> 
    348           </property> 
    349           <property name="minimumSize"> 
    350            <size> 
    351             <width>75</width> 
    352             <height>21</height> 
    353            </size> 
    354           </property> 
    355           <property name="baseSize"> 
    356            <size> 
    357             <width>100</width> 
    358             <height>21</height> 
    359            </size> 
    360           </property> 
    361           <property name="toolTip"> 
    362            <string>Resolution in 1-dimension (for 1D data).</string> 
    363           </property> 
    364           <property name="text"> 
    365            <string>0.0008289</string> 
    366           </property> 
    367           <property name="readOnly"> 
    368            <bool>true</bool> 
    369           </property> 
    370          </widget> 
    371         </item> 
    372         <item row="1" column="6"> 
    373          <widget class="QLabel" name="lblUnit1DSigma"> 
    374           <property name="minimumSize"> 
    375            <size> 
    376             <width>16</width> 
    377             <height>21</height> 
    378            </size> 
    379           </property> 
    380           <property name="text"> 
    381            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
    382 &lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    383           </property> 
    384          </widget> 
    385         </item> 
    386         <item row="1" column="1"> 
    387          <widget class="QLineEdit" name="txtSigma_lamd"> 
    388           <property name="enabled"> 
    389            <bool>true</bool> 
    390           </property> 
    391           <property name="minimumSize"> 
    392            <size> 
    393             <width>75</width> 
    394             <height>21</height> 
    395            </size> 
    396           </property> 
    397           <property name="baseSize"> 
    398            <size> 
    399             <width>100</width> 
    400             <height>21</height> 
    401            </size> 
    402           </property> 
    403           <property name="toolTip"> 
    404            <string>The wavelength contribution in the radial direction. Note: The phi component is always zero.</string> 
    405           </property> 
    406           <property name="text"> 
    407            <string>3.168e-05</string> 
    408           </property> 
    409           <property name="readOnly"> 
    410            <bool>true</bool> 
    411           </property> 
    412          </widget> 
    413         </item> 
    414        </layout> 
    415       </item> 
    416      </layout> 
    417     </widget> 
    418    </item> 
    419    <item row="3" column="2"> 
    420     <spacer name="horizontalSpacer_2"> 
    421      <property name="orientation"> 
    422       <enum>Qt::Horizontal</enum> 
    423      </property> 
    424      <property name="sizeHint" stdset="0"> 
    425       <size> 
    426        <width>40</width> 
    427        <height>20</height> 
    428       </size> 
    429      </property> 
    430     </spacer> 
    431    </item> 
    432    <item row="4" column="0"> 
    433     <layout class="QGridLayout" name="gridLayout_3"> 
    434      <item row="0" column="1"> 
    435       <widget class="QPushButton" name="cmdReset"> 
    436        <property name="minimumSize"> 
    437         <size> 
    438          <width>75</width> 
    439          <height>25</height> 
    440         </size> 
    441        </property> 
    442        <property name="toolTip"> 
    443         <string>Reset to default SAS instrumental parameter</string> 
    444        </property> 
    445        <property name="text"> 
    446         <string>Reset</string> 
    447        </property> 
    448        <property name="autoDefault"> 
    449         <bool>false</bool> 
    450        </property> 
    451       </widget> 
    452      </item> 
    453      <item row="0" column="2"> 
    454       <widget class="QPushButton" name="cmdCompute"> 
    455        <property name="toolTip"> 
    456         <string>Compute the resolution of Q from SAS instrumental parameter</string> 
    457        </property> 
    458        <property name="text"> 
    459         <string>Compute</string> 
    460        </property> 
    461        <property name="autoDefault"> 
    462         <bool>false</bool> 
    463        </property> 
    464       </widget> 
    465      </item> 
    466      <item row="0" column="3"> 
    467       <widget class="QPushButton" name="cmdClose"> 
    468        <property name="minimumSize"> 
    469         <size> 
    470          <width>75</width> 
    471          <height>23</height> 
    472         </size> 
    473        </property> 
    474        <property name="toolTip"> 
    475         <string>Close this window</string> 
    476        </property> 
    477        <property name="text"> 
    478         <string>Close</string> 
    479        </property> 
    480        <property name="autoDefault"> 
    481         <bool>false</bool> 
    482        </property> 
    483       </widget> 
    484      </item> 
    485      <item row="0" column="4"> 
    486       <widget class="QPushButton" name="cmdHelp"> 
    487        <property name="minimumSize"> 
    488         <size> 
    489          <width>75</width> 
    490          <height>23</height> 
    491         </size> 
    492        </property> 
    493        <property name="toolTip"> 
    494         <string>Help on using the Resolution Calculator</string> 
    495        </property> 
    496        <property name="text"> 
    497         <string>Help</string> 
    498        </property> 
    499        <property name="autoDefault"> 
    500         <bool>false</bool> 
    501        </property> 
    502       </widget> 
    503      </item> 
    504      <item row="0" column="0"> 
    505       <spacer name="horizontalSpacer_3"> 
    506        <property name="orientation"> 
    507         <enum>Qt::Horizontal</enum> 
    508        </property> 
    509        <property name="sizeHint" stdset="0"> 
    510         <size> 
    511          <width>40</width> 
    512          <height>20</height> 
    513         </size> 
    514        </property> 
    515       </spacer> 
    516      </item> 
    517     </layout> 
    518    </item> 
    519    <item row="0" column="0"> 
    520     <widget class="QGroupBox" name="groupBox"> 
    521      <property name="title"> 
    522       <string>Instrumental Parameters</string> 
    523      </property> 
    524      <layout class="QGridLayout" name="gridLayout_7"> 
    525       <item row="0" column="0"> 
    52664       <layout class="QGridLayout" name="gridLayout_5"> 
    52765        <item row="0" column="0"> 
    52866         <widget class="QLabel" name="label_26"> 
     67          <property name="minimumSize"> 
     68           <size> 
     69            <width>26</width> 
     70            <height>17</height> 
     71           </size> 
     72          </property> 
    52973          <property name="text"> 
    53074           <string>Source:</string> 
     
    53478        <item row="0" column="1"> 
    53579         <widget class="QComboBox" name="cbSource"> 
    536           <property name="minimumSize"> 
    537            <size> 
    538             <width>80</width> 
     80          <property name="sizePolicy"> 
     81           <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> 
     82            <horstretch>0</horstretch> 
     83            <verstretch>0</verstretch> 
     84           </sizepolicy> 
     85          </property> 
     86          <property name="minimumSize"> 
     87           <size> 
     88            <width>85</width> 
    53989            <height>26</height> 
    54090           </size> 
     
    578128         </widget> 
    579129        </item> 
    580         <item row="0" column="2"> 
     130        <item row="0" column="2" colspan="2"> 
    581131         <widget class="QComboBox" name="cbWaveColor"> 
    582132          <property name="sizePolicy"> 
     
    589139           <size> 
    590140            <width>100</width> 
     141            <height>26</height> 
     142           </size> 
     143          </property> 
     144          <property name="maximumSize"> 
     145           <size> 
     146            <width>150</width> 
    591147            <height>26</height> 
    592148           </size> 
     
    608164          <property name="minimumSize"> 
    609165           <size> 
     166            <width>70</width> 
     167            <height>20</height> 
     168           </size> 
     169          </property> 
     170          <property name="baseSize"> 
     171           <size> 
    610172            <width>80</width> 
    611173            <height>20</height> 
    612174           </size> 
    613175          </property> 
    614           <property name="baseSize"> 
    615            <size> 
    616             <width>80</width> 
    617             <height>20</height> 
    618            </size> 
    619           </property> 
    620           <property name="text"> 
    621            <string>Spectrum</string> 
    622           </property> 
    623          </widget> 
    624         </item> 
    625         <item row="1" column="2"> 
     176          <property name="text"> 
     177           <string>Spectrum:</string> 
     178          </property> 
     179         </widget> 
     180        </item> 
     181        <item row="1" column="2" colspan="2"> 
    626182         <widget class="QComboBox" name="cbCustomSpectrum"> 
    627183          <property name="sizePolicy"> 
     
    633189          <property name="minimumSize"> 
    634190           <size> 
    635             <width>100</width> 
     191            <width>90</width> 
     192            <height>26</height> 
     193           </size> 
     194          </property> 
     195          <property name="maximumSize"> 
     196           <size> 
     197            <width>150</width> 
    636198            <height>26</height> 
    637199           </size> 
     
    652214         </widget> 
    653215        </item> 
     216        <item row="2" column="0" colspan="2"> 
     217         <widget class="QLabel" name="label_27"> 
     218          <property name="minimumSize"> 
     219           <size> 
     220            <width>84</width> 
     221            <height>20</height> 
     222           </size> 
     223          </property> 
     224          <property name="text"> 
     225           <string>Wavelength:</string> 
     226          </property> 
     227         </widget> 
     228        </item> 
     229        <item row="2" column="3"> 
     230         <widget class="QLineEdit" name="txtWavelength"> 
     231          <property name="sizePolicy"> 
     232           <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 
     233            <horstretch>0</horstretch> 
     234            <verstretch>0</verstretch> 
     235           </sizepolicy> 
     236          </property> 
     237          <property name="minimumSize"> 
     238           <size> 
     239            <width>100</width> 
     240            <height>23</height> 
     241           </size> 
     242          </property> 
     243          <property name="baseSize"> 
     244           <size> 
     245            <width>100</width> 
     246            <height>20</height> 
     247           </size> 
     248          </property> 
     249          <property name="focusPolicy"> 
     250           <enum>Qt::StrongFocus</enum> 
     251          </property> 
     252          <property name="toolTip"> 
     253           <string>Wavelength of the Neutrons.</string> 
     254          </property> 
     255          <property name="text"> 
     256           <string>6.0</string> 
     257          </property> 
     258          <property name="echoMode"> 
     259           <enum>QLineEdit::Normal</enum> 
     260          </property> 
     261         </widget> 
     262        </item> 
     263        <item row="2" column="4"> 
     264         <widget class="QLabel" name="lblUnitWavelength"> 
     265          <property name="minimumSize"> 
     266           <size> 
     267            <width>22</width> 
     268            <height>21</height> 
     269           </size> 
     270          </property> 
     271          <property name="text"> 
     272           <string>à
     273</string> 
     274          </property> 
     275          <property name="alignment"> 
     276           <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> 
     277          </property> 
     278         </widget> 
     279        </item> 
     280        <item row="3" column="0" colspan="2"> 
     281         <widget class="QLabel" name="label_28"> 
     282          <property name="minimumSize"> 
     283           <size> 
     284            <width>134</width> 
     285            <height>20</height> 
     286           </size> 
     287          </property> 
     288          <property name="text"> 
     289           <string>Wavelength Spread:</string> 
     290          </property> 
     291         </widget> 
     292        </item> 
     293        <item row="3" column="3"> 
     294         <widget class="QLineEdit" name="txtWavelengthSpread"> 
     295          <property name="minimumSize"> 
     296           <size> 
     297            <width>100</width> 
     298            <height>23</height> 
     299           </size> 
     300          </property> 
     301          <property name="baseSize"> 
     302           <size> 
     303            <width>100</width> 
     304            <height>20</height> 
     305           </size> 
     306          </property> 
     307          <property name="focusPolicy"> 
     308           <enum>Qt::StrongFocus</enum> 
     309          </property> 
     310          <property name="toolTip"> 
     311           <string>Wavelength Spread of Neutrons.</string> 
     312          </property> 
     313          <property name="text"> 
     314           <string>0.125</string> 
     315          </property> 
     316         </widget> 
     317        </item> 
     318        <item row="4" column="0" colspan="2"> 
     319         <widget class="QLabel" name="label_29"> 
     320          <property name="minimumSize"> 
     321           <size> 
     322            <width>143</width> 
     323            <height>20</height> 
     324           </size> 
     325          </property> 
     326          <property name="text"> 
     327           <string>Source Aperture Size:</string> 
     328          </property> 
     329         </widget> 
     330        </item> 
     331        <item row="4" column="3"> 
     332         <widget class="QLineEdit" name="txtSourceApertureSize"> 
     333          <property name="sizePolicy"> 
     334           <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 
     335            <horstretch>0</horstretch> 
     336            <verstretch>0</verstretch> 
     337           </sizepolicy> 
     338          </property> 
     339          <property name="minimumSize"> 
     340           <size> 
     341            <width>100</width> 
     342            <height>23</height> 
     343           </size> 
     344          </property> 
     345          <property name="baseSize"> 
     346           <size> 
     347            <width>100</width> 
     348            <height>20</height> 
     349           </size> 
     350          </property> 
     351          <property name="focusPolicy"> 
     352           <enum>Qt::StrongFocus</enum> 
     353          </property> 
     354          <property name="toolTip"> 
     355           <string>Source Aperture Size.</string> 
     356          </property> 
     357          <property name="text"> 
     358           <string>3.81</string> 
     359          </property> 
     360         </widget> 
     361        </item> 
     362        <item row="4" column="4"> 
     363         <widget class="QLabel" name="label_39"> 
     364          <property name="minimumSize"> 
     365           <size> 
     366            <width>22</width> 
     367            <height>21</height> 
     368           </size> 
     369          </property> 
     370          <property name="text"> 
     371           <string>cm</string> 
     372          </property> 
     373          <property name="alignment"> 
     374           <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> 
     375          </property> 
     376         </widget> 
     377        </item> 
     378        <item row="5" column="0" colspan="2"> 
     379         <widget class="QLabel" name="label_30"> 
     380          <property name="minimumSize"> 
     381           <size> 
     382            <width>147</width> 
     383            <height>20</height> 
     384           </size> 
     385          </property> 
     386          <property name="text"> 
     387           <string>Sample Aperture Size:</string> 
     388          </property> 
     389         </widget> 
     390        </item> 
     391        <item row="5" column="3"> 
     392         <widget class="QLineEdit" name="txtSampleApertureSize"> 
     393          <property name="sizePolicy"> 
     394           <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 
     395            <horstretch>0</horstretch> 
     396            <verstretch>0</verstretch> 
     397           </sizepolicy> 
     398          </property> 
     399          <property name="minimumSize"> 
     400           <size> 
     401            <width>100</width> 
     402            <height>23</height> 
     403           </size> 
     404          </property> 
     405          <property name="baseSize"> 
     406           <size> 
     407            <width>100</width> 
     408            <height>20</height> 
     409           </size> 
     410          </property> 
     411          <property name="focusPolicy"> 
     412           <enum>Qt::StrongFocus</enum> 
     413          </property> 
     414          <property name="toolTip"> 
     415           <string>Sample Aperture Size.</string> 
     416          </property> 
     417          <property name="text"> 
     418           <string>1.27</string> 
     419          </property> 
     420         </widget> 
     421        </item> 
     422        <item row="5" column="4"> 
     423         <widget class="QLabel" name="label_40"> 
     424          <property name="sizePolicy"> 
     425           <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 
     426            <horstretch>0</horstretch> 
     427            <verstretch>0</verstretch> 
     428           </sizepolicy> 
     429          </property> 
     430          <property name="minimumSize"> 
     431           <size> 
     432            <width>22</width> 
     433            <height>21</height> 
     434           </size> 
     435          </property> 
     436          <property name="text"> 
     437           <string>cm</string> 
     438          </property> 
     439         </widget> 
     440        </item> 
     441        <item row="6" column="0" colspan="3"> 
     442         <widget class="QLabel" name="label_31"> 
     443          <property name="minimumSize"> 
     444           <size> 
     445            <width>220</width> 
     446            <height>20</height> 
     447           </size> 
     448          </property> 
     449          <property name="text"> 
     450           <string>Source to Sample Aperture Distance:</string> 
     451          </property> 
     452         </widget> 
     453        </item> 
     454        <item row="6" column="3"> 
     455         <widget class="QLineEdit" name="txtSource2SampleDistance"> 
     456          <property name="sizePolicy"> 
     457           <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 
     458            <horstretch>0</horstretch> 
     459            <verstretch>0</verstretch> 
     460           </sizepolicy> 
     461          </property> 
     462          <property name="minimumSize"> 
     463           <size> 
     464            <width>100</width> 
     465            <height>23</height> 
     466           </size> 
     467          </property> 
     468          <property name="baseSize"> 
     469           <size> 
     470            <width>100</width> 
     471            <height>20</height> 
     472           </size> 
     473          </property> 
     474          <property name="focusPolicy"> 
     475           <enum>Qt::StrongFocus</enum> 
     476          </property> 
     477          <property name="toolTip"> 
     478           <string>Source to Sample Aperture Distance.</string> 
     479          </property> 
     480          <property name="text"> 
     481           <string>1627</string> 
     482          </property> 
     483         </widget> 
     484        </item> 
     485        <item row="6" column="4"> 
     486         <widget class="QLabel" name="label_41"> 
     487          <property name="minimumSize"> 
     488           <size> 
     489            <width>22</width> 
     490            <height>21</height> 
     491           </size> 
     492          </property> 
     493          <property name="text"> 
     494           <string>cm</string> 
     495          </property> 
     496         </widget> 
     497        </item> 
     498        <item row="7" column="0" colspan="3"> 
     499         <widget class="QLabel" name="label_32"> 
     500          <property name="minimumSize"> 
     501           <size> 
     502            <width>225</width> 
     503            <height>20</height> 
     504           </size> 
     505          </property> 
     506          <property name="text"> 
     507           <string>Sample Aperture to Detector Distance:</string> 
     508          </property> 
     509         </widget> 
     510        </item> 
     511        <item row="7" column="3"> 
     512         <widget class="QLineEdit" name="txtSample2DetectorDistance"> 
     513          <property name="minimumSize"> 
     514           <size> 
     515            <width>100</width> 
     516            <height>23</height> 
     517           </size> 
     518          </property> 
     519          <property name="baseSize"> 
     520           <size> 
     521            <width>100</width> 
     522            <height>20</height> 
     523           </size> 
     524          </property> 
     525          <property name="toolTip"> 
     526           <string>Sample Aperture to Detector Distance.</string> 
     527          </property> 
     528          <property name="text"> 
     529           <string>1000</string> 
     530          </property> 
     531         </widget> 
     532        </item> 
     533        <item row="7" column="4"> 
     534         <widget class="QLabel" name="label_42"> 
     535          <property name="minimumSize"> 
     536           <size> 
     537            <width>22</width> 
     538            <height>21</height> 
     539           </size> 
     540          </property> 
     541          <property name="text"> 
     542           <string>cm</string> 
     543          </property> 
     544         </widget> 
     545        </item> 
     546        <item row="8" column="0" colspan="2"> 
     547         <widget class="QLabel" name="label_33"> 
     548          <property name="minimumSize"> 
     549           <size> 
     550            <width>100</width> 
     551            <height>20</height> 
     552           </size> 
     553          </property> 
     554          <property name="text"> 
     555           <string>Sample Offset:</string> 
     556          </property> 
     557         </widget> 
     558        </item> 
     559        <item row="8" column="3"> 
     560         <widget class="QLineEdit" name="txtSampleOffset"> 
     561          <property name="minimumSize"> 
     562           <size> 
     563            <width>100</width> 
     564            <height>23</height> 
     565           </size> 
     566          </property> 
     567          <property name="baseSize"> 
     568           <size> 
     569            <width>100</width> 
     570            <height>20</height> 
     571           </size> 
     572          </property> 
     573          <property name="toolTip"> 
     574           <string>Sample Offset.</string> 
     575          </property> 
     576          <property name="text"> 
     577           <string>0</string> 
     578          </property> 
     579         </widget> 
     580        </item> 
     581        <item row="8" column="4"> 
     582         <widget class="QLabel" name="label_43"> 
     583          <property name="minimumSize"> 
     584           <size> 
     585            <width>22</width> 
     586            <height>21</height> 
     587           </size> 
     588          </property> 
     589          <property name="text"> 
     590           <string>cm</string> 
     591          </property> 
     592         </widget> 
     593        </item> 
     594        <item row="9" column="0" colspan="3"> 
     595         <widget class="QLabel" name="label_34"> 
     596          <property name="minimumSize"> 
     597           <size> 
     598            <width>175</width> 
     599            <height>20</height> 
     600           </size> 
     601          </property> 
     602          <property name="text"> 
     603           <string>Number of Pixels on Detector:</string> 
     604          </property> 
     605         </widget> 
     606        </item> 
     607        <item row="9" column="3"> 
     608         <widget class="QLineEdit" name="txtDetectorSize"> 
     609          <property name="minimumSize"> 
     610           <size> 
     611            <width>100</width> 
     612            <height>23</height> 
     613           </size> 
     614          </property> 
     615          <property name="baseSize"> 
     616           <size> 
     617            <width>100</width> 
     618            <height>20</height> 
     619           </size> 
     620          </property> 
     621          <property name="toolTip"> 
     622           <string>Number of Pixels on Detector.</string> 
     623          </property> 
     624          <property name="text"> 
     625           <string>128, 128</string> 
     626          </property> 
     627         </widget> 
     628        </item> 
     629        <item row="10" column="0" colspan="2"> 
     630         <widget class="QLabel" name="label_35"> 
     631          <property name="minimumSize"> 
     632           <size> 
     633            <width>129</width> 
     634            <height>20</height> 
     635           </size> 
     636          </property> 
     637          <property name="text"> 
     638           <string>Detector Pixel Size:</string> 
     639          </property> 
     640         </widget> 
     641        </item> 
     642        <item row="10" column="3"> 
     643         <widget class="QLineEdit" name="txtDetectorPixSize"> 
     644          <property name="minimumSize"> 
     645           <size> 
     646            <width>100</width> 
     647            <height>23</height> 
     648           </size> 
     649          </property> 
     650          <property name="baseSize"> 
     651           <size> 
     652            <width>100</width> 
     653            <height>20</height> 
     654           </size> 
     655          </property> 
     656          <property name="toolTip"> 
     657           <string>Detector Pixel Size.</string> 
     658          </property> 
     659          <property name="text"> 
     660           <string>0.5, 0.5</string> 
     661          </property> 
     662         </widget> 
     663        </item> 
     664        <item row="10" column="4"> 
     665         <widget class="QLabel" name="label_45"> 
     666          <property name="minimumSize"> 
     667           <size> 
     668            <width>22</width> 
     669            <height>21</height> 
     670           </size> 
     671          </property> 
     672          <property name="text"> 
     673           <string>cm</string> 
     674          </property> 
     675         </widget> 
     676        </item> 
    654677       </layout> 
    655       </item> 
    656       <item row="1" column="0"> 
    657        <widget class="QLabel" name="label_27"> 
    658         <property name="text"> 
    659          <string>Wavelength:</string> 
    660         </property> 
    661        </widget> 
    662       </item> 
    663       <item row="1" column="1"> 
    664        <widget class="QLineEdit" name="txtWavelength"> 
    665         <property name="sizePolicy"> 
    666          <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 
    667           <horstretch>0</horstretch> 
    668           <verstretch>0</verstretch> 
    669          </sizepolicy> 
    670         </property> 
    671         <property name="minimumSize"> 
    672          <size> 
    673           <width>75</width> 
    674           <height>20</height> 
    675          </size> 
    676         </property> 
    677         <property name="baseSize"> 
    678          <size> 
    679           <width>100</width> 
    680           <height>20</height> 
    681          </size> 
    682         </property> 
    683         <property name="focusPolicy"> 
    684          <enum>Qt::StrongFocus</enum> 
    685         </property> 
    686         <property name="toolTip"> 
    687          <string>Wavelength of the Neutrons.</string> 
    688         </property> 
    689         <property name="text"> 
    690          <string>6.0</string> 
    691         </property> 
    692         <property name="echoMode"> 
    693          <enum>QLineEdit::Normal</enum> 
    694         </property> 
    695        </widget> 
    696       </item> 
    697       <item row="1" column="2"> 
    698        <widget class="QLabel" name="lblUnitWavelength"> 
    699         <property name="minimumSize"> 
    700          <size> 
    701           <width>18</width> 
    702           <height>21</height> 
    703          </size> 
    704         </property> 
    705         <property name="text"> 
    706          <string>à
    707 </string> 
    708         </property> 
    709        </widget> 
    710       </item> 
    711       <item row="2" column="0"> 
    712        <widget class="QLabel" name="label_28"> 
    713         <property name="text"> 
    714          <string>Wavelength Spread:</string> 
    715         </property> 
    716        </widget> 
    717       </item> 
    718       <item row="2" column="1"> 
    719        <widget class="QLineEdit" name="txtWavelengthSpread"> 
    720         <property name="minimumSize"> 
    721          <size> 
    722           <width>75</width> 
    723           <height>20</height> 
    724          </size> 
    725         </property> 
    726         <property name="baseSize"> 
    727          <size> 
    728           <width>100</width> 
    729           <height>20</height> 
    730          </size> 
    731         </property> 
    732         <property name="focusPolicy"> 
    733          <enum>Qt::StrongFocus</enum> 
    734         </property> 
    735         <property name="toolTip"> 
    736          <string>Wavelength Spread of Neutrons.</string> 
    737         </property> 
    738         <property name="text"> 
    739          <string>0.125</string> 
    740         </property> 
    741        </widget> 
    742       </item> 
    743       <item row="3" column="0"> 
    744        <widget class="QLabel" name="label_29"> 
    745         <property name="text"> 
    746          <string>Source Aperture Size:</string> 
    747         </property> 
    748        </widget> 
    749       </item> 
    750       <item row="3" column="1"> 
    751        <widget class="QLineEdit" name="txtSourceApertureSize"> 
    752         <property name="sizePolicy"> 
    753          <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 
    754           <horstretch>0</horstretch> 
    755           <verstretch>0</verstretch> 
    756          </sizepolicy> 
    757         </property> 
    758         <property name="minimumSize"> 
    759          <size> 
    760           <width>75</width> 
    761           <height>20</height> 
    762          </size> 
    763         </property> 
    764         <property name="baseSize"> 
    765          <size> 
    766           <width>100</width> 
    767           <height>20</height> 
    768          </size> 
    769         </property> 
    770         <property name="focusPolicy"> 
    771          <enum>Qt::StrongFocus</enum> 
    772         </property> 
    773         <property name="toolTip"> 
    774          <string>Source Aperture Size.</string> 
    775         </property> 
    776         <property name="text"> 
    777          <string>3.81</string> 
    778         </property> 
    779        </widget> 
    780       </item> 
    781       <item row="3" column="2"> 
    782        <widget class="QLabel" name="label_39"> 
    783         <property name="minimumSize"> 
    784          <size> 
    785           <width>18</width> 
    786           <height>21</height> 
    787          </size> 
    788         </property> 
    789         <property name="text"> 
    790          <string>cm</string> 
    791         </property> 
    792        </widget> 
    793       </item> 
    794       <item row="4" column="0"> 
    795        <widget class="QLabel" name="label_30"> 
    796         <property name="text"> 
    797          <string>Sample Aperture Size:</string> 
    798         </property> 
    799        </widget> 
    800       </item> 
    801       <item row="4" column="1"> 
    802        <widget class="QLineEdit" name="txtSampleApertureSize"> 
    803         <property name="sizePolicy"> 
    804          <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 
    805           <horstretch>0</horstretch> 
    806           <verstretch>0</verstretch> 
    807          </sizepolicy> 
    808         </property> 
    809         <property name="minimumSize"> 
    810          <size> 
    811           <width>75</width> 
    812           <height>23</height> 
    813          </size> 
    814         </property> 
    815         <property name="baseSize"> 
    816          <size> 
    817           <width>100</width> 
    818           <height>20</height> 
    819          </size> 
    820         </property> 
    821         <property name="focusPolicy"> 
    822          <enum>Qt::StrongFocus</enum> 
    823         </property> 
    824         <property name="toolTip"> 
    825          <string>Sample Aperture Size.</string> 
    826         </property> 
    827         <property name="text"> 
    828          <string>1.27</string> 
    829         </property> 
    830        </widget> 
    831       </item> 
    832       <item row="4" column="2"> 
    833        <widget class="QLabel" name="label_40"> 
    834         <property name="sizePolicy"> 
    835          <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 
    836           <horstretch>0</horstretch> 
    837           <verstretch>0</verstretch> 
    838          </sizepolicy> 
    839         </property> 
    840         <property name="minimumSize"> 
    841          <size> 
    842           <width>18</width> 
    843           <height>21</height> 
    844          </size> 
    845         </property> 
    846         <property name="text"> 
    847          <string>cm</string> 
    848         </property> 
    849        </widget> 
    850       </item> 
    851       <item row="5" column="0"> 
    852        <widget class="QLabel" name="label_31"> 
    853         <property name="text"> 
    854          <string>Source to Sample Aperture Distance:</string> 
    855         </property> 
    856        </widget> 
    857       </item> 
    858       <item row="5" column="1"> 
    859        <widget class="QLineEdit" name="txtSource2SampleDistance"> 
    860         <property name="sizePolicy"> 
    861          <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> 
    862           <horstretch>0</horstretch> 
    863           <verstretch>0</verstretch> 
    864          </sizepolicy> 
    865         </property> 
    866         <property name="minimumSize"> 
    867          <size> 
    868           <width>75</width> 
    869           <height>20</height> 
    870          </size> 
    871         </property> 
    872         <property name="baseSize"> 
    873          <size> 
    874           <width>100</width> 
    875           <height>20</height> 
    876          </size> 
    877         </property> 
    878         <property name="focusPolicy"> 
    879          <enum>Qt::StrongFocus</enum> 
    880         </property> 
    881         <property name="toolTip"> 
    882          <string>Source to Sample Aperture Distance.</string> 
    883         </property> 
    884         <property name="text"> 
    885          <string>1627</string> 
    886         </property> 
    887        </widget> 
    888       </item> 
    889       <item row="5" column="2"> 
    890        <widget class="QLabel" name="label_41"> 
    891         <property name="minimumSize"> 
    892          <size> 
    893           <width>18</width> 
    894           <height>21</height> 
    895          </size> 
    896         </property> 
    897         <property name="text"> 
    898          <string>cm</string> 
    899         </property> 
    900        </widget> 
    901       </item> 
    902       <item row="6" column="0"> 
    903        <widget class="QLabel" name="label_32"> 
    904         <property name="text"> 
    905          <string>Sample Aperture to Detector Distance:</string> 
    906         </property> 
    907        </widget> 
    908       </item> 
    909       <item row="6" column="1"> 
    910        <widget class="QLineEdit" name="txtSample2DetectorDistance"> 
    911         <property name="minimumSize"> 
    912          <size> 
    913           <width>75</width> 
    914           <height>20</height> 
    915          </size> 
    916         </property> 
    917         <property name="baseSize"> 
    918          <size> 
    919           <width>100</width> 
    920           <height>20</height> 
    921          </size> 
    922         </property> 
    923         <property name="toolTip"> 
    924          <string>Sample Aperture to Detector Distance.</string> 
    925         </property> 
    926         <property name="text"> 
    927          <string>1000</string> 
    928         </property> 
    929        </widget> 
    930       </item> 
    931       <item row="6" column="2"> 
    932        <widget class="QLabel" name="label_42"> 
    933         <property name="minimumSize"> 
    934          <size> 
    935           <width>18</width> 
    936           <height>21</height> 
    937          </size> 
    938         </property> 
    939         <property name="text"> 
    940          <string>cm</string> 
    941         </property> 
    942        </widget> 
    943       </item> 
    944       <item row="7" column="0"> 
    945        <widget class="QLabel" name="label_33"> 
    946         <property name="text"> 
    947          <string>Sample Offset:</string> 
    948         </property> 
    949        </widget> 
    950       </item> 
    951       <item row="7" column="1"> 
    952        <widget class="QLineEdit" name="txtSampleOffset"> 
    953         <property name="minimumSize"> 
    954          <size> 
    955           <width>75</width> 
    956           <height>20</height> 
    957          </size> 
    958         </property> 
    959         <property name="baseSize"> 
    960          <size> 
    961           <width>100</width> 
    962           <height>20</height> 
    963          </size> 
    964         </property> 
    965         <property name="toolTip"> 
    966          <string>Sample Offset.</string> 
    967         </property> 
    968         <property name="text"> 
    969          <string>0</string> 
    970         </property> 
    971        </widget> 
    972       </item> 
    973       <item row="7" column="2"> 
    974        <widget class="QLabel" name="label_43"> 
    975         <property name="minimumSize"> 
    976          <size> 
    977           <width>18</width> 
    978           <height>21</height> 
    979          </size> 
    980         </property> 
    981         <property name="text"> 
    982          <string>cm</string> 
    983         </property> 
    984        </widget> 
    985       </item> 
    986       <item row="8" column="0"> 
    987        <widget class="QLabel" name="label_34"> 
    988         <property name="text"> 
    989          <string>Number of Pixels on Detector:</string> 
    990         </property> 
    991        </widget> 
    992       </item> 
    993       <item row="8" column="1"> 
    994        <widget class="QLineEdit" name="txtDetectorSize"> 
    995         <property name="minimumSize"> 
    996          <size> 
    997           <width>75</width> 
    998           <height>20</height> 
    999          </size> 
    1000         </property> 
    1001         <property name="baseSize"> 
    1002          <size> 
    1003           <width>100</width> 
    1004           <height>20</height> 
    1005          </size> 
    1006         </property> 
    1007         <property name="toolTip"> 
    1008          <string>Number of Pixels on Detector.</string> 
    1009         </property> 
    1010         <property name="text"> 
    1011          <string>128, 128</string> 
    1012         </property> 
    1013        </widget> 
    1014       </item> 
    1015       <item row="9" column="0"> 
    1016        <widget class="QLabel" name="label_35"> 
    1017         <property name="text"> 
    1018          <string>Detector Pixel Size:</string> 
    1019         </property> 
    1020        </widget> 
    1021       </item> 
    1022       <item row="9" column="1"> 
    1023        <widget class="QLineEdit" name="txtDetectorPixSize"> 
    1024         <property name="minimumSize"> 
    1025          <size> 
    1026           <width>75</width> 
    1027           <height>20</height> 
    1028          </size> 
    1029         </property> 
    1030         <property name="baseSize"> 
    1031          <size> 
    1032           <width>100</width> 
    1033           <height>20</height> 
    1034          </size> 
    1035         </property> 
    1036         <property name="toolTip"> 
    1037          <string>Detector Pixel Size.</string> 
    1038         </property> 
    1039         <property name="text"> 
    1040          <string>0.5, 0.5</string> 
    1041         </property> 
    1042        </widget> 
    1043       </item> 
    1044       <item row="9" column="2"> 
    1045        <widget class="QLabel" name="label_45"> 
    1046         <property name="minimumSize"> 
    1047          <size> 
    1048           <width>18</width> 
    1049           <height>21</height> 
    1050          </size> 
    1051         </property> 
    1052         <property name="text"> 
    1053          <string>cm</string> 
    1054         </property> 
    1055        </widget> 
    1056678      </item> 
    1057679     </layout> 
    1058680    </widget> 
     681   </item> 
     682   <item row="0" column="1" rowspan="7"> 
     683    <widget class="Line" name="line_4"> 
     684     <property name="orientation"> 
     685      <enum>Qt::Vertical</enum> 
     686     </property> 
     687    </widget> 
     688   </item> 
     689   <item row="0" column="2" rowspan="3"> 
     690    <widget class="QGraphicsView" name="graphicsView"> 
     691     <property name="sizePolicy"> 
     692      <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> 
     693       <horstretch>0</horstretch> 
     694       <verstretch>0</verstretch> 
     695      </sizepolicy> 
     696     </property> 
     697     <property name="minimumSize"> 
     698      <size> 
     699       <width>415</width> 
     700       <height>415</height> 
     701      </size> 
     702     </property> 
     703    </widget> 
     704   </item> 
     705   <item row="1" column="0"> 
     706    <widget class="Line" name="line"> 
     707     <property name="orientation"> 
     708      <enum>Qt::Horizontal</enum> 
     709     </property> 
     710    </widget> 
     711   </item> 
     712   <item row="2" column="0" rowspan="3"> 
     713    <widget class="QGroupBox" name="groupBox_2"> 
     714     <property name="minimumSize"> 
     715      <size> 
     716       <width>400</width> 
     717       <height>95</height> 
     718      </size> 
     719     </property> 
     720     <property name="maximumSize"> 
     721      <size> 
     722       <width>450</width> 
     723       <height>110</height> 
     724      </size> 
     725     </property> 
     726     <property name="title"> 
     727      <string>Q Location of the Estimation</string> 
     728     </property> 
     729     <layout class="QGridLayout" name="gridLayout_9"> 
     730      <property name="margin"> 
     731       <number>6</number> 
     732      </property> 
     733      <item row="0" column="0"> 
     734       <layout class="QGridLayout" name="gridLayout"> 
     735        <item row="0" column="0"> 
     736         <widget class="QLabel" name="label_21"> 
     737          <property name="minimumSize"> 
     738           <size> 
     739            <width>21</width> 
     740            <height>21</height> 
     741           </size> 
     742          </property> 
     743          <property name="text"> 
     744           <string>Qx:</string> 
     745          </property> 
     746         </widget> 
     747        </item> 
     748        <item row="0" column="1"> 
     749         <widget class="QLineEdit" name="txtQx"> 
     750          <property name="minimumSize"> 
     751           <size> 
     752            <width>100</width> 
     753            <height>21</height> 
     754           </size> 
     755          </property> 
     756          <property name="baseSize"> 
     757           <size> 
     758            <width>100</width> 
     759            <height>21</height> 
     760           </size> 
     761          </property> 
     762          <property name="toolTip"> 
     763           <string>Type the Qx value.</string> 
     764          </property> 
     765          <property name="text"> 
     766           <string>0.0</string> 
     767          </property> 
     768         </widget> 
     769        </item> 
     770        <item row="0" column="2"> 
     771         <widget class="QLabel" name="lblUnitQx"> 
     772          <property name="minimumSize"> 
     773           <size> 
     774            <width>18</width> 
     775            <height>21</height> 
     776           </size> 
     777          </property> 
     778          <property name="text"> 
     779           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
     780&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     781          </property> 
     782         </widget> 
     783        </item> 
     784        <item row="1" column="0"> 
     785         <widget class="QLabel" name="label_22"> 
     786          <property name="minimumSize"> 
     787           <size> 
     788            <width>21</width> 
     789            <height>21</height> 
     790           </size> 
     791          </property> 
     792          <property name="text"> 
     793           <string>Qy:</string> 
     794          </property> 
     795         </widget> 
     796        </item> 
     797        <item row="1" column="1"> 
     798         <widget class="QLineEdit" name="txtQy"> 
     799          <property name="minimumSize"> 
     800           <size> 
     801            <width>100</width> 
     802            <height>21</height> 
     803           </size> 
     804          </property> 
     805          <property name="baseSize"> 
     806           <size> 
     807            <width>100</width> 
     808            <height>21</height> 
     809           </size> 
     810          </property> 
     811          <property name="toolTip"> 
     812           <string>Type the Qy value.</string> 
     813          </property> 
     814          <property name="text"> 
     815           <string>0.0</string> 
     816          </property> 
     817         </widget> 
     818        </item> 
     819        <item row="1" column="2"> 
     820         <widget class="QLabel" name="lblUnitQy"> 
     821          <property name="minimumSize"> 
     822           <size> 
     823            <width>18</width> 
     824            <height>21</height> 
     825           </size> 
     826          </property> 
     827          <property name="text"> 
     828           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
     829&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     830          </property> 
     831         </widget> 
     832        </item> 
     833       </layout> 
     834      </item> 
     835     </layout> 
     836    </widget> 
     837   </item> 
     838   <item row="3" column="2"> 
     839    <spacer name="verticalSpacer_2"> 
     840     <property name="orientation"> 
     841      <enum>Qt::Vertical</enum> 
     842     </property> 
     843     <property name="sizeHint" stdset="0"> 
     844      <size> 
     845       <width>20</width> 
     846       <height>40</height> 
     847      </size> 
     848     </property> 
     849    </spacer> 
     850   </item> 
     851   <item row="4" column="2" rowspan="3"> 
     852    <widget class="QGroupBox" name="groupBox_3"> 
     853     <property name="title"> 
     854      <string>Standard Deviation of the Resolution Distribution</string> 
     855     </property> 
     856     <layout class="QGridLayout" name="gridLayout_4"> 
     857      <property name="margin"> 
     858       <number>6</number> 
     859      </property> 
     860      <item row="0" column="0"> 
     861       <layout class="QGridLayout" name="gridLayout_2"> 
     862        <item row="0" column="1"> 
     863         <widget class="QLineEdit" name="txtSigma_x"> 
     864          <property name="enabled"> 
     865           <bool>true</bool> 
     866          </property> 
     867          <property name="minimumSize"> 
     868           <size> 
     869            <width>80</width> 
     870            <height>23</height> 
     871           </size> 
     872          </property> 
     873          <property name="baseSize"> 
     874           <size> 
     875            <width>100</width> 
     876            <height>21</height> 
     877           </size> 
     878          </property> 
     879          <property name="toolTip"> 
     880           <string>The x component of the geometric resolution, excluding sigma_lamda.</string> 
     881          </property> 
     882          <property name="text"> 
     883           <string>0.0008288</string> 
     884          </property> 
     885          <property name="readOnly"> 
     886           <bool>true</bool> 
     887          </property> 
     888         </widget> 
     889        </item> 
     890        <item row="0" column="5"> 
     891         <widget class="QLineEdit" name="txtSigma_y"> 
     892          <property name="enabled"> 
     893           <bool>true</bool> 
     894          </property> 
     895          <property name="minimumSize"> 
     896           <size> 
     897            <width>80</width> 
     898            <height>23</height> 
     899           </size> 
     900          </property> 
     901          <property name="baseSize"> 
     902           <size> 
     903            <width>100</width> 
     904            <height>21</height> 
     905           </size> 
     906          </property> 
     907          <property name="toolTip"> 
     908           <string>The y component of the geometric resolution, excluding sigma_lamda.</string> 
     909          </property> 
     910          <property name="text"> 
     911           <string>0.0008288</string> 
     912          </property> 
     913          <property name="readOnly"> 
     914           <bool>true</bool> 
     915          </property> 
     916         </widget> 
     917        </item> 
     918        <item row="1" column="0"> 
     919         <widget class="QLabel" name="label_2"> 
     920          <property name="minimumSize"> 
     921           <size> 
     922            <width>87</width> 
     923            <height>20</height> 
     924           </size> 
     925          </property> 
     926          <property name="baseSize"> 
     927           <size> 
     928            <width>87</width> 
     929            <height>20</height> 
     930           </size> 
     931          </property> 
     932          <property name="text"> 
     933           <string>Sigma_lamd:</string> 
     934          </property> 
     935         </widget> 
     936        </item> 
     937        <item row="1" column="1"> 
     938         <widget class="QLineEdit" name="txtSigma_lamd"> 
     939          <property name="enabled"> 
     940           <bool>true</bool> 
     941          </property> 
     942          <property name="minimumSize"> 
     943           <size> 
     944            <width>80</width> 
     945            <height>23</height> 
     946           </size> 
     947          </property> 
     948          <property name="baseSize"> 
     949           <size> 
     950            <width>100</width> 
     951            <height>21</height> 
     952           </size> 
     953          </property> 
     954          <property name="toolTip"> 
     955           <string>The wavelength contribution in the radial direction. Note: The phi component is always zero.</string> 
     956          </property> 
     957          <property name="text"> 
     958           <string>3.168e-05</string> 
     959          </property> 
     960          <property name="readOnly"> 
     961           <bool>true</bool> 
     962          </property> 
     963         </widget> 
     964        </item> 
     965        <item row="1" column="5"> 
     966         <widget class="QLineEdit" name="txt1DSigma"> 
     967          <property name="enabled"> 
     968           <bool>true</bool> 
     969          </property> 
     970          <property name="minimumSize"> 
     971           <size> 
     972            <width>80</width> 
     973            <height>23</height> 
     974           </size> 
     975          </property> 
     976          <property name="baseSize"> 
     977           <size> 
     978            <width>100</width> 
     979            <height>21</height> 
     980           </size> 
     981          </property> 
     982          <property name="toolTip"> 
     983           <string>Resolution in 1-dimension (for 1D data).</string> 
     984          </property> 
     985          <property name="text"> 
     986           <string>0.0008289</string> 
     987          </property> 
     988          <property name="readOnly"> 
     989           <bool>true</bool> 
     990          </property> 
     991         </widget> 
     992        </item> 
     993        <item row="1" column="6"> 
     994         <widget class="QLabel" name="lblUnit1DSigma"> 
     995          <property name="minimumSize"> 
     996           <size> 
     997            <width>20</width> 
     998            <height>21</height> 
     999           </size> 
     1000          </property> 
     1001          <property name="text"> 
     1002           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
     1003&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     1004          </property> 
     1005         </widget> 
     1006        </item> 
     1007        <item row="1" column="2"> 
     1008         <widget class="QLabel" name="lblUnitSigmalamd"> 
     1009          <property name="minimumSize"> 
     1010           <size> 
     1011            <width>20</width> 
     1012            <height>21</height> 
     1013           </size> 
     1014          </property> 
     1015          <property name="text"> 
     1016           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
     1017&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     1018          </property> 
     1019         </widget> 
     1020        </item> 
     1021        <item row="1" column="4"> 
     1022         <widget class="QLabel" name="label_6"> 
     1023          <property name="minimumSize"> 
     1024           <size> 
     1025            <width>87</width> 
     1026            <height>20</height> 
     1027           </size> 
     1028          </property> 
     1029          <property name="baseSize"> 
     1030           <size> 
     1031            <width>87</width> 
     1032            <height>20</height> 
     1033           </size> 
     1034          </property> 
     1035          <property name="text"> 
     1036           <string>(1D) Sigma:</string> 
     1037          </property> 
     1038         </widget> 
     1039        </item> 
     1040        <item row="0" column="4"> 
     1041         <widget class="QLabel" name="label_5"> 
     1042          <property name="minimumSize"> 
     1043           <size> 
     1044            <width>87</width> 
     1045            <height>20</height> 
     1046           </size> 
     1047          </property> 
     1048          <property name="baseSize"> 
     1049           <size> 
     1050            <width>87</width> 
     1051            <height>20</height> 
     1052           </size> 
     1053          </property> 
     1054          <property name="text"> 
     1055           <string>Sigma_y:</string> 
     1056          </property> 
     1057         </widget> 
     1058        </item> 
     1059        <item row="0" column="6"> 
     1060         <widget class="QLabel" name="lblUnitSigmay"> 
     1061          <property name="minimumSize"> 
     1062           <size> 
     1063            <width>20</width> 
     1064            <height>21</height> 
     1065           </size> 
     1066          </property> 
     1067          <property name="text"> 
     1068           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
     1069&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     1070          </property> 
     1071         </widget> 
     1072        </item> 
     1073        <item row="0" column="2"> 
     1074         <widget class="QLabel" name="lblUnitSigmax"> 
     1075          <property name="minimumSize"> 
     1076           <size> 
     1077            <width>20</width> 
     1078            <height>21</height> 
     1079           </size> 
     1080          </property> 
     1081          <property name="text"> 
     1082           <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;à
     1083&lt;span style=&quot; vertical-align:super;&quot;&gt;-1&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     1084          </property> 
     1085         </widget> 
     1086        </item> 
     1087        <item row="0" column="0"> 
     1088         <widget class="QLabel" name="label"> 
     1089          <property name="minimumSize"> 
     1090           <size> 
     1091            <width>87</width> 
     1092            <height>20</height> 
     1093           </size> 
     1094          </property> 
     1095          <property name="baseSize"> 
     1096           <size> 
     1097            <width>87</width> 
     1098            <height>20</height> 
     1099           </size> 
     1100          </property> 
     1101          <property name="text"> 
     1102           <string>Sigma_x:</string> 
     1103          </property> 
     1104         </widget> 
     1105        </item> 
     1106        <item row="0" column="3"> 
     1107         <spacer name="horizontalSpacer"> 
     1108          <property name="orientation"> 
     1109           <enum>Qt::Horizontal</enum> 
     1110          </property> 
     1111          <property name="sizeHint" stdset="0"> 
     1112           <size> 
     1113            <width>40</width> 
     1114            <height>20</height> 
     1115           </size> 
     1116          </property> 
     1117         </spacer> 
     1118        </item> 
     1119       </layout> 
     1120      </item> 
     1121     </layout> 
     1122    </widget> 
     1123   </item> 
     1124   <item row="5" column="0"> 
     1125    <widget class="Line" name="line_2"> 
     1126     <property name="orientation"> 
     1127      <enum>Qt::Horizontal</enum> 
     1128     </property> 
     1129    </widget> 
     1130   </item> 
     1131   <item row="6" column="0"> 
     1132    <layout class="QGridLayout" name="gridLayout_3"> 
     1133     <item row="0" column="1"> 
     1134      <widget class="QPushButton" name="cmdReset"> 
     1135       <property name="minimumSize"> 
     1136        <size> 
     1137         <width>75</width> 
     1138         <height>25</height> 
     1139        </size> 
     1140       </property> 
     1141       <property name="toolTip"> 
     1142        <string>Reset to default SAS instrumental parameter</string> 
     1143       </property> 
     1144       <property name="text"> 
     1145        <string>Reset</string> 
     1146       </property> 
     1147       <property name="autoDefault"> 
     1148        <bool>false</bool> 
     1149       </property> 
     1150      </widget> 
     1151     </item> 
     1152     <item row="0" column="2"> 
     1153      <widget class="QPushButton" name="cmdCompute"> 
     1154       <property name="toolTip"> 
     1155        <string>Compute the resolution of Q from SAS instrumental parameter</string> 
     1156       </property> 
     1157       <property name="text"> 
     1158        <string>Compute</string> 
     1159       </property> 
     1160       <property name="autoDefault"> 
     1161        <bool>false</bool> 
     1162       </property> 
     1163      </widget> 
     1164     </item> 
     1165     <item row="0" column="3"> 
     1166      <widget class="QPushButton" name="cmdClose"> 
     1167       <property name="minimumSize"> 
     1168        <size> 
     1169         <width>75</width> 
     1170         <height>23</height> 
     1171        </size> 
     1172       </property> 
     1173       <property name="toolTip"> 
     1174        <string>Close this window</string> 
     1175       </property> 
     1176       <property name="text"> 
     1177        <string>Close</string> 
     1178       </property> 
     1179       <property name="autoDefault"> 
     1180        <bool>false</bool> 
     1181       </property> 
     1182      </widget> 
     1183     </item> 
     1184     <item row="0" column="4"> 
     1185      <widget class="QPushButton" name="cmdHelp"> 
     1186       <property name="minimumSize"> 
     1187        <size> 
     1188         <width>75</width> 
     1189         <height>23</height> 
     1190        </size> 
     1191       </property> 
     1192       <property name="toolTip"> 
     1193        <string>Help on using the Resolution Calculator</string> 
     1194       </property> 
     1195       <property name="text"> 
     1196        <string>Help</string> 
     1197       </property> 
     1198       <property name="autoDefault"> 
     1199        <bool>false</bool> 
     1200       </property> 
     1201      </widget> 
     1202     </item> 
     1203     <item row="0" column="0"> 
     1204      <spacer name="horizontalSpacer_3"> 
     1205       <property name="orientation"> 
     1206        <enum>Qt::Horizontal</enum> 
     1207       </property> 
     1208       <property name="sizeHint" stdset="0"> 
     1209        <size> 
     1210         <width>40</width> 
     1211         <height>20</height> 
     1212        </size> 
     1213       </property> 
     1214      </spacer> 
     1215     </item> 
     1216    </layout> 
    10591217   </item> 
    10601218  </layout> 
     
    10641222  <zorder>graphicsView</zorder> 
    10651223  <zorder>line_4</zorder> 
    1066   <zorder>horizontalSpacer_2</zorder> 
     1224  <zorder>verticalSpacer_2</zorder> 
     1225  <zorder>line</zorder> 
     1226  <zorder>line_2</zorder> 
    10671227 </widget> 
    10681228 <tabstops> 
  • src/sas/qtgui/Calculators/UnitTesting/ResolutionCalculatorPanelTest.py

    rfc4fec8 r170e95d  
    5151        self.assertEqual(self.widget.windowTitle(), "Q Resolution Estimator") 
    5252        # size 
    53         self.assertEqual(self.widget.size().height(), 561) 
    54         self.assertEqual(self.widget.size().width(), 1034) 
     53        self.assertEqual(self.widget.size().height(), 540) 
     54        self.assertEqual(self.widget.size().width(), 876) 
    5555 
    5656        # visibility 
Note: See TracChangeset for help on using the changeset viewer.