aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.h
AgeCommit message (Collapse)AuthorFilesLines
2005-09-21fix/add doxygen commentsUlf Lamping1-4/+8
svn path=/trunk/; revision=15941
2005-08-20- Declare some functions staticJörg Mayer1-0/+2
- Add plugins_dlg.h - Include .h files in their respective .c files - Include .h and remove extern declarations in .c files - set eol-style and keywords on gui_utils.[hc] svn path=/trunk/; revision=15471
2005-08-02Fix more "no previous declaration" warningsJörg Mayer1-0/+3
svn path=/trunk/; revision=15173
2005-07-25two bugfixes:Ulf Lamping1-1/+1
- don't use GtkSelectionData after returned to GTK, as it might free this data immediately (copy the data instead and free it after usage) - fix return value handling for DnD merge, so it will work again svn path=/trunk/; revision=15056
2005-07-19fix various doxygen warningsUlf Lamping1-1/+1
svn path=/trunk/; revision=14958
2005-03-11from Stefano Pettini: add CSV export function, similar to PSML exportUlf Lamping1-0/+7
svn path=/trunk/; revision=13724
2005-02-06Don't have "set_menus_for_captured_packets()" callGuy Harris1-4/+0
"main_set_for_capture_file()"; it should only deal with menus, not anything else - and it gets called while the menus are being set up, which is before the main window has been completely created, so "main_widgets_show_or_hide()", which is called by "main_set_for_capture_file()", gets errors trying to show or hide widgets the pointers to which are null. svn path=/trunk/; revision=13328
2005-02-05completely hide the main window panes, if we currently don't have a capture ↵Ulf Lamping1-0/+4
file. svn path=/trunk/; revision=13312
2005-02-05fixed the dnd_init declarationUlf Lamping1-1/+3
(we have to do something about the non existing win32 compile dependencies, this is just a pain) svn path=/trunk/; revision=13309
2005-02-05rename kill_capture_child to capture_kill_child to have a common prefixUlf Lamping1-0/+4
split drag and drop support out of main.c into new file drag_and_drop.c, to reduce the size of main.c a bit. Hopefully this won't break unix builds because of missing #include's, I will keep an eye on the buildbot svn path=/trunk/; revision=13308
2005-02-04huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping1-1/+1
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289
2005-01-24if context menu item "Print" is clicked from the packet list context menu, ↵Ulf Lamping1-0/+7
it should use the selected range setting as default. As we currently have only one packet selectable, this will print only this one. If we would allow selecting multiple packets in the packet list in the future, this option would print all selected packets. svn path=/trunk/; revision=13169
2005-01-19while I'm at it, add another packet details context menu item, which will ↵Ulf Lamping1-0/+8
link to the specific display filter reference page (just try it out :-) svn path=/trunk/; revision=13117
2005-01-17add first implementation of context relevant calls to the protocol specific ↵Ulf Lamping1-0/+7
wiki pages. I've commented out the items in menu.c, so this (hopefully) won't break the current release run. We might think about further steps after the release is out. However, if someone (already) want's to try out right now, you simply have to remove the comments in menu.c around line 430 svn path=/trunk/; revision=13091
2004-12-29Don't use a global capture_opts in the capturing engine (this isn't a good ↵Ulf Lamping1-0/+3
idea). Do some more "housekeeping" in the capturing part. Hopefully the unspecified forward declaration of capture_options_t in main.h is portable, but buildbot will tell me. This way I need the internals of that struct only at the places I really use it. svn path=/trunk/; revision=12853
2004-10-27fix doxygen tagsUlf Lamping1-1/+1
svn path=/trunk/; revision=12404
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-23Add "gtk/webbrowser.h" to declare functions from "gtk/webbrowser.c".Guy Harris1-3/+1
Rename "browser_open_program_file()" to "browser_open_data_file()", and make it open files relative to the application's data directory, as that's where data files such as HTMLized man pages would be put. (That happens to be the program directory on Windows, but it's a different directory on UN*X - and you aren't guaranteed to be able to find the program directory on UN*X by looking at argv[0] in any case.) Move it to "gtk/webbrowser.c". Fix "filename2url()" to put "file://", not just "file:", in front of pathnames on UN*X. svn path=/trunk/; revision=11216
2004-06-21Change type of argument of dnd_open_file_cmd to get ethereal compiled.Michael Tüxen1-2/+2
svn path=/trunk/; revision=11207
2004-06-21Add experimental feature of opening a webbrowser, to show some of theUlf Lamping1-1/+3
webpages from http://www.ethereal.com. This functionality is copied from the Gimp. Win32 will use ShellExecute to use the system registered webbrowser. On unix builds, currently the mozilla browser is hardcoded, we still need a preference setting for this (I will add this later). svn path=/trunk/; revision=11206
2004-06-21Remove trailing comma at end of enumJörg Mayer1-2/+2
svn path=/trunk/; revision=11203
2004-06-17move font related stuff to new file font_utils.c/.hUlf Lamping1-22/+1
do some font related renaming/code cleanup svn path=/trunk/; revision=11166
2004-06-04add more details for doxygenUlf Lamping1-2/+25
svn path=/trunk/; revision=11107
2004-06-01add details for doxygen, various code cleanups as a result of thisUlf Lamping1-77/+190
svn path=/trunk/; revision=11052
2004-05-21Now that the "About" dialog box's code is in "gtk/about_dlg.c", move theGuy Harris1-2/+1
"create an About dialog" function's declaration to "gtk/about_dlg.h". svn path=/trunk/; revision=10941
2004-05-20moved the about dialog from main.c to it's own new about_dlg.c,Ulf Lamping1-2/+2
added a notebook tab with some directory infos (still incomplete and ugly) cleaned up #includes in main.c (hoping this didn't break the build on unix) svn path=/trunk/; revision=10925
2004-05-13Win32 only: Preference setting to open a console window, one of:Ulf Lamping1-1/+4
never (default), automatic (like before), always svn path=/trunk/; revision=10870
2004-05-04If all we're doing is changing the visibility of a pane, we don't haveGuy Harris1-1/+2
to re-lay-out the main window, we just need to change the visibility of the appropriate widgets - that reduces the amount of drawing done, speeding things up a little and reducing flicker. svn path=/trunk/; revision=10795
2004-04-25created new "export" dialogs for the current export file formatsUlf Lamping1-1/+5
svn path=/trunk/; revision=10694
2004-03-19From Tomas Kukosa: add a new "Expand Tree" context menu item, whichGuy Harris1-1/+2
expands the selected item and all items below it. svn path=/trunk/; revision=10407
2004-02-23Add a "force" argument to "filter_packets()" andGuy Harris1-2/+3
"main_filter_packets()", to force the filtering to be done even if the filter is the same as the current one; this is necessary in order to make sure "Follow TCP Stream" gets the packets processed even if you're filtering the stream that's currently filtered in. svn path=/trunk/; revision=10209
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