Ejemplo n.º 1
0
class DebuggerBreakWatchPoints(QWidget):
    " Implements the debugger break and watch point viewer "

    def __init__(self, parent, debugger):
        QWidget.__init__(self, parent)

        self.__debugger = debugger
        self.__createLayout()
        return

    def __createLayout(self):
        " Creates the widget layout "

        verticalLayout = QVBoxLayout(self)
        verticalLayout.setContentsMargins(1, 1, 1, 1)

        self.splitter = QSplitter(Qt.Vertical)

        self.breakPointViewer = BreakPointViewer(
            self.splitter, self.__debugger.getBreakPointModel())
        self.__watchPointViewer = WatchPointViewer(
            self.splitter, self.__debugger.getWatchPointModel())
        # TODO: temporary
        self.__watchPointViewer.setVisible(False)

        self.splitter.addWidget(self.breakPointViewer)
        self.splitter.addWidget(self.__watchPointViewer)

        self.splitter.setCollapsible(0, False)
        self.splitter.setCollapsible(1, False)

        verticalLayout.addWidget(self.splitter)
        return

    def clear(self):
        " Clears everything "
        self.breakPointViewer.clear()
        self.__watchPointViewer.clear()
        return

    def setFocus(self):
        " Sets the focus to the break points window "
        self.breakPointViewer.setFocus()
        return
Ejemplo n.º 2
0
class DebuggerBreakWatchPoints( QWidget ):
    " Implements the debugger break and watch point viewer "

    def __init__( self, parent, debugger ):
        QWidget.__init__( self, parent )

        self.__debugger = debugger
        self.__createLayout()
        return

    def __createLayout( self ):
        " Creates the widget layout "

        verticalLayout = QVBoxLayout( self )
        verticalLayout.setContentsMargins( 1, 1, 1, 1 )

        self.splitter = QSplitter( Qt.Vertical )

        self.breakPointViewer = BreakPointViewer( self.splitter,
                                                    self.__debugger.getBreakPointModel() )
        self.__watchPointViewer = WatchPointViewer( self.splitter,
                                                    self.__debugger.getWatchPointModel() )
        # TODO: temporary
        self.__watchPointViewer.setVisible( False )

        self.splitter.addWidget( self.breakPointViewer )
        self.splitter.addWidget( self.__watchPointViewer )

        self.splitter.setCollapsible( 0, False )
        self.splitter.setCollapsible( 1, False )

        verticalLayout.addWidget( self.splitter )
        return

    def clear( self ):
        " Clears everything "
        self.breakPointViewer.clear()
        self.__watchPointViewer.clear()
        return

    def setFocus( self ):
        " Sets the focus to the break points window "
        self.breakPointViewer.setFocus()
        return
Ejemplo n.º 3
0
    def __createLayout(self):
        " Creates the widget layout "

        verticalLayout = QVBoxLayout(self)
        verticalLayout.setContentsMargins(1, 1, 1, 1)

        self.splitter = QSplitter(Qt.Vertical)

        self.breakPointViewer = BreakPointViewer(
            self.splitter, self.__debugger.getBreakPointModel())
        self.__watchPointViewer = WatchPointViewer(
            self.splitter, self.__debugger.getWatchPointModel())
        # TODO: temporary
        self.__watchPointViewer.setVisible(False)

        self.splitter.addWidget(self.breakPointViewer)
        self.splitter.addWidget(self.__watchPointViewer)

        self.splitter.setCollapsible(0, False)
        self.splitter.setCollapsible(1, False)

        verticalLayout.addWidget(self.splitter)
        return
Ejemplo n.º 4
0
    def __createLayout( self ):
        " Creates the widget layout "

        verticalLayout = QVBoxLayout( self )
        verticalLayout.setContentsMargins( 1, 1, 1, 1 )

        self.splitter = QSplitter( Qt.Vertical )

        self.breakPointViewer = BreakPointViewer( self.splitter,
                                                    self.__debugger.getBreakPointModel() )
        self.__watchPointViewer = WatchPointViewer( self.splitter,
                                                    self.__debugger.getWatchPointModel() )
        # TODO: temporary
        self.__watchPointViewer.setVisible( False )

        self.splitter.addWidget( self.breakPointViewer )
        self.splitter.addWidget( self.__watchPointViewer )

        self.splitter.setCollapsible( 0, False )
        self.splitter.setCollapsible( 1, False )

        verticalLayout.addWidget( self.splitter )
        return