aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_draw.h
AgeCommit message (Collapse)AuthorFilesLines
2004-09-02Add support for copying hex data to the clipboard. Submitted by Thomas Richard Sharpe1-0/+7
Palmer. What we really should do is add this to the Edit menu as well. svn path=/trunk/; revision=11883
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-06-05add more details for doxygenUlf Lamping1-4/+3
svn path=/trunk/; revision=11122
2004-06-04add more details for doxygenUlf Lamping1-1/+2
svn path=/trunk/; revision=11107
2004-06-03Make static some routines and variables not used outside the source fileGuy Harris1-1/+8
defining them. Move declarations of some callbacks outside the source files using them into the appropriate header, and arrange that the appropriate header is included by those source files. Move the SAT_E definition into a "sat.h" file, included both by "endpoint_talkers_table.h" and "hostlist_table.h", so that both of the latter headers can be included by the same file ("menu.c" has to include both, as per the change in the previous paragraph). svn path=/trunk/; revision=11096
2004-06-02add details for doxygenUlf Lamping1-24/+140
svn path=/trunk/; revision=11076
2004-03-20From Tomas Kukosa:Guy Harris1-1/+2
add Expand Tree to the View menu; make the Expand Tree context menu active iff the currently-selected item has a subtree; fix the GTK2 code for Expand Tree. svn path=/trunk/; revision=10415
2004-01-27Make "{byte,tree}_view_select()" return "gboolean", not "gint", as theyGuy Harris1-3/+3
return TRUE or FALSE as a success/failure indication. svn path=/trunk/; revision=9890
2004-01-27always select the current item under cursor, before showing up theUlf Lamping1-1/+5
corresponding context menu (right mouse click) svn path=/trunk/; revision=9887
2004-01-19added some menuitems "View->Show" including show/hide of all main widgets,Ulf Lamping1-4/+3
saving the states in the recent file svn path=/trunk/; revision=9726
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-3/+10
svn path=/trunk/; revision=6552
2002-09-21Removed all gtk calls in file.c :Olivier Abad1-3/+1
- created a few packet_list_xxx functions (ui_util.h gtk/packet_list.c gtk2/packet_list.c) ; - removed almost all "gtk/xxx" and "gtk2/xxx" includes in file.c The only remaining includes are related to color filters. We have to make color_filter_t GUI independent by replacing GdkColor with color_t. I'll work on this later. svn path=/trunk/; revision=6311
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-06-04Get rid of the "data_src" member of the "frame_data" structure; put itGuy Harris1-3/+3
in the "packet_info" structure instead, as we don't need a pointer for every single frame in the capture file, just for each frame for which we currently have an open "epan_dissect_t". svn path=/trunk/; revision=5614
2002-03-31Get rid of unused arguments.Guy Harris1-3/+3
Use the "nb" argument to "redraw_hex_dump()", so we redraw the specified byte view pane, rather than always redrawing the main window's byte view pane (and never redrawing the byte view pane of additional packet windows, so that the font for them doesn't change if you change the font preference). svn path=/trunk/; revision=5066
2002-02-18Don't give tvbuffs names; instead, give data sources names, where aGuy Harris1-23/+25
"data source" has a name and a top-level tvbuff, and frames can have a list of data sources associated with them. Use the tvbuff pointer to determine which data source is the data source for a given field; this means we don't have to worry about multiple data sources with the same name - the only thing the name does is label the notebook tab for the display of the data source, and label the hex dump of the data source in print/Tethereal output. Clean up a bunch of things discovered in the process of doing the above. svn path=/trunk/; revision=4749
2002-01-11Have routines to create GtkCTrees, set their line and expander styleGuy Harris1-3/+1
based on the user's UI preferences, and add them to a list of GtkCTrees. Use those routines to create all GtkCTrees. Have a routine to update the preferences for all of those GtkCTrees. Call that routine whenever the preferences change. Label the line and expander style preferences as "Tree line style" and "Tree expander style", as they no longer apply only to protocol trees. Move the routines to maintain a list of scrolled windows, and to update scrollbar placement for scrolled windows, to "ui_util.c". svn path=/trunk/; revision=4520
2001-11-20Have a routine to add all the hex dump tabs to the hex dump notebook,Guy Harris1-4/+3
and call it both from "select_packet()" and "create_new_window()", rather than having two similar loops in both places. svn path=/trunk/; revision=4233
2001-11-20If bytes in a hex dump view are selected, the field in the correspondingGuy Harris1-2/+5
text view should be selected, rather than always selecting a field in the main text view. svn path=/trunk/; revision=4232
2001-06-05Enable "Match Selected" only if there's a field selected *and* we can doGuy Harris1-4/+5
a "Match Selected" on it - we can't do a "Match Selected" if the field has no value (e.g., FT_NULL) and has a length of 0. If we unselect the current packet, we don't have a protocol tree, so we don't have a currently selected field - clear the "Match Selected" menu item and the display in the status line of information about the currently selected field. Move the low-level statusbar manipulation into "gtk/main.c", in routines whose API doesn't expose anything GTK+-ish. "close_cap_file()" calls one of those routines to clear out the status bar, so it doesn't need to take a pointer to the statusbar widget as an argument. "clear_tree_and_hex_views()" is purely a display-manipulating routine; move it to "gtk/proto_draw.c". Extract from "tree_view_unselect_row_cb()" an "unselect_field()" routine to do all the work that needs to be done if the currently selected protocol tree row is unselected, and call it if the currently selected packet list row is unselected (if it's unselected, there *is* no protocol tree, so no row can be selected), as well as from "tree_view_unselect_row_cb()". Before pushing a new field-description message onto the statusbar, pop the old one off. Get rid of an unused variable (set, but not used). svn path=/trunk/; revision=3513
2001-03-23Changes required to support multiple named data sources.Jeff Foster1-6/+23
Tvbuffers changed to added the data source name, GUI and printing code changed to support these changes and display the multiple hex views. svn path=/trunk/; revision=3165
2000-09-09"redraw_hex_dump()" can't use "cfile.pd" or "cfile.current_frame", as itGuy Harris1-3/+4
may be redrawing a packet window that displays a frame other than the current frame; give it arguments to specify the raw frame data and "frame_data" structure for the frame. This requires that each packet window have, associated with it, a pointer to the "frame_data" structure; that replaces the "cap_len" and "encoding" fields in a "PacketWinData" structure, as those are just copies of fields from the frame's "frame_data" structure. "packet_hex_print()" needn't be passed both the start and length values from a "field_info" structure - just pass it a pointer to that structure, or NULL for "no field is selected in the packet". It also needn't, any longer, be passed the "cap_len" and "flags.encoding" fields of a "frame_data" structure - just pass it a pointer to that structure. In "redraw_hex_dump_all()", don't redraw the hex dump pane of the main window if there is no current frame. svn path=/trunk/; revision=2404
2000-09-08Redraw:Guy Harris1-5/+4
the text in all "Follow TCP Stream" windows; the text in the help window if we have one up; all hex dump windows; when GUI preference changes are to be applied, so that font changes and "Follow TCP Stream" color changes show up. Update both the Roman and bold font when the font is changed. Don't decrement the reference counts on the old Roman and bold fonts until that's all done. svn path=/trunk/; revision=2401
2000-09-08Graham Bloice's patch to support inverse video rather than boldfaceGuy Harris1-3/+5
highlighting of the bytes, in the hex dump window, corresponding to a selected field. Also, make "remember_ptree_widget()" static, as it's not used outside "gtk/proto_draw.c". svn path=/trunk/; revision=2399
2000-08-21Instead of each set of built-in preferences having "ok", "save",Guy Harris1-1/+7
"cancel", and "delete" methods, give them: "fetch" - fetch from the notebook tab any values not already stored in "prefs", and store them there, but doesn't apply them; "apply" - apply the settings in "prefs"; "destroy" - clean up any windows created from the tab. As we no longer have "cancel" methods, we don't have per-preference code to revert preference values; instead, we have the common preference dialog box code make a copy of all the current preferences, and, when the "Cancel" button is clicked, free the current preferences and copy the saved preferences to it, and apply the preferences. Add an "Apply" button to the preference dialog box, which applies the current preferences without closing the dialog box. Treat a request to delete the preferences dialog box as equivalent to clicking "Cancel". Have a "remember_ptree_widget()" routine to remember all protocol tree widgets, and use the list of those widgets when we set GUI preferences for the protocol tree widgets, rather than setting the main protocol tree widget and then using the list of packet windows. Move that code out of "main.c" to "proto_draw.c", as it's not used by anything in "main.c", but is used by stuff in "proto_draw.c". Make the font one of the preferences we can set on the fly for protocol tree widgets. Also make it something we can set on the fly for the packet list widget. svn path=/trunk/; revision=2316
2000-03-02Use GtkScrolledWindows to add scrollbars to the hex/ASCII panes and toGuy Harris1-3/+3
the "Follow TCP Stream" displays; that means we can use the same GTK+ calls to set the scrollbar placement on them that is used to set it on other widgets. Keep a list of all the GtkScrolledWindows whose scrollbar placement we control with the GUI preference item for that, and change them all when the GUI preference item is changed (which means that the GUI preference item now applies to the "Follow TCP Stream" window as well as to the hex/ASCII panes). svn path=/trunk/; revision=1676
2000-02-29Jeff Foster's changes, with my additions, to allow the user to pop up aGuy Harris1-1/+5
window showing the protocol tree and hex/ASCII data for the currently selected packet. svn path=/trunk/; revision=1670
1999-11-22A "character encoding" variable is now set per packet. The existenceGilbert Ramirez1-2/+2
of SNA in a packet changes the character encoding from the default ASCII to EBCDIC. The hex-printing routines in the GUI code and in the printing code convert to EBCDIC if appropriate. svn path=/trunk/; revision=1089
1999-11-15Don't store both "start" and "length" in each GUI proto_tree item. JustGilbert Ramirez1-3/+2
store the field_info pointer, from which we can get both "start" and "length" (and "hfinfo" and "value", which I'm working towards, so that match_selected, or a new function, and create a display filter based on the field's name, instead of byte offset ). svn path=/trunk/; revision=1039
1999-09-11Collapse/Expand All protocol tree added in Display menu.Laurent Deniel1-1/+3
svn path=/trunk/; revision=660
1999-09-09More shuffling of GTK-related files to gtk subdirectory.Gilbert Ramirez1-0/+37
svn path=/trunk/; revision=635