Beispiel #1
0
    def __init__(self, main, parent=None):
        QTabWidget.__init__(self, parent=parent)
        self.main = main
        self.parent = parent
        self._restoreFunc = None

        self.setupUi()
Beispiel #2
0
 def __init__(self, parent=None):
     QTabWidget.__init__(self, parent)
     self.setTabsClosable(True)
     self.setMovable(True)
     self.LastFile = None
     # to see if is new or opened
    # self.setCornerWidget(parent, QtCore.Qt.TopRightCorner)
     #self.tabNavigator = TabNavigator()
     self._already_open = []
Beispiel #3
0
 def __init__(self, parent=None):
     QTabWidget.__init__(self, parent)
     self.setTabsClosable(True)
     self.setMovable(True)
     self.LastFile = None
     # to see if is new or opened
     # self.setCornerWidget(parent, QtCore.Qt.TopRightCorner)
     #self.tabNavigator = TabNavigator()
     self._already_open = []
Beispiel #4
0
    def __init__(self, compatibilityManager, filePath):
        editors.UndoStackTabbedEditor.__init__(self, compatibilityManager, filePath)
        QTabWidget.__init__(self)

        self.setTabPosition(QTabWidget.South)
        self.setTabShape(QTabWidget.Triangular)

        self.currentChanged.connect(self.slot_currentChanged)

        # will be -1, that means no tabs are selected
        self.currentTabIndex = self.currentIndex()
        # when canceling tab transfer we have to switch back and avoid unnecessary deactivate/activate cycle
        self.ignoreCurrentChanged = False
        # to avoid unnecessary undo command pushes we ignore currentChanged if we are
        # inside ModeChangeCommand.undo or redo
        self.ignoreCurrentChangedForUndo = False
Beispiel #5
0
    def __init__(self, compatibilityManager, filePath):
        editors.UndoStackTabbedEditor.__init__(self, compatibilityManager,
                                               filePath)
        QTabWidget.__init__(self)

        self.setTabPosition(QTabWidget.South)
        self.setTabShape(QTabWidget.Triangular)

        self.currentChanged.connect(self.slot_currentChanged)

        # will be -1, that means no tabs are selected
        self.currentTabIndex = self.currentIndex()
        # when canceling tab transfer we have to switch back and avoid unnecessary deactivate/activate cycle
        self.ignoreCurrentChanged = False
        # to avoid unnecessary undo command pushes we ignore currentChanged if we are
        # inside ModeChangeCommand.undo or redo
        self.ignoreCurrentChangedForUndo = False
Beispiel #6
0
 def __init__(self, help_instance = None):
     QTabWidget.__init__(self)
     self.help_instance = help_instance
Beispiel #7
0
 def __init__(self, *args, **kwargs ):
     QTabWidget.__init__( self, *args, **kwargs )
     self.lineEditEventFilter = LineEditEventFilter()
     self.lineLayouts = []
Beispiel #8
0
 def __init__(self, *args, **kwargs ):
     QTabWidget.__init__( self, *args, **kwargs )
     self.lineEditEventFilter = LineEditEventFilter()
     self.lineLayouts = []