Revision: 56615
http://sourceforge.net/p/brlcad/code/56615
Author: brlcad
Date: 2013-08-06 03:19:41 +0000 (Tue, 06 Aug 2013)
Log Message:
-----------
accept sf patch #193 from Emory Huff which provides a new 'c' keybinding on the
graphics window that brings the command window back. right now, assumes id_0
exists and is the command window we want to restore which means we'll get an
error if id_0 was destroyed.
Modified Paths:
--------------
brlcad/trunk/src/tclscripts/mged/bindings.tcl
brlcad/trunk/src/tclscripts/mged/openw.tcl
Modified: brlcad/trunk/src/tclscripts/mged/bindings.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/mged/bindings.tcl 2013-08-06 02:48:37 UTC
(rev 56614)
+++ brlcad/trunk/src/tclscripts/mged/bindings.tcl 2013-08-06 03:19:41 UTC
(rev 56615)
@@ -109,6 +109,7 @@
proc default_key_bindings { w } {
bind $w a "winset $w; adc; break"
+ bind $w c "open_cmd_win id_0"
bind $w e "winset $w; rset ax edit_draw !;\
update_gui $w edit_draw \[rset ax edit_draw\]; break"
bind $w m "winset $w; rset ax model_draw !;\
Modified: brlcad/trunk/src/tclscripts/mged/openw.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/mged/openw.tcl 2013-08-06 02:48:37 UTC (rev
56614)
+++ brlcad/trunk/src/tclscripts/mged/openw.tcl 2013-08-06 03:19:41 UTC (rev
56615)
@@ -1963,7 +1963,7 @@
.$id.menubar.tools add separator
.$id.menubar.tools add command -label "Command Window" -underline 6\
- -command "set mged_gui($id,show_cmd) 1; wm deiconify .$id; raise .$id"
+ -command "open_cmd_win $id"
hoc_register_menu_data "Tools" "Command Window" "Command Window"\
{ { summary "Raise the command window." } }
.$id.menubar.tools add command -label "Graphics Window" -underline 7\
@@ -2680,6 +2680,12 @@
}
}
+proc open_cmd_win {id} {
+ set mged_gui($id,show_cmd) 1
+ wm deiconify .$id
+ raise .$id
+}
+
proc set_dm_win { id } {
global mged_gui
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits