Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/debugger
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27824
Modified Files:
Tag: py3k
debugger.py
Log Message:
Save and restore Visible state of debugger windows
Index: debugger.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/debugger/debugger.py,v
retrieving revision 1.17.2.2
retrieving revision 1.17.2.3
diff -C2 -d -r1.17.2.2 -r1.17.2.3
*** debugger.py 3 Sep 2008 21:30:18 -0000 1.17.2.2
--- debugger.py 4 Sep 2008 20:53:56 -0000 1.17.2.3
***************
*** 185,188 ****
--- 185,189 ----
self.list.DeleteAllItems()
self.listOK = 0
+ win32ui.WriteProfileVal("Debugger Windows\\" + self.title, "Visible", self.IsWindowVisible())
def CreateWindow(self, parent):
style = win32con.WS_CHILD | win32con.WS_VISIBLE | win32con.WS_BORDER | commctrl.TVS_HASLINES | commctrl.TVS_LINESATROOT | commctrl.TVS_HASBUTTONS
***************
*** 300,303 ****
--- 301,305 ----
items.append(self.GetItemText(i,1))
win32ui.WriteProfileVal("Debugger Windows\\" + self.title, "BreakpointList", "\t".join(items))
+ win32ui.WriteProfileVal("Debugger Windows\\" + self.title, "Visible", self.IsWindowVisible())
return 1
***************
*** 364,367 ****
--- 366,370 ----
items.append(self.GetItemText(i,0))
win32ui.WriteProfileVal("Debugger Windows\\" + self.title, "Items", "\t".join(items))
+ win32ui.WriteProfileVal("Debugger Windows\\" + self.title, "Visible", self.IsWindowVisible())
return 1
***************
*** 449,453 ****
frame.FloatControlBar(bar, float, afxres.CBRS_ALIGN_ANY)
! frame.ShowControlBar(bar, 0, 1)
--- 452,456 ----
frame.FloatControlBar(bar, float, afxres.CBRS_ALIGN_ANY)
! ## frame.ShowControlBar(bar, 0, 1)
***************
*** 593,597 ****
def stop_here(self, frame):
if self.isInitialBreakpoint:
- print ('skip IsInitialBreakpoint')
self.isInitialBreakpoint = 0
self.set_continue()
--- 596,599 ----
***************
*** 785,790 ****
# Ensure the debugger windows are attached to the debugger.
for id, klass, float in DebuggerDialogInfos:
! w = frame.GetControlBar(id).dialog
! w.Init(self)
# ALWAYS show debugging toolbar, regardless of saved state
--- 787,796 ----
# Ensure the debugger windows are attached to the debugger.
for id, klass, float in DebuggerDialogInfos:
! w = frame.GetControlBar(id)
! w.dialog.Init(self)
! # Show toolbar if it was visible during last debug session
! # This would be better done using a CDockState, but that class is not wrapped yet
! if win32ui.GetProfileVal("Debugger Windows\\" + w.dialog.title, "Visible", 0):
! frame.ShowControlBar(w, 1, 1)
# ALWAYS show debugging toolbar, regardless of saved state
|