projects
/
pygdb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remembering window sizes
[pygdb.git]
/
StatusWindow.py
diff --git
a/StatusWindow.py
b/StatusWindow.py
index 121c0b8a7f5b9375e2b6614ffa90abf3ad427d1e..4a08b54f068f771f801b9733fa2cdb50adaead6e 100644
(file)
--- a/
StatusWindow.py
+++ b/
StatusWindow.py
@@
-29,15
+29,15
@@
class StatusWindow (gtk.Window):
self.status = gtk.Label("Not Running")
vbox.pack_start(self.status, False, False)
self.status = gtk.Label("Not Running")
vbox.pack_start(self.status, False, False)
-
vpaned
= gtk.VPaned()
- vbox.add(
vpaned
)
+
self.paned1
= gtk.VPaned()
+ vbox.add(
self.paned1
)
#Adding the frames
self.frames = []
self.frames += [WatchesFrame.WatchesFrame(debugger)]
self.frames += [BreakpointsFrame.BreakpointsFrame(debugger)]
#Adding the frames
self.frames = []
self.frames += [WatchesFrame.WatchesFrame(debugger)]
self.frames += [BreakpointsFrame.BreakpointsFrame(debugger)]
-
vpaned
.add1(self.frames[0])
-
vpaned
.add2(self.frames[1])
+
self.paned1
.add1(self.frames[0])
+
self.paned1
.add2(self.frames[1])
#Register callback function for new positions
#and update the values
#Register callback function for new positions
#and update the values
@@
-48,6
+48,17
@@
class StatusWindow (gtk.Window):
def applyConfiguration(self, conf):
def applyConfiguration(self, conf):
+ w = conf.findInt("statuswnd-width")
+ h = conf.findInt("statuswnd-height")
+ paned1 = conf.findInt("statuswnd-paned1")
+
+ print w, h, paned1
+ if w!=None and h!=None:
+ self.resize(w,h)
+ if paned1!=None:
+ self.paned1.set_position(paned1)
+
+
while not self.debugger.isActive():
gtk.main_iteration()
while not self.debugger.isActive():
gtk.main_iteration()
@@
-56,6
+67,11
@@
class StatusWindow (gtk.Window):
def fillConfiguration(self, conf):
def fillConfiguration(self, conf):
+
+ conf.addInt("statuswnd-width", self.get_size()[0])
+ conf.addInt("statuswnd-height", self.get_size()[1])
+ conf.addInt("statuswnd-paned1", self.paned1.get_position())
+
for f in self.frames:
f.fillConfiguration(conf)
for f in self.frames:
f.fillConfiguration(conf)