Ignore:
Timestamp:
Sep 5, 2018 6:13:45 AM (6 years ago)
Author:
Tim Snow <tim.snow@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
c3e83d3
Parents:
d738feb
Message:

Adding more general x-ray SLD calculation funcitonality

Rather than using/limiting ourselves to Cu and Mo this approach lets you use any wavelength of x-ray radiation and display the SLD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Calculators/UI/SldPanel.ui

    rd738feb r5c0e717  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>487</width> 
    10     <height>488</height> 
     9    <width>490</width> 
     10    <height>490</height> 
    1111   </rect> 
    1212  </property> 
     
    120120       <widget class="QLineEdit" name="editMassDensity"/> 
    121121      </item> 
     122      <item row="2" column="2"> 
     123       <widget class="QLabel" name="label_12"> 
     124        <property name="text"> 
     125         <string>à
     126</string> 
     127        </property> 
     128       </widget> 
     129      </item> 
     130      <item row="0" column="0"> 
     131       <widget class="QLabel" name="label_9"> 
     132        <property name="text"> 
     133         <string>Molecular Formula</string> 
     134        </property> 
     135       </widget> 
     136      </item> 
     137      <item row="2" column="0"> 
     138       <widget class="QLabel" name="label_11"> 
     139        <property name="text"> 
     140         <string>Neutron Wavelength</string> 
     141        </property> 
     142       </widget> 
     143      </item> 
    122144      <item row="2" column="1"> 
    123        <widget class="QLineEdit" name="editWavelength"> 
     145       <widget class="QLineEdit" name="editNeutronWavelength"> 
    124146        <property name="styleSheet"> 
    125147         <string notr="true"/> 
     
    130152       </widget> 
    131153      </item> 
    132       <item row="2" column="2"> 
    133        <widget class="QLabel" name="label_12"> 
     154      <item row="3" column="1"> 
     155       <widget class="QLineEdit" name="editXrayWavelength"/> 
     156      </item> 
     157      <item row="3" column="0"> 
     158       <widget class="QLabel" name="label_13"> 
     159        <property name="text"> 
     160         <string>X-Ray Wavelength</string> 
     161        </property> 
     162       </widget> 
     163      </item> 
     164      <item row="3" column="2"> 
     165       <widget class="QLabel" name="label"> 
    134166        <property name="text"> 
    135167         <string>à
    136168</string> 
    137         </property> 
    138        </widget> 
    139       </item> 
    140       <item row="0" column="0"> 
    141        <widget class="QLabel" name="label_9"> 
    142         <property name="text"> 
    143          <string>Molecular Formula</string> 
    144         </property> 
    145        </widget> 
    146       </item> 
    147       <item row="2" column="0"> 
    148        <widget class="QLabel" name="label_11"> 
    149         <property name="text"> 
    150          <string>Wavelength</string> 
    151169        </property> 
    152170       </widget> 
     
    161179     </property> 
    162180     <layout class="QGridLayout" name="gridLayoutOutput"> 
     181      <item row="0" column="1"> 
     182       <widget class="QLineEdit" name="editNeutronSldReal"> 
     183        <property name="enabled"> 
     184         <bool>false</bool> 
     185        </property> 
     186        <property name="readOnly"> 
     187         <bool>true</bool> 
     188        </property> 
     189       </widget> 
     190      </item> 
    163191      <item row="0" column="0"> 
    164192       <widget class="QLabel" name="label_17"> 
     
    168196       </widget> 
    169197      </item> 
    170       <item row="0" column="1"> 
    171        <widget class="QLineEdit" name="editNeutronSldReal"> 
    172         <property name="readOnly"> 
    173          <bool>true</bool> 
     198      <item row="5" column="0"> 
     199       <widget class="QLabel" name="label_3"> 
     200        <property name="text"> 
     201         <string>Neutron 1/e length</string> 
     202        </property> 
     203       </widget> 
     204      </item> 
     205      <item row="3" column="1"> 
     206       <widget class="QLineEdit" name="editNeutronIncXs"> 
     207        <property name="enabled"> 
     208         <bool>false</bool> 
     209        </property> 
     210        <property name="readOnly"> 
     211         <bool>true</bool> 
     212        </property> 
     213       </widget> 
     214      </item> 
     215      <item row="3" column="0"> 
     216       <widget class="QLabel" name="label_21"> 
     217        <property name="text"> 
     218         <string>Neutron Inc. Xs</string> 
    174219        </property> 
    175220       </widget> 
     
    182227       </widget> 
    183228      </item> 
     229      <item row="1" column="2"> 
     230       <widget class="QLabel" name="label_20"> 
     231        <property name="text"> 
     232         <string>-i</string> 
     233        </property> 
     234       </widget> 
     235      </item> 
    184236      <item row="0" column="3"> 
    185237       <widget class="QLineEdit" name="editNeutronSldImag"> 
    186         <property name="readOnly"> 
    187          <bool>true</bool> 
     238        <property name="enabled"> 
     239         <bool>false</bool> 
     240        </property> 
     241        <property name="readOnly"> 
     242         <bool>true</bool> 
     243        </property> 
     244       </widget> 
     245      </item> 
     246      <item row="5" column="2" colspan="2"> 
     247       <widget class="QLabel" name="label_4"> 
     248        <property name="text"> 
     249         <string>cm</string> 
     250        </property> 
     251       </widget> 
     252      </item> 
     253      <item row="5" column="1"> 
     254       <widget class="QLineEdit" name="editNeutronLength"> 
     255        <property name="enabled"> 
     256         <bool>false</bool> 
     257        </property> 
     258        <property name="readOnly"> 
     259         <bool>true</bool> 
     260        </property> 
     261       </widget> 
     262      </item> 
     263      <item row="4" column="2" colspan="2"> 
     264       <widget class="QLabel" name="label_24"> 
     265        <property name="text"> 
     266         <string>1/cm</string> 
     267        </property> 
     268       </widget> 
     269      </item> 
     270      <item row="4" column="1"> 
     271       <widget class="QLineEdit" name="editNeutronAbsXs"> 
     272        <property name="enabled"> 
     273         <bool>false</bool> 
     274        </property> 
     275        <property name="readOnly"> 
     276         <bool>true</bool> 
     277        </property> 
     278       </widget> 
     279      </item> 
     280      <item row="4" column="0"> 
     281       <widget class="QLabel" name="label_23"> 
     282        <property name="text"> 
     283         <string>Neutron Abs. Xs</string> 
     284        </property> 
     285       </widget> 
     286      </item> 
     287      <item row="3" column="2" colspan="2"> 
     288       <widget class="QLabel" name="label_22"> 
     289        <property name="text"> 
     290         <string>1/cm</string> 
     291        </property> 
     292       </widget> 
     293      </item> 
     294      <item row="1" column="4"> 
     295       <widget class="QLabel" name="label_6"> 
     296        <property name="text"> 
     297         <string>1/à
     298²</string> 
     299        </property> 
     300       </widget> 
     301      </item> 
     302      <item row="1" column="0"> 
     303       <widget class="QLabel" name="label_19"> 
     304        <property name="text"> 
     305         <string>X-Ray SLD</string> 
    188306        </property> 
    189307       </widget> 
     
    197315       </widget> 
    198316      </item> 
    199       <item row="1" column="0"> 
    200        <widget class="QLabel" name="label_19"> 
    201         <property name="text"> 
    202          <string>Cu Ka SLD</string> 
    203         </property> 
    204        </widget> 
    205       </item> 
    206       <item row="1" column="1"> 
    207        <widget class="QLineEdit" name="editCuKaSldReal"> 
    208         <property name="styleSheet"> 
    209          <string notr="true"/> 
    210         </property> 
    211         <property name="readOnly"> 
    212          <bool>true</bool> 
    213         </property> 
    214        </widget> 
    215       </item> 
    216       <item row="1" column="2"> 
    217        <widget class="QLabel" name="label_20"> 
    218         <property name="text"> 
    219          <string>-i</string> 
    220         </property> 
    221        </widget> 
    222       </item> 
    223       <item row="1" column="3"> 
    224        <widget class="QLineEdit" name="editCuKaSldImag"> 
    225         <property name="readOnly"> 
    226          <bool>true</bool> 
    227         </property> 
    228        </widget> 
    229       </item> 
    230       <item row="1" column="4"> 
    231        <widget class="QLabel" name="label_6"> 
    232         <property name="text"> 
    233          <string>1/à
    234 Â²</string> 
    235         </property> 
    236        </widget> 
    237       </item> 
    238       <item row="2" column="0"> 
    239        <widget class="QLabel" name="label"> 
    240         <property name="text"> 
    241          <string>Mo Ka SLD</string> 
    242         </property> 
    243        </widget> 
    244       </item> 
    245       <item row="2" column="1"> 
    246        <widget class="QLineEdit" name="editMoKaSldReal"> 
    247         <property name="readOnly"> 
    248          <bool>true</bool> 
    249         </property> 
    250        </widget> 
    251       </item> 
    252       <item row="2" column="2"> 
    253        <widget class="QLabel" name="label_2"> 
    254         <property name="text"> 
    255          <string>-i</string> 
    256         </property> 
    257        </widget> 
    258       </item> 
    259       <item row="2" column="3"> 
    260        <widget class="QLineEdit" name="editMoKaSldImag"> 
    261         <property name="readOnly"> 
    262          <bool>true</bool> 
    263         </property> 
    264        </widget> 
    265       </item> 
    266       <item row="2" column="4"> 
    267        <widget class="QLabel" name="label_7"> 
    268         <property name="text"> 
    269          <string>1/à
    270 Â²</string> 
    271         </property> 
    272        </widget> 
    273       </item> 
    274       <item row="3" column="0" colspan="5"> 
     317      <item row="2" column="0" colspan="5"> 
    275318       <widget class="QFrame" name="frame"> 
    276319        <property name="minimumSize"> 
     
    294337       </widget> 
    295338      </item> 
    296       <item row="4" column="0"> 
    297        <widget class="QLabel" name="label_21"> 
    298         <property name="text"> 
    299          <string>Neutron Inc. Xs</string> 
    300         </property> 
    301        </widget> 
    302       </item> 
    303       <item row="4" column="1"> 
    304        <widget class="QLineEdit" name="editNeutronIncXs"> 
    305         <property name="readOnly"> 
    306          <bool>true</bool> 
    307         </property> 
    308        </widget> 
    309       </item> 
    310       <item row="4" column="2" colspan="2"> 
    311        <widget class="QLabel" name="label_22"> 
    312         <property name="text"> 
    313          <string>1/cm</string> 
    314         </property> 
    315        </widget> 
    316       </item> 
    317       <item row="5" column="0"> 
    318        <widget class="QLabel" name="label_23"> 
    319         <property name="text"> 
    320          <string>Neutron Abs. Xs</string> 
    321         </property> 
    322        </widget> 
    323       </item> 
    324       <item row="5" column="1"> 
    325        <widget class="QLineEdit" name="editNeutronAbsXs"> 
    326         <property name="readOnly"> 
    327          <bool>true</bool> 
    328         </property> 
    329        </widget> 
    330       </item> 
    331       <item row="5" column="2" colspan="2"> 
    332        <widget class="QLabel" name="label_24"> 
    333         <property name="text"> 
    334          <string>1/cm</string> 
    335         </property> 
    336        </widget> 
    337       </item> 
    338       <item row="6" column="0"> 
    339        <widget class="QLabel" name="label_3"> 
    340         <property name="text"> 
    341          <string>Neutron 1/e length</string> 
    342         </property> 
    343        </widget> 
    344       </item> 
    345       <item row="6" column="1"> 
    346        <widget class="QLineEdit" name="editNeutronLength"> 
    347         <property name="readOnly"> 
    348          <bool>true</bool> 
    349         </property> 
    350        </widget> 
    351       </item> 
    352       <item row="6" column="2" colspan="2"> 
    353        <widget class="QLabel" name="label_4"> 
    354         <property name="text"> 
    355          <string>cm</string> 
     339      <item row="1" column="1"> 
     340       <widget class="QLineEdit" name="editXraySldReal"> 
     341        <property name="enabled"> 
     342         <bool>false</bool> 
     343        </property> 
     344        <property name="readOnly"> 
     345         <bool>true</bool> 
     346        </property> 
     347       </widget> 
     348      </item> 
     349      <item row="1" column="3"> 
     350       <widget class="QLineEdit" name="editXraySldImag"> 
     351        <property name="enabled"> 
     352         <bool>false</bool> 
     353        </property> 
     354        <property name="readOnly"> 
     355         <bool>true</bool> 
    356356        </property> 
    357357       </widget> 
     
    365365  <tabstop>editMolecularFormula</tabstop> 
    366366  <tabstop>editMassDensity</tabstop> 
    367   <tabstop>editWavelength</tabstop> 
     367  <tabstop>editNeutronWavelength</tabstop> 
    368368  <tabstop>editNeutronSldReal</tabstop> 
    369369  <tabstop>editNeutronSldImag</tabstop> 
    370   <tabstop>editCuKaSldReal</tabstop> 
    371   <tabstop>editCuKaSldImag</tabstop> 
    372   <tabstop>editMoKaSldReal</tabstop> 
    373   <tabstop>editMoKaSldImag</tabstop> 
    374370  <tabstop>editNeutronIncXs</tabstop> 
    375371  <tabstop>editNeutronAbsXs</tabstop> 
Note: See TracChangeset for help on using the changeset viewer.