aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/summary_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2006-02-17remove dependencies to pcap.h, so getting an idea what needs to be done by ↵Ulf Lamping1-1/+0
dumpcap in addition to the things already done now various dumpcap related code cleanup: mainly #include's and capture engine related stuff svn path=/trunk/; revision=17327
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-06Squelch more const warnings (and fix some memory leaks that found).Guy Harris1-1/+1
_U_-ify some unused arguments, rather than assigning them to themselves. Un-constify one variable that gets assigned a mallocated pointer. Clean up indentation. svn path=/trunk/; revision=15236
2005-07-09MSVC: fix some guint64 related compiler errorsUlf Lamping1-6/+12
strange enough, MSVC cannot convert from guint64 to float, so cast guint64 -> gint64 -> float However, even gint64 might be big enough to prevent us from an overflow :-) svn path=/trunk/; revision=14888
2005-07-08Make the counters in the summary 64-bit, so they don't overflow onGuy Harris1-3/+3
Really Big Captures. svn path=/trunk/; revision=14875
2005-03-07- pcap.h needs to be included before capture.hJörg Mayer1-0/+1
- As capture.h is empty without libpcap defined, only include it in that case and don't protect the file internally against libpcap any more. svn path=/trunk/; revision=13648
2005-02-06another two steps towards privilege seperation:Ulf Lamping1-1/+8
move another two capture related fields (iface and cfilter) from cfile to capture_opts also move the handling of capture related command line options from main.c to capture.c, that way a future privilege seperated capture program can use the same code to parse it's command line than Ethereal. It might be even possible to share this parser code even with Tethereal, didn't took a closer look at this. svn path=/trunk/; revision=13320
2005-02-04remove #include "globals.h" from summary.c, as it's a bad idea for multiple ↵Ulf Lamping1-1/+3
capture files. If a summary user would like to get a summary, it should know the file of *which* it needs the summary. svn path=/trunk/; revision=13291
2005-01-20add some more online help functionality and help buttons at various dialog ↵Ulf Lamping1-2/+12
boxes, if a help page *is* available. However, the new help system needs a lot more work before completed. svn path=/trunk/; revision=13152
2005-01-01The right way to check whether a pointer is null and get a Boolean is toGuy Harris1-4/+4
test it against null, not to cast it to a Boolean type - as Boolean types in C89/C90, at least, are just integral types, that cast might just throw away the upper 32 bits; that probably yields the results you want, but the compiler might well justifiably warn about that on an LP64 platform. svn path=/trunk/; revision=12915
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-18"ti_time" is a "time_t", not a "long" ("time_t" isn't necessarily aGuy Harris1-7/+7
"long"). Make "elapsed_time" an "unsigned int" rather than an "unsigned long" - 2^32-1 seconds is about 136 years, so on LP64 machines that won't matter, and on ILP32 machines it doesn't make any difference, but it *does* generate compiler warnings from "%u" being used with "unsigned long" values. svn path=/trunk/; revision=11181
2004-06-18add timestamp of first and last packet to summary dialogUlf Lamping1-6/+52
svn path=/trunk/; revision=11179
2004-05-23use new functions in window API (ui_util.h),Ulf Lamping1-8/+6
use window_new instead of dlg_window_new for the statistics windows (as these are no dialog windows) do some code cleanup svn path=/trunk/; revision=10979
2004-05-22going to have a standard behaviour of the dialogsUlf Lamping1-2/+1
(including remebering of the dialog size in recent file). for a first step, I replaced all window_new() calls from dialogs into dlg_window_new() ones, and removed all gtk_window_set_position calls, this should be done in a more generalized way svn path=/trunk/; revision=10964
2004-05-21code cleanup (e.g. removed unused function parameters),Ulf Lamping1-9/+9
added new about page, showing the authors file (but still commented out) svn path=/trunk/; revision=10942
2004-05-21GCC warns about zero-length format strings, presumably either becauseGuy Harris1-17/+17
not all *printf routines don't handle them or because there's no advantage to using one rather than just copying a null string to the target (the length-checking done by "snprintf"-style routines is useful for a null string only if the target is zero-length, which it isn't in this case). Clean up indentation. svn path=/trunk/; revision=10940
2004-05-20complete new layout of the summary dialogUlf Lamping1-159/+184
svn path=/trunk/; revision=10933
2004-03-13replaced sprintf / snprintf by g_snprintf,Ulf Lamping1-31/+27
various other string related changes svn path=/trunk/; revision=10373
2004-02-13Add a "window_new()" routine that creates a window of a given type, setsGuy Harris1-4/+2
the title, and arranges to set the icon for it. Use that instead of "gtk_window_new()" and separate calls to set the title and arrange to set the icon. Regularize #includes a bit. Clean up white space. svn path=/trunk/; revision=10054
2004-02-02Include <string.h> to declare "strlen()".Guy Harris1-1/+3
svn path=/trunk/; revision=9959
2004-02-01beautified the dialog a bitUlf Lamping1-1/+5
svn path=/trunk/; revision=9947
2004-02-01avoid very large dialogs, when display filters becoming too large,Ulf Lamping1-6/+22
especially true when working with TCP stream filtering svn path=/trunk/; revision=9946
2004-01-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-11/+4
layouting the dialog buttons, and use it where appropriate. This will help us with the GTK1/2 conflict on button layouts and will also result in a more consistent look of the dialogs at all. svn path=/trunk/; revision=9771
2004-01-21use stock buttons whereever possible,Ulf Lamping1-6/+2
added some ethereal specific stock icons svn path=/trunk/; revision=9763
2003-12-21If we don't have any packets, or don't have any filtered packets, don'tGuy Harris1-7/+11
even show the averages over the empty sets in question. svn path=/trunk/; revision=9400
2003-12-20Move display filter into filtered packets frame.Olivier Biot1-22/+22
Fix NaN when a capture and/or a filter don't have any matching packets so the average packet size is obtained by dividing by zero. svn path=/trunk/; revision=9369
2003-09-02From Jean-Michel Fayard: show in Tools:Summary window statistics aboutGuy Harris1-8/+56
packets that passed the current display filter, as well as about the entire capture. Document the Tools:Summary item in the man page. Update Gerald's e-mail address. svn path=/trunk/; revision=8344
2003-03-07Add an average packet size, as suggested by Daniel Jackson.Gerald Combs1-1/+5
svn path=/trunk/; revision=7313
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-14/+4
svn path=/trunk/; revision=6610
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-7/+19
svn path=/trunk/; revision=6552
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-3/+1
Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
2002-08-31Cast the Mbits/s calculation as a float, so that we display the valueGerald Combs1-2/+3
correctly for large captures. svn path=/trunk/; revision=6150
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-2/+2
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris1-2/+2
svn path=/trunk/; revision=4878
2002-02-08Have Wiretap set the snapshot length to 0 if it can't be derived fromGuy Harris1-4/+6
reading the capture file. Have callers of "wtap_snapshot_length()" treat a value of 0 as "unknown", and default to WTAP_MAX_PACKET_SIZE (so that, when writing a capture file in a format that *does* store the snapshot length, we can at least put *something* in the file). If we don't know the snapshot length of the current capture file, don't display a value in the summary window. Don't use "cfile.snap" as the snapshot length option when capturing - doing so causes Ethereal to default, when capturing, to the snapshot length of the last capture file that you read in, rather than to the snapshot length of the last capture you did (or the initial default of "no snapshot length"). Redo the "Capture Options" dialog box to group options into sections with frames around them, and add units to the snapshot length, maximum file size, and capture duration options, as per a suggestion by Ulf Lamping. Also add units to the capture count option. Make the snapshot length, capture count, maximum file size, and capture duration options into a combination of a check box and a spin button. If the check box is not checked, the limit in question is inactive (snapshot length of 65535, no max packet count, no max file size, no max capture duration); if it's checked, the spinbox specifies the limit. Default all of the check boxes to "not checked" and all of the spin boxes to small values. Use "gtk_toggle_button_get_active()" rather than directly fetching the state of a check box. svn path=/trunk/; revision=4709
2001-12-12Go nuts with the 3D logo.Gerald Combs1-1/+4
Add a routine to ui_util.c that sets a window's icon pixmap to a 16x16 version of the 3D logo. Call the routine for each window that is created. This has been tested with kwm and Sawfish (which expect a 16x16 icon), but we may have to come up with a better solution for other window managers (e.g. olwm and mwm). Add a 3D exclamation point image. Replace the exclamation point and Ethereal logo images used in simple_dialog() with their 3D counterparts. Remove the old icons from the source distribution. svn path=/trunk/; revision=4390
2001-02-11In Ethereal, attempt to get the packet statistics from libpcap whenGuy Harris1-3/+5
capturing; if we succeed, display the packet drops count as the "Drops" value in the status line and as the "Dropped packets" statistics in the summary dialog box, otherwise don't display it at all. In Tethereal, attempt to get the packet statistics from libpcap when capturing; if we succeed, and if there were any dropped packets, print out the count of dropped packets when the capture finishes. svn path=/trunk/; revision=3016
2000-08-21Add the number of marked packets in the summary window.Laurent Deniel1-1/+5
svn path=/trunk/; revision=2323
2000-08-19Add Mbit/sec to the summary window.Laurent Deniel1-1/+5
svn path=/trunk/; revision=2300
2000-08-11Miscellaneous code cleaningLaurent Deniel1-6/+1
- add <stdarg.h> or <varargs.h> in snprintf.h and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes - remove the check of multiple inclusions in source (.c) code (there is a bit loss of _cpp_ performance, but I prefer the gain of code reading and maintenance; and nowadays, disk caches and VM are correctly optimized ;-). - protect all (well almost) header files against multiple inclusions - add header (i.e. GPL license) in some include files - reorganize a bit the way header files are included: First: #include <system_include_files> #include <external_package_include_files (e.g. gtk, glib etc.)> Then #include "ethereal_include_files" with the correct HAVE_XXX or NEED_XXX protections. - add some HAVE_XXX checks before including some system header files - add the same HAVE_XXX in wiretap as in ethereal Please forgive me, if I break something (I've only compiled and regression tested on Linux). svn path=/trunk/; revision=2254
2000-07-05Put the close button in an HButtonBox, so that it doesn't expand to theGuy Harris1-3/+11
width of the window. svn path=/trunk/; revision=2115
2000-05-03Make the summary dialog box use the new utilities to make the ReturnGuy Harris1-2/+10
and Esc keys close the dialog box; to make the Return key work, we have to make the "Close" button the default widget. svn path=/trunk/; revision=1906
2000-04-13As we always have to have a filter string (thanks to a bug in the LinuxGuy Harris1-2/+2
libpcap), if we have a null filter string we report it as "no filter", just as we would do for a null filter string pointer. svn path=/trunk/; revision=1844
2000-04-01No work need be done when a summary dialog box is destroyed, or when theGuy Harris1-13/+1
window manager tries to delete it, so no callback is needed for the "destroy" or "delete_event" signals (grabs are, at least in GTK+ 1.2.7, removed when a widget is destroyed, and there's no need for the destroy callback to destroy the widget itself; the delete event handler *could*, for example, pop up a dialog box saying "Do you really want to close this?", and allow the user to back out of the operation, but there's no unsaved work that would be lost by closing the window, so there's no point in having a delete event handler that does that). svn path=/trunk/; revision=1771
1999-12-10Move GTK code out of summary.c and into gtk/summary_dlg.cGilbert Ramirez1-0/+216
summary.c now provides a struct of info (see summary.h) Changed the name of the summary dialogue callback (hence the change in menu.c), and added a close button to the dialogue. Moved #include <gtk/gtk.h> out of print.c and into prefs.h where it was needed for GdkColor. svn path=/trunk/; revision=1273