aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.h
AgeCommit message (Collapse)AuthorFilesLines
2004-02-03added some more info to the statusbar (filesize, packet count, ..),Ulf Lamping1-1/+3
fixed a minor bug in the cfile handling (file length in summary dialog) svn path=/trunk/; revision=9961
2004-01-31Implemented rudimentary Drag and Drop support.Ulf Lamping1-1/+2
svn path=/trunk/; revision=9926
2004-01-29every GUI action, which will erease a currently unsaved capture file,Ulf Lamping1-1/+2
will now raise a dialog "Save xy before z?" with Yes/No/Cancel buttons. svn path=/trunk/; revision=9908
2004-01-25apply automatically generated filters strings to the recent dropdown list,Ulf Lamping1-1/+3
e.g. when applying a "Follow TCP stream", fix a bug in the recent function, discarding the newest entries when saving a full list (now discarding the oldest). svn path=/trunk/; revision=9849
2004-01-24Have "font_apply()" return an indication as to whether it succeeded orGuy Harris1-2/+7
failed and, if it failed, how it failed. Have it leave up to its caller the job of reporting that it couldn't load the requested font; have its callers do that, and have them set the zoom level on failure so that we have a zoom level that is at least more likely to work. Make the alert boxes for "font_apply()" failures be error boxes, not warning boxes. svn path=/trunk/; revision=9818
2004-01-20a.) saving GTK1 and GTK2 fontnames in different preference setting, to ↵Ulf Lamping1-2/+8
prevent problems when switching between GTK1 and GTK2 ethereal versions b.) added new feature "Edit->Go To First Packet" "Edit->Go To Last Packet" with corresponding menu and toolbar items c.) added new feature "View->Zoom In" / "View->Zoom Out" / View->Normal Size" with corresponding menu and toolbar items This feature will act as a "size offset" to the current fontsize, so that the packet list/tree view/... will have a larger/smaller font size. The value is stored inside the recent file. d.) Win32 only: Try to get the win32 system font and fontsize at program startup and show the menus/dialogs and such with the same font and fontsize like other win32 windows. This makes the program make a *lot* more feel like a normal win32 program. svn path=/trunk/; revision=9753
2004-01-19added some menuitems "View->Show" including show/hide of all main widgets,Ulf Lamping1-5/+4
saving the states in the recent file svn path=/trunk/; revision=9726
2004-01-09Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify itGuy Harris1-5/+1
to add functionality or improve performance, although, until we make it work on GTK+ 1.3[.x] and 2.x, we shouldn't count on the performance improvements, or make its API different from that of the GtkClist API (other than names). Move all the code that knows about the packet list into gtk/packet_list.c, so that the GtkClist vs. EthClist stuff is encapsulated inside it. svn path=/trunk/; revision=9608
2003-12-13added "most recently used" lists forUlf Lamping1-1/+7
"opened capture files" and "display filter used", the settings will be saved in the file "recent" in the users config path svn path=/trunk/; revision=9275
2003-12-09print system enhanced, more print ranges and expanded statesUlf Lamping1-2/+1
svn path=/trunk/; revision=9223
2003-10-10Updates to TimeReference FramesRonnie Sahlberg1-2/+2
Add a Goto Next/Previous time reference menu option svn path=/trunk/; revision=8657
2003-09-12Added TimeReference frames.Ronnie Sahlberg1-1/+2
One can now select a packet and mark it as a TimeReference packet using the menu. A TimeReference packet will be indicated by having all timestamp related column entries replaced by the string *REF* A TimeReference packet will always be displayed in the packet pane, and overrides any display filters. When a frame is a TimeReference frame, all later frames will calculate the TimeRelativeToFirstPacket relative to the timestamp of the TimeReference frame instead of the first frame of the capture. You can have any number of TimeReference frames you like. svn path=/trunk/; revision=8459
2002-12-19Add a new field type FT_FRAMENUM; an FT_FRAMENUM is a 32-bit unsignedGuy Harris1-1/+2
frame number, which is always decimal. If you select an FT_FRAMENUM field, there are menu items that let you go to the frame whose frame number appears in that field. Add FT_FRAMENUM fields for the ONC RPC "matching request is in this frame" and "matching reply is in this frame" protocol tree items. svn path=/trunk/; revision=6802
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-1/+7
svn path=/trunk/; revision=6552
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-24Give the routines that implement the "Match" and "Prepare" menu itemsGuy Harris1-25/+25
more meaningful names, indicating whether they look at something in the protocol tree or the packet list. svn path=/trunk/; revision=6077
2002-01-11From Jirka Novak:Guy Harris1-2/+35
Support for generating filter expressions based on packet list column values Support for adding filter expressions generated from column or protocol tree field values to the current expression rather than replacing the current expression svn path=/trunk/; revision=4522
2001-12-31Add preferences to save the main window size and position. If enabled,Gerald Combs1-3/+1
the geometry is saved at exit. Should we save the main window pane sizes as well? Move the DEF_WIDTH and DEF_HEIGHT #defines from gtk/main.h to prefs.h. Remove the reference to DEF_WIDTH from proto_hier_stats_dlg.c. svn path=/trunk/; revision=4462
2001-11-21Remove the global packet_info called "pi". Dissectors now onlyGilbert Ramirez1-2/+1
access their own "pinfo". A packet_info is stored in epan_dissect_t, which is created for the dissection of a single packet. GUI functions which need to access the packet_info of the currently selected packet used to use "pi"; now they use cfile.edt->pi. cfile's "edt" member is the epan_dissect_t of the currently-selected packet. The functionality of blank_packetinfo() was moved into dissect_packet(), as that's the only place that called blank_packetinfo(), after a spurious call to blank_packetinfo() was removed from packet_list_select_cb(). svn path=/trunk/; revision=4246
2001-10-22Add a routine to get the directory in which personal configuration filesGuy Harris1-4/+8
reside. Use it, rather than concatenating the user's home directory and ".ethereal" in a number of files. Fix up some additional places to use G_DIR_SEPARATOR_S as the pathname separator. svn path=/trunk/; revision=4061
2001-04-09last_open_dir needs a trailing slash in order for the GTK+Gilbert Ramirez1-1/+2
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-03-02Calculate the height and width of m_r_font globally, since variousGilbert Ramirez1-1/+2
routines need it. When a user clicks on a hex digit or on the corresponding character (the "text dump" portion) in the hex dump, find the field in the proto_tree that the byte corresponds to, expand the GtkCTree so that the field is viewable, select the field, and center it vertically. LanAlyzer has this feature, and I've missed it in Ethereal. svn path=/trunk/; revision=3096
2000-09-08Redraw:Guy Harris1-1/+3
the text in all "Follow TCP Stream" windows; the text in the help window if we have one up; all hex dump windows; when GUI preference changes are to be applied, so that font changes and "Follow TCP Stream" color changes show up. Update both the Roman and bold font when the font is changed. Don't decrement the reference counts on the old Roman and bold fonts until that's all done. svn path=/trunk/; revision=2401
2000-08-22Add "Colors..." button in GUI preferences.Laurent Deniel1-1/+2
Currently, it allows the selection of the foreground and background colors of the marked frames but it could be extended further (e.g. color of normal frames). Add update_marked_frames() in main.c to update the display (e.g. colors) of marked frames. svn path=/trunk/; revision=2339
2000-08-21Add some menu items related to the "frame mark" feature inLaurent Deniel1-1/+4
the Edit menu which allow you to: - mark (or unmark) the currently selected frame - mark all _displayed_ frames - unmark all _displayed_ frames Should I be more precise in the menu label ? (e.g. "Mark All Displayed Frame" instead of "Mark All Frames" and "Mark Selected Frame" instead of "Mark Frame" ?) svn path=/trunk/; revision=2325
2000-08-20Instead of having the normal-weight and bold fonts set separately,Guy Harris1-8/+1
generate the name of the boldface font from the Roman font; if the two fonts don't have the same widths, the display will look weird when a field is selected, and it's a bit of a pain for the user to have to select *two* fonts. On UNIX/X, default to "-*-fixed-medium-r-semicondensed-*-*-120-*-*-*-*-*-" rather than to "-*-lucidatypewriter-medium-r-normal-*-*-120-*-*-*-*-iso8859-1" - some Linux distributions appear to lack the Lucida typewriter font. Add a "gui.font_name" preference to the preferences file, specifying the normal-weight font to use. Have it settable from the "GUI" tab in the Preferences dialog box - the "Font..." button, when clicked, pops up a font selection dialog box. If we either can't open the selected font or the boldfaced version of the font, default to "6x13" and "6x13bold" as fallbacks - the former will probably be "fixed", and the latter would be "fixedbold" if X actually created such an alias, but it doesn't so we use "6x13bold" instead. svn path=/trunk/; revision=2304
2000-08-11Miscellaneous code cleaningLaurent Deniel1-4/+2
- 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-08-03Add a "Save As" feature to the TCP Follow dialogue, to save the streamGilbert Ramirez1-2/+1
file to a user-specified file. Move the file-copy routine in save_cap_file() to an indepenent function in file.c (copy_binary_file()) so that follow_dlg.c can use it. Remove #include "follow.h" from the C files that don't need it. svn path=/trunk/; revision=2200
2000-02-20Add "Resolve Name" item in detailed tree popup.Laurent Deniel1-1/+2
svn path=/trunk/; revision=1658
2000-02-12Move the declarations of the routines in "gtk/file_dlg.c" out ofGuy Harris1-6/+1
"gtk/main.h" and into a new "gtk/file_dlg.h" file. svn path=/trunk/; revision=1620
2000-02-12Make the routines internal to the filter-editing dialog box static.Guy Harris1-2/+1
Declare the one routine exported by "gtk/filter_prefs.c" in "gtk/filter_prefs.h" rather than in "gtk/main.h". Declare "E_FILT_TE_PTR_KEY" there, as well, rather than in "prefs_dlg.h", as the filter-editing dialog box is no longer a preference tab. Don't include "prefs_dlg.h" unless the stuff declared therein is of interest. Fix "gtk/find_dlg.c" to fire up the filter-editing dialog box, not the no-longer-extant preferences tab for filters, if the "Filter:" button is clicked. svn path=/trunk/; revision=1619
2000-01-24Set a fixed-width font for win32.Gilbert Ramirez1-2/+7
svn path=/trunk/; revision=1542
2000-01-17We have to #include "plugins.h" before using the HAVE_PLUGINS define.Olivier Abad1-3/+1
svn path=/trunk/; revision=1500
2000-01-15Merge in the final code to make Ethereal run on Win32, compiledGilbert Ramirez1-2/+2
with MSVC 6.0 and 'nmake', the make tool that comes with MSVC. It compiles, links, and runs. It doesn't run correctly. There's a problem when reading files. I'm getting short reads. I'm not linking in zlib or libsnmp because it first needs to be debugged. I changed the plugin code to use gmodule instead of libltdl, but the Unix build still links ethereal against libltdl. I'll fix that tonight; sorry about leaving it in such a sad state, but I wanted to check in this code before I left work on a Friday night. Ethereal still works, but the building is less than optimal. svn path=/trunk/; revision=1479
1999-12-10Jerry Talkington's patch to remove the filter stuff fromGuy Harris1-1/+2
"Edit:Preferences" and put it directly under "Edit:Filters", and to add an "Apply" button to it, which makes the currently selected filter the current filter and applies it to the current capture. svn path=/trunk/; revision=1275
1999-12-09plugins support (i.e. Dynamically loadable dissectors)Olivier Abad1-1/+4
depends on dlopen() being available on the target platform svn path=/trunk/; revision=1263
1999-10-08Fix the include-guard #define to be "__MAIN_H__", matching the name ofGuy Harris1-4/+4
the file. svn path=/trunk/; revision=785
1999-09-30If we're given the "-k" flag, don't start the capture until after we've:Guy Harris1-2/+1
popped up the top-level window (so that it looks like a capture started from "Capture/Start"); initialized the colors (so that we don't dump core when reading in the capture file); popped up any message box for failure to read the preferences file. This means we start the capture in "main()", rather than in the realize callback for the main window, so get rid of that callback. If we're a child process that's just capturing to a file for our parent to read, however, we shouldn't pop up the top-level window, because that's our parent's job; when running that child, set its "argv[0]" to a special name, so that 1) it shows up in a "ps" with a special name; 2) we don't have to invent Yet Another Flag to say "you're the child". (We may want to use the name to turn on *all* behaviors that the capture child, and only the capture child, should exhibit.) If "-w" and "-k" were both specified, attempt to open the file specified by "-w" and, if that succeeds, set "cf.save_file_fd" to refer to it, so that "-w" plus "-k" works again, rather than popping up a "The file to which the capture would be saved ... could not be opened: Bad file descriptor." message box. svn path=/trunk/; revision=739
1999-09-11Collapse/Expand All protocol tree added in Display menu.Laurent Deniel1-1/+3
svn path=/trunk/; revision=660
1999-09-10Give "globals.h" an RCS ID and copyright/GPL notice.Guy Harris1-24/+1
Move some defines that would be used even by a non-GTK+-based Ethereal from "gtk/main.h" to "globals.h". Remove the byte-order #defines from "packet.h", as they're now in "globals.h" (having been moved there from "gtk/main.h"). Fix up some files that use those #defines to include "globals.h". "resolv.c" doesn't use any GTK stuff, so it needn't include <gtk/gtk.h> nor "gtk/main.h" - it only did so to get the byte-order #defines for the benefit of "packet-ipv6.h", and "packet-ipv6.h" now includes them itself. svn path=/trunk/; revision=649
1999-09-09More shuffling of GTK-related routines to gtk subdirectory.Gilbert Ramirez1-2/+7
svn path=/trunk/; revision=636
1999-09-09More shuffling of GTK-related files to gtk subdirectory.Gilbert Ramirez1-0/+87
svn path=/trunk/; revision=635