Ignore:
Timestamp:
Nov 26, 2018 9:07:55 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
9c207f5
Parents:
9c05f22
Message:

Redone the widget slightly, to fit with requirements in trac#1135.
Added comboboxes for all available fitpage names
Removed constraint of needing two selected fitpages
Removed the "Swap" button - it is redundant now.
Added context dependence on the "Select All" action.
Removed immediate constraint validation to allow for more complex
formulas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/UI/ComplexConstraintUI.ui

    recc5d043 r2e5081b  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>478</width> 
    10     <height>257</height> 
     9    <width>496</width> 
     10    <height>260</height> 
    1111   </rect> 
    1212  </property> 
     
    2121     </property> 
    2222     <layout class="QGridLayout" name="gridLayout"> 
     23      <item row="0" column="0"> 
     24       <layout class="QHBoxLayout" name="horizontalLayout"> 
     25        <item> 
     26         <widget class="QComboBox" name="cbModel1"/> 
     27        </item> 
     28        <item> 
     29         <widget class="QComboBox" name="cbParam1"> 
     30          <property name="sizePolicy"> 
     31           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     32            <horstretch>0</horstretch> 
     33            <verstretch>0</verstretch> 
     34           </sizepolicy> 
     35          </property> 
     36          <property name="sizeAdjustPolicy"> 
     37           <enum>QComboBox::AdjustToContents</enum> 
     38          </property> 
     39          <item> 
     40           <property name="text"> 
     41            <string>sld</string> 
     42           </property> 
     43          </item> 
     44         </widget> 
     45        </item> 
     46        <item> 
     47         <widget class="QComboBox" name="cbOperator"> 
     48          <item> 
     49           <property name="text"> 
     50            <string>&gt;</string> 
     51           </property> 
     52          </item> 
     53         </widget> 
     54        </item> 
     55        <item> 
     56         <widget class="QComboBox" name="cbModel2"/> 
     57        </item> 
     58        <item> 
     59         <widget class="QComboBox" name="cbParam2"> 
     60          <property name="sizePolicy"> 
     61           <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     62            <horstretch>0</horstretch> 
     63            <verstretch>0</verstretch> 
     64           </sizepolicy> 
     65          </property> 
     66          <property name="sizeAdjustPolicy"> 
     67           <enum>QComboBox::AdjustToContents</enum> 
     68          </property> 
     69          <item> 
     70           <property name="text"> 
     71            <string>sld_a</string> 
     72           </property> 
     73          </item> 
     74         </widget> 
     75        </item> 
     76       </layout> 
     77      </item> 
    2378      <item row="1" column="0"> 
    2479       <layout class="QHBoxLayout" name="horizontalLayout_2"> 
     
    52107       </layout> 
    53108      </item> 
    54       <item row="0" column="0"> 
    55        <layout class="QHBoxLayout" name="horizontalLayout"> 
    56         <item> 
    57          <widget class="QLabel" name="txtName1"> 
    58           <property name="text"> 
    59            <string>name1</string> 
    60           </property> 
    61          </widget> 
    62         </item> 
    63         <item> 
    64          <widget class="QComboBox" name="cbParam1"> 
    65           <property name="sizePolicy"> 
    66            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
    67             <horstretch>0</horstretch> 
    68             <verstretch>0</verstretch> 
    69            </sizepolicy> 
    70           </property> 
    71           <property name="sizeAdjustPolicy"> 
    72            <enum>QComboBox::AdjustToContents</enum> 
    73           </property> 
    74           <item> 
    75            <property name="text"> 
    76             <string>sld</string> 
    77            </property> 
    78           </item> 
    79          </widget> 
    80         </item> 
    81         <item> 
    82          <widget class="QComboBox" name="cbOperator"> 
    83           <item> 
    84            <property name="text"> 
    85             <string>&gt;</string> 
    86            </property> 
    87           </item> 
    88          </widget> 
    89         </item> 
    90         <item> 
    91          <widget class="QLabel" name="txtName2"> 
    92           <property name="text"> 
    93            <string>name2</string> 
    94           </property> 
    95          </widget> 
    96         </item> 
    97         <item> 
    98          <widget class="QComboBox" name="cbParam2"> 
    99           <property name="sizePolicy"> 
    100            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
    101             <horstretch>0</horstretch> 
    102             <verstretch>0</verstretch> 
    103            </sizepolicy> 
    104           </property> 
    105           <property name="sizeAdjustPolicy"> 
    106            <enum>QComboBox::AdjustToContents</enum> 
    107           </property> 
    108           <item> 
    109            <property name="text"> 
    110             <string>sld_a</string> 
    111            </property> 
    112           </item> 
    113          </widget> 
    114         </item> 
    115         <item> 
    116          <spacer name="horizontalSpacer"> 
    117           <property name="orientation"> 
    118            <enum>Qt::Horizontal</enum> 
    119           </property> 
    120           <property name="sizeHint" stdset="0"> 
    121            <size> 
    122             <width>40</width> 
    123             <height>20</height> 
    124            </size> 
    125           </property> 
    126          </spacer> 
    127         </item> 
    128         <item> 
    129          <widget class="QPushButton" name="cmdRevert"> 
    130           <property name="text"> 
    131            <string>Swap</string> 
    132           </property> 
    133          </widget> 
    134         </item> 
    135        </layout> 
    136       </item> 
    137109     </layout> 
    138110    </widget> 
     
    188160       </property> 
    189161       <property name="popupMode"> 
    190         <enum>QToolButton::MenuButtonPopup</enum> 
     162        <enum>QToolButton::InstantPopup</enum> 
    191163       </property> 
    192164       <property name="toolButtonStyle"> 
Note: See TracChangeset for help on using the changeset viewer.