+2002-12-04 Martin M. Hunt <hunt@redhat.com>
+
+ * library/regwin.itb (update): Remove some old code
+ that marked registers as changed when the target started.
+ (_build_win): Make changed registers more visible by
+ changing their bg to Colors(change).
+
+ * library/prefs.tcl (pref_set_option_db): Create a new
+ Color(change) which is the color of text indicating a change.
+ Current default is green.
+
+ * library/vartree.itb (_init_data): Make changed values
+ Color(change). Can't change bg, so we change fill color.
+
2002-12-04 Keith Seitz <keiths@redhat.com>
* generic/gdbtk-hooks.c: Include tcl.h and tk.h to pull
proc pref_set_option_db {makebg} {
global Colors
+ # The color of text that indicates changed items
+ # We standardize on one color here so that changed
+ # items don't blend into any OS color scheme
+ set Colors(change) "green"
+
option add *background $Colors(bg)
option add *Text*background $Colors(textbg)
option add *Entry*background $Colors(textbg)
$itk_component(table) tag configure normal \
-state disabled -bg $::Colors(textbg) -fg $::Colors(textfg)
$itk_component(table) tag configure sel -bg $::Colors(sbg) -fg $::Colors(sfg)
- $itk_component(table) tag configure highlight -bg $::Colors(bg)
+ $itk_component(table) tag configure highlight -bg $::Colors(change) -fg black
$itk_component(table) tag raise highlight
$itk_component(table) tag configure header \
-anchor w -state disabled -relief raised
# RETURNS: Nothing
# ------------------------------------------------------------------
itcl::body RegWin::update {event} {
-
- dbug I "START REGISTER UPDATE CALLBACK"
+ debug
# Change anything on the old change list back to normal
foreach r $_change_list {
set _change_list $changed
}
- # Problem: if the register was invalid (i.e, we were not running),
- # its old value will probably be "0x0". Now if we run and its real
- # value is "0x0", then it will appear as a blank in the register
- # window. Safegaurd against that here by adding any such register
- # which is not already in the change list.
- foreach r $_reg_display_list {
- if {$_data($_cell($r)) == "" && [lsearch $_change_list $r] == -1} {
- lappend _change_list $r
- }
- }
-
# Tag the changed cells and resize the columns
set cols {}
foreach r $_change_list {
_size_column $col 0
}
-
- dbug I "END REGISTER UPDATE CALLBACK"
+ debug "END REGISTER UPDATE CALLBACK"
}