Add ability for preferences to determine what they can change.
authorMichael Mann <mmann78@netscape.net>
Sat, 6 Jan 2018 04:39:55 +0000 (23:39 -0500)
committerMichael Mann <mmann78@netscape.net>
Sat, 6 Jan 2018 17:49:23 +0000 (17:49 +0000)
commiteef3c8434d556ad4d3fd9b0f4fdf912145f2670d
tree51a25eaae635737dcec8e23f9087398c24dd2d75
parenta65391f9014acd5cb8e4fe09ef8b2fac4716c024
Add ability for preferences to determine what they can change.

Add flags field to preference structure to help determine what
areas of Wireshark are affected by a preference changing.  The
intent is to be able to distinguish dissection from GUI or other
changes that are not dissection.

The default is to have all preferences affect dissection, but their
flags can be changed.  This patch doesn't change any flags from the
default.

Change-Id: Ied5ae961bc3f33f5b730b2892fff3fa0898380b8
Reviewed-on: https://code.wireshark.org/review/25171
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
17 files changed:
debian/libwireshark0.symbols
epan/decode_as.c
epan/prefs-int.h
epan/prefs.c
ui/gtk/airpcap_gui_utils.c
ui/gtk/decode_as_dlg.c
ui/gtk/main_menubar.c
ui/gtk/prefs_dlg.c
ui/gtk/prefs_font_color.c
ui/gtk/prefs_font_color.h
ui/preference_utils.c
ui/preference_utils.h
ui/qt/main_window.cpp
ui/qt/models/decode_as_model.cpp
ui/qt/preference_editor_frame.cpp
ui/qt/preferences_dialog.cpp
ui/qt/protocol_preferences_menu.cpp