Changeset e540cd2 in sasview for src/sas/qtgui/UI


Ignore:
Timestamp:
Jul 7, 2016 4:54:18 AM (8 years ago)
Author:
Piotr Rozyczko <piotr.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:
0cd8612
Parents:
f0f309d
Message:

Status bar, progress bar, initial treeview context menu + minor cleanup

Location:
src/sas/qtgui/UI
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/UI/DataExplorerUI.py

    r481ff26 re540cd2  
    6969        self.gridLayout.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) 
    7070        self.treeView = QtGui.QTreeView(self.groupBox) 
     71        self.treeView.setContextMenuPolicy(QtCore.Qt.NoContextMenu) 
    7172        self.treeView.setAcceptDrops(True) 
    7273        self.treeView.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers) 
     
    191192        self.gridLayout_8.addLayout(self.gridLayout_5, 1, 0, 1, 1) 
    192193        DataLoadWidget.addTab(self.theoryTab, _fromUtf8("")) 
     194        self.actionDataInfo = QtGui.QAction(DataLoadWidget) 
     195        self.actionDataInfo.setObjectName(_fromUtf8("actionDataInfo")) 
     196        self.actionSaveAs = QtGui.QAction(DataLoadWidget) 
     197        self.actionSaveAs.setObjectName(_fromUtf8("actionSaveAs")) 
     198        self.actionQuickPlot = QtGui.QAction(DataLoadWidget) 
     199        self.actionQuickPlot.setObjectName(_fromUtf8("actionQuickPlot")) 
     200        self.actionQuick3DPlot = QtGui.QAction(DataLoadWidget) 
     201        self.actionQuick3DPlot.setObjectName(_fromUtf8("actionQuick3DPlot")) 
     202        self.actionEditMask = QtGui.QAction(DataLoadWidget) 
     203        self.actionEditMask.setObjectName(_fromUtf8("actionEditMask")) 
    193204 
    194205        self.retranslateUi(DataLoadWidget) 
     
    227238        self.cmdHelp_2.setText(_translate("DataLoadWidget", "Help", None)) 
    228239        DataLoadWidget.setTabText(DataLoadWidget.indexOf(self.theoryTab), _translate("DataLoadWidget", "Theory", None)) 
     240        self.actionDataInfo.setText(_translate("DataLoadWidget", "Data Info", None)) 
     241        self.actionSaveAs.setText(_translate("DataLoadWidget", "Save As", None)) 
     242        self.actionQuickPlot.setText(_translate("DataLoadWidget", "Quick Plot", None)) 
     243        self.actionQuick3DPlot.setText(_translate("DataLoadWidget", "Quick 3DPlot (slow)", None)) 
     244        self.actionEditMask.setText(_translate("DataLoadWidget", "Edit Mask", None)) 
    229245 
    230246import main_resources_rc 
  • src/sas/qtgui/UI/DataExplorerUI.ui

    r481ff26 re540cd2  
    111111       <item row="1" column="0"> 
    112112        <widget class="QTreeView" name="treeView"> 
     113         <property name="contextMenuPolicy"> 
     114          <enum>Qt::NoContextMenu</enum> 
     115         </property> 
    113116         <property name="acceptDrops"> 
    114117          <bool>true</bool> 
     
    395398   </layout> 
    396399  </widget> 
     400  <action name="actionDataInfo"> 
     401   <property name="text"> 
     402    <string>Data Info</string> 
     403   </property> 
     404  </action> 
     405  <action name="actionSaveAs"> 
     406   <property name="text"> 
     407    <string>Save As</string> 
     408   </property> 
     409  </action> 
     410  <action name="actionQuickPlot"> 
     411   <property name="text"> 
     412    <string>Quick Plot</string> 
     413   </property> 
     414  </action> 
     415  <action name="actionQuick3DPlot"> 
     416   <property name="text"> 
     417    <string>Quick 3DPlot (slow)</string> 
     418   </property> 
     419  </action> 
     420  <action name="actionEditMask"> 
     421   <property name="text"> 
     422    <string>Edit Mask</string> 
     423   </property> 
     424  </action> 
    397425 </widget> 
    398426 <resources> 
  • src/sas/qtgui/UI/MainWindowUI.py

    rf721030 re540cd2  
    2626    def setupUi(self, MainWindow): 
    2727        MainWindow.setObjectName(_fromUtf8("MainWindow")) 
    28         MainWindow.resize(915, 555) 
     28        MainWindow.resize(915, 527) 
    2929        icon = QtGui.QIcon() 
    3030        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/res/ball.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off) 
     
    157157        self.actionCascade = QtGui.QAction(MainWindow) 
    158158        self.actionCascade.setObjectName(_fromUtf8("actionCascade")) 
    159         self.actionTile_Horizontally = QtGui.QAction(MainWindow) 
    160         self.actionTile_Horizontally.setObjectName(_fromUtf8("actionTile_Horizontally")) 
     159        self.actionTile = QtGui.QAction(MainWindow) 
     160        self.actionTile.setObjectName(_fromUtf8("actionTile")) 
    161161        self.actionTile_Vertically = QtGui.QAction(MainWindow) 
    162162        self.actionTile_Vertically.setObjectName(_fromUtf8("actionTile_Vertically")) 
     
    240240        self.menuFitting.addAction(self.actionEdit_Custom_Model) 
    241241        self.menuWindow.addAction(self.actionCascade) 
    242         self.menuWindow.addAction(self.actionTile_Horizontally) 
    243         self.menuWindow.addAction(self.actionTile_Vertically) 
     242        self.menuWindow.addAction(self.actionTile) 
    244243        self.menuWindow.addSeparator() 
    245244        self.menuWindow.addAction(self.actionArrange_Icons) 
     
    331330        self.actionEdit_Custom_Model.setText(_translate("MainWindow", "Edit Custom Model", None)) 
    332331        self.actionCascade.setText(_translate("MainWindow", "Cascade", None)) 
    333         self.actionTile_Horizontally.setText(_translate("MainWindow", "Tile Horizontally", None)) 
     332        self.actionTile.setText(_translate("MainWindow", "Tile", None)) 
    334333        self.actionTile_Vertically.setText(_translate("MainWindow", "Tile Vertically", None)) 
    335334        self.actionArrange_Icons.setText(_translate("MainWindow", "Arrange Icons", None)) 
  • src/sas/qtgui/UI/MainWindowUI.ui

    rf721030 re540cd2  
    88    <y>0</y> 
    99    <width>915</width> 
    10     <height>555</height> 
     10    <height>527</height> 
    1111   </rect> 
    1212  </property> 
     
    112112    </property> 
    113113    <addaction name="actionCascade"/> 
    114     <addaction name="actionTile_Horizontally"/> 
    115     <addaction name="actionTile_Vertically"/> 
     114    <addaction name="actionTile"/> 
    116115    <addaction name="separator"/> 
    117116    <addaction name="actionArrange_Icons"/> 
     
    399398   </property> 
    400399  </action> 
    401   <action name="actionTile_Horizontally"> 
    402    <property name="text"> 
    403     <string>Tile Horizontally</string> 
     400  <action name="actionTile"> 
     401   <property name="text"> 
     402    <string>Tile</string> 
    404403   </property> 
    405404  </action> 
Note: See TracChangeset for help on using the changeset viewer.