(ddd.info)Display Shortcuts
7.3.4.4 Display Shortcuts
.........................
DDD maintains a _shortcut menu_ of frequently used display expressions.
This menu is activated
* by pressing and holding the `Display' button, or
* by pressing _mouse button 3_ on some display and selecting `New
Display', or
* by pressing <Shift> and _mouse button 3_ on some display.
By default, the shortcut menu contains frequently used base
conversions.
The `Other' entry in the shortcut menu lets you create a new display
that _extends_ the shortcut menu.
As an example, assume you have selected a display named `date_ptr'.
Selecting `Display => Other' pops up a dialog that allows you to enter
a new expression to be displayed--for instance, you can cast the
display `date_ptr' to a new display `(char *)date_ptr'. If the
`Include in `New Display' Menu' toggle was activated, the shortcut menu
will then contain a new entry `Display (char *)()' that will cast _any_
selected display DISPLAY to `(char *)DISPLAY'. Such shortcuts can save
you a lot of time when examining complex data structures.
You can edit the contents of the `New Display' menu by selecting its
`Edit Menu' item. This pops up the _Shortcut Editor_ containing all
shortcut expressions, which you can edit at leisure. Each line
contains the expression for exactly one menu item. Clicking on `Apply'
re-creates the `New Display' menu from the text. If the text is empty,
the `New Display' menu will be empty, too.
DDD also allows you to specify individual labels for user-defined
buttons. You can write such a label after the expression, separated by
`//'. This feature is used in the default contents of the GDB `New
Display' menu, where each of the base conversions has a label:
/t () // Convert to Bin
/d () // Convert to Dec
/x () // Convert to Hex
/o () // Convert to Oct
Feel free to add other conversions here. DDD supports up to 20 `New
Display' menu items.
The shortcut menu is controlled by the following resources:
-- Resource: dbxDisplayShortcuts (class DisplayShortcuts)
A newline-separated list of display expressions to be included in
the `New Display' menu for DBX.
If a line contains a label delimiter(1), the string before the
delimiter is used as EXPRESSION, and the string after the
delimiter is used as label. Otherwise, the label is `Display
EXPRESSION'. Upon activation, the string `()' in EXPRESSION is
replaced by the name of the currently selected display.
-- Resource: gdbDisplayShortcuts (class DisplayShortcuts)
A newline-separated list of display expressions to be included in
the `New Display' menu for GDB. See the description of
`dbxDisplayShortcuts', above.
-- Resource: jdbDisplayShortcuts (class DisplayShortcuts)
A newline-separated list of display expressions to be included in
the `New Display' menu for JDB. See the description of
`dbxDisplayShortcuts', above.
-- Resource: perlDisplayShortcuts (class DisplayShortcuts)
A newline-separated list of display expressions to be included in
the `New Display' menu for Perl. See the description of
`dbxDisplayShortcuts', above.
-- Resource: bashDisplayShortcuts (class DisplayShortcuts)
A newline-separated list of display expressions to be included in
the `New Display' menu for Bash. See the description of
`dbxDisplayShortcuts', above.
-- Resource: pydbDisplayShortcuts (class DisplayShortcuts)
A newline-separated list of display expressions to be included in
the `New Display' menu for `pydb'. See the description of
`dbxDisplayShortcuts', above.
-- Resource: xdbDisplayShortcuts (class DisplayShortcuts)
A newline-separated list of display expressions to be included in
the `New Display' menu for XDB. See the description of
`dbxDisplayShortcuts', above.
---------- Footnotes ----------
(1) The string `//'; can be changed via the `labelDelimiter'
resource. Note: Customizing Buttons, for details.
automatically generated by info2www version 1.2.2.9