Add shortcuts for expanding/collapsing the packet detail.

svn path=/trunk/; revision=21910
This commit is contained in:
Gerald Combs 2007-05-23 17:12:01 +00:00
parent 009c784fb6
commit f4f8079986
2 changed files with 28 additions and 9 deletions

View File

@ -169,14 +169,14 @@
</para></entry>
</row>
<row>
<entry>Ctrl-Down, F8</entry>
<entry>Ctrl+Down, F8</entry>
<entry><para>
Move to the next packet, even if the packet
list isn't focused.
</para></entry>
</row>
<row>
<entry>Ctrl-Up, F7</entry>
<entry>Ctrl+Up, F7</entry>
<entry><para>
Move to the previous packet, even if the packet
list isn't focused.
@ -195,6 +195,25 @@
In the packet detail, opens the selected tree item.
</para></entry>
</row>
<row>
<entry>Shift+Right</entry>
<entry><para>
In the packet detail, opens the selected tree item
and all of its subtrees.
</para></entry>
</row>
<row>
<entry>Ctrl+Right</entry>
<entry><para>
In the packet detail, opens all tree items.
</para></entry>
</row>
<row>
<entry>Ctrl+Left</entry>
<entry><para>
In the packet detail, closes all tree items.
</para></entry>
</row>
<row>
<entry>Backspace</entry>
<entry><para>

View File

@ -529,10 +529,10 @@ static GtkItemFactoryEntry menu_items[] =
ITEM_FACTORY_STOCK_ENTRY("/View/Resize All Columns", NULL, packet_list_resize_columns_cb,
0, WIRESHARK_STOCK_RESIZE_COLUMNS),
ITEM_FACTORY_ENTRY("/View/<separator>", NULL, NULL, 0, "<Separator>", NULL),
ITEM_FACTORY_ENTRY("/View/E_xpand Subtrees", NULL, expand_tree_cb, 0, NULL, NULL),
ITEM_FACTORY_ENTRY("/View/_Expand All", NULL, expand_all_cb,
ITEM_FACTORY_ENTRY("/View/E_xpand Subtrees", "<shift>Right", expand_tree_cb, 0, NULL, NULL),
ITEM_FACTORY_ENTRY("/View/_Expand All", "<control>Right", expand_all_cb,
0, NULL, NULL),
ITEM_FACTORY_ENTRY("/View/Collapse _All", NULL, collapse_all_cb,
ITEM_FACTORY_ENTRY("/View/Collapse _All", "<control>Left", collapse_all_cb,
0, NULL, NULL),
ITEM_FACTORY_ENTRY("/View/<separator>", NULL, NULL, 0, "<Separator>", NULL),
ITEM_FACTORY_STOCK_ENTRY("/View/_Coloring Rules...", NULL, color_display_cb,
@ -540,8 +540,8 @@ static GtkItemFactoryEntry menu_items[] =
ITEM_FACTORY_ENTRY("/View/<separator>", NULL, NULL, 0, "<Separator>", NULL),
ITEM_FACTORY_ENTRY("/View/Display Filter _Macros...", NULL, macros_dialog_cb, 0, NULL, NULL),
ITEM_FACTORY_ENTRY("/View/<separator>", NULL, NULL, 0, "<Separator>", NULL),
ITEM_FACTORY_ENTRY("/View/Show Packet in New _Window", NULL,
new_window_cb, 0, NULL, NULL),
ITEM_FACTORY_STOCK_ENTRY("/View/_Reload", "<control>R", file_reload_cmd_cb,
@ -906,7 +906,7 @@ menus_init(void) {
/* init with an empty recent files list */
clear_menu_recent_capture_file_cmd_cb(NULL, NULL);
}
}
@ -1215,7 +1215,7 @@ void merge_all_tap_menus(GList *node) {
if (merge_tap_menus_layered(node, REGISTER_TOOLS_GROUP_NONE)) {
/*gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);*/
}
#endif
#endif
}