Add MGED key-binding to reopen the command windowBRL-CAD
Status: ClosedTime to complete: 72 hrs Mentors: SeanTags:

BRL-CAD has an interactive geometry editor called MGED. It's often the starting point for beginners and allows creation and manipulation of models using commands. When MGED is invoked, it creates 2 windows: a text-console command window and an interactive graphics window. If the user closes the text-console command window, they are left with the interactive graphics window. There is presently no way (correct us if we're wrong) to get the text-console back without restarting mged. A good way to test this is to run in classic mode and run the 'gui' command:

 sushi:~ morrison$ mged -c test.g
 BRL-CAD Release 7.22.0  Geometry Editor (MGED)
     Fri, 24 Aug 2012 00:02:42 -0400, Compilation 6
     morrison@sushi.local:/usr/brlcad/rel-7.22.0

 attach (nu|X|ogl)[nu]?
 mged gui

This task involves adding some mechanism, perhaps a simple key binding, to the graphics window so that you can get the command window back on-demand.

Code:

  • src/mged/mged.c
  • src/tclscripts/mged/openw.tcl
Uploaded Work
File name/URLFile sizeDate submitted
reopen_command.txt127 bytesDecember 01 2013 15:02 UTC
reopen_command_rev2.txt229 bytesDecember 02 2013 22:20 UTC
reopen_command.diff569 bytesDecember 02 2013 22:21 UTC
Comments
Peter Amidonon November 30 2013 15:10 UTCTask Claimed

I would like to work on this task.

Mandeep Kaur on November 30 2013 15:17 UTCTask Assigned

This task has been assigned to Andromeda Galaxy. You have 72 hours to complete this task, good luck!

Peter Amidonon November 30 2013 15:22 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Peter Amidonon November 30 2013 15:38 UTCTask Claimed

I would like to work on this task.

Gauravjeet Singh on December 1 2013 06:01 UTCTask Assigned

This task has been assigned to Andromeda Galaxy. You have 72 hours to complete this task, good luck!

Peter Amidonon December 1 2013 15:02 UTCReady for review

The work on this task is ready to be reviewed.

Sean on December 1 2013 19:08 UTCkey binding

Andromeda, the objective is the addition of a key binding for the graphics window.  If you run mged and draw something, there are a variety of key bindings like "t" for a top display or "z" to spin an object about the z-axis ('0' to stop it).  We need a key binding to (re-)open the command window if it was closed/hidden.  Should be a binding line similar to 't' or 'z' and it can even use the same call as the menu option (the menu option name should be updated to reflect the binding, see View menu for examples). Make sense?


Should probably be like one or two lines of code.

Sean on December 1 2013 19:08 UTCTask Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Peter Amidonon December 2 2013 22:21 UTCReady for review

The work on this task is ready to be reviewed.

Sean on December 3 2013 05:33 UTCthanks

Thanks for the clarification, didn't realize that a key binding had in fact already been added!  Far too many tasks to review/confirm them all beforehand, but thanks for the patch that clarifies the binding.


 

Sean on December 3 2013 05:33 UTCTask Closed

Congratulations, this task has been completed successfully.