Reconfiguring GUI buttons and hot keys: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__ <span class="f_Para">The fifteen buttons in the main button bar (and those in any [...")
 
No edit summary
Line 11: Line 11:


==== Using a mapping file ====
==== Using a mapping file ====
1. [[Setting up the ui.xml file|Create]] an XML file that contains the [[Client Command Reference|command]] or [[Using Debugger Macros|macro]] (multiple commands) to execute paired with the button and/or key that invokes it. </span><span class="f_ListContinue">This file must be named </span>'''ui.xml'''<span class="f_ListContinue"> and </span><span class="f_Para">[[change_location_client_work.html|is assumed]]</span><span class="f_ListContinue"> to reside in the installation target folder (along with the JanusDebugger.exe Client program). </span><span class="f_Para">) Its location can be changed [[change_location_client_work.html|in the Client configuration file]].</span>
1. [[Setting up the ui.xml file|Create]] an XML file that contains the [[Client Command Reference|command]] or [[Using Debugger Macros|macro]] (multiple commands) to execute paired with the button and/or key that invokes it. This file must be named <var>ui.xml</var> and [[change_location_client_work.html|is assumed]] to reside in the installation target folder (along with the JanusDebugger.exe Client program). ) Its location can be changed [[change_location_client_work.html|in the Client configuration file]].


2. Restart the Debugger Client.  
2. Restart the Debugger Client.  
Line 27: Line 27:


2. View the button arrangement or test the key combination you specified or removed.  
2. View the button arrangement or test the key combination you specified or removed.  
: Unless you changed only a button modifier (a key you press along with clicking the button), an updated button's new label is displayed and the button is available for immediate use. A cleared button is removed immediately from its button bar. The button mapping and hot key updates you make with mapButton or mapKey are '''not''' reflected in the ui.xml file, and do not persist over a restart of the Client.


Unless you changed only a button modifier (a key you press along with clicking the button), an updated button's new label is displayed and the button is available for immediate use. A cleared button is removed immediately from its button bar. The button mapping and hot key updates you make with mapButton or mapKey are '''not''' reflected in the ui.xml file, and do not persist over a restart of the Client.
Additional Client commands let you modify buttons:  
 
<span class="f_Para">Additional Client commands let you modify buttons: </span>
 
*[[disableButton command|disableButton]] and [[enableButton command|enableButton]] disable and enable button bar buttons.  
*[[disableButton command|disableButton]] and [[enableButton command|enableButton]] disable and enable button bar buttons.  
*[[labelButton command|labelButton]] lets you replace the label of a button.
*[[labelButton command|labelButton]] lets you replace the label of a button.


<span class="f_Para">The following sections discuss the eligible commands, buttons, and keys, how you create a </span><var>ui.xml</var><span class="f_Para"> file for their reconfigurations, and what their default settings are: </span>
The following sections discuss the eligible commands, buttons, and keys, how you create a <var>ui.xml</var> file for their reconfigurations, and what their default settings are:  
 
*[[intro_configurable_components.html|Introducing the configurable components]]
<span class="f_SimpleListText">[[intro_configurable_components.html|Introducing the configurable components]]</span><span class="f_SimpleList"> </span>
*[[Setting up the ui.xml file|Setting up the ui.xml file]]  
 
*[[Default settings of buttons and hot keys|Default settings of buttons and hot keys]]  
<span class="f_SimpleListText">[[Setting up the ui.xml file|Setting up the ui.xml file]] </span>
 
<span class="f_SimpleListText">[[Default settings of buttons and hot keys|Default settings of buttons and hot keys]] </span>


[[Category:Debugger Home]]
[[Category:Debugger Home]]

Revision as of 01:57, 20 September 2022

The fifteen buttons in the main button bar (and those in any extra button bar) are fully configurable. You can set the buttons to perform commands or macros, and you can change their positions or add separator buttons.

You may also create your own keyboard shortcuts (also called "hot keys") for commonly used commands.

If necessary, you can even provide an alternative customization that overrides the primary reconfiguration. This lets you provide, say, group level settings that may be overridden by individual level settings.

The default setting of a configurable button is provided where the individual button is discussed in this document, and the settings are also summarized later in this section.

To reconfigure buttons or keyboard shortcuts, you can define a mapping file or use a Client command.

Using a mapping file

1. Create an XML file that contains the command or macro (multiple commands) to execute paired with the button and/or key that invokes it. This file must be named ui.xml and is assumed to reside in the installation target folder (along with the JanusDebugger.exe Client program). ) Its location can be changed in the Client configuration file.

2. Restart the Debugger Client.

Using a Client command 

There is another way to set buttons or keyboard shortcuts that does not involve a mapping file or a Client restart:

1. From the Client's Command Line tool, or within a macro, or from within a User Language request by using the ClientCommand method of the DebuggerTools class, issue these commands as necessary:

  • mapButton, which specifies the button mapping you want
  • mapKey, which specifies the keyboard shortcut you want
  • clearButton, which removes the button mapping you specify
  • clearKey, which removes the keyboard shortcut you specify

2. View the button arrangement or test the key combination you specified or removed.

Unless you changed only a button modifier (a key you press along with clicking the button), an updated button's new label is displayed and the button is available for immediate use. A cleared button is removed immediately from its button bar. The button mapping and hot key updates you make with mapButton or mapKey are not reflected in the ui.xml file, and do not persist over a restart of the Client.

Additional Client commands let you modify buttons:

The following sections discuss the eligible commands, buttons, and keys, how you create a ui.xml file for their reconfigurations, and what their default settings are: