aboutsummaryrefslogtreecommitdiffstats
path: root/print.h
Commit message (Collapse)AuthorAgeFilesLines
* Miscellaneous code cleaningLaurent Deniel2000-08-111-3/+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
* Add a "Save As" feature to the TCP Follow dialogue, to save the streamGilbert Ramirez2000-08-031-1/+5
| | | | | | | | | | | file to a user-specified file. Move the file-copy routine in save_cap_file() to an indepenent function in file.c (copy_binary_file()) so that follow_dlg.c can use it. Remove #include "follow.h" from the C files that don't need it. svn path=/trunk/; revision=2200
* Fix files that had Gilbert's old e-mail address or that didn't have myGuy Harris2000-01-221-2/+2
| | | | | | forwarding e-mail address. svn path=/trunk/; revision=1522
* "print_file()" is no longer used; nuke it.Guy Harris2000-01-071-2/+1
| | | | svn path=/trunk/; revision=1430
* Printing multiple pages of PostScript wasn't as tricky as I thought; addGuy Harris2000-01-061-5/+10
| | | | | | support for printing in PostScript to the "Print..." dialog box. svn path=/trunk/; revision=1426
* A "character encoding" variable is now set per packet. The existenceGilbert Ramirez1999-11-221-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
* Warren Young's patch to add a "Print" button to the "Follow TCP Stream"Guy Harris1999-10-301-1/+2
| | | | | | | | data window. Some (belated) man page updates. svn path=/trunk/; revision=950
* Add an item to the "File/Print" dialog box to ask that the full hex dataGuy Harris1999-09-291-2/+16
| | | | | | | | | | | | | of the packet be printed (this is only done if "Print detail" is selected; it should be grayed out of "Print summary" is selected). If that item is selected, suppress the hex printing of uninterpreted data items in the protocol tree. Move some GTK+ keys not used outside of "gtk/print_dlg.c" from "gtk/keys.h" into "gtk/print_dlg.c". svn path=/trunk/; revision=736
* Add a "Expand all levels"/"Print as displayed" pair of radio buttons toGuy Harris1999-09-121-3/+3
| | | | | | | | | | the "File/Print" dialog box; "Expand all levels" means that all levels of the protocol tree should be printed, while "Print as displayed" means that only those levels shown in the display should be printed. Free the table of column widths once printing is done. svn path=/trunk/; revision=671
* Add summary-vs-detail radio buttons to the print dialog box; detailGuy Harris1999-09-121-2/+2
| | | | | | | | | | | | | | | | | | | | | prints the protocol tree, and summary prints the fields in the summary clist, with a header line at the beginning of the printout. Print only packets selected by the current packet filter. Just have "ARP" and "RARP" in the "Protocol" field for ARP packets; whether it's a request or a reply can be seen in the "Info" field. Add to the "Frame" section of the protocol tree the time between the current packet and the previous displayed packet, and the packet number. Have FT_RELATIVE_TIME fields be a "struct timeval", and display them as seconds and fractional seconds (we didn't have any fields of that type, and that type of time fits the delta time above). Add an FT_DOUBLE field type (although we don't yet have anything using it). svn path=/trunk/; revision=666
* Moved GTK-dependent routines for file dialogues, print dialogues, printGilbert Ramirez1999-09-011-5/+1
| | | | | | preferences, and menus to gtk subdirectory. svn path=/trunk/; revision=623
* Printing multiple frames in PostScript is a bit tricky, I think - IGuy Harris1999-07-231-3/+5
| | | | | | | | | | | think I may have to worry about page boundaries and the like - so, for now, we make the "File/Print..." stuff print only as text. ("Print Packet" can still print PostScript, as always.) We clean up a few text vs. PostScript things for printing multiple frames, but it's still not ready for prime time. svn path=/trunk/; revision=383
* Add a "File/Print" menu item, which prints *all* the packets in theGuy Harris1999-07-231-2/+5
| | | | | | | | | | | | | | | | | capture to a file or printer. This should eventually get the ability to print either all the packets or only the packets selected by the display filter, and possibly also the ability to print only packets M through N. Get rid of "cur" member of "capture_file" structure; nobody used it. There's no need to pass a pointer to a "dialog_button" variable to "simple_dialog()" for the error boxes displayed if a file copy or move fails; that dialog box is just a message box and has only an "OK" button. Put the declaration of "prefs" into "prefs.h". svn path=/trunk/; revision=378
* When printing a packet, do it from the protocol tree, not from the GTK+Guy Harris1999-07-131-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tree constructed from the protocol tree: 1) The value of "level" field of GTK+ tree items appears to depend on various random things - see a change I made to "packet-dns.c" a while ago, to change the order in which items were put in the tree, so that DNS trees printed with correct indentation - and, right now, we appear to be doing *something* wrong, as some packets I printed from one file here had randomly bogus indentation; I could probably track the problem down and fix it, but that might just hold us until we accidentally do something *else* wrong by GTK+'s lights. The new code provides its own tree level as it goes. 2) The new code is independent of GTK+, so it could be used with other toolkits, or with non-GUI variants of Ethereal. 3) This may make it easier to add a "Print..." menu item to let the user print packets other than the currently selected packet. Make the internal routines used to print the packet static. For the "Print Packet" menu item, put up a message box if they haven't yet selected a packet. svn path=/trunk/; revision=362
* * Added preference file saves and reads.Gerald Combs1998-10-281-12/+2
| | | | svn path=/trunk/; revision=75
* * OSPF alignment fixes (Gerald)Gerald Combs1998-10-101-4/+4
| | | | | | * FDDI support (Laurent, Guy) svn path=/trunk/; revision=36
* Merged in a _huge_ patch from Guy Harris. It adds a time stap column,Gerald Combs1998-09-271-4/+5
| | | | | | | generalizes the column printing code, adds a "frame" tree item to the tree view, and fixes a bunch of miscellaneous coding bugs. svn path=/trunk/; revision=31
* Initial prefs support.Gerald Combs1998-09-261-3/+4
| | | | svn path=/trunk/; revision=27
* Added ID tags to the beginning of each source file.Gerald Combs1998-09-161-0/+2
| | | | svn path=/trunk/; revision=7
* Initial revisionstartethereal-0.3.15ethereal-0-3-15backups/ethereal@18706etherealGerald Combs1998-09-161-0/+47
svn path=/trunk/; revision=2