aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/file_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
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
2001-10-24Have a routine that takes a file name for a personal configuration fileGuy Harris1-1/+3
and generates the path name; have it, if the file is to be opened for reading on Win32, check whether it exists and, if not, check for it in the old home directory-based configuration directory and, if so, return that path instead, so that files saved with earlier versions of Ethereal will be seen. svn path=/trunk/; revision=4072
2001-09-10The "Save only marked packets" checkbox should change as the file typeGuy Harris1-1/+14
changes, just as the "Save only packets currently being displayed" checkbox should. svn path=/trunk/; revision=3913
2001-08-21On Windows, use the directory in which the binary resides as theGuy Harris1-2/+3
directory in which global data files are stored. If an installed binary is being run, that's the correct directory for them; if a build-tree binary is being run, the "manuf" file will be there, and you can put other data files there as well, if necessary. Do the same with plugins, except that, if there's no "plugins\\{version}" subdirectory of that directory, fall back on the default installation directory, so you at least have a place where you can put plugins for use by build-tree binaries. (Should we, instead, have the Windows build procedure create a subdirectory of the "plugins" source directory, with the plugin version number as its name, and copy the plugins there, so you'd use the build-tree plugin binaries?) Move "test_for_directory()" out of "util.c" and into "epan/filesystem.c", with the other file system access portability wrappers and convenience routines. Fix "util.h" not to declare it - or other routines moved to "epan/filesystem.c" a while ago. svn path=/trunk/; revision=3858
2001-06-05Enable "Match Selected" only if there's a field selected *and* we can doGuy Harris1-4/+3
a "Match Selected" on it - we can't do a "Match Selected" if the field has no value (e.g., FT_NULL) and has a length of 0. If we unselect the current packet, we don't have a protocol tree, so we don't have a currently selected field - clear the "Match Selected" menu item and the display in the status line of information about the currently selected field. Move the low-level statusbar manipulation into "gtk/main.c", in routines whose API doesn't expose anything GTK+-ish. "close_cap_file()" calls one of those routines to clear out the status bar, so it doesn't need to take a pointer to the statusbar widget as an argument. "clear_tree_and_hex_views()" is purely a display-manipulating routine; move it to "gtk/proto_draw.c". Extract from "tree_view_unselect_row_cb()" an "unselect_field()" routine to do all the work that needs to be done if the currently selected protocol tree row is unselected, and call it if the currently selected packet list row is unselected (if it's unselected, there *is* no protocol tree, so no row can be selected), as well as from "tree_view_unselect_row_cb()". Before pushing a new field-description message onto the statusbar, pop the old one off. Get rid of an unused variable (set, but not used). svn path=/trunk/; revision=3513
2001-05-31Support for "-N" flag enabling selected forms of name resolution, fromGuy Harris1-26/+63
Joerg Meyer. Support for saving to the preferences file the settings for all types of name resolution. Do a case-insensitive check for "true" and "false" in Boolean preference settings. svn path=/trunk/; revision=3489
2001-04-15There's no "enable name resolution in captures" preference in Ethereal,Guy Harris1-3/+4
and never was - there's only an Ethereal-wide "enable name resolution" preference. Name it just "name_resolve". Replace all tests of "g_resolving_actif" with tests of "prefs.name_resolv", and replace all code that sets "g_resolving_actif" with code that sets "prefs.name_resolv", so that the setting of "prefs.name_resolv" actually affects whether names are resolved or not. svn path=/trunk/; revision=3300
2001-04-09last_open_dir needs a trailing slash in order for the GTK+Gilbert Ramirez1-24/+7
file-selection dialogue to open the directory and show its contents, otherwise it opens the parent directory and shows *its* contents. svn path=/trunk/; revision=3279
2001-02-01Create a more modular type system for the FT_* types. Put themGilbert Ramirez1-4/+4
into epan/ftypes. Re-write display filter routines using Lemon parser instead of yacc. Besides using a different tool, the new grammar is much simpler, while the display filter engine itself is more powerful and more easily extended. Add dftest executable, to test display filter "bytecode" generation. Add option to "configure" to build dftest or randpkt, both of which are not built by default. Implement Ed Warnicke's ideas about dranges in the new display filter and ftype code. Remove type FT_TEXT_ONLY in favor of FT_NONE, and have protocols registered as FT_PROTOCOL. Thus, FT_NONE is used only for simple labels in the proto tree, while FT_PROTOCOL is used for protocols. This was necessary for being able to make byte slices (ranges) out of protocols, like "frame[0:3]" Win32 Makefile.nmake's will be added tonight. svn path=/trunk/; revision=2967
2001-01-21Give various filter constructing/editing dialog boxes titles to reflectGuy Harris1-2/+6
what they were popped up for. svn path=/trunk/; revision=2923
2001-01-21In the process of destroying a filter editing dialog box, we get aGuy Harris1-3/+7
selection change event on the list of filters. Unfortunately, this can happen after some other widgets in that dialog box have already been destroyed - including some of the widgets that such a selection change event can change. This sometimes happened when "filter_prefs_delete()" hadn't been called, so the mechanism we had been using, with a Boolean datum attached to the dialog box, set in "filter_prefs_delete()" before we actually destroy the dialog box, wasn't sufficient to keep that from happening. Attach to the top-level window data items containing pointers to the widgets changed when a filter is selected from the list, give each of those widgets their own destroy callbacks, clear the pointer attached to the top-level widget when the widget is destroyed, and don't do anything to the widget when a filter is selected from the list if the pointer for that widget is null, as that means the widget's been destroyed and we *can't* do anything to it. Not all filter editing dialogs created on behalf of a "Filter:" button next to a text entry box should, when you click "OK", activate the text entry box; if the text entry box is part of a dialog box with multiple widgets, the user might not have filled in all of the items in that dialog box, so you shouldn't activate it for them. Add a mechanism by which, when creating a filter editing dialog box, you can specify whether the "OK" button should just fill in the text entry box or should fill it in and also activate it. svn path=/trunk/; revision=2922
2001-01-02Add a dialog box for constructing expressions that test a field in theGuy Harris1-2/+2
display tree, based on Jeff Foster's dialog box for selecting fields. Make the dialog box for browsing filters into a dialog box for constructing filters; make the "Apply" button and the "OK" button apply the filter in the text entry box in the dialog, not the currently selected filter (selecting a filter puts it in that text entry box, but the user may edit it afterwards, or may use the aforementioned dialog box to construct a filter not in the list). Get rid of extra declarations of "m_r_font" and "m_b_font" in "proto_draw.c"; they're declared in "gtk/gtkglobals.h", which it includes. svn path=/trunk/; revision=2805