aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/packet_list.c
AgeCommit message (Collapse)AuthorFilesLines
2006-02-11In "Save As", support only file types we can write to; that simplifiesGuy Harris1-1/+1
the logic, making it easier to get it right (fewer interactions between components of the dialog - the file type doesn't affect whether we can save some but not all packets). It also means we don't offer a file type for saving, only to take it away if you choose anything other than saving all packets. If the capture file is a temporary file from a capture done in the current Ethereal session, it's libpcap format, which we can write to, so you would be able to save it. If it's a saved file we read in, saving the file in its entirety in its own format is just copying the file, and it's not clear supporting that adds enough useful functionality to justify the extra complication. Fix "range_update_dynamics()" to update all the rows of the range button/count table properly (make the button active iff there's a non-zero count in the currently-selected column, make a count active iff the column is selected), to select the "Captured" column if the count of displayed packets goes to zero, and to select the "Save all packets" row if the count of packets in the currently-selected row and column goes to zero. (XXX - we should perhaps do that with the "user-defined range" counts as well, which would involve updating the counts on every change to the range field.) svn path=/trunk/; revision=17251
2005-11-12Allow a progress dialog to have "Stop" or "Cancel" as the "terminateGuy Harris1-1/+1
button"; "Stop" should be used for operations that can only be stopped (meaning that what it's already done isn't undone), not cancelled (meaning that whatever it's already done *is* undone), for which "Cancel" is used. Allow the merging process to be cancelled. Clean up indentation. Update some comments. svn path=/trunk/; revision=16489
2005-10-27Fix uninitialized variable errors.Guy Harris1-10/+12
Rename some variables to make the names used in progress bars more common. (Should more of that functionality be moved into common progress bar code?) svn path=/trunk/; revision=16347
2005-10-27Check on every iteration of a loop whether to pop up a dialog box,Guy Harris1-10/+14
rather than checking only on every progress bar update quantum, so that if the update quantum is *very* large, we don't end up waiting longer than the standard time for a dialog box before checking. svn path=/trunk/; revision=16327
2005-09-27code cleanup: use the prefix packet_list_ for every function mentioned in ↵Ulf Lamping1-8/+8
packet_list.h svn path=/trunk/; revision=16027
2005-09-26compiler warning removedUlf Lamping1-0/+3
svn path=/trunk/; revision=16006
2005-09-22do freeze/thaw in packet_list_set_selected_row only, if the list must be ↵Ulf Lamping1-4/+4
moved. This avoids some screen flickering. svn path=/trunk/; revision=15965
2005-09-16fixing the fix, it's time to go to bed ...Ulf Lamping1-1/+1
svn path=/trunk/; revision=15830
2005-09-15bugfix: don't crash (assert), if jumping to the first packet and packet_list ↵Ulf Lamping1-0/+6
is currently empty. Can happen at capture start. svn path=/trunk/; revision=15829
2005-09-12When jumping (e.g. using menu item Go/Go to Packet...) to a new packet which ↵Ulf Lamping1-3/+61
is currently not displayed, this newly selected packet will become the first in the packet list. This is inconvenient, as most of the time (at least) I'm interested not only in the packets behind the newly selected one, but also to have some history *before* it. So this change will scroll the packet list to have the selected packet after the first third of the packet list. This change won't take effect if the new packet is already visible (only the selection is changed) or it's near the beginning or end of the packet list (so the whole beginning/end of the list is shown). svn path=/trunk/; revision=15772
2005-08-25timestamp display precision:Ulf Lamping1-1/+1
- automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file svn path=/trunk/; revision=15534
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-11/+11
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-1/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-10removed tons of MSVC const related warnings.Ulf Lamping1-3/+3
This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-) Please note that a lot of these warnings were GTK1.x related only! svn path=/trunk/; revision=15286
2005-08-05More char -> const char warning fixes.Jörg Mayer1-3/+3
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
2005-08-02Fix more "no previous declaration" warningsJörg Mayer1-2/+2
svn path=/trunk/; revision=15173
2005-06-30add a new DCE/RPC related column, which contains the call_id for connection ↵Ulf Lamping1-2/+5
oriented packets or the sequence number for connectionless (datagram) packets. This is extremely useful, to keep track of the corresponding request/response packets of a DCE/RPC call (which can be quite a lot packets if fragmentation is used). svn path=/trunk/; revision=14826
2005-06-04fix #220: the automatic display of the vertical scrollbar at the packet list ↵Ulf Lamping1-0/+8
doesn't seem to work in all cases (not shown although scrolling would be necessary) as I don't see a way to fix this (and it just don't really hurt, as this scrollbar is usually shown anyway if some more packets have to be display) just show it always svn path=/trunk/; revision=14546
2005-04-14fix bugzilla #16: make columns resizeable again after doing "Resize Columns"Ulf Lamping1-1/+5
svn path=/trunk/; revision=14082
2005-02-04huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping1-5/+5
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289
2005-01-29Mark unused arguments as such.Guy Harris1-1/+1
svn path=/trunk/; revision=13197
2005-01-29Add a new menu item "View/Resize Columns" to, well, resize columns. As this ↵Ulf Lamping1-2/+74
might take a long time, I've provided a progress bar with the option to cancel the operation. I might later add something like "View/Auto Resize Columns" with a checkbox menu item, so this is done everytime a capture file finished loading. However, I don't know how well this will work together with "Update list of packets in real time" while doing a capture. svn path=/trunk/; revision=13192
2005-01-13Add a missing case.Guy Harris1-0/+1
svn path=/trunk/; revision=13020
2005-01-01Throw in a cast to squelch an (unavoidable, and probably harmless -Guy Harris1-1/+1
GTK+'s function signatures aren't necessarily what they should be) warning. svn path=/trunk/; revision=12912
2004-12-31Make the "col_data" field in a "column_info" structure a pointer to anGuy Harris1-1/+1
array of "const char *" rather than to an array of "char *", and make the second argument of "col_set_str()" a "const char *" - there's no guarantee that "col_data" points to something you're allowed to modify. svn path=/trunk/; revision=12880
2004-11-01first implementation of the packet history functionUlf Lamping1-0/+4
svn path=/trunk/; revision=12460
2004-09-29Move the column preferences stuff to epan (the rest of the preferencesGuy Harris1-1/+1
stuff is already there). Update Gerald's e-mail address in column.h. svn path=/trunk/; revision=12131
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-08-19As suggested by Guy: Have mark_frame() do nothing if the frame hasGerald Combs1-1/+0
already been marked and have unmark_frame() do likewise. Don't mess with the marked frame count in mark_all_frames(). Be a little more paranoid about the marked frame count in other places. svn path=/trunk/; revision=11775
2004-07-24Move the color-filter related stuff out of "color.h" intoGuy Harris1-0/+1
"color_filters.h", as that's the appropriate place for it - "color.h" should just deal with "color_t". svn path=/trunk/; revision=11503
2004-07-24Have "gtk/color_utils.c" contain routines with toolkit-independent APIs,Guy Harris1-1/+1
but toolkit-dependent implementations, for manipulating colors, and have "gtk/color_utils.h" declare them (the header file should eventually be moved to the top-level directory). Move the routines to convert between GdkColor and color_t out of there into "colors.c", and move their declarations into "colors.h", as their APIs are toolkit-dependent. Have the first such routine be a "create_color()" routine, which takes RGB values and initializes a "color_t", including doing any toolkit-dependent work necessary for that; use that in the "gtk/color_filters.c" code (the goal is to remove as many of the toolkit dependencies as possible from that code, and move it to the top-level directory). svn path=/trunk/; revision=11497
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-17move font related stuff to new file font_utils.c/.hUlf Lamping1-8/+5
do some font related renaming/code cleanup svn path=/trunk/; revision=11166
2004-06-05alyways use SIGNAL_EMIT_BY_NAME with one user parameter,Ulf Lamping1-2/+2
remove SIGNAL_EMIT_BY_NAME1 completely svn path=/trunk/; revision=11118
2004-03-18From Lars Roland: Move timestamp_type into libethereal and provide accessorOlivier Biot1-2/+3
methods for getting and setting the timestamp type. This is a move towards a real libethereal shared library. svn path=/trunk/; revision=10402
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-3/+7
scrolled_window_new(). added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to scrolled_window_new() added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN) to every place needed svn path=/trunk/; revision=9999
2004-02-03added some more info to the statusbar (filesize, packet count, ..),Ulf Lamping1-1/+17
fixed a minor bug in the cfile handling (file length in summary dialog) svn path=/trunk/; revision=9961
2004-01-31If comparing any field other than the frame number, if both field valuesGuy Harris1-42/+38
are the same, compare the frame number, so that the sort order doesn't depend on how packets happened to be sorted previously (i.e., so that if you sort on a given column in a given direction, the sort order is always the same). svn path=/trunk/; revision=9918
2004-01-31Fix the spelling of "cumulative" (and variables whose names derive fromGuy Harris1-4/+3
that spelling). svn path=/trunk/; revision=9917
2004-01-28Fix a comment.Guy Harris1-3/+2
svn path=/trunk/; revision=9897
2004-01-28Clean up the comparison code a bit.Guy Harris1-129/+89
svn path=/trunk/; revision=9896
2004-01-28For columns whose data comes from the frame_data structure for a packet,Guy Harris1-9/+130
sort the columns based on that data, rather than on the raw text of the column - that's probably faster, and also doesn't get rudely surprised by "atof()" being locale-dependent. svn path=/trunk/; revision=9895
2004-01-19move timestamp format options from "View->Options" dialog intoUlf Lamping1-3/+3
menuitems under "View->Time Display Format". renamed timestamp enum items e.g. from ABSOLUTE to TS_ABSOLUTE, to prevent conflicting definitions with MSVC svn path=/trunk/; revision=9729
2004-01-19added some menuitems "View->Show" including show/hide of all main widgets,Ulf Lamping1-6/+5
saving the states in the recent file svn path=/trunk/; revision=9726
2004-01-09Include <string.h> to declare "strcmp()".Guy Harris1-1/+2
svn path=/trunk/; revision=9614
2004-01-09Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify itGuy Harris1-20/+464
to add functionality or improve performance, although, until we make it work on GTK+ 1.3[.x] and 2.x, we shouldn't count on the performance improvements, or make its API different from that of the GtkClist API (other than names). Move all the code that knows about the packet list into gtk/packet_list.c, so that the GtkClist vs. EthClist stuff is encapsulated inside it. svn path=/trunk/; revision=9608
2003-12-09Don't automatically size the columns - that's expensive in largeGuy Harris1-21/+2
captures, as it has to compute the width of an auto-resizing column in every row. Just pick fixed widths for the columns (and tune the width of the "Protocol" column so that it's not narrower than the column title). svn path=/trunk/; revision=9219
2003-12-06From Jeff Morriss: avoid at least some N^2 behavior when changing theGuy Harris1-1/+8
time stamp format. svn path=/trunk/; revision=9179
2002-11-15In gtk2 code :Olivier Abad1-5/+9
gdk_font_from_description() may return NULL if no GdkFont matching a PangoFontDescription can be loaded. Replace primitives using GdkFonts (gdk_string_width, gdk_draw_string) with their pango equivalent (pango_layout_get_pixel_size, gdk_draw_layout). svn path=/trunk/; revision=6639
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-2/+3
svn path=/trunk/; revision=6610