step out button
[pygdb.git] / MainControlWindow.py
index 0b5c3f11413e36067c55c373fbb625a63d20d8ca..f5f47cd5472cf18345a52124ad453c1887c66848 100644 (file)
@@ -51,6 +51,8 @@ class MainControlWindow (gtk.Window):
                hbtnbox.add(self.stepoverBtn)
                self.stepinBtn = gtk.Button("Step In")
                hbtnbox.add(self.stepinBtn)
+               self.stepoutBtn = gtk.Button("Step Out")
+               hbtnbox.add(self.stepoutBtn)
                self.quitBtn = gtk.Button("Quit")
                hbtnbox.add(self.quitBtn)
 
@@ -68,6 +70,7 @@ class MainControlWindow (gtk.Window):
                self.stepoverBtnHandler = self.stepoverBtn.connect('clicked', \
                                self.stepoverBtnClicked)
                self.stepinBtnHandler = self.stepinBtn.connect('clicked', self.stepinBtnClicked)
+               self.stepoutBtnHandler = self.stepoutBtn.connect('clicked', self.stepoutBtnClicked)
                self.quitBtnHandler = self.quitBtn.connect('clicked', self.quitBtnClicked)
 
                #Show the window
@@ -87,6 +90,9 @@ class MainControlWindow (gtk.Window):
        def stepinBtnClicked(self, btn):
                pos = self.dbgterm.setStepin()
 
+       def stepoutBtnClicked(self, btn):
+               pos = self.dbgterm.setStepout()
+
        def quitBtnClicked(self, btn):
                self.dbgterm.setQuit()
 
@@ -95,6 +101,7 @@ class MainControlWindow (gtk.Window):
                self.continueBtn.handler_block(self.continueBtnHandler)
                self.stepoverBtn.handler_block(self.stepoverBtnHandler)
                self.stepinBtn.handler_block(self.stepinBtnHandler)
+               self.stepoutBtn.handler_block(self.stepoutBtnHandler)
                self.quitBtn.handler_block(self.quitBtnHandler)
 
        def enableButtons(self, *w):
@@ -102,5 +109,6 @@ class MainControlWindow (gtk.Window):
                self.continueBtn.handler_unblock(self.continueBtnHandler)
                self.stepoverBtn.handler_unblock(self.stepoverBtnHandler)
                self.stepinBtn.handler_unblock(self.stepinBtnHandler)
+               self.stepoutBtn.handler_unblock(self.stepoutBtnHandler)
                self.quitBtn.handler_unblock(self.quitBtnHandler)