aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/dfilter_expr_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2004-08-08From Stas Grabois: make the previous change not to show disabledGuy Harris1-2/+7
protocols in the "Add Expression" and "Decode As" dialogs work with GTK+ 2.x. svn path=/trunk/; revision=11626
2004-07-19renamed filter_prefs to filter_dlg, as the filter settings are (well, for a ↵Ulf Lamping1-1/+1
long time) no longer part of the preferences dialog. svn path=/trunk/; revision=11436
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-06-10Move "dfilter_expr_dlg_delete_event_cb()" afterGuy Harris1-10/+10
"dfilter_expr_dlg_cancel_cb()" to avoid use-before-declaration warnings. svn path=/trunk/; revision=11136
2004-06-10"delete_event" is an event, so its handler takes three arguments, notGuy Harris1-2/+12
two, and it returns a gboolean. svn path=/trunk/; revision=11133
2004-06-10From Stas Grabois: don't show disabled protocols in the "Add Expression"Guy Harris1-1/+11
and "Decode As" dialogs (so that you can cut down the size of the protocol lists in those dialogs by disabling "uninteresting" protocols). svn path=/trunk/; revision=11132
2004-05-27use gtk_window_set_default_size() instead of WIDGET_SET_SIZE() for the dialogs,Ulf Lamping1-3/+4
as WIDGET_SET_SIZE() will prevent the user from shrinking the dialog, and gtk_window_set_default_size() will not svn path=/trunk/; revision=11021
2004-05-26more code cleanup from dialog things:Ulf Lamping1-25/+23
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-03-13replaced snprintf by g_snprintf and removed #include "snprintf.h"Ulf Lamping1-15/+11
svn path=/trunk/; revision=10370
2004-03-07fixed a bug GTK_WIDGET_VISIBLE -> GTK_WIDGET_SENSITIVE,Ulf Lamping1-30/+64
added some (not yet finished) work svn path=/trunk/; revision=10340
2004-03-06some code cleanupUlf Lamping1-128/+66
svn path=/trunk/; revision=10335
2004-03-06replaced show/hide by sensitive/insensitive to see all fields everytimeUlf Lamping1-23/+40
svn path=/trunk/; revision=10334
2004-02-12The HIG's and/or GUI toolkit documentation for:Guy Harris1-6/+5
Mac OS X GNOME Qt KDE Windows all indicate that {message,alert} boxes are modal, at least for the window to which they apply. (Presumably the idea is that not forcing the user to pay attention to the alert box, and allowing more than one alert box to be up for a given window, causes more problems than not letting the user do stuff to that window in order to figure out what the underlying problem is or figure out what to do to fix it - the message should be sufficient, in most if not all cases, to let you know what the problem is.) Make "simple_dialog()" unconditionally make the alert box modal, and get rid of ESD_TYPE_MODAL. XXX - we need to make it possible to make an alert box modal for a given window, rather than just the top-level window. svn path=/trunk/; revision=10051
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-11/+26
scrolled_window_new(). added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to scrolled_window_new() added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN) to every place needed svn path=/trunk/; revision=9999
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-5/+5
"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-5/+5
better reflect the real error text svn path=/trunk/; revision=9913
2004-01-26Add support for the "matches" operator if HAVE_LIBPCRE is defined.Olivier Biot1-1/+8
svn path=/trunk/; revision=9865
2004-01-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-19/+8
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-10using button compatibility macrosUlf Lamping1-11/+3
svn path=/trunk/; revision=9636
2003-11-25fvalue_free() is one of the most called functions.Ronnie Sahlberg1-2/+2
This function is also very small, so small that teh overhead for the actual function call and return is likely to be a significant part of its execution time. change it into a macro and make it thus slightly faster by eliminating the function call overhead. svn path=/trunk/; revision=9083
2003-11-16Export "protocol_t" as an opaque type.Guy Harris1-3/+6
Make "proto_is_protocol_enabled()" and "proto_get_protocol_short_name()" take a "protocol_t *" as an argument, so they don't have to look up the "protocol_t" - this will probably speed them up considerably, and they're called on almost every dissector handoff. Get rid of a number of "proto_is_protocol_enabled()" calls that aren't necessary (dissectors called through handles, including those called through dissector tables, or called as heuristic dissectors, aren't even called if their protocol isn't enabled). Change some direct dissector calls to go through handles. svn path=/trunk/; revision=8979
2003-10-29Put quotes around values for FT_ABSOLUTE_TIME variables, and aroundGuy Harris1-12/+30
values with white space in them. svn path=/trunk/; revision=8820
2003-09-29- in show_relations() : select the first row of the relation_list whenOlivier Abad1-3/+11
using gtk+ v2. - get rid of some unused variables. svn path=/trunk/; revision=8565
2003-09-23The relation list is always displayed (that's been true for a while) -Guy Harris1-34/+20
we don't need to support making it visible or not depending on the selected field. svn path=/trunk/; revision=8517
2003-09-05Don't try to align the field filter name and name - the font wouldGuy Harris1-14/+21
probably be variable-width, so that doesn't work. Just put a dash between them. Boost the size of the buffer used for the field text to 256 characters. In GTK+ 1.2[.x], put the entries for fields (rather than protocols) in as leaf nodes. svn path=/trunk/; revision=8388
2003-09-05If Belinda:Guy Harris1-3/+13
http://www.ethereal.com/lists/ethereal-dev/199910/msg00237.html isn't there, don't try to display her. svn path=/trunk/; revision=8385
2003-09-05Add some more text to the filter item description in the display filter add ↵Ronnie Sahlberg1-3/+12
expression dialogue It was very cnfusing where some protocols such as SMB had multiple items all called the same thing. Now one can distinguish between them svn path=/trunk/; revision=8383
2003-08-27Add a "contains" operator for byte-strings, strings, and tvbuffs (protocols).Gilbert Ramirez1-3/+14
The search uses a naive approach; more work is required to add a Boyer-Moore Search algorithm. svn path=/trunk/; revision=8280
2003-08-25From Matthijs Melchior:Guy Harris1-24/+31
support for registering fields after all the protocol registration routines are called (i.e., adding fields to the named field tree as they're registered); fix the GTK 2.x version of the field list dialog to show the correct name. svn path=/trunk/; revision=8248
2003-07-25Add to the fundamental types passed between the scanner and the parser.Gilbert Ramirez1-2/+2
Besides "STRING", there is now "UNPARSED_STRING", where the distinction is that "STRING" was a double-quoted string and "UNPARSED_STRING" is just a sequence of characters that the scanner didn't know how to scan/parse, so it's up to the Ftype to parse it. This gives us more flexibility and prepares the dfilter parsing engine for the upcoming addition of the "contains" operator. In the process of doing this, I also re-did the double-quoted string support in the scanner, so that instead of the naively-simple support we used to have, double-quoted strings now can have embedded dobule-quotes, embedded octal sequences, and embedded hexadecimal sequences: "\"" embedded double-quote "\110" embedded octal "\x48" embedded hex Enhance the dfilter unit test script to be able to run a single collection of tests instead of having to run all of them all the time. svn path=/trunk/; revision=8083
2003-03-10Pointer <--> int converions cause warnings on ia64.Jörg Mayer1-2/+2
Modified a patch originally contained in the SuSE distro to do the conversions via glib macros. svn path=/trunk/; revision=7330
2003-01-31Get rid of BASE_BIN - it's just the same as BASE_DEC, but people seemedGuy Harris1-2/+1
to be using it for stuff that should be hex, and for stuff that should be Boolean. Use BASE_DEC if it should be decimal, BASE_HEX if it should be hex, and make it Boolean if it should be Boolean. svn path=/trunk/; revision=7053
2002-11-10Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-112/+64
svn path=/trunk/; revision=6600
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-832/+1102
svn path=/trunk/; revision=6552
2002-10-09Add a missing #include <string.h>Jörg Mayer1-1/+2
svn path=/trunk/; revision=6390
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-4/+1
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-8/+8
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-5/+1
equivalents for the gtk/ directory. svn path=/trunk/; revision=5930
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris1-6/+6
svn path=/trunk/; revision=4878
2002-01-11Have routines to create GtkCTrees, set their line and expander styleGuy Harris1-6/+3
based on the user's UI preferences, and add them to a list of GtkCTrees. Use those routines to create all GtkCTrees. Have a routine to update the preferences for all of those GtkCTrees. Call that routine whenever the preferences change. Label the line and expander style preferences as "Tree line style" and "Tree expander style", as they no longer apply only to protocol trees. Move the routines to maintain a list of scrolled windows, and to update scrollbar placement for scrolled windows, to "ui_util.c". svn path=/trunk/; revision=4520
2001-08-21On Windows, use the directory in which the binary resides as theGuy Harris1-4/+2
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-04-20When displaying the numeric value for the value_string string that wasGuy Harris1-1/+2
selected in the filter-construction GUI, treat BASE_BIN like BASE_DEC, as that's currently how it's treated elsewhere. svn path=/trunk/; revision=3351
2001-03-26GUI code fixes from Eduardo P�rez Ureta.Guy Harris1-3/+2
svn path=/trunk/; revision=3189
2001-03-03Do a bunch of semantic checks when "Accept" is clicked, so that we catchGuy Harris1-2/+88
at least some invalid filter expressions. svn path=/trunk/; revision=3099
2001-02-23Boolean fields are just like other fields - if you use the field nameGuy Harris1-73/+73
without a comparison operator, it tests for the field's presence or absence, not its value; to test whether a Boolean field is true, you compare it with a non-zero value, and to test whether it's false, you compare it with a zero value. Make the filter expression construction dialog handle that correctly. svn path=/trunk/; revision=3068
2001-02-20Catch the "destroy" signal on the filter-expression-construction dialog,Guy Harris1-1/+22
and, when it's being destroyed, disconnect from the "destroy" signal on the text entry box to which it's attached, so that, when that text entry box is destroyed, we don't try to get rid of the no-longer-extant filter-expression-construction dialog. svn path=/trunk/; revision=3061
2001-02-20Catch the "destroy" signal on the text entry box to which aGuy Harris1-1/+9
filter-expression-construction dialog box is attached; if the text entry box is destroyed (which typically means the window it's in was destroyed), get rid of the filter-expression-construction dialog box. svn path=/trunk/; revision=3060
2001-02-20The all-purpose answer to "this widget expands to fill the spaceGuy Harris1-4/+10
available for it and it looks ugly" is "throw an alignment around it". (I *still* don't know why it's not required in other dialog boxes, e.g. the filter-editing dialog box.) svn path=/trunk/; revision=3059
2001-02-20Make the "activate" signal on the text entry boxes in the filterGuy Harris1-13/+24
expression construction dialog activate the entire dialog box. Make a desperate but failed attempt to bludgeon GTK+, The Toolkit That Knows Better Than You Do How Big Buttons Should Be Made, Even If It Looks Butt-Ugly, And Which Appears To Randomly Decide Whether To Make It Look Ugly Or Not, into making the "Cancel" button as tall as the inside of the "Accept" button, not as tall as the "Accept" button plus its "this is the default button" surround. svn path=/trunk/; revision=3057
2001-02-20Call the test for a protocol "is present", just like the test for otherGuy Harris1-35/+46
fields. Show a relational operator on a field if the field supports it *or* if the field can be sliced and the type generated by a range (FT_BYTES) supports it. (This lets you do a comparison on a protocol, not just on a range of a protocol - e.g., "arp == 2", not just "arp[0:1] == 2" - but the alternative would be to show only the "is present" test, as if you don't offer the other tests, you can't turn on the range text box when they select a comparison expression if you don't show comparison expresions...). svn path=/trunk/; revision=3056