aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/print_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2004-12-22From Brett Kuskie: recalculate the ranges every time an export dialog isGuy Harris1-15/+15
opened, not just the first time, so that if the packet counts change up-to-date values are displayed. svn path=/trunk/; revision=12813
2004-10-16Remove the fixed maximum number of subranges in a range_t; dynamicallyGuy Harris1-0/+8
allocate them to be large enough. Add checks that the numbers in the range fit in a guint32. Check the validity of a range before saving or printing, and report errors in an alert box. Clean up white space. svn path=/trunk/; revision=12320
2004-09-30For file browsing dialog boxes, the affirmative button should be "OK",Guy Harris1-1/+2
not "Save". In UN*X with GTK+ 2.x, put the affirmative button in file dialogs to the right of the cancel button, as is done with other dialogs. svn path=/trunk/; revision=12146
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-07-27Move the code to open the printer/print file from "print_packets()" toGuy Harris1-1/+40
"print_ok_cb()", and have "print_packets()" just work on a "print_stream_t" handed to it, so that different platforms can open the printer/print file in different ways (opening the file is probably not going to be platform-dependent, but opening the printer will be). svn path=/trunk/; revision=11544
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-07-08Make the "human-readable text vs. PSML vs. PDML" choice separate fromGuy Harris1-14/+18
the "text vs. PostScript" choice. The "text vs. PostScript" choice should probably ultimately be done with a generic set of print methods, to handle various platform-native print mechanisms more cleanly (and perhaps the dialog box code for "export as {PDML,PSML}" should be separate from the "export as text"/"print" dialog). svn path=/trunk/; revision=11342
2004-06-29The patch to fix the race condition introduced by using tmpnam replacedJörg Mayer1-2/+2
insecure code by not-working code. As I currently lack the time to fix this properly until Monday as the earliest possible date I undo the patch. Please note that Ethereal should not be used on multiuser systems with untrusted users until a proper fix has been applied. svn path=/trunk/; revision=11263
2004-06-25tmpnam() really should not be used for security reasons.Jörg Mayer1-2/+2
Replace it where used and update README.developer accordingly. svn path=/trunk/; revision=11235
2004-05-27win_printer is gboolean, not an intUlf Lamping1-4/+4
svn path=/trunk/; revision=11024
2004-05-26more code cleanup from dialog things:Ulf Lamping1-20/+18
changed window_xy (dialog) function calling in a lot of gtk files cleanup of file selection code cleanup in dlg_utils/file_dlg/ui_util Please report any problems!!! svn path=/trunk/; revision=11003
2004-04-25removed some labelsUlf Lamping1-26/+6
svn path=/trunk/; revision=10705
2004-04-25Squelch a compiler warning.Guy Harris1-2/+3
svn path=/trunk/; revision=10700
2004-04-25created new "export" dialogs for the current export file formatsUlf Lamping1-83/+319
svn path=/trunk/; revision=10694
2004-04-25put all required data into the print_args,Ulf Lamping1-25/+21
instead of confusing seperation of data svn path=/trunk/; revision=10692
2004-04-25changed the print dialog, so it will keep the user settings after reopening ↵Ulf Lamping1-119/+85
the dialog and some code cleanup svn path=/trunk/; revision=10685
2004-04-24some code cleanup of the printing systemUlf Lamping1-15/+23
svn path=/trunk/; revision=10682
2004-04-22oops, forgotten to test with GTK1...Ulf Lamping1-2/+6
svn path=/trunk/; revision=10666
2004-04-22seperated common packet range code from the save and the print dialog,Ulf Lamping1-316/+4
and put it into new range_utils files. This will avoid: a) duplicate code in save and print dialog and b) yet another code duplication for future dialogs (export, ...) svn path=/trunk/; revision=10665
2004-04-22added some options and enhancements to the print output:Ulf Lamping1-1/+20
-ps: added formatting hints for ghostscript, so pdf conversion will be much better -ps: print a thin line at the top and bottom of each page -ps/text: add an option to start a new page for every packet (formfeed) svn path=/trunk/; revision=10660
2004-04-17added PSML output to the printing dialogUlf Lamping1-3/+18
svn path=/trunk/; revision=10628
2004-04-16make print dialog "Packet Format" options somewhat similar to theUlf Lamping1-50/+80
Ethereal panes, thus better understandable svn path=/trunk/; revision=10611
2004-04-16bugfix: make the "no dissections" radiobutton insensitive,Ulf Lamping1-4/+9
if packet details isn't selected svn path=/trunk/; revision=10610
2004-04-15added print output option, to suppress dissection completelyUlf Lamping1-7/+19
(for raw packet hexdump) svn path=/trunk/; revision=10607
2004-04-15added print output of PDML formatUlf Lamping1-16/+29
svn path=/trunk/; revision=10606
2004-02-11Add "write_failure_alert_box()" to put up an alert box for a failedGuy Harris1-3/+2
attempt to write to a file (or close a file opened for writing). Get rid of no-longer-needed #includes of <epan/filesystem.h>. svn path=/trunk/; revision=10027
2004-02-11Add an "open_failure_alert_box()" routine to pop up an alert box for aGuy Harris1-3/+3
failed attempt to open/create a file. Fix one call to pass the right value for the "for_writing" flag. svn path=/trunk/; revision=10026
2004-01-31change layout, as dialog was a bit tall,Ulf Lamping1-25/+29
improved resizability svn path=/trunk/; revision=9927
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-6/+6
"simple_dialog()"; NULL might be #defined to be a pointer expression on some platforms, causing compiler warnings (and, on platforms where a null pointer doesn't have all its bits 0, possibly causing misbehavior, although I don't think there are any such platforms on which Ethereal runs). Don't allow 0 as button mask argument to "simple_dialog()". Squelch a compiler warning. Report fatal problems as errors, not warnings. Report file I/O errors with "file_open_error_message()". Report file write errors (including those reported by "close()", e.g. some errors writing to an NFS server) when saving raw packet data to a file. svn path=/trunk/; revision=9915
2004-01-31renamed ESD_TYPE_CRIT to ESD_TYPE_ERROR toUlf Lamping1-6/+6
better reflect the real error text svn path=/trunk/; revision=9913
2004-01-25There's no need to keep a "FILE *" for the file being printed to in aGuy Harris1-5/+22
"capture_file" structure. Keep it locally, instead. Check for errors when printing packets. Report failure to open a print destination and failure to write to a print destination differently. Don't have the "print preamble" and "print final" routines return success/failure indications - revert to the old scheme where they didn't, and have the callers use "ferror()" to check for errors. Report write errors when printing dissections in Tethereal. Report print errors as errors, not warnings. svn path=/trunk/; revision=9828
2004-01-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-14/+5
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-2/+2
added some ethereal specific stock icons svn path=/trunk/; revision=9763
2004-01-10using button compatibility macrosUlf Lamping1-3/+3
svn path=/trunk/; revision=9636
2004-01-10using button compatibility macrosUlf Lamping1-136/+34
svn path=/trunk/; revision=9633
2004-01-09use the same packet range things for "Print" dialog, as already implementedUlf Lamping1-113/+354
in the "Save As" dialog and some other minor changes svn path=/trunk/; revision=9610
2003-12-23Base the count of selected packets on whether there's aGuy Harris1-14/+14
currently-selected packet. Use "cfile.count" as the total number of packets in the capture. Use "plurality" to display "packet" vs. "packets". svn path=/trunk/; revision=9423
2003-12-13sensitivity of packet range options fine tuning:Ulf Lamping1-5/+13
don't let the user choose "selected packets", when no packets displayed svn path=/trunk/; revision=9265
2003-12-09print system enhanced, more print ranges and expanded statesUlf Lamping1-127/+85
svn path=/trunk/; revision=9222
2003-12-01"select_file_cb()" only needs a title, not a "construct_args_t" -Guy Harris1-14/+2
"construct_args_t" is for use with filter dialogs, and the members other than the title apply only to filter dialogs. Have "select_file_cb()" actually use the title supplied to it. svn path=/trunk/; revision=9125
2003-11-30Move print_file_cb out of gtk/print_dlg.c and into gtk/file_dlg.c andRichard Sharpe1-114/+5
rename it to select_file_cb to reflect its function. While this cleans things up a bit, I am still not happy because now filter_prefs.h must be included before file_dlg.h just to get construct_args_t. svn path=/trunk/; revision=9119
2003-11-29Add an entry in the byte_view pane that allows the user to save the highlightedRichard Sharpe1-8/+24
data to a file. This allows the user to select some stuff, and analyse it with external tools, and is very useful for quickly prototying dissectors etc. This works by retrieving the info that is needed to define where the selected region is. It puts up a dialog box that asks for the file to save in. However, it is an ugly hack, because it reuses print_file_cb, while print_file_cb should be moved into file_dlg.c. It also needs to have some warning dialogs put up in error cases. Finally, it would be good to be able to select a region in the byte_view, which you can do with click and drag, and then have a menu item to save the selected bytes. svn path=/trunk/; revision=9116
2003-11-18removed unused varsUlf Lamping1-3/+2
svn path=/trunk/; revision=9008
2003-11-12completely redesigned print dialog layout, to be more obvious to the userUlf Lamping1-199/+295
svn path=/trunk/; revision=8949
2003-09-24Add a "file_selection_new()" routine that does all the positioning (GTK+Guy Harris1-2/+2
2.x) and transient-for setting that's done for other dialogs, and use it for dialogs that come from the main window or from children of the main window. svn path=/trunk/; revision=8531
2003-09-10When saving packets, we have a "Save only marked packets" option; labelGuy Harris1-9/+9
the option to print only marked packets similarly, rather than as "Suppress unmarked packets" (for consistency, and because the latter isn't unlike a double negative). svn path=/trunk/; revision=8451
2003-02-21From Pavel Roskin: in the GTK+ 2 code, associate the "Print Detail"Guy Harris1-2/+2
button with the correct group. svn path=/trunk/; revision=7183
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-135/+57
svn path=/trunk/; revision=6610
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-22/+160
svn path=/trunk/; revision=6552
2002-09-22From Graeme Hewson:Gerald Combs1-14/+24
In my recent patches to set and use a default directory, I neglected to set the directory when the user enters a file name directly into the "Capture Options" and "Print" dialogs instead of using the file dialog. This set of patches corrects this. svn path=/trunk/; revision=6318