Changeset f51ed67 in sasview


Ignore:
Timestamp:
Aug 10, 2016 10:07:15 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:
0fc37fea
Parents:
51b2b51
Message:

Clean up and automate generation of UI and resources

Location:
src/sas/qtgui
Files:
5 added
10 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/AboutBox.py

    r481ff26 rf51ed67  
    11import functools 
     2from PyQt4 import QtGui 
    23 
    34import sas.sasview 
     
    56import GuiUtils 
    67 
    7 from UI.AboutUI import AboutUI 
     8from UI.AboutUI import Ui_AboutUI 
    89 
    9 class AboutBox(AboutUI): 
     10class AboutBox(QtGui.QDialog, Ui_AboutUI): 
    1011    def __init__(self, parent=None): 
    1112        super(AboutBox, self).__init__(parent) 
     13        self.setupUi(self) 
     14 
    1215        self.setWindowTitle("About") 
    1316 
  • src/sas/qtgui/DroppableDataLoadWidget.py

    re540cd2 rf51ed67  
    11# global 
    2 from PyQt4 import QtCore 
     2from PyQt4 import QtGui, QtCore 
    33 
    44# UI 
    5 from UI.DataExplorerUI import DataLoadWidget 
     5from UI.DataExplorerUI import Ui_DataLoadWidget 
    66 
    7 class DroppableDataLoadWidget(DataLoadWidget): 
     7class DroppableDataLoadWidget(QtGui.QTabWidget, Ui_DataLoadWidget): 
    88    """ 
    99    Overwrite drag and drop methods in the base class 
     
    1212    def __init__(self, parent=None, guimanager=None): 
    1313        super(DroppableDataLoadWidget, self).__init__(parent) 
     14        self.setupUi(self) 
    1415 
    1516        # Enable file drag-drop on treeView 
  • src/sas/qtgui/GuiManager.py

    rff49d4d rf51ed67  
    2020import LocalConfig 
    2121import GuiUtils 
    22 from UI.AcknowledgementsUI import Acknowledgements 
     22from UI.AcknowledgementsUI import Ui_Acknowledgements 
    2323from AboutBox import AboutBox 
    2424from IPythonWidget import IPythonWidget 
     25from WelcomePanel import WelcomePanel 
    2526 
    2627# Perspectives 
    2728from Perspectives.Invariant.InvariantPerspective import InvariantWindow 
    2829from DataExplorer import DataExplorerWindow 
    29 from WelcomePanel import WelcomePanel 
     30 
     31class Acknowledgements(QtGui.QDialog, Ui_Acknowledgements): 
     32    def __init__(self, parent=None): 
     33        QtGui.QDialog.__init__(self, parent) 
     34        self.setupUi(self) 
    3035 
    3136class GuiManager(object): 
  • src/sas/qtgui/MainWindow.py

    ra95260d rf51ed67  
    44 
    55# Local UI 
    6 from UI.MainWindowUI import MainWindow 
     6from UI.MainWindowUI import Ui_MainWindow 
    77 
    88# Initialize logging 
    99import SasviewLogger 
    1010 
    11 class MainSasViewWindow(MainWindow): 
     11class MainSasViewWindow(QtGui.QMainWindow, Ui_MainWindow): 
    1212    # Main window of the application 
    1313    def __init__(self, reactor, parent=None): 
    1414        super(MainSasViewWindow, self).__init__(parent) 
     15        self.setupUi(self) 
    1516 
    1617        # define workspace for dialogs. 
  • src/sas/qtgui/UI/__init__.py

    • Property mode changed from 100755 to 100644
  • src/sas/qtgui/UI/convert.bat

    r51b2b51 rf51ed67  
    11@echo off 
    22 
    3 pyuic4.bat -w %1.ui > %1.py 
     3pyuic4.bat %1.ui > %1.py 
    44 
    55 
  • src/sas/qtgui/UI/convert_all.bat

    r51b2b51 rf51ed67  
    22 
    33for %%f in (*.ui) do ( 
    4   pyuic4.bat -w %%f > %%~nf.py 
     4  call pyuic4.bat %%f > %%~nf.py 
    55) 
    66 
  • src/sas/qtgui/UI/convert_ui.sh

    rf721030 rf51ed67  
    1 pyuic.bat -w $1.ui > $1.py 
     1pyuic.bat $1.ui > $1.py 
  • src/sas/qtgui/WelcomePanel.py

    re540cd2 rf51ed67  
    99import LocalConfig 
    1010 
    11 from UI.WelcomePanelUI import WelcomePanelUI 
     11from UI.WelcomePanelUI import Ui_WelcomePanelUI 
    1212 
    13 class WelcomePanel(WelcomePanelUI): 
     13class WelcomePanel(QtGui.QDialog, Ui_WelcomePanelUI): 
    1414    def __init__(self, parent=None): 
    1515        super(WelcomePanel, self).__init__(parent) 
     16        self.setupUi(self) 
     17 
    1618        self.setWindowTitle("Welcome") 
    1719 
  • src/sas/qtgui/images/convert_rc.bat

    r51b2b51 rf51ed67  
    11@echo off 
    22 
    3 pyrcc4.exe -py3 %1.qrc -o %1_rc.py 
     3pyrcc4.exe -py3 %1.qrc -o ..\UI\%1_rc.py 
    44 
  • src/sas/qtgui/images/convert_rc.sh

    r51b2b51 rf51ed67  
    1 pyrcc4 -py3 $1.qrc -o $1_rc.py 
     1pyrcc4 -py3 $1.qrc -o ../UI/$1_rc.py 
Note: See TracChangeset for help on using the changeset viewer.