Changeset 0979dfb in sasview


Ignore:
Timestamp:
Mar 22, 2017 6:14:18 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
29eb947
Parents:
351b53e
Message:

redesigned most important buttons to make the workflow more obvious

Location:
src/sas/qtgui
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py

    r83d6249 r0979dfb  
    4040    # for the gui and providing an interface to the data model. 
    4141    name = "Invariant" # For displaying in the combo box 
    42     def __init__(self, manager=None, parent=None): 
    43         super(InvariantWindow, self).__init__(parent) 
     42    #def __init__(self, manager=None, parent=None): 
     43    def __init__(self, parent=None): 
     44        #super(InvariantWindow, self).__init__(parent) 
     45        super(InvariantWindow, self).__init__() 
    4446        self.setupUi(self) 
    4547 
     
    5557        self._power_low = 4 
    5658 
    57         self._manager = manager 
     59        self._manager = parent 
     60        #self._manager = manager 
    5861        self._reactor = self._manager.reactor() 
    5962        self._model_item = QtGui.QStandardItem() 
  • src/sas/qtgui/UI/DataExplorerUI.ui

    rca8b853 r0979dfb  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>517</width> 
     9    <width>389</width> 
    1010    <height>693</height> 
    1111   </rect> 
     
    1414   <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 
    1515    <horstretch>0</horstretch> 
    16     <verstretch>0</verstretch> 
     16    <verstretch>5</verstretch> 
    1717   </sizepolicy> 
    1818  </property> 
     
    4242         <item> 
    4343          <widget class="QPushButton" name="cmdLoad"> 
    44            <property name="text"> 
    45             <string>Load</string> 
     44           <property name="sizePolicy"> 
     45            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     46             <horstretch>5</horstretch> 
     47             <verstretch>5</verstretch> 
     48            </sizepolicy> 
     49           </property> 
     50           <property name="minimumSize"> 
     51            <size> 
     52             <width>154</width> 
     53             <height>50</height> 
     54            </size> 
     55           </property> 
     56           <property name="baseSize"> 
     57            <size> 
     58             <width>100</width> 
     59             <height>50</height> 
     60            </size> 
     61           </property> 
     62           <property name="toolTip"> 
     63            <string>Load a file with data</string> 
     64           </property> 
     65           <property name="styleSheet"> 
     66            <string notr="true">font: 13pt &quot;MS Shell Dlg 2&quot;;</string> 
     67           </property> 
     68           <property name="text"> 
     69            <string>Load data</string> 
     70           </property> 
     71           <property name="icon"> 
     72            <iconset resource="main_resources.qrc"> 
     73             <normaloff>:/res/down-grey.png</normaloff>:/res/down-grey.png</iconset> 
     74           </property> 
     75           <property name="iconSize"> 
     76            <size> 
     77             <width>48</width> 
     78             <height>48</height> 
     79            </size> 
     80           </property> 
     81           <property name="shortcut"> 
     82            <string>Ctrl+R</string> 
    4683           </property> 
    4784          </widget> 
     
    143180        <layout class="QHBoxLayout" name="horizontalLayout"> 
    144181         <item> 
    145           <spacer name="horizontalSpacer"> 
    146            <property name="orientation"> 
    147             <enum>Qt::Horizontal</enum> 
    148            </property> 
    149            <property name="sizeHint" stdset="0"> 
    150             <size> 
    151              <width>58</width> 
    152              <height>20</height> 
    153             </size> 
    154            </property> 
    155           </spacer> 
    156          </item> 
    157          <item> 
    158           <widget class="QToolButton" name="cmdSendTo"> 
    159            <property name="text"> 
    160             <string>...</string> 
     182          <widget class="QPushButton" name="cmdSendTo"> 
     183           <property name="sizePolicy"> 
     184            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> 
     185             <horstretch>5</horstretch> 
     186             <verstretch>5</verstretch> 
     187            </sizepolicy> 
     188           </property> 
     189           <property name="minimumSize"> 
     190            <size> 
     191             <width>170</width> 
     192             <height>50</height> 
     193            </size> 
     194           </property> 
     195           <property name="baseSize"> 
     196            <size> 
     197             <width>100</width> 
     198             <height>50</height> 
     199            </size> 
     200           </property> 
     201           <property name="font"> 
     202            <font> 
     203             <pointsize>13</pointsize> 
     204            </font> 
     205           </property> 
     206           <property name="toolTip"> 
     207            <string>Send data to perspective</string> 
     208           </property> 
     209           <property name="styleSheet"> 
     210            <string notr="true">font: 13pt &quot;MS Shell Dlg 2&quot;;</string> 
     211           </property> 
     212           <property name="text"> 
     213            <string>Send data to</string> 
    161214           </property> 
    162215           <property name="icon"> 
    163216            <iconset resource="main_resources.qrc"> 
    164              <normaloff>:/res/file_send-128.png</normaloff>:/res/file_send-128.png</iconset> 
     217             <normaloff>:/res/right-grey.png</normaloff>:/res/right-grey.png</iconset> 
    165218           </property> 
    166219           <property name="iconSize"> 
    167220            <size> 
    168              <width>32</width> 
    169              <height>32</height> 
     221             <width>48</width> 
     222             <height>48</height> 
    170223            </size> 
    171224           </property> 
     
    218271        <property name="title"> 
    219272         <string>Plot</string> 
     273        </property> 
     274        <property name="flat"> 
     275         <bool>false</bool> 
     276        </property> 
     277        <property name="checkable"> 
     278         <bool>false</bool> 
    220279        </property> 
    221280        <layout class="QGridLayout" name="gridLayout_3"> 
  • src/sas/qtgui/UI/main_resources.qrc

    rf82ab8c r0979dfb  
    11<RCC> 
    22  <qresource> 
     3    <file>res/down-grey.png</file> 
     4    <file>res/right-grey.png</file> 
    35    <file>res/file_send-128.png</file> 
    46    <file>res/SendTo512.png</file> 
Note: See TracChangeset for help on using the changeset viewer.