aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/file_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2004-02-04Add some comments about the types of alert boxes you get with theGuy Harris1-3/+3
simple_dialog routines (which are really just message box/alert box routines). Add some macros for combinations of buttons (corresponding to combinations that some GUI toolkits, which only support some combinations, allow). svn path=/trunk/; revision=9977
2004-02-03enhanced some dialog messages,Ulf Lamping1-3/+4
close capture file when user told so svn path=/trunk/; revision=9965
2004-02-01moved window geometry values from prefs to recent,Ulf Lamping1-3/+4
added new pref / recent setting: "maximized main window", which will save, if the main window is maximized or not, this will take effect on GTK version 2 only, but is saved nonetheless svn path=/trunk/; revision=9949
2004-01-31Implemented rudimentary Drag and Drop support.Ulf Lamping1-1/+4
svn path=/trunk/; revision=9926
2004-01-31minor change in dialog textUlf Lamping1-2/+2
svn path=/trunk/; revision=9924
2004-01-31cleanup of new "question dialogs",Ulf Lamping1-5/+8
using GTK2 primary/secondary message text from GNOME HIG for simple_dialogs, added a "question dialog" for the coloring rules "Clear" button svn path=/trunk/; revision=9921
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-2/+2
"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-2/+2
better reflect the real error text svn path=/trunk/; revision=9913
2004-01-29every GUI action, which will erease a currently unsaved capture file,Ulf Lamping1-5/+114
will now raise a dialog "Save xy before z?" with Yes/No/Cancel buttons. svn path=/trunk/; revision=9908
2004-01-25Have the Wiretap open, read, and seek-and-read routines return, inGuy Harris1-4/+3
addition to an error code, an error info string, for WTAP_ERR_UNSUPPORTED, WTAP_ERR_UNSUPPORTED_ENCAP, and WTAP_ERR_BAD_RECORD errors. Replace the error messages logged with "g_message()" for those errors with g_strdup()ed or g_strdup_printf()ed strings returned as the error info string, and change the callers of those routines to, for those errors, put the info string into the printed message or alert box for the error. Add messages for cases where those errors were returned without printing an additional message. Nobody uses the error code from "cf_read()" - "cf_read()" puts up the alert box itself for failures; get rid of the error code, so it just returns a success/failure indication. Rename "file_read_error_message()" to "cf_read_error_message()", as it handles read errors from Wiretap, and have it take an error info string as an argument. (That handles a lot of the work of putting the info string into the error message.) Make some variables in "ascend-grammar.y" static. Check the return value of "erf_read_header()" in "erf_seek_read()". Get rid of an unused #define in "i4btrace.c". svn path=/trunk/; revision=9852
2004-01-20code cleanup and added some moreUlf Lamping1-2/+2
application specific stock items in toolbar.c, use them where appropriate svn path=/trunk/; revision=9747
2004-01-14destroy the "save as" dialog only, if it's existingUlf Lamping1-2/+3
svn path=/trunk/; revision=9665
2004-01-10close the Save (As) dialog, when the capture file is closedUlf Lamping1-1/+8
svn path=/trunk/; revision=9642
2004-01-10using button compatibility macrosUlf Lamping1-83/+22
svn path=/trunk/; revision=9633
2004-01-09use the same packet range things for "Print" dialog, as already implementedUlf Lamping1-105/+65
in the "Save As" dialog and some other minor changes svn path=/trunk/; revision=9610
2004-01-09some code cleanup in range.cUlf Lamping1-8/+4
svn path=/trunk/; revision=9609
2004-01-08Save As and range: don't use global vars in range.c,Ulf Lamping1-39/+37
as this will be also used for the print dialog later. Calculate packet count for user specified ranges svn path=/trunk/; revision=9598
2004-01-07Get rid of "gtk_box_pack_start()" call to put the range table into theGuy Harris1-2/+1
range frame - we already have a "gtk_container_add()" call that does that. svn path=/trunk/; revision=9596
2004-01-07Remove extraneous parameters of packet count in case the end-user manuallyOlivier Biot1-3/+5
enters a range of packets. Comment this in the code. svn path=/trunk/; revision=9590
2004-01-07save dialog with "Captured" and "Displayed" buttons in packet rangeUlf Lamping1-112/+263
svn path=/trunk/; revision=9580
2004-01-05an enum represents the radio buttons much better,Ulf Lamping1-45/+21
than an "array" of gbooleans svn path=/trunk/; revision=9564
2004-01-02hide save dialog, while savingUlf Lamping1-4/+6
svn path=/trunk/; revision=9527
2004-01-01comment fixedUlf Lamping1-2/+2
svn path=/trunk/; revision=9507
2003-12-30minor changes and a small bugfixUlf Lamping1-7/+16
svn path=/trunk/; revision=9492
2003-12-29removed a GTK2 warningUlf Lamping1-2/+2
svn path=/trunk/; revision=9483
2003-12-29Get rid of an unused variable.Guy Harris1-2/+1
svn path=/trunk/; revision=9480
2003-12-29From Dick Gooris (and me :-)Ulf Lamping1-59/+266
more ways to choose which packets can be saved, in the save(as) dialog box svn path=/trunk/; revision=9476
2003-12-01"select_file_cb()" only needs a title, not a "construct_args_t" -Guy Harris1-3/+3
"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-1/+117
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-10-16There doesn't seem to be any need to set "cfile.dfilter" to the contentsGuy Harris1-7/+2
of the filter text entry when reloading the file, and: 1) that doesn't work with the toolbar "reload" button (the widget passed in for that button doesn't have a E_DFILTER_TE_KEY data item pointing to the text entry); 2) that causes the Tools > Summary dialog box to report what you've typed in that box, not the filter that's actually in effect (i.e., it causes "cfile.dfilter" to reflect what's been typed, not what's been applied); so don't bother doing so. That also means that the "/File/Reload" menu item doesn't need a E_DFILTER_TE_KEY data item, so don't give it one. svn path=/trunk/; revision=8713
2003-10-14Clean up the stuff that fills in the starting directory.Guy Harris1-18/+21
svn path=/trunk/; revision=8700
2003-10-14From Ian Schorr:Guy Harris1-6/+29
Add a preference to control whether the "File > Open" dialog box should start out in the last directory in which it looked - and save that in the preferences file across invocations - or should always start out in a user-specified directory, and add another preference to specify that directory. Write out section name comments into the preferences file. Clean up white space a bit. svn path=/trunk/; revision=8699
2003-09-24Add a "file_selection_new()" routine that does all the positioning (GTK+Guy Harris1-11/+3
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-20From Giles Scott:Guy Harris1-1/+9
in GTK+ 2.x, center dialogs on the parent; make the file selection dialogs transient for the main window, just as other dialogs are. Update Gerald's e-mail address. svn path=/trunk/; revision=8503
2003-09-15Rename various capture file routines to have names starting with "cf_".Guy Harris1-13/+13
svn path=/trunk/; revision=8479
2003-08-18From Richard Urwin a great enhancement to the color filter dialogue toRonnie Sahlberg1-1/+304
make it possible to import/export color filters svn path=/trunk/; revision=8188
2003-07-22Add two preferences to control ADNS, one to enable/disable it and one toGerald Combs1-2/+3
set its concurrency level. Fix an ADNS queueing bug. svn path=/trunk/; revision=8063
2003-07-18Various fixes related to GTK2 :Olivier Abad1-1/+2
- give the focus to the packet_list when a capture file is opened, and each time we change the selection in the packet list (it seems that the tree view has the focus if we don't do this) ; - in set_plist_sel_browse() : it seems that packet_list->selection_mode is always 0 in GTK2 so we can't use it to determine the current mode. Use a static variable instead. This should fix the second part of debian bug #199763 svn path=/trunk/; revision=8045
2003-01-15Add a new routine "filter_button_destroy_cb()", and make it theGuy Harris1-13/+3
"destroy" signal handler for any button that pops up a filter; if the button has a filter dialog box associated with it, it destroys that dialog box. Have the routines that create filter dialog boxes asociate the dialog box with the button that created it, so that if the button is destroyed the filter dialog box can be destroyed as well, and associate the button with the dialog box. This means that if a dialog box has a button to create a filter, we no longer have to have the destroy handler for the dialog box destroy any filters - that'll happen when the button in the dialog box is destroyed as part of the process of destroying the dialog box. Don't make the "Filter" buttons in the io_stat dialog box insensitive if there's already a filter dialog box open - we can have more than one open per dialog box. svn path=/trunk/; revision=6930
2002-11-10Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-89/+36
svn path=/trunk/; revision=6600
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-16/+80
svn path=/trunk/; revision=6552
2002-09-09From Graeme Hewson:Guy Harris1-6/+30
Currently Ethereal sets and uses a default directory for reading and writing, but only in some places. This set of patches extends the setting of the default directory to the -w option as well as the -r option, and causes all file dialogs to use and set the default consistently. (I haven't changed the Preferences/Printing/File dialog, though, as that's a special case.) There's also a fix for a bug where Ethereal was issuing the message "Ring buffer requested, but capture isn't being saved to a permanent file" even though a file was specified with -w. There also appear to be some other cleanups in his patch. svn path=/trunk/; revision=6238
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-12/+2
Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-10/+10
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-11/+11
svn path=/trunk/; revision=4878
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-2/+2
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
2002-01-13Add a preferences page for the name resolution flags.Guy Harris1-9/+8
Separate the preferences value for those flags and the name resolution code's value into separate variables; this means that the resolution code no longer depends on the preferences code, and may let us eventually have the current setting and the preference setting differ (so that a user can temporarily override the preference setting without causing subsequent saves of the preferences to save the temporary value). Add routines to create various types of widgets for preferences, and to fetch the values for "enumerated" preferences, and use them both in the code to handle hardwired preference pages and table-driven preference pages. svn path=/trunk/; revision=4536
2001-12-06Don't update the "Save As..." dialog box if it doesn't exist.Guy Harris1-7/+22
Update some comments. svn path=/trunk/; revision=4342
2001-12-06Make the "Save only marked frames" button in the "Save As..." dialog boxGuy Harris1-7/+39
sensitive only if there *are* marked frames. svn path=/trunk/; revision=4341
2001-11-09From <a.stockmeier[AT]avm.de>: fix the file dialog box code to useGuy Harris1-2/+2
"g_strdup()", not "strdup()" to copy strings. svn path=/trunk/; revision=4181