예제 #1
0
 def _syntaxErrorToggled(self, editor):
     """
     Protected slot to handle the syntaxerrorToggled signal.
     
     @param editor editor that sent the signal
     """
     if editor.hasSyntaxErrors():
         editor.setWindowIcon(UI.PixmapCache.getIcon("syntaxError.png"))
     else:
         editor.setWindowIcon(UI.PixmapCache.getIcon("empty.png"))
             
     ViewManager._syntaxErrorToggled(self, editor)
예제 #2
0
 def _syntaxErrorToggled(self, editor):
     """
     Protected slot to handle the syntaxerrorToggled signal.
     
     @param editor editor that sent the signal
     """
     currentRow = self.viewlist.currentRow()
     index = self.editors.index(editor)
     if editor.hasSyntaxErrors():
         self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("syntaxError.png"))
     else:
         self.viewlist.item(index).setIcon(UI.PixmapCache.getIcon("empty.png"))
     self.viewlist.setCurrentRow(currentRow)
     
     ViewManager._syntaxErrorToggled(self, editor)
예제 #3
0
 def _syntaxErrorToggled(self, editor):
     """
     Protected slot to handle the syntaxerrorToggled signal.
     
     @param editor editor that sent the signal
     """
     for tw in self.tabWidgets:
         if tw.hasEditor(editor):
             break
     index = tw.indexOf(editor)
     if editor.hasSyntaxErrors():
         tw.setTabIcon(index, UI.PixmapCache.getIcon("syntaxError.png"))
     else:
         tw.setTabIcon(index, UI.PixmapCache.getIcon("empty.png"))
     
     ViewManager._syntaxErrorToggled(self, editor)
예제 #4
0
    def _syntaxErrorToggled(self, editor):
        """
        Protected slot to handle the syntaxerrorToggled signal.
        
        @param editor editor that sent the signal
        """
        currentRow = self.viewlist.currentRow()
        index = self.editors.index(editor)
        keys = []
        if editor.isModified():
            keys.append("fileModified.png")
        if editor.hasSyntaxErrors():
            keys.append("syntaxError22.png")
        elif editor.hasWarnings():
            keys.append("warning22.png")
        if not keys:
            keys.append("empty.png")
        self.viewlist.item(index).setIcon(UI.PixmapCache.getCombinedIcon(keys))
        self.viewlist.setCurrentRow(currentRow)

        ViewManager._syntaxErrorToggled(self, editor)
예제 #5
0
    def _syntaxErrorToggled(self, editor):
        """
        Protected slot to handle the syntaxerrorToggled signal.
        
        @param editor editor that sent the signal
        """
        for tw in self.tabWidgets:
            if tw.hasEditor(editor):
                break
        index = tw.indexOf(editor)
        keys = []
        if editor.isModified():
            keys.append("fileModified.png")
        if editor.hasSyntaxErrors():
            keys.append("syntaxError22.png")
        elif editor.hasWarnings():
            keys.append("warning22.png")
        if not keys:
            keys.append("empty.png")
        tw.setTabIcon(index, UI.PixmapCache.getCombinedIcon(keys))

        ViewManager._syntaxErrorToggled(self, editor)
예제 #6
0
 def _syntaxErrorToggled(self, editor):
     """
     Protected slot to handle the syntaxerrorToggled signal.
     
     @param editor editor that sent the signal
     """
     for tw in self.tabWidgets:
         if tw.hasEditor(editor):
             break
     index = tw.indexOf(editor)
     keys = []
     if editor.isModified():
         keys.append("fileModified.png")
     if editor.hasSyntaxErrors():
         keys.append("syntaxError22.png")
     elif editor.hasWarnings():
         keys.append("warning22.png")
     if not keys:
         keys.append("empty.png")
     tw.setTabIcon(index, UI.PixmapCache.getCombinedIcon(keys))
     
     ViewManager._syntaxErrorToggled(self, editor)
예제 #7
0
 def _syntaxErrorToggled(self, editor):
     """
     Protected slot to handle the syntaxerrorToggled signal.
     
     @param editor editor that sent the signal
     """
     currentRow = self.viewlist.currentRow()
     index = self.editors.index(editor)
     keys = []
     if editor.isModified():
         keys.append("fileModified.png")
     if editor.hasSyntaxErrors():
         keys.append("syntaxError22.png")
     elif editor.hasWarnings():
         keys.append("warning22.png")
     if not keys:
         keys.append("empty.png")
     self.viewlist.item(index).setIcon(
         UI.PixmapCache.getCombinedIcon(keys))
     self.viewlist.setCurrentRow(currentRow)
     
     ViewManager._syntaxErrorToggled(self, editor)