aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
Commit message (Collapse)AuthorAgeFilesLines
* Register the gui.update.interval preference.Gerald Combs2013-02-191-0/+6
| | | | svn path=/trunk/; revision=47750
* Enable automatic updates for Win64. Fix a copy/paste error.Gerald Combs2013-02-191-1/+1
| | | | svn path=/trunk/; revision=47749
* Add automatic software update checks for Win32 using WinSparkle. AddGerald Combs2013-02-191-0/+18
| | | | | | | | 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
* Add a directory name preference type (PREF_DIRNAME) and registrationGerald Combs2013-02-081-1/+26
| | | | | | | | | | 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
* Use a not-quite-black background for marked packets.Gerald Combs2013-01-311-2/+2
| | | | | | http://ianstormtaylor.com/design-tip-never-use-black/ svn path=/trunk/; revision=47392
* Add font and color preferences. Unfortunately Qt doesn't have a colorGerald Combs2013-01-241-4/+8
| | | | | | | | | | | 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
* GTK+:Gerald Combs2013-01-221-17/+3
| | | | | | | | | | | | | | | | | | | | | | 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
* Fix CID 966637 and CID 966638Jaap Keuter2013-01-201-2/+2
| | | | | | Check pointers before using them. svn path=/trunk/; revision=47186
* Rename the "saved_val" preference element to "stashed_val" in order toGerald Combs2013-01-181-35/+49
| | | | | | | | | | | | | | | | | | | | | | 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
* strcmp → g_strcmp0. Fixes a crash on Windows.Gerald Combs2013-01-141-3/+3
| | | | svn path=/trunk/; revision=47085
* When the user is editing text or selecting from a combo box, don'tGerald Combs2013-01-141-11/+3
| | | | | | | | | | | immediately close the dialog if he or she presses the escape or enter keys. Revert the value if the user presses escape. Properly handle the base for uint preferences. Fix a NULL pointer dereference. Add a gchar_free_to_qstring utility routine which creates a QString from a g_malloced string and frees it. svn path=/trunk/; revision=47083
* Allow editing via the advanced preferences tree. Double-clicking anGerald Combs2013-01-071-9/+22
| | | | | | | | | | | | | 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
* Fix some Dead Store (Dead initialization) Warning found by ClangAlexis La Goutte2013-01-061-1/+1
| | | | svn path=/trunk/; revision=46978
* Constify a couple of variables and export a couple of functions.Gerald Combs2013-01-051-4/+5
| | | | svn path=/trunk/; revision=46943
* Break out preference type names, type descriptions, stringGerald Combs2013-01-051-323/+642
| | | | | | | | | | | | | | | | 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
* Remove some duplicate code from ui/profile.c and move in more code fromGerald Combs2012-12-291-0/+7
| | | | | | | | | | | | | | ui/gtk/profile_dialog.c. Use the correct profile list in profile_dialog.c so that deletion works. Add a profile dialog to the Qt port. For some reason it crashes when changing configuration profiles, which might be related to bug 7722. Move the Qt configuration profile initialization from main.cpp to wireshark_application.cpp. Make sure QMenuBar doesn't grab the configuration profiles action on OS X. Add more role color names to tango_colors.h. svn path=/trunk/; revision=46834
* Tabs -> spaces.Guy Harris2012-12-261-1/+1
| | | | svn path=/trunk/; revision=46800
* Update a comment.Guy Harris2012-12-261-4/+2
| | | | svn path=/trunk/; revision=46799
* Fix a bunch of warnings.Guy Harris2012-12-261-64/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Rename wmem_permanent_scope -> wmem_epan_scope to reflect the fact that itEvan Huus2012-11-031-2/+2
| | | | | | is technically scoped to the library, not the process. It's also shorter :) svn path=/trunk/; revision=45877
* Don't leak memory when registering duplicate preferences subtree modules. TakeEvan Huus2012-10-271-3/+7
| | | | | | | wmem_permanent copies of the substrings we actually need, and g_free the temporary tokenized copy. svn path=/trunk/; revision=45813
* There's no need to g_strdup our default prefs - setting them as literalsEvan Huus2012-10-271-10/+12
| | | | | | | | | works just fine and doesn't leak any memory. Use wmem_permanent_scope() for the one string we do have to copy, to ensure it doesn't leak either. svn path=/trunk/; revision=45812
* We are already saving size and maximized state by default. Save position too.Chris Maynard2012-10-051-1/+1
| | | | svn path=/trunk/; revision=45334
* Trivial: LEDs -> IconsChris Maynard2012-09-301-2/+2
| | | | svn path=/trunk/; revision=45223
* Don't pass a null pointer to strcmp.Gerald Combs2012-09-271-72/+72
| | | | svn path=/trunk/; revision=45175
* Fix bug #7669: Preference editor removes (does not save) column definitions ↵Jakub Zawadzki2012-09-211-26/+26
| | | | | | | | | | | | after the 27th. put_string_list() was generating string with list of columns to be saved to preference file, but buffer is limited to MAX_FMT_PREF_LEN (1024 bytes). It looks like 1024 bytes is not enough. Fix bug by writting directly to file. svn path=/trunk/; revision=45043
* We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss2012-09-201-3/+1
| | | | svn path=/trunk/; revision=45016
* Fix bug 7650 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7650)Michael Mann2012-08-181-27/+51
| | | | | | prefs.gui_colorized_fg and prefs.gui_colorized_bg not properly integrated into newer preference architecture svn path=/trunk/; revision=44557
* Squelch a few "dereferencing type-punned pointer" warnings when compiling ↵Pascal Quantin2012-08-171-6/+6
| | | | | | with GCC 4.1.3 svn path=/trunk/; revision=44553
* Bugfix 7608 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7608)Michael Mann2012-08-091-4/+4
| | | | svn path=/trunk/; revision=44376
* Bugfix capture column preferencesMichael Mann2012-08-091-13/+6
| | | | svn path=/trunk/; revision=44370
* Complete compiler warnings from r44348Michael Mann2012-08-081-22/+1
| | | | svn path=/trunk/; revision=44364
* Get it compiling on Mac OS X.Michael Tüxen2012-08-081-2/+4
| | | | svn path=/trunk/; revision=44363
* Compiler error fixes resulting from r44348Michael Mann2012-08-081-104/+113
| | | | svn path=/trunk/; revision=44359
* Have (almost) all preferences use the generic preferences API (per ↵Michael Mann2012-08-081-1178/+1187
| | | | | | | | | | | 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
* Base framework to allow all preferences to be part of generic preferences ↵Michael Mann2012-08-081-39/+159
| | | | | | API. Implementation will follow, but I wanted the framework in place first. svn path=/trunk/; revision=44331
* Plug a memory leak introduced with r44239. Resolves Coverity CID 714243: ↵Chris Maynard2012-08-041-1/+0
| | | | | | Unused pointer value. (Previous commit actually resolved Coverity CID 714242.) svn path=/trunk/; revision=44266
* Plug a memory leak introduced with r44239. Resolves Coverity CID 714243: ↵Chris Maynard2012-08-041-1/+0
| | | | | | Unused pointer value. svn path=/trunk/; revision=44265
* Fix bug in while loopIrene Rüngeler2012-08-031-4/+2
| | | | svn path=/trunk/; revision=44242
* Make the columns of the capture options dialog selectable. Changes are ↵Irene Rüngeler2012-08-031-0/+90
| | | | | | | | stored in the preferences file. The ordering can be changed by dragging the column. The order is not stored. svn path=/trunk/; revision=44239
* From Michael Mann:Anders Broman2012-07-311-13/+18
| | | | | | | | | | | | | 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
* Don't bother printing the Description of STATIC_TEXT and UAT preferences:Jeff Morriss2012-07-081-7/+10
| | | | | | they don't make it into the preferences file anyway... svn path=/trunk/; revision=43607
* First phase of fixing https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7380 :Jeff Morriss2012-07-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new name resolution option: whether or not use the configured (in the OS) name resolver (e.g., DNS) to resolve network names. When this option is disabled but network name resolution is enabled then Wireshark will resolve only those names that it can from local sources. This includes (at least, AFAIK): - name resolutions that Wireshark picks up on from DNS packets it decodes - the "user hosts file" (~/.wireshark/hosts on *NIX) - what Wireshark reads out of capture file (the PCAPNG name resolution block) This new preference defaults to "use external resolvers" for backward compatibility (so people turning on network name resolution will get the old behavior). This option can be set via Edit->Preferences and on the command line; there remain several UIs (e.g., the "open capture file" dialog, the View->Name Resolution menu, etc.) that don't have the new option yet. Also expand on the "description" for the name resolution preferences: these are used not only in the tooltips but are also written to the preferences file. The previous text didn't include enough context when written do the preferences file. svn path=/trunk/; revision=43605
* From Michael Mann:Guy Harris2012-07-071-1/+31
| | | | | | | | Add a preference for the packet length statistics. Fixes bug 3239. svn path=/trunk/; revision=43597
* Only one place is needed for creating preference panes; this clears upGuy Harris2012-07-071-2/+6
| | | | | | | | | | | some warnings from GTK+. For interior nodes in the preference module tree, we create a page even if the module itself has no preferences, so there's *something* we can show if the user clicks on it. (Showing the top-level protocols page is a bit weird, and requires us to keep track of it.) svn path=/trunk/; revision=43596
* Ask about a possible simplification (by just handling all modules byGuy Harris2012-07-071-0/+2
| | | | | | | pathname, so that any module we create for a protocol is just created as being under "Protocols/"). svn path=/trunk/; revision=43595
* Get rid of most tabs (which cleans up mixed indenting with tabs andGuy Harris2012-07-071-1031/+1030
| | | | | | 4-tab spaces). svn path=/trunk/; revision=43592
* Fix compilation with gcc 4.3.2 and without GEOIPPascal Quantin2012-07-061-5/+6
| | | | svn path=/trunk/; revision=43587
* - remove no longer used #definesJakub Zawadzki2012-07-061-5/+0
| | | | | | | - prefs.name_resolve_concurrency is now just 'name_resolve_concurrency' - add notes about possible (?) integer overflows. svn path=/trunk/; revision=43586
* From Michael Mann:Anders Broman2012-07-061-180/+88
| | | | | | Generic preferences implementation - Printing and Name Resolution. svn path=/trunk/; revision=43579