aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.h
AgeCommit message (Collapse)AuthorFilesLines
2008-06-24For now, just refer to global_capture_opts, replacing references to theGuy Harris1-0/+4
now-defult global capture_opts pointer; we eventually should try to minimize the use of global variables. Export global_capture_opts from gtk/main.h. Clean up indentation. svn path=/trunk/; revision=25571
2008-06-24Have capture_info_ui_create() and capture_info_open() take a pointer toGuy Harris1-5/+0
the capture_opts structure as an argument, rather than just a pointer to the interface name. Don't declare a global "capture_opts" pointer, as we don't define it any more. svn path=/trunk/; revision=25570
2008-04-12proto_draw -> main_proto_drawUlf Lamping1-2/+2
svn path=/trunk/; revision=24954
2008-04-12rename menu -> main_menuUlf Lamping1-1/+1
remove old (and unused and confusing) ../menu.h svn path=/trunk/; revision=24947
2008-04-12move statusbar related code from main.c into it's own main_statusbar.cUlf Lamping1-18/+0
svn path=/trunk/; revision=24937
2008-04-12move drag_and_drop declarations into it's own fileUlf Lamping1-11/+0
svn path=/trunk/; revision=24927
2008-03-11From Francesco Fondelli (bug 2349):Stig Bjørlykke1-0/+7
Attached is a patch to export packets data as "C Arrays". I often have the need to [re]send data captured with wireshark using a raw/pf_packet socket. Output format is one char[] per packet, it looks like almost the same as the one produced by "Follow TCP stream". svn path=/trunk/; revision=24604
2008-01-31If "!=" or "ne" are used in a display filter, warn the user that the resultsGerald Combs1-4/+16
may be unexpected. svn path=/trunk/; revision=24232
2008-01-24Always return a valid profile name from get_profile_name().Stig Bjørlykke1-3/+0
svn path=/trunk/; revision=24175
2008-01-14This patch adds support for configuration profiles, which can be used toStig Bjørlykke1-1/+10
configure and use more than one set of preferences and configuration files. This can be found in the "Configuration Profiles..." menu item from the Edit menu, or by pressing Shift-Ctrl-A. It's also possible to start wireshark and tshark with a named profile by using the "-C ProfileName" option. A new status pane in the main window will show the current profile. The configuration files currently stored in the Profiles are: - Preferences - Capture Filters - Display Filters - Coloring Rules - Disabled Protocols - User Accessible Tables The recent data are by design not added to the profile. Planned future enhancements: - make a more convenient function to switch between profiles - add a "clone profile" button to copy an existing profile - make the profiles list active and accept return as OK - save users "Decode as" in the profile - make new, clone and deletion of profiles more secure - make some of the recent values available in the profile This patch also fixes: - setting default status pane sizes - a bug setting status pane for packets when not having main lower pane. svn path=/trunk/; revision=24089
2007-11-24This patch adds (ten) temporary coloring rules which will only live until ↵Sake Blok1-0/+11
Wireshark is quit. Temporary coloring filters can be set by: - pressing <ctrl>-<digit> will create a conversation coloring filter based on the addresses of the currently selected packet (order TCP/UDP/IP/Ethernet) This can also be achieved from the "View|Colorize Conversation" menu. - Rightclicking on a packet in the packet-list will give the option to "Colorize Conversation" just as "Conversation Filter" does. - Rightclicking on an item in the packet-detail-list will give the option to "Colorize with filter" which works similar to "Apply as filter" Temporary filters can be cleared from the same menus or by pressing <ctrl>-<space>. This patch also adds an item to the above mentioned menu's to add a permanent color filter in the same way. The colors for the temporary coloring rules are now hardcoded as I do not know how to change the color of menu-items and therefore I chose to use icons to show the actual color of each of the ten temporary coloring rules. Is it at all possible to have different menu items in different colors? One other way of solving this is to recreate the icons on the fly after changing the colors. I will have a look into that once it is clear whether I can use different colors within the menu structure. svn path=/trunk/; revision=23560
2007-06-04Fix for bug #93: changes to the columns has no effect until restartStephen Fisher1-0/+2
These changes allow the packet list clist to be destroyed and recreated with the new column titles/values/order that the user changed in the preferences without restarting Wireshark. svn path=/trunk/; revision=22038
2007-03-08from Sake Blok:Ulf Lamping1-0/+3
I have changed the patch according to your suggestions and also changed the doc[book] files accordingly. I tested the patch and it does seem to work fine on my test-system. ULFL: In addition, I've added the en-/disabling to the other (already existing) Copy menu items - some just did nothing, some crashed if nothing was selected. I've also sligthly changed the menu seperators and made both context menus look a bit more identical. svn path=/trunk/; revision=21005
2006-11-16Fix for bug 948, "Apply capture preferences not applying." Now when the userStephen Fisher1-0/+3
changes a capture option in the preferences, it will show up right away in the capture options dialog. svn path=/trunk/; revision=19908
2006-08-16Add support for AirPcap, an upcoming wireless product from CACE. SupportGerald Combs1-0/+5
is disabled by default, and can be enabled by setting AIRPCAP_CONFIG in config.nmake. The code is currently limited to Windows, but should be adaptable to other platforms. The official announcement won't come until next week, so you'll have to read the source for details. :) svn path=/trunk/; revision=18928
2006-06-12update of "Edit" menu:Ulf Lamping1-0/+16
Add missing "Find Next Mark" and "Find Previous Mark" functionality to the "Edit" menu. "unify" the menu items of "Time Reference" and "Mark Frame" functionality (both main and packet list context menus) ... we need to update the User's Guide screenshots anyway because of the Wireshark changes :-) svn path=/trunk/; revision=18438
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-05-11Removal of useless "Field Information" introduced in r18125Graeme Lunt1-12/+0
svn path=/trunk/; revision=18133
2006-05-11From Greg Morris:Anders Broman1-0/+7
add copy functionality to the details window. Also includes a change in the copy function of the hex data window to allow copying just the text strings instead of all of the hex data. svn path=/trunk/; revision=18129
2006-05-10"Field Information" context menu item that will bring up a web page ↵Graeme Lunt1-0/+11
reference to a field type of FT_OID svn path=/trunk/; revision=18125
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