diff options
author | Jim Ingham <jingham@apple.com> | 2000-03-28 01:59:40 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2000-03-28 01:59:40 +0000 |
commit | a7046152a9ebf199b3e5710cd5c75773e8d48a1f (patch) | |
tree | f999172302d269b5b53d2195fb7fedb3f759b15b /gdb/gdbtk/library/prefs.tcl | |
parent | 7011ddd55b6a61b042d05cea46fb1deb97266561 (diff) | |
download | gdb-a7046152a9ebf199b3e5710cd5c75773e8d48a1f.tar.gz |
Reintroduce the code that saves away window state, and restores it
when you restart gdbtk.
2000-03-27 James Ingham <jingham@leda.cygnus.com>
* interface.tcl (gdbtk_quit): Let the window manager store away
the list of active windows before quitting.
(gdbtk_tcl_preloop): Open all the windows that were active in the
former session.
* prefs.tcl (pref_set_defaults): Set the default value of the
"gdb/window/active" pref. Stores the list of active windows.
* managedwin.itb (ManagedWin::pickle): New method - store away
instructions to recreate this window.
(ManagedWin::shutdown): New Method - run through the active windows
pickling them all.
(ManagedWin::startup): Restore all the saved active windows.
* managedwin.ith: Declare pickle, shutdown & startup.
* tclIndex: regenerate.
Diffstat (limited to 'gdb/gdbtk/library/prefs.tcl')
-rw-r--r-- | gdb/gdbtk/library/prefs.tcl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/gdbtk/library/prefs.tcl b/gdb/gdbtk/library/prefs.tcl index bc69b131f53..668fbddec50 100644 --- a/gdb/gdbtk/library/prefs.tcl +++ b/gdb/gdbtk/library/prefs.tcl @@ -171,7 +171,8 @@ proc pref_save {{win {}}} { } #now loop through all sections writing out values - lappend secs load console src reg stack locals watch bp search process geometry help browser kod + lappend secs load console src reg stack locals watch bp search \ + process geometry help browser kod window foreach section $secs { puts $fd "\[$section\]" @@ -251,6 +252,9 @@ proc pref_set_defaults {} { pref define gdb/load/port "/dev/ttyS0" } + # The list of active windows: + pref define gdb/window/active {} + # Console defaults pref define gdb/console/prompt "(gdb) " pref define gdb/console/deleteLeft 1 @@ -263,7 +267,6 @@ proc pref_set_defaults {} { pref define gdb/src/PC_TAG green pref define gdb/src/STACK_TAG gold pref define gdb/src/BROWSE_TAG \#9595e2 - pref define gdb/src/active 1 pref define gdb/src/handlebg red pref define gdb/src/bp_fg red pref define gdb/src/temp_bp_fg orange @@ -334,6 +337,10 @@ proc pref_set_defaults {} { # Various possible "main" functions. What's for Java? pref define gdb/main_names [list MAIN___ MAIN__ main] + + # These are the classes of warning dialogs, and whether the user plans + # to ignore them. + pref define gdb/warnings/signal 0 } # This traces the global/fixed font and forces src-font to |