Changeset b0c5e8c in sasview for src/sas/qtgui/Calculators


Ignore:
Timestamp:
Jun 15, 2017 6:24:49 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:
72f4834
Parents:
144ec831
Message:

Unit tests for fitting options dialog SASVIEW-514

Location:
src/sas/qtgui/Calculators
Files:
5 edited

Legend:

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

    rcd2cc745 rb0c5e8c  
    88from sas.qtgui.Utilities.GuiUtils import FormulaValidator 
    99from sas.qtgui.UI import main_resources_rc 
     10from sas.qtgui.Utilities.GuiUtils import HELP_DIRECTORY_LOCATION 
    1011 
    1112# Local UI 
     
    148149    def displayHelp(self): 
    149150        try: 
    150             location = self.manager.HELP_DIRECTORY_LOCATION + \ 
     151            location = HELP_DIRECTORY_LOCATION + \ 
    151152                "/user/sasgui/perspectives/calculator/density_calculator_help.html" 
    152153 
  • src/sas/qtgui/Calculators/GenericScatteringCalculator.py

    rdc5ef15 rb0c5e8c  
    378378        """ 
    379379        try: 
    380             location = self.manager.HELP_DIRECTORY_LOCATION + \ 
     380            location = GuiUtils.HELP_DIRECTORY_LOCATION + \ 
    381381                       "/user/sasgui/perspectives/calculator/sas_calculator_help.html" 
    382382            self.manager._helpView.load(QtCore.QUrl(location)) 
  • src/sas/qtgui/Calculators/KiessigPanel.py

    rcd2cc745 rb0c5e8c  
    44from sas.qtgui.UI import main_resources_rc 
    55from UI.KiessigPanel import Ui_KiessigPanel 
     6import sas.qtgui.Utilities.GuiUtils as GuiUtils 
    67 
    78# sas-global 
     
    3738        """ 
    3839        try: 
    39             location = self.manager.HELP_DIRECTORY_LOCATION + \ 
     40            location = GuiUtils.HELP_DIRECTORY_LOCATION + \ 
    4041                "/user/sasgui/perspectives/calculator/kiessig_calculator_help.html" 
    4142 
  • src/sas/qtgui/Calculators/SldPanel.py

    rcd2cc745 rb0c5e8c  
    77from periodictable.nsf import neutron_scattering 
    88 
    9 from sas.qtgui.Utilities.GuiUtils import FormulaValidator 
     9import sas.qtgui.Utilities.GuiUtils as GuiUtils 
     10 
    1011from sas.qtgui.UI import main_resources_rc 
    1112 
     
    125126 
    126127        # set validators 
    127         self.ui.editMolecularFormula.setValidator(FormulaValidator(self.ui.editMolecularFormula)) 
     128        self.ui.editMolecularFormula.setValidator(GuiUtils.FormulaValidator(self.ui.editMolecularFormula)) 
    128129 
    129130        rx = QtCore.QRegExp("[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?") 
     
    216217    def displayHelp(self): 
    217218        try: 
    218             location = self.manager.HELP_DIRECTORY_LOCATION + \ 
     219            location = GuiUtils.HELP_DIRECTORY_LOCATION + \ 
    219220                "/user/sasgui/perspectives/calculator/sld_calculator_help.html" 
    220221            self.manager._helpView.load(QtCore.QUrl(location)) 
  • src/sas/qtgui/Calculators/SlitSizeCalculator.py

    rcd2cc745 rb0c5e8c  
    99 
    1010from sas.qtgui.UI import main_resources_rc 
     11import sas.qtgui.Utilities.GuiUtils as GuiUtils 
    1112 
    1213from UI.SlitSizeCalculator import Ui_SlitSizeCalculator 
     
    4546        """ 
    4647        try: 
    47             location = self._parent.HELP_DIRECTORY_LOCATION + \ 
     48            location = GuiUtils.HELP_DIRECTORY_LOCATION + \ 
    4849                "/user/sasgui/perspectives/calculator/slit_calculator_help.html" 
    4950 
Note: See TracChangeset for help on using the changeset viewer.