Changeset 457d961 in sasview


Ignore:
Timestamp:
Aug 18, 2017 9:08:55 AM (7 years ago)
Author:
Celine Durniak <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:
464cd07
Parents:
0e4d87c
Message:

Corrected bugs in display of new GUI (angstrom, size of line edit)

Location:
src/sas/qtgui
Files:
9 edited

Legend:

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

    rb0c5e8c r457d961  
    106106        # TODO the option Ellipsoid has not been implemented 
    107107        self.cbShape.currentIndexChanged.connect(self.selectedshapechange) 
     108 
     109        # New font to display angstrom symbol 
     110        new_font = 'font-family: -apple-system, "Helvetica Neue", "Ubuntu";' 
     111        self.lblUnitSolventSLD.setStyleSheet(new_font) 
     112        self.lblUnitVolume.setStyleSheet(new_font) 
     113        self.lbl5.setStyleSheet(new_font) 
     114        self.lblUnitMx.setStyleSheet(new_font) 
     115        self.lblUnitMy.setStyleSheet(new_font) 
     116        self.lblUnitMz.setStyleSheet(new_font) 
     117        self.lblUnitNucl.setStyleSheet(new_font) 
     118        self.lblUnitx.setStyleSheet(new_font) 
     119        self.lblUnity.setStyleSheet(new_font) 
     120        self.lblUnitz.setStyleSheet(new_font) 
    108121 
    109122    def selectedshapechange(self): 
  • src/sas/qtgui/Calculators/UI/DensityPanel.ui

    rcd2cc745 r457d961  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>295</width> 
    10     <height>204</height> 
     9    <width>345</width> 
     10    <height>236</height> 
    1111   </rect> 
    1212  </property> 
     
    3535     </item> 
    3636     <item row="0" column="1"> 
    37       <widget class="QLineEdit" name="editMolecularFormula"/> 
     37      <widget class="QLineEdit" name="editMolecularFormula"> 
     38       <property name="minimumSize"> 
     39        <size> 
     40         <width>61</width> 
     41         <height>21</height> 
     42        </size> 
     43       </property> 
     44       <property name="baseSize"> 
     45        <size> 
     46         <width>61</width> 
     47         <height>21</height> 
     48        </size> 
     49       </property> 
     50      </widget> 
    3851     </item> 
    3952     <item row="0" column="2"> 
     
    5366     <item row="1" column="1"> 
    5467      <widget class="QLineEdit" name="editMolarMass"> 
     68       <property name="minimumSize"> 
     69        <size> 
     70         <width>61</width> 
     71         <height>21</height> 
     72        </size> 
     73       </property> 
     74       <property name="baseSize"> 
     75        <size> 
     76         <width>61</width> 
     77         <height>21</height> 
     78        </size> 
     79       </property> 
    5580       <property name="styleSheet"> 
    5681        <string notr="true"/> 
     
    98123     </item> 
    99124     <item row="3" column="1"> 
    100       <widget class="QLineEdit" name="editMolarVolume"/> 
     125      <widget class="QLineEdit" name="editMolarVolume"> 
     126       <property name="minimumSize"> 
     127        <size> 
     128         <width>61</width> 
     129         <height>21</height> 
     130        </size> 
     131       </property> 
     132       <property name="baseSize"> 
     133        <size> 
     134         <width>61</width> 
     135         <height>21</height> 
     136        </size> 
     137       </property> 
     138      </widget> 
    101139     </item> 
    102140     <item row="3" column="2"> 
     
    115153     </item> 
    116154     <item row="4" column="1"> 
    117       <widget class="QLineEdit" name="editMassDensity"/> 
     155      <widget class="QLineEdit" name="editMassDensity"> 
     156       <property name="minimumSize"> 
     157        <size> 
     158         <width>61</width> 
     159         <height>21</height> 
     160        </size> 
     161       </property> 
     162       <property name="baseSize"> 
     163        <size> 
     164         <width>61</width> 
     165         <height>21</height> 
     166        </size> 
     167       </property> 
     168      </widget> 
    118169     </item> 
    119170     <item row="4" column="2"> 
  • src/sas/qtgui/Calculators/UI/GenericScatteringCalculator.ui

    r28a09b0 r457d961  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>715</width> 
    10     <height>550</height> 
     9    <width>716</width> 
     10    <height>625</height> 
    1111   </rect> 
    1212  </property> 
    1313  <property name="sizePolicy"> 
    14    <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 
     14   <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 
    1515    <horstretch>0</horstretch> 
    1616    <verstretch>0</verstretch> 
     
    1919  <property name="minimumSize"> 
    2020   <size> 
    21     <width>630</width> 
     21    <width>660</width> 
    2222    <height>550</height> 
     23   </size> 
     24  </property> 
     25  <property name="maximumSize"> 
     26   <size> 
     27    <width>800</width> 
     28    <height>700</height> 
    2329   </size> 
    2430  </property> 
     
    300306              <size> 
    301307               <width>70</width> 
    302                <height>0</height> 
     308               <height>18</height> 
    303309              </size> 
    304310             </property> 
     
    318324           </item> 
    319325           <item row="0" column="2"> 
    320             <widget class="QLabel" name="lblunitMx"> 
     326            <widget class="QLabel" name="lblUnitMx"> 
    321327             <property name="font"> 
    322328              <font> 
     
    352358              <size> 
    353359               <width>70</width> 
    354                <height>0</height> 
     360               <height>18</height> 
    355361              </size> 
    356362             </property> 
     
    404410              <size> 
    405411               <width>70</width> 
    406                <height>0</height> 
     412               <height>18</height> 
    407413              </size> 
    408414             </property> 
     
    456462              <size> 
    457463               <width>70</width> 
    458                <height>0</height> 
     464               <height>18</height> 
    459465              </size> 
    460466             </property> 
     
    521527              <size> 
    522528               <width>56</width> 
    523                <height>0</height> 
     529               <height>18</height> 
    524530              </size> 
    525531             </property> 
     
    553559              <size> 
    554560               <width>56</width> 
    555                <height>0</height> 
     561               <height>18</height> 
    556562              </size> 
    557563             </property> 
     
    585591              <size> 
    586592               <width>56</width> 
    587                <height>0</height> 
     593               <height>18</height> 
    588594              </size> 
    589595             </property> 
     
    636642              <size> 
    637643               <width>50</width> 
    638                <height>0</height> 
     644               <height>18</height> 
    639645              </size> 
    640646             </property> 
     
    682688              <size> 
    683689               <width>50</width> 
    684                <height>0</height> 
     690               <height>18</height> 
    685691              </size> 
    686692             </property> 
     
    728734              <size> 
    729735               <width>50</width> 
    730                <height>0</height> 
     736               <height>18</height> 
    731737              </size> 
    732738             </property> 
     
    954960        <item row="1" column="1"> 
    955961         <widget class="QLineEdit" name="txtUpFracIn"> 
     962          <property name="minimumSize"> 
     963           <size> 
     964            <width>0</width> 
     965            <height>18</height> 
     966           </size> 
     967          </property> 
    956968          <property name="font"> 
    957969           <font> 
     
    986998        <item row="2" column="1"> 
    987999         <widget class="QLineEdit" name="txtUpFracOut"> 
     1000          <property name="minimumSize"> 
     1001           <size> 
     1002            <width>0</width> 
     1003            <height>18</height> 
     1004           </size> 
     1005          </property> 
    9881006          <property name="font"> 
    9891007           <font> 
     
    10181036        <item row="3" column="1"> 
    10191037         <widget class="QLineEdit" name="txtUpTheta"> 
     1038          <property name="minimumSize"> 
     1039           <size> 
     1040            <width>0</width> 
     1041            <height>18</height> 
     1042           </size> 
     1043          </property> 
    10201044          <property name="font"> 
    10211045           <font> 
     
    10471071        <item row="4" column="1"> 
    10481072         <widget class="QLineEdit" name="txtBackground"> 
     1073          <property name="minimumSize"> 
     1074           <size> 
     1075            <width>0</width> 
     1076            <height>18</height> 
     1077           </size> 
     1078          </property> 
    10491079          <property name="font"> 
    10501080           <font> 
     
    10861116        <item row="5" column="1"> 
    10871117         <widget class="QLineEdit" name="txtScale"> 
     1118          <property name="minimumSize"> 
     1119           <size> 
     1120            <width>0</width> 
     1121            <height>18</height> 
     1122           </size> 
     1123          </property> 
    10881124          <property name="font"> 
    10891125           <font> 
     
    11121148        <item row="6" column="1"> 
    11131149         <widget class="QLineEdit" name="txtSolventSLD"> 
     1150          <property name="minimumSize"> 
     1151           <size> 
     1152            <width>0</width> 
     1153            <height>18</height> 
     1154           </size> 
     1155          </property> 
    11141156          <property name="font"> 
    11151157           <font> 
     
    11411183        <item row="7" column="1"> 
    11421184         <widget class="QLineEdit" name="txtTotalVolume"> 
     1185          <property name="minimumSize"> 
     1186           <size> 
     1187            <width>0</width> 
     1188            <height>18</height> 
     1189           </size> 
     1190          </property> 
    11431191          <property name="font"> 
    11441192           <font> 
     
    12611309        <item row="0" column="1"> 
    12621310         <widget class="QLineEdit" name="txtNoQBins"> 
     1311          <property name="minimumSize"> 
     1312           <size> 
     1313            <width>0</width> 
     1314            <height>18</height> 
     1315           </size> 
     1316          </property> 
    12631317          <property name="font"> 
    12641318           <font> 
     
    12901344        <item row="1" column="1"> 
    12911345         <widget class="QLineEdit" name="txtQxMax"> 
     1346          <property name="minimumSize"> 
     1347           <size> 
     1348            <width>0</width> 
     1349            <height>18</height> 
     1350           </size> 
     1351          </property> 
    12921352          <property name="font"> 
    12931353           <font> 
  • src/sas/qtgui/Calculators/UI/KiessigPanel.ui

    rcd2cc745 r457d961  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>354</width> 
     9    <width>365</width> 
    1010    <height>193</height> 
    1111   </rect> 
     
    3333         <widget class="QLabel" name="label"> 
    3434          <property name="text"> 
    35            <string>Kiessing Fringe Width (Delta Q)</string> 
     35           <string>Kiessig Fringe Width (Delta Q)</string> 
    3636          </property> 
    3737         </widget> 
    3838        </item> 
    3939        <item> 
    40          <widget class="QLineEdit" name="deltaq_in"/> 
     40         <widget class="QLineEdit" name="deltaq_in"> 
     41          <property name="minimumSize"> 
     42           <size> 
     43            <width>77</width> 
     44            <height>21</height> 
     45           </size> 
     46          </property> 
     47          <property name="baseSize"> 
     48           <size> 
     49            <width>77</width> 
     50            <height>21</height> 
     51           </size> 
     52          </property> 
     53         </widget> 
    4154        </item> 
    4255        <item> 
     
    7083        <item> 
    7184         <widget class="QLineEdit" name="lengthscale_out"> 
     85          <property name="minimumSize"> 
     86           <size> 
     87            <width>77</width> 
     88            <height>21</height> 
     89           </size> 
     90          </property> 
     91          <property name="baseSize"> 
     92           <size> 
     93            <width>77</width> 
     94            <height>21</height> 
     95           </size> 
     96          </property> 
    7297          <property name="readOnly"> 
    7398           <bool>true</bool> 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r377ade1 r457d961  
    9898        # Display HTML content 
    9999        self.helpView = QtWebKit.QWebView() 
     100 
     101        # New font to display angstrom symbol 
     102        new_font = 'font-family: -apple-system, "Helvetica Neue", "Ubuntu";' 
     103        self.label_17.setStyleSheet(new_font) 
     104        self.label_19.setStyleSheet(new_font) 
    100105 
    101106        self._index = None 
     
    246251        self.lstParams.setAlternatingRowColors(True) 
    247252        stylesheet = """ 
     253 
     254            QTreeView { 
     255                paint-alternating-row-colors-for-empty-area:0; 
     256            } 
     257 
    248258            QTreeView::item:hover { 
    249259                background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1); 
     
    266276        self.lstParams.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) 
    267277        self.lstParams.customContextMenuRequested.connect(self.showModelDescription) 
     278        self.lstParams.setAttribute(QtCore.Qt.WA_MacShowFocusRect, False) 
    268279 
    269280        # Poly model displayed in poly list 
  • src/sas/qtgui/Perspectives/Fitting/OptionsWidget.py

    rc1e380e r457d961  
    8686        self.txtNptsFit.setText(str(NPTS_DEFAULT)) 
    8787        self.model.blockSignals(False) 
     88 
     89        new_font = 'font-family: -apple-system, "Helvetica Neue", "Ubuntu";' 
     90        self.label_13.setStyleSheet(new_font) 
     91        self.label_15.setStyleSheet(new_font) 
    8892 
    8993    def initModel(self): 
  • src/sas/qtgui/Perspectives/Invariant/InvariantDetails.py

    r83eb5208 r457d961  
    5959        self.progressBar.setValue(progress_low_qstar) 
    6060        self.progressBar_2.setValue(progress_qstar)            
    61         self.progressBar_3.setValue(progress_high_qstar)            
     61        self.progressBar_3.setValue(progress_high_qstar) 
     62 
     63        new_font = 'font-family: -apple-system, "Helvetica Neue", "Ubuntu";' 
     64        self.label_3.setStyleSheet(new_font) 
     65        self.label_4.setStyleSheet(new_font) 
     66        self.label_.setStyleSheet(new_font) 
    6267 
    6368        self.show() 
  • src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py

    ree18d33 r457d961  
    106106        # Set up the mapper 
    107107        self.setupMapper() 
     108 
     109        new_font = 'font-family: -apple-system, "Helvetica Neue", "Ubuntu";' 
     110        self.label_2.setStyleSheet(new_font) 
     111        self.label_24.setStyleSheet(new_font) 
     112        self.label_27.setStyleSheet(new_font) 
    108113 
    109114    def setClosable(self, value=True): 
  • src/sas/qtgui/Perspectives/Invariant/UI/InvariantDetailsUI.ui

    rf721030 r457d961  
    9595       <widget class="QLabel" name="label_3"> 
    9696        <property name="text"> 
    97          <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;[1/(cm*A&lt;span style=&quot; vertical-align:super;&quot;&gt;3&lt;/span&gt;)]&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     97         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;[1/(cm*à
     98&lt;span style=&quot; vertical-align:super;&quot;&gt;3&lt;/span&gt;)]&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    9899        </property> 
    99100       </widget> 
     
    122123       <widget class="QLabel" name="label_4"> 
    123124        <property name="text"> 
    124          <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;[1/(cm*A&lt;span style=&quot; vertical-align:super;&quot;&gt;3&lt;/span&gt;)]&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     125         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;[1/(cm*à
     126&lt;span style=&quot; vertical-align:super;&quot;&gt;3&lt;/span&gt;)]&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    125127        </property> 
    126128       </widget> 
     
    149151       <widget class="QLabel" name="label_7"> 
    150152        <property name="text"> 
    151          <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;[1/(cm*A&lt;span style=&quot; vertical-align:super;&quot;&gt;3&lt;/span&gt;)]&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     153         <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;[1/(cm*à
     154&lt;span style=&quot; vertical-align:super;&quot;&gt;3&lt;/span&gt;)]&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
    152155        </property> 
    153156       </widget> 
Note: See TracChangeset for help on using the changeset viewer.