aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.h
AgeCommit message (Collapse)AuthorFilesLines
2014-06-12Capture Interfaces Dialog:Irene Ruengeler1-0/+1
- allow to change the interface options in the table - save the options to preferences when the dialog is left - add a field for setting a capture filter for all selected interfaces - add a "Compile BPF" button and a window to show the compiled filter output - try to address Alexis' and Evan's comments Change-Id: Ic1272e29183ec80e2d2f4b3e494c79dabe2c3b6f Reviewed-on: https://code.wireshark.org/review/1946 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-25Remove trailing whitespaceBill Meier1-6/+6
Change-Id: I8116f63ff88687c8db3fd6e8e23b22ab2f759af0 Reviewed-on: https://code.wireshark.org/review/385 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
2013-12-21Avoid including <epan/addr_resolv.h> in dissectorsJakub Zawadzki1-2/+2
svn path=/trunk/; revision=54333
2013-12-09Add a function and an enum to register an uat preference for QT only.Irene Rüngeler1-0/+11
svn path=/trunk/; revision=53880
2013-12-03When including <epan/prefs.h> don't force inclusion of <epan/uat.h>Jakub Zawadzki1-2/+3
svn path=/trunk/; revision=53769
2013-11-29Stats_tree enhancements for sorting, averages and burst rate. Bug 9452 ↵Michael Mann1-0/+14
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9452) From Deon van der Westhuysen - Bug fix: object leak in stats_tree after a tap reset (for example apply statistics preferences with a stats_tree window open) - Bug fix: correct sample code in README.stats_tree - Add: slash in plug-in name now creates submenu as docs describe (was a bug?) - Add: menu separator before the stat_tree registered plug-ins - Add: stats_tree can now calculate averages for nodes; automatically calculated for range nodes. Add section in README.stats_tree describing averages. - Add: stats_tree can now calculate burst rate of each node (like rate but with a shorter, sliding time window) - Add: sorting for stats_tree plug-ins. Can sort on node name, count, average, min, max values and burst rate. - Add: preferences for stats_tree system (default sort column, burst calc params) - Add: stats_tree window copy to clipboard and export and plain text, csv and XML. - Added sample of new functionality in $srcdir/plugins/stats_tree/pinfo_stats_tree.c - Moved all stats_tree sample plug-ins to "IP Statistics" submenu. svn path=/trunk/; revision=53657
2013-11-07Add Packet Editor PreferenceAlexis La Goutte1-0/+1
svn path=/trunk/; revision=53134
2013-09-09Add Preference to change Language (in QtShark)Alexis La Goutte1-1/+2
Need restart application to change language svn path=/trunk/; revision=51869
2013-07-25Add a UAT dialog. Make UAT preferences uat_t * instead of void *.Gerald Combs1-2/+4
C++-ize the UAT headers. Add an ElidedLabel widget. Use it in the File Set, Profile, and UAT dialogs. Update the Qt README. svn path=/trunk/; revision=50896
2013-07-18From Cal Turney:Anders Broman1-0/+3
Unrecognized preferences and color filters created in proprietary or older versions are discarded when saved. If the user attempts to save the preferences or colorfilters file, a popup is displayed that warns that unrecognized prefs or color filters have been detected and will be discarded if the save operation is allowed to proceed. In the case of Preferences, the popup message includes the version at which the file was last saved. A "Continue without Saving" button is provided so that the user can save the profile under a different name. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8942 svn path=/trunk/; revision=50716
2013-07-17Backing out r50690 (exept simple_dialog)Anders Broman1-3/+0
struct FILE is different on windows vs *nix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8942 svn path=/trunk/; revision=50691
2013-07-17From Cal Turney:Anders Broman1-0/+3
Unrecognized preferences and color filters created in proprietary or older versions are discarded when saved. If the user attempts to save the preferences or colorfilters file, a popup is displayed that warns that unrecognized prefs or color filters have been detected and will be discarded if the save operation is allowed to proceed. In the case of Preferences, the popup message includes the version at which the file was last saved. A "Continue without Saving" button is provided so that the user can save the profile under a different name. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8942 svn path=/trunk/; revision=50690
2013-06-28Make colors used by colorize_filter_te_as_* as preferences. Bug 5413 ↵Michael Mann1-0/+1
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5413) svn path=/trunk/; revision=50203
2013-04-26Fix a whole bunch of doxygen warnings, mostly typos or renamed parameters.Evan Huus1-2/+1
svn path=/trunk/; revision=49053
2013-03-13Add interface options preferences.Irene Rüngeler1-0/+1
svn path=/trunk/; revision=48275
2013-03-07Add buffersize and snap length to the preferences.Irene Rüngeler1-0/+4
svn path=/trunk/; revision=48163
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey1-43/+48
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2013-02-19Add automatic software update checks for Win32 using WinSparkle. AddGerald Combs1-0/+10
preferences (currently hidden) to disable updates, set the update frequency, and set the update "channel" (stable vs development). Add a "Help" menu item to manually check for updates. svn path=/trunk/; revision=47748
2013-02-08Add a directory name preference type (PREF_DIRNAME) and registrationGerald Combs1-0/+9
routine (prefs_register_directory_preference). Add PREF_FILENAME and PREF_DIRNAME support to the Qt module preferences. Change a couple of preferences to directory names. Clean up some names and default settings. svn path=/trunk/; revision=47573
2013-01-24Add font and color preferences. Unfortunately Qt doesn't have a colorGerald Combs1-1/+2
picker widget so we're back to popping up dialogs. Move the contents of monospace_font.{cpp,h} to wireshark_application.{cpp,h}. Pango and Qt use completely different string representations for fonts. Add a separate gui.qt.font_name preference so that they don't clobber each other. svn path=/trunk/; revision=47240
2013-01-22GTK+:Gerald Combs1-3/+0
Get rid of user-hostile behavior. In the layout preferences pane 2 & 3 radio buttons overrode the user's selection if a duplicate item was selected. Now we assume that the user knows what he or she is doing and steal duplicate selections from the other panes. Qt: Match the new GTK+ behavior in the layout preferences. Add padding around the layout images. Add toolbar style preferences to the Appearance pane (instead of the layout pane). All: Remove the selection mode and scrollbar placement prefs and mark them obsolete as recently discussed on -dev. Adjust the layout images yet again after more Awful Monitor Testing. svn path=/trunk/; revision=47214
2013-01-18Rename the "saved_val" preference element to "stashed_val" in order toGerald Combs1-16/+7
more clearly indicate that it's a copy of a preference value rather than something we've saved in the preferences file. Update prefs_pref_to_str() to handle default, stashed, and current prefs. Create ui/preference_utils.[ch] and move some common routines there. Use prefs_pref_type_name() in the GTK+ preferences dialog. Make the "OK" button in the Qt preferences dialog work. We simply write the prefs and redissect on "OK" and do nothing on "Cancel". This is intentionally different from the Apply/OK/Cancel behavior in the GTK+ version. Add a general "emitAppSignal" method to wsApp and use it for packet dissection and preference changes. Suggest that we might want to create a WsString class to make conversion between QStrings, gchar *s, and GStrings easier. svn path=/trunk/; revision=47139
2013-01-07Allow editing via the advanced preferences tree. Double-clicking anGerald Combs1-0/+6
item's name, status, or type resets it to its default value. Double-clicking the item's value lets you edit it. Implement the advanced search field. (Clicking OK and Cancel still doesn't yet do anything.) Note that we could probably use a prefs_register_{uint16|port}_preference routine for 16-bit values. Make reset_pref public. Update some names and descriptions. svn path=/trunk/; revision=46986
2013-01-05Break out preference type names, type descriptions, stringGerald Combs1-0/+37
representations, and default status out of write_prefs and into their own routines. Split the corresponding custom preference write callbacks. Fix an apparent memory leak in the hidden column callback. Add an initial preferences dialog to the Qt port. Use the new preference routines to implement an "Adavanced" page similar to the "about:config" page available in many web browsers. Standard pages will hopefully follow soon. Remove some QDebug includes and make sure our QTreeWidgets have uniform row heights set. svn path=/trunk/; revision=46942
2012-12-26Fix a bunch of warnings.Guy Harris1-60/+60
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-08-08Have (almost) all preferences use the generic preferences API (per ↵Michael Mann1-6/+0
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7402). This cleaned up a lot of hardcoded code and allows breaking up the prefs structure (or at least prevent it from growing too large) if desired. Bugfixed problems mentioned in http://www.wireshark.org/lists/wireshark-dev/201208/msg00001.html Column preferences now support default '#' character svn path=/trunk/; revision=44348
2012-08-08Fix:Jörg Mayer1-0/+2
In file included from /home/jmayer/work/wireshark/svn/trunk/epan/addr_resolv.c:131:0: /home/jmayer/work/wireshark/svn/trunk/epan/prefs.h:423:5: error: ‘struct pref_custom_cbs’ declared inside parameter list [-Werror] svn path=/trunk/; revision=44332
2012-08-08Base framework to allow all preferences to be part of generic preferences ↵Michael Mann1-4/+25
API. Implementation will follow, but I wanted the framework in place first. svn path=/trunk/; revision=44331
2012-08-03Make the columns of the capture options dialog selectable. Changes are ↵Irene Rüngeler1-0/+3
stored in the preferences file. The ordering can be changed by dragging the column. The order is not stored. svn path=/trunk/; revision=44239
2012-07-31From Michael Mann:Anders Broman1-1/+11
Expand show version preference. implementation of Steven's suggestion of a radio button (actually dropdown) of the 4 possibilities. I changed the default to have the version on both in the welcome screen and on the window as that's how it was and people tend not to change the preferences I think. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6437 svn path=/trunk/; revision=44153
2012-07-07From Michael Mann:Guy Harris1-0/+14
Add a preference for the packet length statistics. Fixes bug 3239. svn path=/trunk/; revision=43597
2012-07-06From Michael Mann:Anders Broman1-5/+2
Generic preferences implementation - Printing and Name Resolution. svn path=/trunk/; revision=43579
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-13Create, and start using, file name preferences.Jeff Morriss1-0/+9
File name preferences are basically just string preferences except that the GUI will present a "Browse" button that allows the user to go and find the file s/he wants (rather than having to blindly type in the full path). svn path=/trunk/; revision=43228
2011-12-29Add 'extern "C"' wrappers and #include guards to various header files.Gerald Combs1-0/+8
svn path=/trunk/; revision=40321
2011-11-10Get rid of the last remnants of the "check the syntax of captureGuy Harris1-1/+0
filters" preference; now that we always build with threads, we do the syntax checking in a separate thread, so it doesn't hang the UI, and we no longer have UI to change it but we were still trying to fetch the value of the non-existent checkbox for it and getting a warning printed. (We still check for it when reading, so that we don't print warnings if it's present.) svn path=/trunk/; revision=39788
2011-09-08From Edwin Groothuis via bug 6207:Stig Bjørlykke1-0/+1
Added Filter Toolbar Save functionality. From me: Removed unused code. svn path=/trunk/; revision=38937
2011-08-16An option to autoscroll the expanded item in the details view to a fixed Graeme Lunt1-0/+2
position (percentage) within the details view. svn path=/trunk/; revision=38558
2011-08-03From Jim Young via bug 3196: Enhancement to Expert Info Composite Tab LabelsChris Maynard1-0/+1
Reference: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3196 svn path=/trunk/; revision=38324
2011-06-29Added a preference to turn of capture filter syntax check.Stig Bjørlykke1-0/+1
This can be used to disable the effect in bug 5356. svn path=/trunk/; revision=37830
2011-06-05Some work on generalizing the "display filter" tap parameter dialog boxGuy Harris1-6/+1
to more generally support fetching parameters for taps. svn path=/trunk/; revision=37559
2011-04-26From Ivan Sy via bug 3343:Gerald Combs1-0/+10
- Support for DTLS and SSL RSA keys list using User Accessible Table - Support for IPv6 SSL as posted by bug#3343 comment#1 - 'any' and 'anyipv4' for IPv4 wildcard - 'anyipv6' for IPv6 wildcard - UAT fields validation. From me: - Update paramaters to match UAT API changes. - Change the UAT filename. - Fix buffer overflow for IPv6 addresses. - Allow the use of hostnames along with numeric addresses. - Don't convert strings to addresses twice. - Don't use the same variable name for different data types. - Make "any" mean "any IPv4 or any IPv6". - Bend the concept of obsolete preferences slightly so that we can convert and old-style key list to a UAT. - Clean up whitespace. - Don't point to a User's Guide section for now; it may make more sense to keep using the wiki page. SSL dissector changes have been tested. DTLS dissector changes have not. svn path=/trunk/; revision=36875
2010-10-29Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4768 :Jeff Morriss1-1/+1
Return an error if the user specifies a value in a range in excess of the range-specified maximum. Except when reading in preferences files which might have ranges that exceed the maximum (because we didn't use to check): in that case silently lower the out-of-range values. svn path=/trunk/; revision=34698
2010-05-15Support monitor mode in the capture preferences.Guy Harris1-0/+6
Use prefs_is_capture_device_hidden() to find out whether a device should be hidden - don't scan the list of hidden devices ourselves. svn path=/trunk/; revision=32820
2010-03-03Disable OID resolution and loading SMI modules by default.Balint Reczey1-0/+2
Add an option to enable OID resolution. Add an option to suppress errors reported by libsmi. svn path=/trunk/; revision=32096
2009-12-17Introduce "Ignore Packet" in the packet list.Stig Bjørlykke1-0/+2
This will remove the package from the dissection functions without removing it from the capture file. svn path=/trunk/; revision=31287
2009-09-25Make the filter toolbar style a preference.Anders Broman1-0/+1
svn path=/trunk/; revision=30136
2009-06-15Added a preference to capture in Pcap-NG from GUI.Stig Bjørlykke1-0/+1
svn path=/trunk/; revision=28740
2009-01-06Made find_preference function public as prefs_find_preference.Balint Reczey1-0/+11
svn path=/trunk/; revision=27166