Ejemplo n.º 1
0
    def _initIcons(cls):
        if cls._panelStateIconSet:
            return

        panelStatePaths = iconutils.iconPathSet(
            "panelMode.svg", constants.PANEL_VIS_STATE_ICON_SUFFIXES)
        cls._panelStateIconSet = [iconFromPath(p) for p in panelStatePaths]

        iconutils.initSingleClassIcon(cls, "_iutestIcon", "iutest.svg")
        iconutils.initSingleClassIcon(cls, "_reimportIcon", "reimport.svg")
        iconutils.initSingleClassIcon(cls, "_reloadUiIcon", "reloadUI.svg")
        iconutils.initSingleClassIcon(cls, "_configIcon", "config.svg")
        iconutils.initSingleClassIcon(cls, "_moreIcon", "more.svg")
        iconutils.initSingleClassIcon(cls, "_filterIcon", "stateFilter.svg")
        iconutils.initSingleClassIcon(cls, "_autoFilterIcon", "autoFilter.svg")
        iconutils.initSingleClassIcon(cls, "_resetIcon", "reset.svg")
        iconutils.initSingleClassIcon(cls, "_clearLogIcon", "clearLog.svg")
        iconutils.initSingleClassIcon(cls, "_clearLogOnRunIcon",
                                      "clearLogOnRun.svg")
        iconutils.initSingleClassIcon(cls, "_stopAtErrorIcon",
                                      "stopAtError.svg")
        iconutils.initSingleClassIcon(cls, "_caseSensitiveIcon",
                                      "caseSensitive.svg")
        iconutils.initSingleClassIcon(cls, "_wholeWordIcon", "wholeWord.svg")
Ejemplo n.º 2
0
 def _initComboIcons(cls, iconVarName, iconFileName):
     iconPaths = iconutils.iconPathSet(iconFileName, constants.TEST_ICON_SUFFIXES)
     icons = []
     for path in iconPaths:
         icons.append(iconFromPath(path))
     setattr(cls, iconVarName, icons)
Ejemplo n.º 3
0
def initSingleClassIcon(obj, objAttributeName, iconFileName):
    path = iconPath(iconFileName)
    setattr(obj, objAttributeName, iconFromPath(path))
Ejemplo n.º 4
0
 def _initSingleIcon(cls, iconVarName, iconFileName):
     iconPath = iconutils.iconPath(iconFileName)
     setattr(cls, iconVarName, iconFromPath(iconPath))
Ejemplo n.º 5
0
 def icon(cls):
     return _qt.iconFromPath(iconutils.iconPath(cls.iconFileName()))