aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/print_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2001-06-08When printing the contents of a raw-data field, don't use the raw dataGuy Harris1-4/+3
of the current frame as the source, use the raw data of the tvbuff that's the data source of that field. svn path=/trunk/; revision=3531
2000-11-21Add a "color.h" file that declares a nominally-toolkit-independentGuy Harris1-1/+3
"color_t" structure to store color values (although currently it has all the same fields that a GdkColor has; its currently advantage is that you don't have to include any GTK/GDK stuff to declare it). Add routines in the "gtk" directory to convert between "color_t" and GdkColor values. Define, in "prefs.h", all colors as "color_t" values rather than GdkColor values. "prefs.h" now no longer needs to include <gtk/gtk.h>, so don't include it. svn path=/trunk/; revision=2692
2000-08-23Bleah. What was I thinking? "dlg_window_new()" should take the titleGuy Harris1-3/+2
for the dialog window as an argument (as various dialog creators in GTK+ do), not oblige every caller of it to cut-and-paste a "gtk_window_set_title()" call after it. svn path=/trunk/; revision=2345
2000-08-11Miscellaneous code cleaningLaurent Deniel1-16/+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-05Add a "dlg_window_new()" routine, which creates a GTK_WINDOW_DIALOGGuy Harris1-2/+2
window and makes it transient for the top-level window; the transient-for at least provides a hint to X window managers to minimize the dialog if the main window is minimized; keep the dialog on top of the main window in the Z order for windows; perhaps (if there are any window managers that actually *do* this) even put it atop the main window in the X-Y plane (KWM doesn't and I seem to remember that the Exceed X server for Windows doesn't). It's generally considered the Right Thing To Do for dialog boxes. Use that routine to create dialog boxes, rather than doing it directly in the code for that dialog box. svn path=/trunk/; revision=2112
2000-06-27Patch from Ben Fowler to rename the global variable "cf" to "cfile", toGuy Harris1-4/+4
make it easier to use grep to find all references to it without getting a lot of false hits and to check, after allocating the memory chunk for "frame_data" structures, that the allocation succeeded. svn path=/trunk/; revision=2092
2000-05-08Catch the ESC key in the file selection dialog boxes popped up forGuy Harris1-1/+6
"File->Open", "File->Save As", and the "File:" buttons in the Capture Preferences and Print dialog boxes, and make it cancel the file selection dialog box. svn path=/trunk/; revision=1921
2000-05-08Keep a pointer to the current "Print" window, if any - if not, theGuy Harris1-15/+80
pointer is NULL - so that, instead of doing nothing if the user selects "File->print" when there's already a "Print" dialog box open, we raise and de-iconify that window. Connect the print dialog box and any file selection dialog box it has open, so that: if the print dialog box goes away, so does the filter dialog box (as it no longer has a text widget into which it can stuff the selected file name); if the "File:" button is clicked when there's already a file selection dialog box open, we just reactivate that existing dialog box rather than popping up a new one. svn path=/trunk/; revision=1918
2000-05-08Set up the buttons in the "Find Frame" and "Print" dialog boxes to useGuy Harris1-11/+26
mnemonics. svn path=/trunk/; revision=1916
2000-05-03Make the "Print" dialog box use the new utilities to make the ReturnGuy Harris1-1/+15
key print the packets and make the Esc key cancel the dialog box. svn path=/trunk/; revision=1907
2000-01-06Printing multiple pages of PostScript wasn't as tricky as I thought; addGuy Harris1-18/+29
support for printing in PostScript to the "Print..." dialog box. svn path=/trunk/; revision=1426
2000-01-03Take the "simple_dialog()" stuff out of "ui_util.h" and "gtk/ui_util.c",Guy Harris1-3/+3
and move it to "simple_dialog.h" and "gtk/simple_dialog.c". svn path=/trunk/; revision=1414
2000-01-03Use the right #define to control inclusion of "ui_util.h".Guy Harris1-2/+2
svn path=/trunk/; revision=1412
1999-12-09Move the GTK+ implementations of various UI utilities out of "util.c"Guy Harris1-2/+2
into "gtk/ui_util.c", and move the declarations of those UI utilities out of "util.h" into "ui_util.h". (The header file is in the top-level directory, rather than the "gtk" directory, because it declares window-system-independent interfaces to routines with window-system-dependent implementations.) Add to "gtk/ui_util.c" a routine to set the window and icon title. Use that routine to make the title of an Ethereal top-level window be {filename} - Ethereal if there's a capture open, and have "{filename}" be "<capture>" if it's a temporary capture file. svn path=/trunk/; revision=1255
1999-11-06Add a "Find Frame" menu item under "Display"; it lets you use a displayGuy Harris1-2/+2
filter to search forward or backward in the list of displayed frames for a matching frame. When filtering the display, readjust the display to show the "current" frame if it passed the display filter. When a file is read in, the first frame becomes the "current" frame; when a frame is selected, it becomes the "current" frame, and remains so *even if you unselect it*, until another frame is selected. Select the first frame when a file is read in. Disable most of the "Display" and "Tools" menu items if there's no current capture file, and enable the relevant ones if there is. svn path=/trunk/; revision=982
1999-09-29Enable "Print hex" only if "Print detail" is on.Guy Harris1-2/+7
svn path=/trunk/; revision=737
1999-09-29Add an item to the "File/Print" dialog box to ask that the full hex dataGuy Harris1-11/+36
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
1999-09-12Make "Expand all levels" and "Print as displayed" radioGuy Harris1-1/+30
buttons insensitive if "Print summary" is selected, and make them sensitive if "Print detail" is selected, as they apply only to the "print detail" output. svn path=/trunk/; revision=672
1999-09-12Add a "Expand all levels"/"Print as displayed" pair of radio buttons toGuy Harris1-5/+45
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
1999-09-12Add summary-vs-detail radio buttons to the print dialog box; detailGuy Harris1-15/+31
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
1999-09-09Put RCS IDs (and a copyright notice and GPL notice) in several files,Guy Harris1-0/+25
and fix up the introductory comment on some other files. svn path=/trunk/; revision=640
1999-09-09More shuffling of GTK-related routines to gtk subdirectory.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=636
1999-09-01Moved GTK-dependent routines for file dialogues, print dialogues, printGilbert Ramirez1-0/+347
preferences, and menus to gtk subdirectory. svn path=/trunk/; revision=623